Report a problem

* Required field

Request personal content removal from Google Search

Google’s personal content and product policies apply wherever you are in the world, but we also have processes in place to remove or restrict access to content based on local laws. To remove content based on a specific legal reason–including, but not limited to copyright infringement, trademark violations, or a court order—create a request through the Legal Help Center.

You may report the same content through both legal and content/product policy reporting paths, but you must file each report separately. Reporting content through a content/product policy path does not substitute for reporting it through a legal path and does not serve as legal notice.

Why are you requesting personal content removal from Google Search?

*

Residents of Indiamust use a country-specific dedicated form to report nude, intimate or sexual material.

Residents of Nigeriamust use a country-specific dedicated form to report nude, intimate or sexual material.

Residents of South Korea must use a country-specific dedicated form to report nude, intimate or sexual material.

Request removal of nudity or sexual content from Google Search

We understand that it can be distressing when Google displays search results containing nudity or sexually explicit content related to you.

Google may be able to help you or someone you’re authorized to represent remove content from Search that:

  • is nude, intimate, or sexually explicit (for example, images or videos of you) and is distributed without permission; OR
  • is fake or falsely depicts you as nude or in a sexually explicit situation; OR
  • incorrectly associates you or your name with sex work

To get started, we’ll ask you for some information about the content to better understand your situation and get you to the right place to request removal.

Describe the content

*

The imagery was taken when you were under the age of 18

*

The content depicts you under the age of 18

*
Google defines non-consensual intimate imagery (NCII) abuse as the creation or distribution of intimate or sexually explicit imagery and videos—including AI-generated 'deepfakes'—without consent. To ensure your request is handled by the correct team, we process these reports through a secure, central form. Please use the central form to request content removal from Google services, such as Search, Drive, and Photos.

Request NCII content removal

Request removal of images of minors from Google Search

Does the content depict an individual under the age of 18 in a nude or sexually explicit manner?

*
Residents of Indiamust use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of South Korea must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of Nigeria must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).
Residents of the European Union must use a country-specific dedicated form to report Child Sexual Abuse Material (related to children under 18).

Request removal of images of minors from Google Search

Nude or sexually explicit imagery of someone under the age of 18 may constitute child sexual abuse material (CSAM). CSAM consists of any visual depiction, including but not limited to photos, videos, and computer-generated imagery, involving the use of a minor engaging in sexually explicit conduct. 

When you submit a report indicating there is evidence of CSAM anywhere in our search results, our team of reviewers will assess the reported content and determine whether it meets this definition and is in violation of our CSAM policy. If CSAM is confirmed, a CyberTipline report will also be provided to the National Center for Missing and Exploited Children (NCMEC).

The purpose of this form is to request the removal of nudes or sexual images/videos of someone under 18.

Questions marked with an asterisk are required fields.

If you suspect a child is in danger, contact the police immediately.

Enter one URL per line (maximum 1,000 lines)
It looks like some of the URLs you entered aren't valid. Please make sure each line contains only one valid URL in the correct format (e.g., https://www.example.com). Please correct the invalid entries and try again.
Enter one search term per line (maximum 1,000 lines)
Is the person in the content you?
You are currently not logged in. Please check this box to confirm you want to submit this report anonymously
I want to make an anonymous report and I confirm I am not logged in. *

Contact Information (optional)

You can make a report anonymously, or if you want updates on the status of your report, you can provide your name and email address for status updates.

Important: To submit an anonymous report, please log out of your account before clicking the "Submit" button.

Request removal of content on sites with exploitative removal practices from Google Search

We understand it can be distressing when content about you or someone you are authorized to represent is on sites that require people to pay money directly to them or to other agencies to get the content removed.

So that we can help you, please make sure that your request meets these requirements for us to consider it for removal:

  • The website is not a business review site
  • The website has removal practices that necessitate payment to have the content removed

We generally aim to preserve information access if the content is determined to be of public interest.

Has the website asked you to pay money to the site or to an agency for personal content removal? *
Note: Child sexual abuse imagery is illegal and should NOT be shared in this form. Do not take or include screenshots containing child sexual abuse imagery or any content that presents someone under 18 in a sexual way. Learn how to report child sexual abuse imagery.

Request removal of content containing personal information from Google Search

We understand that it can be distressing when personal content is shared without your permission and is discoverable in Google search results. In many cases, this type of content (including personally identifiable information that is shared with malicious intent, known as "doxxing") violates our policies and may be removed.

We generally aim to preserve information access if the content is determined to be of public interest.

We will need context about the content you are reporting and your contact information to process your request.

Select the personal information you would like removed from Google search results *
Enter your address, phone number, or e-mail address as they appear in the webpage(s) *
If you saw multiple types of contact info in the result, you only need to include one type in your request
Select the type of government identification (ID) numbers that appear in the webpage(s) *
If you saw multiple types of confidential government IDs in the result, you only need to include one type in your request
Please enter the last four digits of your bank account or credit card number as they appear in the webpage(s)
Please enter the last four digits of your bank account or credit card number as they appear in the webpage(s)
Please enter the last four digits of your confidential government ID number as they appear in the webpage(s)
Select the option for address, phone number, and/or e-mail address
Is there malicious or threatening intent expressed directly in the content on the URL or domain (this practice is sometimes known as doxxing)? *

Enter one URL per line (maximum 1,000 lines)

It looks like some of the URLs you entered aren't valid. Please make sure each line contains only one URL and must start with http:// or https:// (e.g., https://www.example.com). Please correct the invalid entries and try again.

Enter one URL per line (maximum 1,000 lines)

It looks like some of the URLs you entered aren't valid. Please make sure each line contains only one URL and must start with http:// or https:// (e.g., https://www.example.com). Please correct the invalid entries and try again.

If you are unable to copy the text, provide the screenshots to this content below

Note: Child sexual abuse imagery is illegal and should NOT be shared in this form. Do not take or include screenshots containing child sexual abuse imagery or any content that presents someone under 18 in a sexual way. Learn how to report child sexual abuse imagery.
Note: Child sexual abuse imagery is illegal and should NOT be shared in this form. Do not take or include screenshots containing child sexual abuse imagery or any content that presents someone under 18 in a sexual way. Learn how to report child sexual abuse imagery.

Enter one URL per line (maximum 1,000 lines)

Enter one URL per line (maximum 1,000 lines)

Enter one search term per line (maximum 1,000 lines)

Enter one search term per line (maximum 1,000 lines)

If malicious or threatening intent is not present, this policy does not fit your request. To learn what content can be removed, read our policies

Request removal of nudity or sexual content from Google Search

This form is for requesting removal of content that incorrectly associates you or your name with sex work.

To process your removal request, we’ll need contact information and context about the content you’re reporting (including URLs for the content and screenshots).

Request removal of content containing personal information from Google Search

This form is for requesting removal of content containing personal information (for example, bank account numbers, government ID numbers, etc.) appearing in Google search results.

Request removal of content on sites with exploitative removal practices from Google Search

This form is for requesting removal of content on sites with exploitative removal practices appearing in Google search results.

To process your removal request, we’ll need contact information and context about the content you’re reporting (including URLs for the content and screenshots).

Request removal of images of minors from Google Search

This form is for requesting removal of content showing someone under the age of 18.

Google will remove images of current minors (meaning anyone below the age of 18) from Image Search results at the request of the minor or their parent or guardian, with the exception of cases of compelling public interest or newsworthiness.

So that we can help you, please make sure that your request meets these requirements for us to consider it for removal:

  • The request is for an image of a minor.
  • The request is not to remove a web URL (pages with both text and images). Web URLs are not eligible for removal under this policy.
  • The individual is still a minor (below age 18) at the time of this report or passed away before reaching adulthood.
  • The image is not from a social media account or a web page that you manage.

To process your removal request, we’ll need contact information and context about the content you’re reporting (including URLs for the content and screenshots).

Please enter name of the person mentioned in the URLs submitted below (max. 50 characters).
For example: 13
Is the person in the content you? *
It’s OK to request removal for someone else, if you have their permission
For example, “parent” or “lawyer”
Please enter the name of the person mentioned in the URLs (max. 50 characters).
Country information is used internally to help us improve our processes. In some countries, we’re required to report aggregated data, like the number of removal requests received. No personal information is included in these reports.

Enter one URL per line (maximum 1,000 lines)

It looks like some of the URLs you entered aren't valid. Please make sure each line contains only one URL and must start with http:// or https:// (e.g., https://www.example.com). Please correct the invalid entries and try again.

The image URL will start with https://images.app.goo.gl/ or

https://www.google.com/imgres?imgurl

Enter one URL per line (maximum 1,000 lines)

It looks like some of the URLs you entered aren't valid. Please make sure each line contains only one URL and must start with http:// or https:// (e.g., https://www.example.com). Please correct the invalid entries and try again.

Enter one URL per line (maximum 1,000 lines)

It looks like some of the URLs you entered aren't valid. Please make sure each line contains only one URL and must start with http:// or https:// (e.g., https://www.example.com). Please correct the invalid entries and try again.

Enter one URL per line (maximum 1,000 lines)

Enter one search term per line (maximum 1,000 lines)

Note: Child sexual abuse imagery is illegal and should NOT be shared in this form. Do not take or include screenshots containing child sexual abuse imagery or any content that presents someone under 18 in a sexual way. Learn how to report child sexual abuse imagery.
Note: Child sexual abuse imagery is illegal and should NOT be shared in this form. Do not take or include screenshots containing child sexual abuse imagery or any content that presents someone under 18 in a sexual way. Learn how to report child sexual abuse imagery.

Confirmation and Submission

*

By clicking ‘submit’, you are representing that the above statements are true, that you are requesting the removal of the search results identified by the URL(s) you have listed above, and that, if you are acting on behalf of another person, you have the authority to do so.

Google LLC will use the personal information that you supply on this form (including your email address and any identifying information) for the purposes of processing your request and meeting our legal obligations.

This field is required.
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

Contact us

Search
Clear search
Close search
Google apps
Main menu
2007167036797711494
true
Search Help Center
false
true
true
true
true
true
100334
'; a=am(a);var e="data:text/html;charset=UTF-8;base64,"+btoa(a.toString());e=Ll(e);b||(d.srcdoc=cm(a))}else{if(b)throw Error("IFRAME_SANDBOX_URL is not supported with disableSandbox");a=new va.Map([["nonce",a]]);var f=Ml(pjb).toString();var h=f.split(/[?#]/);e=/[?]/.test(f)?"?"+h[1]:"";b=h[0];f=/[#]/.test(f)?"#"+(e?h[2]:h[1]):"";e=thb(b,e,f,a)}d.src=Ml(e).toString();d.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";d.setAttribute("aria-hidden","true");return d} ;var e4={NY:!1,cL:!1},f4;function g4(a){this.options=a=a===void 0?e4:a;if(!ujb(this.options)&&typeof navigator.msSaveOrOpenBlob!=="function"){var b;this.sandbox=new d4({bL:(b=this.options.cL)!=null?b:!1})}} g4.download=function(a,b,d,e){d=d===void 0?"":d;e=e===void 0?e4:e;return Wa(function(f){if(f.o==1)return f.yield(vjb(a,b,d,e),2);if(f.ma)return f.return();f4||(f4=new g4,f4.init());return f.yield(wjb(f4,a,b,d),0)})}; g4.prototype.init=function(){var a=this;return Wa(function(b){return a.sandbox==null?b.return():b.yield(a.sandbox.load(),0)})}; g4.prototype.download=function(a,b,d){d=d===void 0?"":d;var e=this;return Wa(function(f){return f.o==1?f.yield(vjb(a,b,d,e.options),2):f.ma?f.return():f.yield(wjb(e,a,b,d),0)})}; function wjb(a,b,d,e){e=e===void 0?"":e;var f,h,k;return Wa(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,d);return l.yield(xjb(),3);case 3:return l.return();case 2:if(!Wb()||Db(shb(),16)>=0||!Rb()&&(!Lb("iPad")&&!Lb("iPhone")||Qb()||Rb()||(Mb()?0:Lb("Coast"))||Pb()||!Lb("AppleWebKit"))){l.Pa(4);break}h=new FileReader;h.onload=function(){var p=Tp("A"),r=Vl(String(h.result)); Yl(p,r);p.download=d;p.click()}; h.readAsDataURL(f);return l.yield(xjb(),5);case 5:return l.return();case 4:return a.sandbox==null&&(a.sandbox=new d4({bL:(k=a.options.cL)!=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:d,transfer:!1}]),6);case 6:return l.yield(xjb(),0)}})} function vjb(a,b,d,e){d=d===void 0?"":d;e=e===void 0?e4:e;var f;return Wa(function(h){switch(h.o){case 1:if(!ujb(e))return h.return(!1);h.va(2);return h.yield(yjb(a,b,d),4);case 4:h.ya(3);break;case 2:f=h.ua();if(f instanceof DOMException&&f.name==="SecurityError")return h.return(!1);throw f;case 3:return h.return(!0)}})} function ujb(a){a=a===void 0?e4:a;return a.NY&&!!window.showSaveFilePicker} function yjb(a,b,d){d=d===void 0?"":d;var e,f,h,k;return Wa(function(l){switch(l.o){case 1:var p=d,r={suggestedName:b},t;(t=b.match(/\..+$/))?(t=t[0],t=t.length>16?null:t):t=null;if(t){p=p.replace(/;[^]*/,"");var u={};r.types=[{description:"*"+t,accept:(u[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(p)?p:"*/*"]=[t],u)}]}e=r;l.va(2);return l.yield(window.showSaveFilePicker(e),4);case 4:f=l.ma;l.ya(3);break;case 2:h=l.ua();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.Ia(6),l.yield(k.write(a),6);case 6:return l.Da(),l.yield(k.close(),9);case 9:l.Ba(7);break;case 7:return l.return()}})} g4.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()}; function xjb(){return new va.Promise(function(a){setTimeout(a,500)})} pb("SafeDownloader",g4);var zjb={xr:["{0}, {1}","{0}, {1}","{0}, {1}"],WP:["{0} and {1}","{0} & {1}","{0}, {1}"],GJ:["{0}, and {1}","{0}, & {1}","{0}, {1}"],PQ:["{0} or {1}","{0} or {1}","{0} or {1}"],dK:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],pR:["{0}, {1}","{0}, {1}","{0} {1}"],oR:["{0}, {1}","{0}, {1}","{0} {1}"],jK:["{0}, {1}","{0}, {1}","{0} {1}"]},Ajb=zjb;Ajb=zjb;function Bjb(){var a={type:"conjunction"};this.Da=a&&a.type?a.type:"conjunction";this.ya=a&&a.style?a.style:"long";this.o=Ajb;a=0;switch(this.ya){case "short":a=1;break;case "narrow":a=2}switch(this.Da){case "conjunction":this.ua=this.o.xr[a];this.va=(this.o.WP||this.o.GJ)[a];this.oa=(this.o.cZ||this.o.xr)[a];this.ma=this.o.GJ[a];break;case "disjunction":this.ua=(this.o.tua||this.o.xr)[a];this.va=(this.o.PQ||this.o.dK)[a];this.oa=(this.o.sua||this.o.xr)[a];this.ma=this.o.dK[a];break;case "unit":this.ua= (this.o.pR||this.o.xr)[a],this.va=(this.o.fva||this.o.jK)[a],this.oa=(this.o.oR||this.o.xr)[a],this.ma=this.o.jK[a]}} Bjb.prototype.format=function(a){return Cjb(this,a)}; function h4(a,b,d){return a.replace("{0}",b).replace("{1}",d)} function Cjb(a,b){var d=b.length;switch(d){case 0:return"";case 1:return String(b[0]);case 2:return h4(a.va,String(b[0]),String(b[1]))}for(var e=h4(a.ua,String(b[0]),String(b[1])),f=2;f0&&pa.parents.push(Ca)}}}); Kjb(this);this.dispatchEvent("fieldsinitialized");this.To&&Ljb(this);window.sc_createSpinner&&(this.oa=window.sc_createSpinner("small"),Vm(this.oa.getElement(),"submit-spin",!0));j4(this,!1);Mjb(this);Njb(this);Ojb(this);k4(this,!0);this.prepopulateFields();this.prefillFieldsFromSession();this.element.addEventListener("submit",function(pa){pa.preventDefault();e.submitForm()}); this.element.addEventListener("input",function(){e.dispatchEvent("inputchange");e.setHasCheckedForDynamicRecommendation(!1);e.Xa=!1}); this.element.addEventListener("change",function(){e.setHasCheckedForDynamicRecommendation(!1);e.Xa=!1;if(GG.enableA11yValidationFieldsList){var pa,ua=(pa=e.model.strings.VALIDATION_NOTE)!=null?pa:"";pa=[];var ya=z(e.fields),Ca=ya.next();try{for(;!Ca.done;Ca=ya.next()){var Ia=Ca.value;if(Ia.isVisible()&&Xm(Ia.getElement(),"invalid")){var Pa=R3(Ia);Pa&&pa.push(Pa)}}}finally{La(ya,Ca)}Ia=z(e.o);Pa=Ia.next();try{for(;!Pa.done;Pa=Ia.next()){var Ka=Pa.value.model;if(!Ka.uc()&&!Ka.Oc().getId()){var Ta=Ka.getName(); Ta&&pa.push(Ta)}}}finally{La(Ia,Pa)}pa.length===0?Pjb(e):(ua=GG.enableA11yValidationFieldsList?Gjb(ua,pa):ua,l4(e,"invalid",ua))}}); this.model.c2c_configured&&(this.c2c=(0,window.sc_initFormClickToCall)(this));this.model.is_chat_form&&!this.shouldSubmitToCasesV2()&&Qjb(this);Rjb(this);this.dispatchEvent("validatorinitialized");this.dispatchEvent("initializationcomplete");this.Dc(20);if(a=this.element.getAttribute("data-form-sc-frd-values")){a=z(JSON.parse(a));b=a.next();try{for(;!b.done;b=a.next()){var u=new Wr(new Jk(b.value));this.zf.push($r(u));this.ua.push(aR(u))}}finally{La(a,b)}}u=z(this.fields);a=u.next();try{for(;!a.done;a= u.next()){var w=a.value,y=w.getFrdIdentifier();if(y){this.Jd.push(w);var na=this.Ba.get(y);na?na.push(w):this.Ba.set(y,[w])}}}finally{La(u,a)}Sjb(this,this.element.getAttribute("data-helpcenter-frd-fields-confg"));Tjb(this);Ujb(this);Vjb(this);Wjb(this);Xjb(this)} function m4(a){return n4(a)&&En("enable_chat_confirmation_ui_integration")==="true"} function Wjb(a){var b=document.querySelector(".contact-form-suggestions-panel-container");b&&(Fx.initialize(b,void 0),Ova(document),Fx.Si=function(d,e){return a.Si(d,e)},Gx(),mYa(a.getRedwoodId()),b=function(){Ex()},a.element.addEventListener("input",b),a.element.addEventListener("change",b),setTimeout(b,0),b=function(){Hx()},a.listen("nextpage",b),a.listen("highcontextchannelrecommendationfound",b),a.listen("submitstart",function(){Fx.submitForm(); Hx()}))} function Xjb(a){if(Yjb(a)&&!$m().is_render_api){var b=a.querySelector(".submit-button");b&&(b.textContent=a.model.strings.NEXT);a.listen("dynamicrecommendationfound",a.wV.bind(a));a.listen("error",function(){a.Da.length>0||a.Av()}); a.listen("invalidated",function(){a.Da.length>0||a.Av()}); a.listen("submitend",function(){a.Av()}); (b=document.querySelector(".collapsed-form-container__header"))&&b.addEventListener("click",a.Av.bind(a))}} function Zjb(){return{RL:document.querySelector(".form-suggestions-wrapper"),NK:document.querySelector(".collapsed-form-container"),kL:document.querySelector(".contact-form-dynamic-recommendations-container"),KK:document.querySelector(".contact-form-header")}} n=Hjb.prototype;n.Av=function(){var a=Zjb(),b=a.RL,d=a.NK,e=a.kL;a=a.KK;b&&d&&e&&a&&(Vm(d,"hidden",!0),Vm(e,"hidden",!0),Vm(a,"hidden",!0),Vm(b,"hidden",!1),this.setShouldShowNextStep(!0))}; n.wV=function(){var a=Zjb(),b=a.RL,d=a.NK,e=a.kL;a=a.KK;b&&d&&e&&a&&(Vm(d,"hidden",!1),Vm(e,"hidden",!1),Vm(b,"hidden",!0),Vm(a,"hidden",!1),this.setShouldShowNextStep(!1),this.Ia||xva(e,this.getFieldValues(),this.wr))}; n.querySelector=function(a){return this.element.querySelector(a)}; function o4(a,b){return a.element.querySelector(b)} n.querySelectorAll=function(a){return this.element.querySelectorAll(a)}; function i4(a,b){for(var d=0;d=a.model.total_pages;Vm(a.Rg,"hidden",!b);b?a.La.activate():a.La.deactivate()}} function j4(a,b){var d=a.page>=a.model.total_pages,e=a.querySelector(".submit-button");e&&(Vm(e,"hidden",!d),e.disabled=!a.yb||b);if(a.va){var f=p4(a)?".high-context-channel-recommendation__recaptcha":".recaptcha";Vm(a.querySelector(f),"hidden",!d)}if(f=a.querySelector(".previous-button"))Vm(f,"hidden",a.page===1),f.disabled=b;if(f=a.querySelector(".next-button"))Vm(f,"hidden",a.page===a.model.total_pages),f.disabled=!a.yb||b;if(a.oa){b?a.oa.show():a.oa.hide();var h=a.oa.getElement();!d&&(f==null? 0:f.parentNode)?f.parentNode.appendChild(h):d&&(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)}(d=a.querySelector(".high-context-channel-recommendation__button-spinner"))&&Vm(d,"hidden",!b);$jb(a,b)} function p4(a){return!Xm(a.querySelector(".high-context-channel-recommendation__container"),"hidden")} function Mjb(a){var b=a.querySelector(".submit-button");b&&(!$m().li&&a.model.is_chat_form?(b.disabled=!0,o4(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(){akb(a,a.page-1)&&(a.dispatchEvent("previouspage"),a.Dc(7))}); (b=a.querySelector(".next-button"))&&b.addEventListener("click",a.submitForm.bind(a))} function Vjb(a){if(gjb()&&!a.model.logged_in){a.Dc(4,304);var b=a.element.querySelector(".need-info-authentication-prompt__container");a=a.element.querySelector(".confirmation-message__authentication-prompt-container");b&&Vm(b,"hidden",!1);a&&Vm(a,"hidden",!1)}} function Ujb(a){if(gjb()&&a.model.logged_in&&!$m().is_render_api){var b=[],d=z(Ejb),e=d.next();try{for(;!e.done;e=d.next()){var f=a.Ba.get(e.value);f&&b.push.apply(b,Ga(f))}}finally{La(d,e)}b=z(b);d=b.next();try{for(e={};!d.done;e={Yt:void 0,Yv:void 0,cF:void 0,targetIdAuthorizationWarning:void 0},d=b.next())e.Yt=d.value,e.cF=e.Yt.getFrdIdentifier(),e.cF&&(e.Yv=e.Yt.querySelector(".text-input-container"),e.targetIdAuthorizationWarning=e.Yt.querySelector(".target-id-authorization-warning"),e.Yt.getElement().addEventListener("focusout", function(h){return function(){var k,l,p,r;return Wa(function(t){switch(t.o){case 1:k=h.Yt.getValues()[0].value;if(!k)return t.return();h.Yv&&Vm(h.Yv,"text-input-spin",!0);t.va(2,3);return t.yield(bkb(a,h.cF,k),5);case 5:l=t.ma;if(xf(l,c4,1).length===0)return t.return();p=xf(l,c4,1)[0];r=Lf(p,2);Vm(h.targetIdAuthorizationWarning,"hidden",r);a.Dc(r?4:5,305);case 3:t.Da();h.Yv&&Vm(h.Yv,"text-input-spin",!1);t.Ba(0);break;case 2:t.ua(),Vm(h.targetIdAuthorizationWarning,"hidden",!0),a.Dc(5,305),t.Pa(3)}})}}(e)))}finally{La(b, d)}}} function Njb(a){a=a.element.getElementsByTagName("textarea");for(var b=0;b0&&w.getValues()[0].value!==""&&!v(Fjb,"includes").call(Fjb,w.getType())&&w.getType()!=="HIDDEN";if(!y||!a.Yo.has(y)&&!na){k=[];var pa=Jf(u,2);pa?k=[pa]:xf(u,hk,3).length>0&&(k=[].concat(Ga(ckb(xf(u,hk,3)[0]))));k.length>0&&(h++,yib(w,k)&&e++)}}}}finally{La(l,p)}if(e>0){var ua=document.querySelector(".prefilled-callout"); ua&&Vm(ua,"hidden",!1)}dkb(a,e,h)}else dkb(a,0,0);a.Fc=[];var ya,Ca=(ya=vf(f,$3,2))==null?void 0:df(ya,2,hk,kR);if(Ca){var Ia=z(v(Ca,"values").call(Ca)),Pa=Ia.next();try{for(;!Pa.done;Pa=Ia.next()){var Ka=Pa.value,Ta=Lk(new Jk,Ka),db=new Wr(Ta);a.Fc.push(aR(db))}}finally{La(Ia,Pa)}}}catch(mb){console.error("Failed to parse FormsGetPrefillDataResponse",mb)}finally{k4(a,!1)}}, Vc:function(e){a.Dc(21,313,"getprefilldata: "+e.statusText);console.error("getprefilldata endpoint returned an error",e);k4(a,!1)}, Gh:!0})}}else k4(this,!1)}; function dkb(a,b,d){var e="no_prefill";d>0&&(e=b===d?"full_prefill":"partial_prefill");a.Dc(15,313,e+": prefilled_count:"+(b+"_total_potential_count:"+d))} function ckb(a){return(a=kk(a))?Qe(a,8,cg)?Zj(bk(a)):Qe(a,2,cg)?Uj(a.Lg()).map(function(b){return""+b}):Qe(a,3,cg)?Zj(a.Ej()):Qe(a,4,cg)?Sj(dk(a)).map(function(b){return""+b}):bg(a)!=null?[a.Kl().toString()]:Qe(a,6,cg)?(la=Wj(a.Mn()),v(la,"flat")).call(la).map(function(b){return""+b}):[]:[]} n.prepopulateFields=function(a){if(this.model.enable_prepopulate_contact_form_field_query_params){var b=z(this.fields),d=b.next();try{for(;!d.done;d=b.next()){var e=d.value,f=ekb(e,a),h=void 0;if((h=f)==null?0:h.sP.length){e.setValues(f.sP,!0);var k=e.getId();k&&this.Yo.add(k)}h=void 0;((h=f)==null?0:h.KX)&&e.hide()}}finally{La(b,d)}}}; function ekb(a,b){b||(b=$m().query_params);b=b.filter(function(t){return t.key==="pcff"}); for(var d=[],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.Dz=function(a,b){var d=[];i4(this,function(e){var f=tib(e,a,b);f&&d.push({field:e,control:f,value:b})}); return d}; n.Ol=function(){return this.page}; n.submitForm=function(){var a=this;if(this.Gj&&this.Xa&&!this.Na)this.getStatusMessage()!==""&&(this.Ia=!1),fkb(this);else{this.Fb&&this.Sa!==27||(this.Fb=wu.Xd());var b=this.model.strings.VALIDATION_NOTE,d=[],e=z(this.o),f=e.next();try{for(;!f.done;f=e.next()){var h=f.value,k=h.model;if(!k.uc()&&!k.Oc().getId()){eT(h,!0,this.model.strings.REQUIRED_FIELD);var l=k.getName();d.length===0&&GG.enableA11yValidationFieldsList&&l&&(b=y3(b,l));this.Dc(17,21,l);d.push({id:l,value:wS(k).join(",")})}}}finally{La(e, f)}if(d.length>0)l4(this,"invalid",b),gkb(d),this.dispatchEvent("invalidated");else if(j4(this,!0),i4(this,function(r){r.Ba&&(a.xe=!0,r.targetVerified()&&(a.targetVerified=!0))}),this.Mh!==0){var p=function(){a.element.removeEventListener("uploadend",p); a.submitForm()}; this.element.addEventListener("uploadend",p)}else this.dispatchEvent("validationstart"),hkb(this)||this.dispatchEvent("beforesubmit"),ikb(this).then(function(r){!a.c2c||a.model.use_cufinsert_api_when_validating_only&&a.validateOnly?n4(a)&&a.model.check_chat_availability_before_submitting_request&&!jkb()&&!a.shouldSubmitToCasesV2()?kkb(a,r):lkb(a,r):mkb(a,r)},function(r){var t=a.getId(),u=a.submissionChannel,w=a.getContactType(),y=a.Dc.bind(a); if(r instanceof Error)var na=r;else{var pa="Unknown serialization error",ua;try{pa=String(r)}catch(Pa){pa="Unknown serialization error (String conversion failed: "+String(Pa)+")"}if(typeof r==="object"&&r!=null){if(typeof r.message==="string")pa=r.message;else try{pa=JSON.stringify(r,Object.getOwnPropertyNames(r))}catch(Pa){pa+=" (JSON serialization failed: "+String(Pa)+")"}typeof r.stack==="string"&&(na=r.stack);typeof r.name==="string"&&(ua=r.name)}r=Error(pa);na!=null&&(r.stack=na);ua!=null&&(r.name= ua);na=r}ua=na.name;u=u===0?String(w):String(u);y(21,339,"serializeformdata: "+ua+":"+t);Fn("form_serialize_failure");var ya,Ca,Ia;kn({event:"FORM_SERIALIZE_FAILURE",Kva:ua,Lva:na.stack,formId:t,channel:u,helpcenterId:(ya=$m())==null?void 0:ya.hc,pageType:(Ca=$m())==null?void 0:Ca.pt,oG:(Ia=$m())==null?void 0:Ia.is_render_api,url:window.location.pathname});a.setErrorMessage(a.model.strings.BACKEND_ERROR);a.dispatchEvent("error");a.dispatchEvent("validationend");j4(a,!1)}).catch(function(){q4(a,a.model.strings.BACKEND_ERROR); a.dispatchEvent("validationend")})}}; function nkb(a){var b=a.querySelector("#channel-recommendation-chat-option"),d=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(){okb(a,!1)}); b.addEventListener("click",function(){okb(a,!0)}); d.addEventListener("click",function(){a.Dc(55,303);pkb(a,1)}); e.addEventListener("click",function(){a.Dc(54,303);pkb(a,2)})} function pkb(a,b){b===2?qkb(a,a.ma,"channel_reco_chat_channel_selected"):qkb(a,a.ma,"channel_reco_chat_channel_shown");var d=a.querySelector(".notification-area");d&&(d.textContent="");a.setSubmissionChannel(b);a.ma&&(a.ma.submission_channel=b);a.submitForm()} function okb(a,b){var d=a.querySelector("#channel-recommendation-email-option"),e=a.querySelector(".high-context-channel-recommendation__continue-button"),f=a.querySelector(".high-context-channel-recommendation__switch-button");Vm(a.querySelector("#channel-recommendation-chat-option"),"high-context-channel-recommendation-options__option--active",b);Vm(d,"high-context-channel-recommendation-options__option--active",!b);Vm(f,"hidden",!b);Vm(e,"hidden",b)} function rkb(){var a=En("FormSurveysFeature__trigger_id");hv(new gv,{triggerId:a,enableTestingMode:En("FormSurveysFeature__enable_testing_mode")==="true",productData:{experimentIds:Jn()}})} n.setAssistiveQuestionAnswers=function(a){this.Ea=a;if(this.c2c&&(!this.model.use_cufinsert_api_when_validating_only||!this.validateOnly)){a=z(this.Ea);var b=a.next();try{for(;!b.done;b=a.next()){var d=b.value;if(d.c2cCountry&&d.c2cNumber){var e=o4(this,'input[type="tel"]').closest(".field").querySelector("select");this.Df(e.name).setValues([[d.c2cCountry,d.c2cNumber]]);break}}}finally{La(a,b)}}}; function Ljb(a){var b="submit_form";a.model.has_custom_recaptcha_action&&(b="submit_form_"+a.getRedwoodId()+"_"+a.getId());var d=p4(a)?".high-context-channel-recommendation__g-recaptcha":".g-recaptcha";a.recaptcha=new FG(a.querySelector(d),function(){a.rb=!0;a.Dc(19,22)},b)} function skb(a){var b=p4(a)?".high-context-channel-recommendation__g-recaptcha-v2":".g-recaptcha-v2",d=a.querySelector(b);if(d){var e=window.sc_createSpinner?window.sc_createSpinner("small"):null;e&&d.parentNode&&d.parentNode.insertBefore(e.getElement(),d);a.Ka=(new rD(d,function(){e&&d.parentNode&&d.parentNode.removeChild(e.getElement());a.va=!0;a.Dc(19,172);a.Dc(4,172)})).qo(function(){a.Dc(14,172)})}} function tkb(a,b){b=b===void 0?null:b;var d=ejb().map(function(e){return e.toString()}); b&&d.push(b);b=ukb(a);d.push.apply(d,Ga(Oib(a.getRedwoodId(),b)));d.push.apply(d,Ga(En("DetectDuplicateCases__enable_detect_duplicate_cases")==="true"?["detect_duplicate_cases_treatment"]:["detect_duplicate_cases_control"]));return[ZQ(XQ(WQ(new Wr,8001336),8001336).Cd(15),[].concat(Ga(new va.Set(d))))]} function qkb(a,b,d){b.form_frd_values=b.form_frd_values.filter(function(e){return e.frd_id!==8001336}); a=tkb(a,d)[0];b.form_frd_values.push(x3(a.Lc))} n.submitCustomerFollowUp=function(a,b){var d=this,e,f,h,k,l,p,r,t;return Wa(function(u){switch(u.o){case 1:return u.va(2),u.yield(ikb(d),4);case 4:e=u.ma;f=structuredClone(e);f.validate_only=!1;f.header||(f.header=[]);f.header.push({name:"case_action",value:"customer_follow_up"});f.header.push({name:"case_id",value:"cases/"+a});b&&f.header.push({name:"follow_up_note",value:b});f.submit_id=d.submitId;h={v:"0",psd:JSON.stringify(d.productSpecificData)};(k=Ym("test"))&&(h.test=k);(l=Ym("cases2"))&&(h.cases2= l);p={common_params:{context_params:{view_id:$m().vid}},resource:f};if(d.va&&d.Ka){p.recaptcha_response=d.Ka.getResponse();u.Pa(5);break}if(!d.rb||!d.recaptcha){u.Pa(5);break}return u.yield(d.recaptcha.getResponse(),7);case 7:p.recaptcha_response_v3=u.ma;case 5:return u.yield(new va.Promise(function(w,y){jn({httpMethod:"POST",endpoint:"cufinsert",params:h,requestBody:p,onLoadCallback:function(na){try{var pa=JSON.parse(na.responseText);pa.error||!pa.result||v(pa.result,"includes").call(pa.result,"UPDATE_FAILED")? y(Error("Case update failed. Response: "+JSON.stringify(pa))):v(pa.result,"includes").call(pa.result,"UPDATE_OK")?(d.caseId=a,w(pa.follow_up_response)):y(Error("Update did not succeed. Result: "+JSON.stringify(pa.result)))}catch(ua){y(Error("Failed to parse response",{cause:ua}))}}, Vc:function(){y(Error("API error"))}, Gh:!0})}),8); case 8:return r=u.ma,u.return(r);case 2:throw t=u.ua(),d.dispatchEvent("validationend"),t;}})}; function ikb(a){var b,d,e,f,h,k,l,p,r,t,u,w,y,na,pa,ua,ya,Ca,Ia,Pa,Ka,Ta,db,mb,sb;return Wa(function(kb){if(kb.o==1){if(a.Na&&a.ma)return kb.return(va.Promise.resolve(a.ma));d={form_id:a.element.getAttribute("id"),header:[],subject:"",content:"",validate_only:a.validateOnly||r4(a)||hkb(a)||Yjb(a),validation_info:a.model.validation_info,language:$m().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:mT(mT(mT(mT(mT(mT(mT(new hT,a.Ra),a.ua),a.Va.Zc()),a.Fc),a.o.map(function(jb){return jb.model}).filter(function(jb){return jb.isRequired()&&jb.isPending()&&jb.isValid()}).map(function(jb){return jb.Oc().setRequired(!0)})),[XQ(WQ(new Wr,8000730),8000730).Cd(15).Zg([hn()])]),tkb(a)).Zc().map(function(jb){return x3(jb.Lc)}), selected_symptom_frd_values:(b=a.selectedSymptomFrdValues)==null?void 0:rhb(b),parent_case_name:a.parentCaseName,submission_channel:a.submissionChannel,cases_attachment:a.Mk.map(function(jb){return{blob_name:$f(jb,1),file_name:jb.getFileName()}}), form_revision:Number(a.element.getAttribute("data-contact-form-revision"))};jkb()&&(d.chat_pool_id=a.getChatPoolId(),a.getContactType()===1||a.getContactType()===3)&&(d.gcm_registration_id=a.gcmRegistrationId);e=a.getSubjectFieldId();f=a.getBodyFieldId();return a.La?kb.yield(a.La.getScreenshotData(),3):kb.Pa(2)}kb.o!=2&&(h=kb.ma)&&(a.bp=[{name:"screenshot",value:"There was a file uploaded for this field."},{name:"upload_original_filename",value:h.originalFilename},{name:"upload_cns_filename",value:h.Ie}, {name:"upload_document_id",value:h.documentId}]);if(a.Ea.length>0){d.is_assistive=!0;d.assistive_flow_results=[];k=z(a.Ea);l=k.next();try{for(;!l.done;l=k.next())p=l.value,r=p.answer,p.translatedAnswer&&(r+=" ***** "+p.translatedAnswer),d.header.push({name:p.questionId,value:r}),d.content+=p.questionId+": "+r+"\n",d.assistive_flow_results.push({question:p.questionId,answer:r,prediction_id:p.predictionId,recommendation_id:p.recommendationId})}finally{La(k,l)}}vkb(a)&&a.Da&&a.Da.length>0&&(d.dynamic_question_results= a.Da.map(function(jb){return{question_text:jb.questionText,question_intent:jb.questionIntent,answer_values:jb.answerValues,relevance:jb.relevance,suggested_input_type:jb.suggestedInputType}})); d.helpcenter_form_field_results=[];a.o&&a.o.length>0&&(t=a.o.filter(function(jb){return jb.model.isValid()&&jb.model.bG}).map(function(jb){var Fb=jb.getDisplayValues(); return{field_label:jb.Be(),field_id:jb.model.getName(),field_values:(Fb==null?0:Fb.length)?Fb:wS(jb.model)}}),t.length>0&&(d.helpcenter_form_field_results=t)); u=a.getFieldValues();w=wkb(a,!0);y=new va.Map((la=a.getHcfNameScFrdValueMap(),v(la,"entries")).call(la));a.o.map(function(jb){return jb.model}).forEach(function(jb){jb.isValid()&&y.set(jb.getName(),aR(jb.Oc()))}); for(na=0;na0&&(d.product_specific_data=Ta);a.xe&&(d.target_submission_details={used_target_selector:!0,is_target_selector_verified:a.targetVerified});return kb.return(d)})} function kkb(a,b){var d=xkb(a,1);jn({httpMethod:"POST",endpoint:"escalationavailability",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},requestBody:a.shouldSubmitToCasesV2()?d.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)?lkb(a,b):(a.oa&&a.oa.hide(),Qjb(a))}, Vc:function(e){a.Dc(21,52,"escalationavailability: - "+e.statusText);a.oa&&a.oa.hide();if(e=a.querySelector(".submit-button"))e.disabled=!1;q4(a,a.model.strings.BACKEND_ERROR);a.dispatchEvent("validationend")}})} n.getChatAvailability=function(){var a=this;return Wa(function(b){return b.return(ykb(a))})}; function mkb(a,b){var d,e,f,h,k,l;Wa(function(p){if(p.o==1)return d={contact_flow:b},a.va?(d.recaptcha_response=a.Ka.getResponse(),p.Pa(2)):a.rb?p.yield(a.recaptcha.getResponse(),4):p.Pa(2);p.o!=2&&(d.recaptcha_response_v3=p.ma);a.c2c.populateCallParameters(d);a.shouldSubmitToCasesV2()&&(e={},f=xkb(a,5),ug(f,2)&&(e.form_id=$f(f,2)),Nd(Ke(f,4))!=null&&(e.redwood_form_id=gg(f,4)),e.channel=[5],Pe(f,7)?e.sc_frd_values=qhb(new hT(f.getScFrdValues())):Pe(f,1)&&(e.frd_values=rhb(new hT(vf(f,wk,1)))),d.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;jn({httpMethod:"POST",endpoint:"createcall",params:h,requestBody:d,onLoadCallback:function(r){var t=null;try{t=JSON.parse(r.responseText)}catch(u){}s4(a,{type:"c2c",response:t})}, Vc:function(){s4(a,{type:"c2c",response:!1})}}); p.oa()})} function lkb(a,b){var d,e,f,h;Wa(function(k){if(k.o==1)return d={v:"0",psd:JSON.stringify(a.productSpecificData)},(e=Ym("test"))&&(d.test=e),(f=Ym("cases2"))&&(d.cases2=f),b.submit_id=a.submitId,h={common_params:{context_params:{view_id:$m().vid}},resource:b},a.va?(h.recaptcha_response=a.Ka.getResponse(),k.Pa(2)):a.rb?k.yield(a.recaptcha.getResponse(),4):k.Pa(2);k.o!=2&&(h.recaptcha_response_v3=k.ma);n4(a)&&(a.shouldSubmitToCasesV2()||f)&&(a.Yd=!0);jn({httpMethod:"POST",endpoint:"cufinsert",params:d, requestBody:h,onLoadCallback:function(l){var p=null;try{p=JSON.parse(l.responseText)}catch(r){s4(a,{type:"cuf",response:l.responseText,formData:b});return}s4(a,{type:"cuf",response:p,formData:b})}, Vc:function(){s4(a,{type:"cuf",response:!1,formData:b})}, Gh:!0});k.oa()})} function n4(a){return a.Rd?!1:a.model.is_chat_form||a.Na&&a.ma!==null&&a.ma.submission_channel===2} function r4(a){if(!a.model.fix_multi_page)return!1;var b=!1;i4(a,function(d){Number(d.Ol())>a.Ol()&&d.hasSatisfiedDependencies()&&(b=!0)}); return b} function hkb(a){var b=a.getContactType()===0;return a.model.logged_in&&(fjb()||(la=ejb(),v(la,"includes")).call(la,"channel_reco_treatment"))&&$m().rs===1&&b&&!a.Na} function Yjb(a){return a.model.logged_in&&!a.Ia&&zkb(a)} function zkb(a){var b;if(!(b=vkb(a))){b=a.getContactType()===3;var d=a.getContactType()===1;b=!!a.flags.enableSmartIntakeDuplicateCases&&!b&&!d}return b} function vkb(a){var b=a.getRedwoodId(),d=!!a.flags.enableSmartIntakeDynamicQuestions,e,f;a=(f=(e=a.flags.smartIntakeDynamicQuestionsFormAllowlist)==null?void 0:e.primitive_value)!=null?f:[];e=$m().lang;return d&&B_a(b,a,e)} n.getHasCheckedForDynamicRecommendation=function(){return this.Ia}; n.setHasCheckedForDynamicRecommendation=function(a){this.Ia=a}; n.getHasCheckedForDynamicQuestions=function(){return this.Lj}; n.setHasCheckedForDynamicQuestions=function(a){this.Lj=a}; n.getHasCheckedForDuplicateCases=function(){return this.Ij}; n.setHasCheckedForDuplicateCases=function(a){this.Ij=a}; n.getShouldShowNextStep=function(){return this.Gj}; n.setShouldShowNextStep=function(a){this.Gj=a}; function fkb(a,b){b=b===void 0?null:b;j4(a,!0);b&&(a.ma=b);a.ma.validate_only=a.validateOnly||r4(a);a.dispatchEvent("dynamicrecommendationfound");a.setHasCheckedForDynamicQuestions(!1);a.setHasCheckedForDuplicateCases(!1);a.Xa=!0;a.Ia=!0;j4(a,!1)} function Akb(a,b){j4(a,!0);a.ma=b;a.ma.validate_only=a.validateOnly||r4(a);a.Na=!0;b={contact_flow_model:b};jn({httpMethod:"POST",endpoint:"channelrecommendation",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},requestBody:b,onLoadCallback:function(d){var e=null;try{e=JSON.parse(d.responseText)}catch(f){Bkb(a,{response:d.responseText});return}Bkb(a,{response:e})}, Vc:function(){Bkb(a,{response:!1})}, Gh:!0})} function gkb(a){a=cjb(new bjb,a.map(function(b){return(new a4).setId(b.id).setValue(b.value)})); jn({httpMethod:"POST",endpoint:"logformvalidationfailure",params:{v:"1"},requestBody:a,onLoadCallback:function(){}, Vc:function(){}, Gh:!0})} function Bkb(a,b){j4(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.Sa=28;Ckb(a);Dkb();a.Dc(4,303);var d=a.querySelector(".high-context-channel-recommendation__container");Ekb(a,!1);Vm(d,"hidden",!1);!$m().is_render_api&&zkb(a)&&a.Av();a.dispatchEvent("highcontextchannelrecommendationfound");a.To&&Ljb(a);d=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))); d&&f&&mm(d,Km.re(f))}d=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),mm(d,Km.re(b))):Vm(e,"hidden",!0);nkb(a)}else a.Sa=29,a.submitForm()} function bkb(a,b,d){var e;return Wa(function(f){e=ljb(new kjb,ijb(hjb(new b4,b),d));return f.return(new va.Promise(function(h,k){jn({httpMethod:"POST",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},endpoint:"authorizetargets",requestBody:e,onLoadCallback:function(l){var p=null;try{p=ojb(l.responseText),h(p)}catch(r){k(Error("Failed to parse AuthorizeTargetsResponse."))}}, Vc:function(){k(Error("API error authorizing targets."))}, Gh:!0})}))})} function Ckb(a){a.Fb.report(a.Sa);a.Fb=null;a.Sa=27} n.getSubjectFieldId=function(){return o4(this,'input[name="subject-line-field-id"]').value}; n.getBodyFieldId=function(){return o4(this,'input[name="body-text-field-id"]').value}; function wkb(a,b){var d=[];i4(a,function(r){if(r.hasSatisfiedDependencies())for(var t=r.getValues(b),u=0;u0){q4(a,Lkb(e),e);a.dispatchEvent("validationend");break a}Mkb(a,e)}else q4(a,a.model.strings.BACKEND_ERROR,e)}else q4(a,a.model.strings.CONNECTION_ERROR);a.dispatchEvent("validationend")}else{d=b.response;b=b.formData;f=typeof d==="object"?d==null?void 0:(e=d.result)==null?void 0:e[0]:void 0;e=!1;if(d&&typeof d==="object")if(!d.error&& d.result&&f&&f.indexOf("PERM_FAILURE")!==0)if(f==="ACCEPTED"||f==="SUCCESS"||f==="RETRIED")if(r4(a))Ikb(a);else if(Yjb(a))fkb(a,b);else if(hkb(a))Akb(a,b);else{d.fallback_info&&(a.Rd=!0,DG("Fallback case created via DLQ: "+JSON.stringify(d.fallback_info)));b=Ym("cases2");if(b=n4(a)&&(a.shouldSubmitToCasesV2()||b))a.chatPoolId=d.chat_pool_id||"",a.model.chat_support_request_id=d.chat_support_request_id||"";a.dispatchEvent("validated");d.case_id&&(a.caseId=d.case_id,Jkb(a),a.Dc(66,339,d.case_id));a.validateOnly|| (!b||jkb()||$m().rs===79&&a.flags.enableChatMoleMigration||((0,window.sc_ensureSubscribed)(),a.dispatchEvent("chatrequested")),Ckb(a),Kkb(a));t4(!0);e=!0}else Mkb(a,d);else q4(a,Lkb(d),d);else q4(a,a.model.strings.CONNECTION_ERROR);d=Ym("cases2");!e&&n4(a)&&(a.shouldSubmitToCasesV2()||d)&&(a.Yd=!1);a.dispatchEvent("validationend")}} function Nkb(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 Lkb(a){var b;return((b=a.submit_error)==null?0:b.length)?(a=a.submit_error[0],Nkb(a.code,a.sub_code)):""} function Okb(a,b){var d=p4(a)?".high-context-channel-recommendation__recaptcha":".recaptcha";(a=a.querySelector(d))&&Vm(a,"invalid",b)} function Mkb(a,b){var d=!1,e,f=(e=a.model.strings.VALIDATION_NOTE)!=null?e:"";e=[];var h=z(b.result||[]),k=h.next();try{for(;!k.done;k=h.next()){var l=k.value.split(":");if(l[0]==="REQUIRED_FORM_FRD_VALUE"){var p=Pkb(a,l[1],l[2]);if(p){if(p.isVisible()){eT(p,!0,a.model.strings.REQUIRED_FIELD);var r=p.model.getName();r&&e.push(r)}else{var t=p.model.getName();GG.enableA11yValidationFieldsList&&t?f=y3(a.model.strings.REQUIRED_FIELD,t):t?f=a.model.strings.REQUIRED_FIELD+": "+t:f=a.model.strings.REQUIRED_FIELD}d= !0}}else{var u=a.Df(l[1]);if(l[0]==="REQUIRED_RECAPTCHA"){if(a.page===a.model.total_pages){var w=a;if(w.model.fallback_to_recaptcha_v2){if(!w.va){var y=p4(w)?".high-context-channel-recommendation__g-recaptcha":".g-recaptcha",na=w.querySelector(y);na&&Vm(na,"hidden",!0);skb(w)}Okb(w,!0)}d=!0;f=a.model.strings.REQUIRED_RECAPTCHA_NOTIFICATION}}else if(l[0]==="INVALID_AUTH_TOKEN")d=!0,f="Refresh this page and try again. Sorry, there was a problem with the form.";else if(l[0]==="CHAT_UNAVAILABLE")Qjb(a), d=!0;else if(u&&u.isVisible()){var pa;if(pa=u.getType()==="PHONE_NUMBER"&&a.c2c)a:{w=a;var ua=u.getValues(!0)[0];if(ua&&ua.value){var ya=JSON.parse(ua.value),Ca;if(Ca=ya){var Ia=ya.country,Pa=[],Ka=w.model.phone_type_required_countries;Ka&&(Pa=Ka.split(","));Ca=Pa.indexOf(Ia)!==-1}if(Ca){u.setValidity(!1,w.model.strings.PHONE_TYPE_VALIDATION,!0);pa=!0;break a}}pa=!1}if(pa){var Ta=R3(u);Ta&&e.push(Ta)}else{u.setValidity(!1,a.model.strings[l[0]]||a.model.strings.DEFAULT);var db=R3(u);db&&e.push(db)}d= !0}}}}finally{La(h,k)}if(d){var mb;d=GG.enableA11yValidationFieldsList&&f===((mb=a.model.strings.VALIDATION_NOTE)!=null?mb:"")&&e.length>0?Gjb(f,e):f;l4(a,"invalid",d+Qkb(a,b));a.dispatchEvent("invalidated");a.Dc(17)}else Ikb(a)} function Pjb(a){if(a=a.querySelector(".notification-area"))Vm(a,"error",!1),Vm(a,"invalid",!1),a.textContent="",GG.enableA11yValidationFieldsList&&a.removeAttribute("role")} function Hkb(a){Pjb(a);i4(a,function(e){e.setValidity(!0)}); var b=z(a.o),d=b.next();try{for(;!d.done;d=b.next())eT(d.value,!1)}finally{La(b,d)}a.va&&Okb(a,!1)} function l4(a,b,d){var e=a.querySelector(".notification-area");e&&(Vm(e,b,!0),e.textContent=d,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.wrapUpCaseUpdate=function(a){this.caseId=a;Jkb(this);this.dispatchEvent("validated");Kkb(this);t4(!0);this.dispatchEvent("validationend")}; n.getStatusMessage=function(){var a;return((a=this.querySelector(".notification-area"))==null?void 0:a.innerText)||""}; n.setErrorMessage=function(a){l4(this,"error",a)}; function q4(a,b,d){a.setErrorMessage(b+Qkb(a,d));if(d==null?0:d.submit_error){b=z(d.submit_error);d=b.next();try{for(;!d.done;d=b.next()){var e=d.value;if(e.escalation_rpc_event_id){a.Dc(21,339,e.escalation_rpc_event_id);break}}}finally{La(b,d)}}a.dispatchEvent("error");t4(!1)} function Qkb(a,b){if(!b||!a.model.show_debug_info)return"";a=["\n\nDebug info for Googlers:"];var d;((d=b.submit_error)==null?0:d.length)&&a.push.apply(a,["\nSubmit Errors:"].concat(Ga(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(Ga(b.result)));return a.join("\n")} function Ikb(a){akb(a,a.page+1);a.dispatchEvent("nextpage");a.Dc(6)} function Kkb(a){a.dispatchEvent("submitstart");if(!n4(a)||a.Ea.length>0||m4(a))Dkb(),Ekb(a),Rkb(a);if(n4(a)){if(!m4(a)){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);$jb(a,!0);window.sc_enableFormSubmissionDetailsAndDownloadUi&&(Skb(a),Tkb(a,o4(a,".legacy-submission-details-chat__content")),Ukb(a),b=o4(a,".legacy-submission-details-chat__download-button"),b.addEventListener("click",function(){Vkb(a)}),o4(a,".legacy-submission-details-chat__edit-button").addEventListener("click",function(){Wkb(a)}), a.Dc(4,182),Vm(o4(a,".legacy-submission-details-chat"),"hidden",!1),b.focus()); o4(a,".notification-area").textContent=a.model.strings.CHAT_CREATING}a.dispatchEvent("chatrequested")}a.Dc(22);a.dispatchEvent("submitend");a.dispatchEvent("cleancomplete");En("FormSurveysFeature__enable_hats")==="true"&&rkb()} function $jb(a,b){var d=z(a.querySelectorAll(".high-context-channel-recommendation__submit-button")),e=d.next();try{for(;!e.done;e=d.next())e.value.disabled=b}finally{La(d,e)}a=z(a.querySelectorAll(".high-context-channel-recommendation-options__option"));d=a.next();try{for(;!d.done;d=a.next())d.value.disabled=b}finally{La(a,d)}} function Dkb(){var a=document.querySelector(".prefilled-callout");a&&Vm(a,"hidden",!0)} function Ekb(a,b){b=b===void 0?!0:b;for(var d=n4(a)&&a.Ea.length>0&&!m4(a),e=0;e0&&a.Dd.set(e.getId(),f)}}}finally{La(b,d)}b=z(a.o);d=b.next();try{for(;!d.done;d=b.next()){var w=d.value,y=w.Be();w.isVisible()&&y&&a.ya.set(y,w.getDisplayValues())}}finally{La(b,d)}} function Tkb(a,b){a=z(v(a.ya,"entries").call(a.ya));var d=a.next();try{for(;!d.done;d=a.next()){var e=z(d.value),f=e.next().value,h=e.next().value,k=f,l=h,p=document.createElement("div"),r=document.createElement("span");p.appendChild(r);r.innerText=k;if(l){r.innerText+=": ";Vm(p,"multi-value",l.length>1);var t=z(l),u=t.next();try{for(;!u.done;u=t.next()){var w=u.value,y=document.createElement("span");Vm(y,"submission-value",!0);y.innerText=w;p.appendChild(y)}}finally{La(t,u)}}b.appendChild(p)}}finally{La(a, d)}} function Vkb(a){var b="",d=z(v(a.ya,"entries").call(a.ya)),e=d.next();try{for(;!e.done;e=d.next()){var f=z(e.value),h=f.next().value,k=f.next().value;b+=h;if(k){b+=":";var l=z(k),p=l.next();try{for(;!p.done;p=l.next())b+="\n"+p.value}finally{La(l,p)}}b+="\n\n"}}finally{La(d,e)}var r;d=((r=a.caseId)!=null?r:a.getId())+".txt";g4.download(b,d,"text/plain");a.Dc(47,182);Fn("contact_form_submission_download")} function Wkb(a){var b=new URLSearchParams,d=z(v(a.Dd,"entries").call(a.Dd)),e=d.next();try{for(;!e.done;e=d.next()){var f=z(e.value),h=f.next().value,k=f.next().value,l=h,p=z(k),r=p.next();try{for(;!r.done;r=p.next())b.append("pcff",l+":"+r.value)}finally{La(p,r)}}}finally{La(d,e)}Fn("contact_form_submission_edit");a.Dc(24,182);a=new URL(""+window.location.origin+window.location.pathname+"?"+b);tn(a.toString())} function t4(a){jn({httpMethod:"POST",endpoint:"cufz",requestBody:{success:a,page_view_id:$m().pvid}})} function Pkb(a,b,d){return b&&d?v(a.o,"find").call(a.o,function(e){return bR(e.model.Oc(),WQ(XQ(new Wr,+b),+b).Cd(+d))}):null} n.Df=function(a){var b=null;i4(this,function(d){var e=d.cidSelector&&d.getElement().querySelector(".cid-selector"),f=(d.ua||d.o)&&d.getElement().querySelector(".frd-target-selector"),h=d.ma&&d.getElement().querySelector(".policy-violation-campaign-selector-container");return d.getId()===a&&d.getType()!=="EXTERNAL_SOURCE"||e!==null&&e.getAttribute("id")===a||f!==null&&f.getAttribute("id")===a||h!==null&&h.getAttribute("id")===a?(b=d,!1):!0}); return b}; function akb(a,b){if(b===a.page||b<1||b>a.model.total_pages)return!1;a.page=b;Kjb(a);j4(a,!1);return!0} n.Dc=function(a,b,d,e){b=b===void 0?21:b;var f;d=(f=d!=null?d:$m().pid)==null?void 0:f.toString();if(e){var h,k;(k=(h=window).sc_trackStatsEvent)==null||k.call(h,b,a,d,void 0,void 0,e)}else{var l,p;(p=(l=window).sc_trackStatsEvent)==null||p.call(l,b,a,d)}}; function Xkb(a,b){var d=xkb(a,b),e=a.productSpecificData;e.country_code=a.element.querySelector('.additional-request-data input[name="country_code"]').value;return new va.Promise(function(f,h){jn({httpMethod:"POST",endpoint:"escalationavailability",params:{v:1,psd:JSON.stringify(e)},requestBody:d.serialize(),onLoadCallback:function(k){try{f(JSON.parse(k.responseText))}catch(l){h(Error("Could not parse escalationavailability response"))}}, Vc:function(){h(Error("escalationavailability endpoint returned an error"))}, Gh:!0})})} function xkb(a,b){var d=new gT,e=a.getId();og(d,2,e);e=Number(a.getRedwoodId());kg(d,4,e);ef(d,3,[b],Id);if(a.selectedSymptomFrdValues){b=[];e=z(a.selectedSymptomFrdValues);var f=e.next();try{for(;!f.done;f=e.next()){var h=void 0;b.push.apply(b,Ga((h=YQ(f.value))!=null?h:[]))}}finally{La(e,f)}a=iT(mT(kT(new hT,jT(a.selectedSymptomFrdValues)).Gd(a.selectedSymptomFrdValues.wh()),[ZQ(WQ(XQ(new Wr,8000072),8000072).Cd(15),b)]));yf(d,ER,7,a)}return d} n.getEscalationChannelAvailabilityInformation=function(a){var b=this,d,e,f,h,k,l,p,r,t;return Wa(function(u){if(u.o==1)return u.yield(Xkb(b,a),2);if(d=u.ma)switch(a){case 1:return u.return((f=(e=d.chat_channel)==null?void 0:e.common_options)!=null?f:null);case 3:return u.return((l=(h=d)==null?void 0:(k=h.email_channel)==null?void 0:k.common_options)!=null?l:null);case 5:return u.return((t=(p=d)==null?void 0:(r=p.c2c_channel)==null?void 0:r.common_options)!=null?t:null)}return u.return(null)})}; function ykb(a){var b,d,e;return Wa(function(f){return f.o==1?f.yield(Xkb(a,1),2):(b=f.ma)?f.return(((d=b.chat_channel)==null?void 0:(e=d.common_options)==null?void 0:e.open_now)==="CS_OPEN"):f.return(!1)})} function Rjb(a){var b=a.querySelector(".contact-form__gdpr-dialog");if(b){var d=function(e){var f=this.Mb().strings,h=this.Mb().style_params,k=this.Mb().gdpr_privacy_policy_url,l=$m().lang,p={};f=new NG($m().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 oT({Qa:f,locale:l,privacyPolicyUrl:k,du:h?{"font-family":h.font_family.title}:void 0,Or:h?{"font-family":h.font_family.body}: void 0,Sr:h?{"font-weight":String(h.strong_font_weight)}:void 0});xo(e,function(){r.render()}); return r}.call(a,b); A_a(d,function(){d.data=new va.Map;d.Ja();var e=z(a.getFieldValues()),f=e.next();try{for(;!f.done;f=e.next()){var h=f.value;h.type!=="HIDDEN"&&h.type!=="FROM_EMAIL_ADDRESS_HIDDEN"&&h.type!=="ADDITIONAL_DATA"||!h.value||pT(d,h.name,h.value)}}finally{La(e,f)}e=z(v(Object,"keys").call(Object,a.productSpecificData));f=e.next();try{for(;!f.done;f=e.next()){var k=f.value;pT(d,k,a.productSpecificData[k])}}finally{La(e,f)}a.gcmRegistrationId&&pT(d,"GCM",a.gcmRegistrationId)})}} function Jjb(a,b){b.addEventListener("uploadstart",function(){++a.Mh}); b.addEventListener("uploadend",function(){--a.Mh;Kn(a.element,"uploadend")})} function Qjb(a){if(!a.Yd){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);$jb(a,!0);b=o4(a,".notification-area");Vm(b,"invalid",!0);b.textContent=a.model.strings.CHAT_UNAVAILABLE}} n.getId=function(){return this.element.getAttribute("id")}; n.getRedwoodId=function(){return this.element.dataset.contactFormRedwoodId}; n.getContactType=function(){return this.model.contact_type}; n.shouldSubmitToCasesV2=function(){return this.model.should_submit_to_cases_v2}; n.getTitle=function(){var a=this.element.querySelector(".contact-form__title");return a?a.textContent:""}; n.Mb=function(){return this.model}; n.getElement=function(){return this.element}; n.getCaseId=function(){return this.caseId}; n.getChatPoolId=function(){return this.chatPoolId}; n.getChatSupportRequestId=function(){return this.model.chat_support_request_id||""}; n.QT=function(){var a=[];i4(this,function(b){a.push(Ykb(b))}); Array.prototype.push.apply(a,Fkb(this));return a}; function Ykb(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.RT=function(){var a=[];i4(this,function(b){b.isVisible()&&a.push(Ykb(b))}); return a}; n.setValidateOnly=function(a){this.validateOnly=a}; n.listen=function(a,b,d,e){this.listeners.push({type:a,listener:b,scope:e})}; n.unlisten=function(a,b,d,e){for(d=0;d0&&!a.yf;)a.kd.shift()()} n.ws=function(){var a=this;if(DR(u4(this))){var b=document.activeElement;alb(this,!0);var d=new ZR;blb(this,d);jn({httpMethod:"POST",endpoint:"getavailablevaluesforgraph",params:{v:"1"},requestBody:d.serialize(),onLoadCallback:function(e){try{var f=rYa(e.responseText),h=z(xf(f,$R,2)),k=h.next();try{for(;!k.done;k=h.next()){var l=vf(k.value,hk,1),p=l.getFrdContext(),r=p?hg(p,2):null,t=a.Ba.get(djb(l));if(t){var u=z(t),w=u.next();try{for(;!w.done;w=u.next()){var y=w.value,na=Kib(y),pa=hg(na,2);if(!(r&& pa&&r!==pa||!V3(y))){var ua=Zj(bk(kk(l)),Ar);f=e=void 0;switch(y.getType()){case "CHECKBOX":case "RADIOBUTTON":var ya=z(y.querySelectorAll(".list-item")),Ca=ya.next();try{for(;!Ca.done;Ca=ya.next()){f=Ca.value;var Ia=ua.indexOf(f.querySelector("input").value)===-1;Vm(f,"hidden-by-vrg",Ia)}}finally{La(ya,Ca)}break;case "DROPDOWN":var Pa=z(y.querySelectorAll("option")),Ka=Pa.next();try{for(;!Ka.done;Ka=Pa.next())if(e=Ka.value,e!==y.querySelector("option")){var Ta=ua.indexOf(e.value)===-1;Vm(e,"hidden-by-vrg", Ta)}}finally{La(Pa,Ka)}y.element.querySelector("select").dispatchEvent(new Event("selectvrgupdate"))}}}}finally{La(u,w)}}}}finally{La(h,k)}}catch(db){}alb(a,!1);b.focus();$kb(a)}, Vc:function(){alb(a,!1);b.focus();$kb(a)}})}}; function alb(a,b){a.yf=b;a=z(a.Jd);var d=a.next();try{for(;!d.done;d=a.next()){var e=d.value;V3(e)&&Mib(e,b)}}finally{La(a,d)}} function blb(a,b){var d=u4(a);d=DR(d);oYa(b,Ff(d,1));pYa(b,Jf(d,2));d=[];var e=[],f=!1,h=z(a.Jd),k=h.next();try{for(;!k.done;k=h.next()){var l=k.value;if(V3(l)){var p=l.getFrdIdentifier();p&&d.push(p)}if(T3(l)&&l.hasSatisfiedDependencies()){var r=[],t=z(l.getValues()),u=t.next();try{for(;!u.done;u=t.next())r.push(u.value.value)}finally{La(t,u)}if(r.length!==0){var w=new ak,y=l.getFrdIdentifier();l.getType()==="HIDDEN"?clb(Lib(l),r[0],w):y&&(la=[8000001,8000061,8000199],v(la,"includes")).call(la,y)? w.Qj((new Tj).Bg(r.map(function(Ia){return Number(Ia)||0}))):y&&(la=[8000854, 8000517],v(la,"includes")).call(la,y)?w.Zg((new Yj).Bg(r)):ck(w,(new Yj).Bg(r));var na=lk(new hk,w),pa=Kib(l),ua=Kf(pa,2);ua&&ik(na,Pj(new Oj,Kf(pa,1)).Cd(ua));var ya=l.getFrdV2Identifier();ya&&jk(na,ya);e.push(na);!f&&djb(na)===8000072&&(f=!0)}}}}finally{La(h,k)}if(window.sc_filter_promoted_by_selected_symptom&&!f){var Ca;l=(Ca=a.selectedSymptomFrdValues)==null?void 0:jT(Ca);Ca=kp(Ff(b,2));if(a.selectedSymptomFrdValues&&l&&Ca&&l===Ca){Ca=z(a.zf);l=Ca.next();try{for(;!l.done;l=Ca.next())if(djb(l.value)=== 8000072){f=!0;break}}finally{La(Ca,l)}if(!f){f=[];Ca=z(a.selectedSymptomFrdValues);l=Ca.next();try{for(;!l.done;l=Ca.next())p=void 0,f.push.apply(f,Ga((p=YQ(l.value))!=null?p:[]))}finally{La(Ca,l)}e.push($r(ZQ(WQ(XQ(new Wr,8000072),8000072).Cd(15),f)))}}}ef(b,3,d,Id);mhb(b,a.zf.concat(e));qg(b,5,a.model.content_publish_state)} function clb(a,b,d){switch(a){case 1:d.Qj((new Tj).Bg([Number(b)]));break;case 2:case 5:d.Zg((new Yj).Bg([b]));break;case 3:ek(d,Tea(new Rj,[Number(b)]));break;case 4:a=b.split(",");ck(d,(new Yj).Bg(a));break;case 9:d.Ai(b==="true");break;case 8:a=b.split(",").map(function(e){return Number(e)}); d.lx(Xj(new Vj,[(new Tj).Bg(a)]));break;case 11:case 6:case 7:case 10:gk(d,(new Qj).Bg([b]))}} function u4(a){a=JSON.parse(a.element.getAttribute("data-form-service-vrg"));return new CR(a)} n.getServiceVrgTaxonomyId=function(){var a=DR(u4(this));return a?kp(Ff(a,1)):null}; n.getServiceVrgTaxonomyView=function(){var a=DR(u4(this));return a?$f(a,2):null}; n.setSupportJourneyId=function(a){this.submitId=a}; function Jkb(a){window.sc_log&&window.sc_log("Form","INFO","Case ID: "+a.caseId)} n.setIncludesTargetSelector=function(a){this.xe=a}; n.setTargetVerified=function(a){this.targetVerified=a}; function Sjb(a,b){var d,e,f,h,k,l,p,r,t;Wa(function(u){if(u.o==1){if(!b)return u.return();d=new WR(JSON.parse(b));a.le=(e=Qf(d,7))!=null?e:"";a.le&&window.sc_log&&window.sc_log("Helpcenter Field","INFO","Form Helpcenter Fields User-based FRD Value Lookup EventID: "+a.le);return u.yield(fT({helpCenterFrdFieldsConfg:d,locale:$m().lang,neoTaxonomy:YR(),placements:[a.Uu(1),a.Uu(2)],Xw:"*"}),2)}f=u.ma;h=a.getScFrdValues().map(function(w){return new Wr(w)}); k=z(v(a.Ba,"keys").call(a.Ba));l=k.next();try{for(;!l.done;l=k.next())p=l.value,h.push(XQ(new Wr,p))}finally{La(k,l)}r=a.getHcfNameScFrdValueMap();t=f.lj;dlb(a,t,2,h,r,".cf div.helpcenter-fields-container.top");dlb(a,t,1,h,r,".cf div.helpcenter-fields-container.bottom");jR(a.Va,a.o.concat(f.Xs).map(function(w){return w.model})); u.oa()})} n.Uu=function(a){var b=new oR,d=new nR,e=this.getContactType();lf(d,3,mR,Jd(e));qg(d,2,a);Cf(b,1,nR,d);d=new nR;e=this.getRedwoodId();lf(d,1,mR,ge(e));qg(d,2,a);Cf(b,1,nR,d);a=new tR;zf(a,1,sR,b);return a}; function dlb(a,b,d,e,f,h){if(h=a.element.querySelector(h)){var k=b.filter(function(l){if(l.model.placements.length||d!==1&&e.some(function(pa){return bR(pa,l.model.Oc())})||!l.model.Oc().getId()&&f.has(l.model.getName()))return!1; var p=z(l.model.va),r=p.next();try{for(;!r.done;r=p.next()){var t=r.value,u=void 0,w=void 0,y=z((w=(u=t.Hv())==null?void 0:u.o())!=null?w:[]),na=y.next();try{for(;!na.done;na=y.next())na.value.wu()===d&&l.model.placements.push(t)}finally{La(y,na)}}}finally{La(p,r)}return!!l.model.placements.length}); k.length&&xo(h,function(){var l=z(k),p=l.next();try{for(;!p.done;p=l.next()){var r=p.value;r.render();a.o.push(r)}}finally{La(l,p)}})}} n.getHelpCenterFieldFrds=function(a){return this.Va.Zc(a===void 0?!1:a).map(function(b){return aR(b)})}; n.setHelpCenterFieldFrd=function(a){a=new Wr(a);var b=z(hR(this.Va)),d=b.next();try{for(;!d.done;d=b.next()){var e=d.value;if(bR(e.Oc(),a)){ohb(e,a);break}}}finally{La(b,d)}}; function ukb(a){var b,d;return(d=(b=a.flags.multiTargetsHelpCenterAllowlist)==null?void 0:b.primitive_value)!=null?d:[]} function Tjb(a){var b=[];$m().is_render_api||b.push("direct_to_form");var d=["gse","google_marketing_advisor","agentic_smart_journey_with_ma_web","ai_first_help_center","ai_first_in_product_help"],e=Ym("cse");if(e){e=z(e.split(","));var f=e.next();try{for(;!f.done;f=e.next()){var h=f.value.trim();v(d,"includes").call(d,h)&&!v(b,"includes").call(b,h)&&b.push(h)}}finally{La(e,f)}}b.length&&a.addScFrdValue(aR(ZQ(WQ(XQ(new Wr,8000104),8000104).Cd(15),b)))} n.Si=function(a,b){a=this.Ba.get(Number(a));if(!a||a.length===0)return!1;a=a[0].getElement();return Ox(a,b)}; function jkb(){switch($m().rs){case 3:case 8:return!0;default:return!1}} window.sc_initForm=function(a,b,d){GG=d;a=new Hjb(a,b,d);b={getEscalationChannelAvailabilityInformation:a.getEscalationChannelAvailabilityInformation.bind(a),getContactType:a.getContactType.bind(a),submitForm:a.submitForm.bind(a),getFields:a.QT.bind(a),getVisibleFields:a.RT.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),getHasCheckedForDuplicateCases:a.getHasCheckedForDuplicateCases.bind(a),setHasCheckedForDuplicateCases:a.setHasCheckedForDuplicateCases.bind(a),getHasCheckedForDynamicQuestions:a.getHasCheckedForDynamicQuestions.bind(a),setHasCheckedForDynamicQuestions:a.setHasCheckedForDynamicQuestions.bind(a),getShouldShowNextStep:a.getShouldShowNextStep.bind(a), setShouldShowNextStep:a.setShouldShowNextStep.bind(a),submitCustomerFollowUp:a.submitCustomerFollowUp.bind(a),wrapUpCaseUpdate:a.wrapUpCaseUpdate.bind(a)};return a.wr=b};function elb(){var a,b;return typeof((a=navigator)==null?void 0:(b=a.mediaDevices)==null?void 0:b.getDisplayMedia)==="function"} ;function v4(a,b){var d,e;(e=(d=window).sc_trackStatsEvent)==null||e.call(d,a,b,$m().pid)} ;function w4(a){E.call(this,"sc.forms.Screenshare");this.o=null;this.ma=!1;this.params=a} x(w4,E);w4.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 sv({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||flb(b))})}; function flb(a){Wa(function(b){if(b.o==1){if(!a.params.ih||!a.o)return b.Pa(0);b.va(3);return b.yield(a.params.ih.forwardWheel(a.o),5)}if(b.o!=3){a.ma=!0;a.params.zI(a.ma);var d,e;(e=(d=window).sc_trackStatsImpressions)==null||e.call(d,[{type:309,id:$m().pid}],!0);v4(309,10);a.Ja();return b.ya(0)}b.ua();b.oa()})} function glb(a){var b,d,e;return Wa(function(f){if(!a.o)return f.return(va.Promise.resolve(new Blob([],{type:"image/png"})));b=a.o;d=document.createElement("canvas");d.width=b.videoWidth;d.height=b.videoHeight;e=d.getContext("2d");e.drawImage(b,0,0,d.width,d.height);return f.return(new va.Promise(function(h){d.toBlob(function(k){k?h(k):h(new Blob([],{type:"image/png"}))},"image/png")}))})} w4.prototype.pN=function(){return this.ma};function hlb(a){E.call(this,"sc.forms.ScreenshareControllers");this.params=a;this.ma=new Zo({text:"Change tab",ariaLabel:"Change tab",style:3,icon:"gm/swap_horiz",Sg:24,trigger:function(){v4(309,56);a.KS()}}); this.o=new Zo({text:"Capture screenshot",ariaLabel:"Capture screenshot",style:4,icon:"gm/screenshot_monitor",Sg:24,trigger:function(){v4(309,46);a.wp()}})} x(hlb,E);function ilb(a,b,d){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 ku({trigger:a,text:b,al:4,Bl:"35rem",ju:d,dm:!1})).render()} function jlb(a){a.element("div","class","screenshare-footer-scroll-info",function(){var b=a.params.pN,d="",e="",f=-150;a.params.ih?b||(d="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):(d="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
"); d&&(a.element("span",d),e&&ilb(a,e,f))})} hlb.prototype.content=function(){var a=this;this.element("div","class","screenshare-footer",function(){jlb(a);a.element("div","class","screenshare-footer-buttons",function(){a.ma.render();a.o.render()})})};function x4(a){E.call(this,"sc.forms.ScreenshotEdit");var b=this;this.oa=!1;this.Yk=this.ma=0;this.scaleY=this.scaleX=1;this.ua=[];this.va=function(d){if(b.params.Xf!=="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=(d.clientX-f.left)*b.scaleX;b.Yk=(d.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(d){if(b.oa){var e=b.canvas.getBoundingClientRect(),f=(d.clientX-e.left)*b.scaleX,h=(d.clientY-e.top)*b.scaleY;klb(b);b.o=b.o;d=Math.min(b.ma,f);e=Math.min(b.Yk,h);f=Math.abs(b.ma-f);h=Math.abs(b.Yk-h);var k=b.params.Xf;k==="HIGHLIGHT"?llb(b,d,e,f,h):k==="HIDE"&&(b.o=b.o,b.o.fillStyle="rgba(0, 0, 0, 1)",b.o.fillRect(d,e,f,h))}}; this.Ba=function(d){if(b.oa){b.oa=!1;var e=b.canvas.getBoundingClientRect(),f=(d.clientX-e.left)*b.scaleX,h=(d.clientY-e.top)*b.scaleY;d=Math.min(b.ma,f);e=Math.min(b.Yk,h);f=Math.abs(b.ma-f);h=Math.abs(b.Yk-h);(f>0||h>0)&&b.ua.push({x:d,y:e,width:f,height:h,mode:b.params.Xf});var k;(k=b.canvas)==null||k.removeEventListener("mousemove",b.ya);var l;(l=b.canvas)==null||l.removeEventListener("mouseup",b.Ba);klb(b)}}; this.params=a} x(x4,E);x4.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.va);mlb(b)})}; x4.prototype.onDetach=function(){var a;(a=this.canvas)==null||a.removeEventListener("mousedown",this.va);this.ua=[]}; function mlb(a){a.canvas=a.canvas;var b=Wl(a.params.dj),d=new Image;d.onload=function(){a.canvas=a.canvas;a.canvas.width=d.width;a.canvas.height=d.height;a.Ea=d;klb(a)}; d.src=b.toString()} function klb(a){if(a.canvas&&a.o&&a.Ea){var b=a.canvas;a.o=a.o;a.o.clearRect(0,0,b.width,b.height);a.o.drawImage(a.Ea,0,0);b=z(a.ua);var d=b.next();try{for(;!d.done;d=b.next()){var e=d.value,f=a,h=e.x,k=e.y,l=e.width,p=e.height,r=e.mode;if(r==="HIGHLIGHT")llb(f,h,k,l,p);else if(r==="HIDE"){var t=h,u=k,w=l,y=p;f.o=f.o;f.o.fillStyle="rgba(0, 0, 0, 1)";f.o.fillRect(t,u,w,y)}}}finally{La(b,d)}}} function llb(a,b,d,e,f){a.o=a.o;a.o.strokeStyle="rgb(255, 187, 41)";a.o.lineWidth=4;a.o.strokeRect(b,d,e,f)} function nlb(a){return Wa(function(b){return a.ua.length!==0&&a.canvas?b.return(new va.Promise(function(d){a.canvas.toBlob(function(e){d(e)})})):b.return(va.Promise.resolve(a.params.dj))})} ;function olb(a){E.call(this,"sc.forms.ScreenshotEditControllers");this.ma=new Zo({text:"Cancel",ariaLabel:"Cancel",trigger:function(){v4(311,59);a.kD()}, style:3,Se:"material-pill",Hd:"px"});this.o=new Zo({text:"Done",ariaLabel:"Done",trigger:function(){v4(311,60);var b;(b=a.qI)==null||b.call(a)}, style:4,Se:"material-pill",Hd:"px"});this.params=a} x(olb,E);function plb(a){return new sv({ariaLabel:"Highlight",text:"Highlight",icon:"gm/highlight_alt",selected:a.params.Xf==="HIGHLIGHT",trigger:function(){v4(311,58);a.params.Lm("HIGHLIGHT")}})} function qlb(a){return new sv({ariaLabel:"Hide",text:"Hide",icon:"gm/featured_video",selected:a.params.Xf==="HIDE",trigger:function(){v4(311,5);a.params.Lm("HIDE")}})} olb.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.element("div","class","edit-control-buttons","aria-live","off",function(){plb(a).render();qlb(a).render()}); a.element("div","class","modal-control-buttons",function(){a.ma.render();a.o.render()})})};function y4(a){E.call(this,"sc.forms.ScreenshotPreview");this.o=null;this.params=a;this.o=Wl(a.dj).toString();this.ma=rlb(this)} x(y4,E);function rlb(a){return new sv({text:"Highlight or hide content",ariaLabel:"Highlight or hide content",style:0,type:1,icon:"gm/edit",trigger:function(){v4(310,24);a.params.fE()}, aB:!0})} y4.prototype.focus=function(){this.ma.focus()}; y4.prototype.onDetach=function(){this.o&&(URL.revokeObjectURL(this.o),this.o=null)}; y4.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 slb(a){E.call(this,"sc.forms.ScreenshotPreviewControllers");this.ma=new Zo({text:"Capture again",ariaLabel:"Capture again",icon:"gm/restart_alt",Sg:20,style:3,trigger:function(){v4(310,56);a.lD()}}); this.o=new Zo({text:"Attach screenshot",ariaLabel:"Attach screenshot",icon:"gm/attach_file_add",Sg:20,style:4,trigger:function(){v4(310,57);a.qp()}})} x(slb,E);slb.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.ma.render();a.o.render()})};function tlb(a){E.call(this,"sc.forms.ScreenshotCaptureDialog");var b=this;this.ma=0;this.stream=null;this.page="SCREENSHARE";this.dj=new Blob;this.Xf="NONE";this.va=new x4({dj:this.dj,Xf:this.Xf});this.oa=null;this.o=!1;this.ua=new w4({stream:this.stream,ih:this.ih,zI:function(d){b.o=d;b.Ja()}}); this.params=a;this.dialog=new wv({content:function(){b.element("div","class","screenshot-capture-dialog",function(){ulb(b)})}, Gi:{"background-color":"rgba(0,0,0,.3)"},Gp:!1,Fp:!1,ariaLabel:vlb(this)})} x(tlb,E);function vlb(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 ulb(a){(new tv).render({content:function(){a.element("div","class","screenshot-capture-dialog-content",function(){wlb(a);xlb(a);ylb(a)})}})} function zlb(a){a.element("div","class","screenshot-capture-dialog-title","role","heading",function(){switch(a.page){case "SCREENSHARE":(new Vo({icon:"gm/privacy_tip",size:24})).render();a.element("span","class","data-management-link","role","link","tabindex","0","onclick",function(b){gm(window,Vl("https://policies.google.com/privacy"),"_blank");b.preventDefault()},"onkeydown",function(b){b.key==="Enter"&&(gm(window,Vl("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 wlb(a){a.element("div","class","screenshot-capture-dialog-content-header",function(){zlb(a);Alb(a)})} function Alb(a){a.element("button","class","dialog-close-button","type","button","aria-label","Close","onclick",function(){a.close()},function(){(new Vo({icon:"gm/close", size:24,ef:["close-icon"]})).render()})} function xlb(a){a.oa=a.element("div","class","screenshot-capture-dialog-content-body",function(){switch(a.page){case "SCREENSHARE":a.ua.render({stream:a.stream,ih:a.ih,zI:function(b){a.o=b;a.Ja()}}); break;case "SCREENSHOT_PREVIEW":(new y4({dj:a.dj,fE:function(){a.fE()}})).render(); break;case "SCREENSHOT_EDIT":a.va.render({dj:a.dj,Xf:a.Xf})}})} function ylb(a){a.element("div","class","screenshot-capture-dialog-footer",function(){switch(a.page){case "SCREENSHARE":(new hlb({KS:function(){a.close();a.params.wp()}, wp:function(){Blb(a)}, pN:a.o,ih:a.ih})).render();break;case "SCREENSHOT_PREVIEW":(new slb({lD:function(){a.lD()}, qp:function(){a.qp()}})).render(); break;case "SCREENSHOT_EDIT":(new olb({kD:function(){a.kD()}, Lm:function(b){a.Lm(b)}, Xf:a.Xf,qI:function(){a.qI()}})).render()}})} function Blb(a){Wa(function(b){if(b.o==1)return a.oa.classList.add("flash"),setTimeout(function(){a.oa.classList.remove("flash")},750),b.yield(glb(a.ua),2); a.dj=b.ma;a.page="SCREENSHOT_PREVIEW";a.Xf="NONE";Clb(a);a.Ja();b.oa()})} n=tlb.prototype;n.kD=function(){this.Xf="NONE";this.setPage("SCREENSHOT_PREVIEW")}; n.setPage=function(a){this.page!==a&&(this.page=a,this.Ja())}; n.lD=function(){this.close();this.params.wp()}; n.fE=function(){this.Xf="NONE";this.setPage("SCREENSHOT_EDIT")}; n.Lm=function(a){this.Xf!==a&&(this.Xf=a,this.Ja())}; n.content=function(){var a=this;this.element("div","class","root",function(){a.dialog.Yg(vlb(a));a.dialog.render()})}; n.open=function(a,b){var d=this;this.page="SCREENSHARE";this.ih=b;this.stream=a;this.ua=new w4({stream:a,ih:b,zI:function(e){d.o=e;d.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";Dlb(this)}; n.close=function(){this.page==="SCREENSHARE"&&Clb(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 Clb(a){if(a.stream){a=z(a.stream.getTracks());var b=a.next();try{for(;!b.done;b=a.next())b.value.stop()}finally{La(a,b)}}} function Dlb(a){if(a.stream){var b=a.stream.getTracks()[0],d=function(){a.page==="SCREENSHARE"&&a.close();b.removeEventListener("ended",d)}; b.addEventListener("ended",d)}} n.qI=function(){var a=this;return Wa(function(b){if(b.o==1)return b.yield(nlb(a.va),2);a.dj=b.ma;a.page="SCREENSHOT_PREVIEW";a.Xf="NONE";a.Ja();b.oa()})}; n.qp=function(){this.params.qp(this.dj)};function z4(a){E.call(this,"sc.forms.ScreenshotCapture");var b=this;this.dg="scFormsScreenshotcapturescreenshot-capture-button-tooltip";this.ma=new tlb({wp:this.wp.bind(this),qp:this.qp.bind(this)});this.params=a;this.ua=new Zo({icon:"gm/add",text:this.params.allowMultipleFiles?"Choose files":"Choose file",ariaLabel:this.params.allowMultipleFiles?"Choose files":"Choose file",style:3,Sg:24,trigger:function(){v4(307,52);var d;(d=b.o)==null||d.click()}}); this.oa=new Zo({icon:"gm/screenshot_monitor",Sg:24,text:"Capture screenshot",ariaLabel:"Capture screenshot. You will be asked to share your screen.",style:4,trigger:function(){v4(306,52);b.wp()}}); this.attachments=new eH({qg:this.params.qg,allowMultipleFiles:this.params.allowMultipleFiles,formId:this.params.formId,jB:function(d){Elb(b,d)}, iB:function(d){Elb(b,d)}})} x(z4,E);z4.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.attachments.render();Flb(a);Glb(a);elb()&&Hlb(a);a.ma.render()})}; function Glb(a){a.element("div","class","screenshot-capture-button-container",function(){if(elb()){var b=Ilb(a);(new ku({text:"You will be asked to share your screen.",trigger:b,dg:a.dg})).render()}Jlb(a)})} function Ilb(a){return a.element("label","class","screenshot-capture-button-wrapper",function(){a.oa.render()})} function Jlb(a){a.element("label","class","upload-label","for",a.params.id,function(){a.ua.render()})} function Hlb(a){a.element("div","class","callout-container",function(){(new ov({type:nv,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()})} z4.prototype.wp=function(){var a=this,b,d;return Wa(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.ih=new window.CaptureController;a.ih.setFocusBehavior("no-focus-change");var l={video:{displaySurface:"browser"},audio:!1,controller:a.ih}}else l={video:{displaySurface:"browser"},audio:!1};return f.call(e,k.call(h,l),4)}if(e.o!=2)return b=e.ma,v4(306,10),a.ma.open(b,a.ih),e.ya(0); d=e.ua();d instanceof DOMException&&d.name==="NotAllowedError"?v4(306,11):v4(306,21);e.oa()})}; z4.prototype.qp=function(a){var b=this,d,e,f;return Wa(function(h){d=(new Date).toISOString().replace(/[^0-9]/g,"");e="screenshot_"+d+".png";f=new File([a],e,{type:a.type});b.attachments.addAttachments([f]);Klb(b,f);b.ma.close();v4(306,57);b.Ja();h.oa()})}; z4.prototype.getValues=function(){var a=fH(this.attachments),b=[],d=new va.Set;a=z(a);var e=a.next();try{for(;!e.done;e=a.next()){var f=e.value;d.has(f.Ie)||(d.add(f.Ie),b.push({name:this.params.id,value:"There was a file uploaded for this field."},{name:"upload_original_filename",value:f.filename},{name:"upload_cns_filename",value:f.Ie},{name:"upload_document_id",value:f.documentId}))}}finally{La(a,e)}return b}; function Flb(a){var b=["type","file","id",a.params.id,"name",a.params.id,"class","screenshot-capture-input","onchange",function(){var d=a.o;if(d&&d.files&&d.files.length>0){d=a.o;d=d!=null&&d.files?v(Array,"from").call(Array,d.files):[];a.o&&(a.o.value="");if(d.length){a.attachments.addAttachments(d);var e=z(d),f=e.next();try{for(;!f.done;f=e.next())Klb(a,f.value)}finally{La(e,f)}v4(307,57)}a.Ja();d.length&&JHa(a.attachments)}}].concat(Ga(a.params.allowMultipleFiles?["multiple", "1"]:[]));a.o=a.element.apply(a,["input"].concat(Ga(b)))} function Klb(a,b){a.o&&ft(a.o,"uploadstart",{detail:b})} function Elb(a,b){a.o&&ft(a.o,"uploadend",{detail:b})} ;
false
false
false
true
true
true
true
true
false
false
true
true
true
false
13316910
false
false
false
false
false