YouTube API サービス - 監査と割り当て増加フォーム - YouTube ヘルプ
メイン コンテンツにスキップ 通知
@TeamYouTubeツイッターアカウントから最新情報をツイートしています。日本語でのお問い合わせも受け付けています。
8974316719037232111
ヘルプセンターを検索
true
true
59
');
a=rn("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=Hn(c)}else{a=new Map([["nonce",a]]);c=sn(F3a).toString();var e=c.split(/[?#]/),f=/[?]/.test(c)?"?"+e[1]:"";a=S2a(e[0],f,/[#]/.test(c)?"#"+(f?e[2]:e[1]):"",a)}b.src=sn(a).toString();b.style.cssText="height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b}
;var J0={KU:!1},K0;function L0(a){this.options=a=a===void 0?J0:a;K3a(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new I0)}
L0.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?J0:e;return Ya(function(f){if(f.o==1)return f.yield(L3a(a,b,c,e),2);if(f.ma)return f.return();K0||(K0=new L0,K0.init());return f.yield(M3a(K0,a,b,c),0)})};
L0.prototype.init=function(){var a=this;return Ya(function(b){return a.sandbox==null?b.return():b.yield(a.sandbox.load(),0)})};
L0.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return Ya(function(f){return f.o==1?f.yield(L3a(a,b,c,e.options),2):f.ma?f.return():f.yield(M3a(e,a,b,c),0)})};
function M3a(a,b,c,e){e=e===void 0?"":e;var f,h;return Ya(function(k){switch(k.o){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){k.Na(2);break}navigator.msSaveOrOpenBlob(f,c);return k.yield(M0(),3);case 3:return k.return();case 2:if(!fc()||Mb(Z2a(),16)>=0||!bc()&&(!Vb("iPad")&&!Vb("iPhone")||ac()||bc()||(Wb()?0:Vb("Coast"))||$b()||!Vb("AppleWebKit"))){k.Na(4);break}h=new FileReader;h.onload=function(){var n=wp("A"),p=An(String(h.result));Cn(n,
p);n.download=c;n.click()};
h.readAsDataURL(f);return k.yield(M0(),5);case 5:return k.return();case 4:return a.sandbox==null&&(a.sandbox=new I0,a.sandbox.load()),k.yield(a.sandbox.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',[{name:"blob",value:f,transfer:!1},
{name:"filename",value:c,transfer:!1}]),6);case 6:return k.yield(M0(),0)}})}
function L3a(a,b,c,e){c=c===void 0?"":c;e=e===void 0?J0:e;var f;return Ya(function(h){switch(h.o){case 1:if(!K3a(e))return h.return(!1);Pa(h,2);return h.yield(N3a(a,b,c),4);case 4:Ra(h,3);break;case 2:f=Sa(h);if(f instanceof DOMException&&f.name==="SecurityError")return h.return(!1);throw f;case 3:return h.return(!0)}})}
function K3a(a){a=a===void 0?J0:a;return a.KU&&!!window.showSaveFilePicker}
function N3a(a,b,c){c=c===void 0?"":c;var e,f,h,k;return Ya(function(n){switch(n.o){case 1:var p=c,r={suggestedName:b},u;(u=b.match(/\..+$/))?(u=u[0],u=u.length>16?null:u):u=null;if(u){p=p.replace(/;[^]*/,"");var w={};r.types=[{description:"*"+u,accept:(w[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(p)?p:"*/*"]=[u],w)}]}e=r;Pa(n,2);return n.yield(window.showSaveFilePicker(e),4);case 4:f=n.ma;Ra(n,3);break;case 2:h=Sa(n);if(h instanceof DOMException&&h.name==="AbortError")return n.return();throw h;
case 3:return n.yield(f.createWritable(),5);case 5:return k=n.ma,n.ua=0,n.oa=6,n.yield(k.write(a),6);case 6:return Ta(n),n.yield(k.close(),9);case 9:Ua(n,7);break;case 7:return n.return()}})}
L0.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()};
function M0(){return new Promise(function(a){setTimeout(a,500)})}
tb("SafeDownloader",L0);function O3a(a,b,c){var e=this;this.element=a;this.model=b;this.flags=c;this.validateOnly=so("validate_only")==="true";this.page=1;this.fields=[];this.Ra=[];this.Ha=new Map;this.bubbles=[];this.Pa=[];this.caseId=null;this.ya=new Map;this.Ec=new Map;this.c2c=null;this.listeners=[];this.qb=0;this.Ka=!0;this.o=null;this.oa=this.Bb=this.Ma=!1;this.va=this.Ia=this.recaptcha=null;this.md=[];this.gcmRegistrationId="";this.productSpecificData={};this.ma=[];this.Fa=[];this.Qd="";this.mb=[];this.parentCaseName=
"";this.wc=[];this.ub=!1;this.Qa=[];this.ua=[];this.targetVerified=this.Ua=!1;this.qa=[];this.chatPoolId="";this.Md=this.model.show_recaptcha;this.Mb=this.querySelector(".form-screenshot");this.Qt=new Map;this.submissionChannel=0;this.Ca=new kD("HelpcenterFields/Form");this.submitId=oo;this.dispatchEvent("startinginitialization");a=this.querySelectorAll(".field");for(b=0;b0&&h.parents.push(p)}}});
O0(this);this.dispatchEvent("fieldsinitialized");this.Md&&Q3a(this);R3a(this);P0(this,!1);S3a(this);T3a(this);U3a(this);this.prepopulateFields();this.element.addEventListener("submit",function(h){h.preventDefault();e.submitForm()});
this.model.c2c_configured&&(this.c2c=(0,window.sc_initFormClickToCall)(this));this.model.is_chat_form&&!this.shouldSubmitToCasesV2()&&Q0(this);V3a(this);this.dispatchEvent("validatorinitialized");this.dispatchEvent("initializationcomplete");R0(20);if(a=this.element.getAttribute("data-form-sc-frd-values"))for(a=t(JSON.parse(a)),b=a.next();!b.done;b=a.next())b=new eA(new Am(b.value)),this.mb.push(iA(b)),this.ma.push(zP(b));a=t(this.fields);for(b=a.next();!b.done;b=a.next())if(b=b.value,c=b.getFrdIdentifier()){this.Ra.push(b);
var f=this.Ha.get(c);f?f.push(b):this.Ha.set(c,[b])}W3a(this,this.element.getAttribute("data-helpcenter-frd-fields-confg"));X3a(this)}
l=O3a.prototype;l.querySelector=function(a){return this.element.querySelector(a)};
function S0(a,b){return a.element.querySelector(b)}
l.querySelectorAll=function(a){return this.element.querySelectorAll(a)};
function N0(a,b){for(var c=0;c=a.model.total_pages;po(a.Mb,"hidden",!b);b?a.va.activate():a.va.deactivate()}}
function R3a(a){if(window.sc_createSpinner){a.o=window.sc_createSpinner("small");po(a.o.getElement(),"submit-spin",!0);var b=a.element.querySelector(".submit-button");b&&b.parentNode.appendChild(a.o.getElement())}}
function P0(a,b){var c=a.page>=a.model.total_pages,e=a.querySelector(".submit-button");e&&(po(e,"hidden",!c),e.disabled=!a.Ka||b);a.oa&&po(a.querySelector(".recaptcha"),"hidden",!c);if(c=a.querySelector(".previous-button"))po(c,"hidden",a.page===1),c.disabled=b;if(c=a.querySelector(".next-button"))po(c,"hidden",a.page===a.model.total_pages),c.disabled=!a.Ka||b;a.o&&(b?a.o.show():a.o.hide())}
function S3a(a){var b=a.querySelector(".submit-button");b&&(!z().li&&a.model.is_chat_form?(b.disabled=!0,S0(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(){Y3a(a,a.page-1)&&(a.dispatchEvent("previouspage"),R0(7))});
(b=a.querySelector(".next-button"))&&b.addEventListener("click",a.submitForm.bind(a))}
function T3a(a){a=a.element.getElementsByTagName("textarea");for(var b=0;b0)for(c.is_assistive=!0,c.assistive_flow_results=[],k=t(a.ua),n=k.next();!n.done;n=k.next())p=n.value,r=p.answer,p.translatedAnswer&&(r+=" ***** "+p.translatedAnswer),c.header.push({name:p.questionId,value:r}),c.content+=p.questionId+": "+r+"\n",c.assistive_flow_results.push({question:p.questionId,answer:r,prediction_id:p.predictionId,recommendation_id:p.recommendationId});u=a.getFieldValues();w=f4a(a,!0);E=new Map(a.getHcfNameScFrdValueMap().entries());
a.qa.map(function(hb){return hb.model}).forEach(function(hb){hb.isValid()&&E.set(hb.getName(),zP(hb.Fd()))});
for(la=0;la0&&(c.product_specific_data=Va);a.Ua&&(c.target_submission_details={used_target_selector:!0,is_target_selector_verified:a.targetVerified});return Ab.return(c)})}
function a4a(a,b){var c=X0(a,1);Co({httpMethod:"POST",endpoint:"escalationavailability",params:{v:"1",psd:JSON.stringify(a.productSpecificData)},requestBody:a.shouldSubmitToCasesV2()?c.serialize():"",onLoadCallback:function(e){var f=null;try{f=JSON.parse(e.responseText)}catch(r){f={}}var h,k,n,p;((h=f.chat_channel)==null?0:(k=h.common_options)==null?0:k.available_to_user)||((n=f.hangout_channel)==null?0:(p=n.common_options)==null?0:p.available_to_user)?b4a(a,b):(a.o&&a.o.hide(),Q0(a))},
Id:function(e){window.sc_trackStatsEvent(52,21,"escalationavailability: - "+e.statusText);a.o&&a.o.hide();if(e=a.querySelector(".submit-button"))e.disabled=!1;V0(a,a.model.strings.BACKEND_ERROR);a.dispatchEvent("validationend")}})}
l.getChatAvailability=function(){var a=this;return Ya(function(b){return b.return(g4a(a))})};
function c4a(a,b){var c,e,f,h,k,n;Ya(function(p){if(p.o==1)return c={contact_flow:b},a.oa?(c.recaptcha_response=a.Ia.getResponse(),p.Na(2)):a.Bb?p.yield(a.recaptcha.getResponse(),4):p.Na(2);p.o!=2&&(c.recaptcha_response_v3=p.ma);a.c2c.populateCallParameters(c);a.shouldSubmitToCasesV2()&&(e={},f=X0(a,5),zh(f,2)&&(e.form_id=Ug(f,2)),Tg(f,4)!=null&&(e.redwood_form_id=Tg(f,4)),e.channel=[5],Qf(f,VP,7)?e.sc_frd_values=X2a(new TQ(f.getScFrdValues())):Qf(f,om,1)&&(e.frd_values=Y2a(new TQ(Ag(f,om,1)))),c.escalation=
e);h={v:"1",psd:JSON.stringify(a.productSpecificData)};(k=so("test"))&&(h.test=k);(n=so("cases2"))&&(h.cases2=n);b.submit_id=a.submitId;Co({httpMethod:"POST",endpoint:"createcall",params:h,requestBody:c,onLoadCallback:function(r){var u=null;try{u=JSON.parse(r.responseText)}catch(w){}Y0(a,{type:"c2c",response:u})},
Id:function(){Y0(a,{type:"c2c",response:!1})}});
Oa(p)})}
function b4a(a,b){var c,e,f,h;Ya(function(k){if(k.o==1)return c={v:"0",psd:JSON.stringify(a.productSpecificData)},(e=so("test"))&&(c.test=e),(f=so("cases2"))&&(c.cases2=f),b.submit_id=a.submitId,h={common_params:{context_params:{view_id:z().vid}},resource:b},a.oa?(h.recaptcha_response=a.Ia.getResponse(),k.Na(2)):a.Bb?k.yield(a.recaptcha.getResponse(),4):k.Na(2);k.o!=2&&(h.recaptcha_response_v3=k.ma);a.model.is_chat_form&&(a.shouldSubmitToCasesV2()||f)&&(a.Ma=!0);Co({httpMethod:"POST",endpoint:"cufinsert",
params:c,requestBody:h,onLoadCallback:function(n){var p=null;try{p=JSON.parse(n.responseText)}catch(r){Y0(a,{type:"cuf",response:n.responseText});return}Y0(a,{type:"cuf",response:p})},
Id:function(){Y0(a,{type:"cuf",response:!1})},
Lr:!0});Oa(k)})}
function W0(a){if(!a.model.fix_multi_page)return!1;var b=!1;N0(a,function(c){Number(c.lk())>a.lk()&&c.hasSatisfiedDependencies()&&(b=!0)});
return b}
l.getSubjectFieldId=function(){return S0(this,'input[name="subject-line-field-id"]').value};
l.getBodyFieldId=function(){return S0(this,'input[name="body-text-field-id"]').value};
function f4a(a,b){var c=[];N0(a,function(p){if(p.hasSatisfiedDependencies())for(var r=p.getValues(b),u=0;u0){V0(a,m4a(e),e);a.dispatchEvent("validationend");break a}n4a(a,e)}else V0(a,a.model.strings.BACKEND_ERROR,e)}else V0(a,a.model.strings.CONNECTION_ERROR);a.dispatchEvent("validationend")}else{b=b.response;e=typeof b==="object"?b==null?void 0:(c=b.result)==null?void 0:c[0]:void 0;c=!1;if(b&&typeof b==="object")if(!b.error&&b.result&&e&&e.indexOf("PERM_FAILURE")!==0)if(e==="ACCEPTED"||e==="SUCCESS"||e==="RETRIED")if(W0(a))Z0(a);else{c=so("cases2");if(c=a.model.is_chat_form&&(a.shouldSubmitToCasesV2()||
c))a.chatPoolId=b.chat_pool_id||"",a.model.chat_support_request_id=b.chat_support_request_id||"";a.dispatchEvent("validated");b.case_id&&(a.caseId=b.case_id,k4a(a));a.validateOnly||(!c||U0()||z().rs===79&&a.flags.enableChatMoleMigration||((0,window.sc_ensureSubscribed)(),a.dispatchEvent("chatrequested")),l4a(a));$0(!0);c=!0}else n4a(a,b);else V0(a,m4a(b),b);else V0(a,a.model.strings.CONNECTION_ERROR);b=so("cases2");!c&&a.model.is_chat_form&&(a.shouldSubmitToCasesV2()||b)&&(a.Ma=!1);a.dispatchEvent("validationend")}}
function o4a(a,b){switch(a){case 22:switch(b){case 6:return"\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u8005\u3068\u3084\u308a\u53d6\u308a\u3059\u308b\u306b\u306f\u3001\u3054\u4e21\u89aa\u307e\u305f\u306f\u4fdd\u8b77\u8005\u304c\u30b5\u30dd\u30fc\u30c8\u306b\u9023\u7d61\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002";case 4:case 3:return"\u3053\u306e\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u3066\u304b\u3089\u3001\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3067\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002";
case 5:return"\u5229\u7528\u3067\u304d\u308b\u304a\u554f\u3044\u5408\u308f\u305b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u305b\u3093\u3002";case 2:return"\u30b5\u30dd\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u5bfe\u8c61\u5730\u57df\u3067 Google \u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002";default:return"\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002"}case 21:switch(b){case 1:case 2:return"\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002\u73fe\u5728\u3001\u5bfe\u5fdc\u53ef\u80fd\u306a\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u8005\u304c\u304a\u308a\u307e\u305b\u3093\u3002";
case 3:return"\u73fe\u5728\u958b\u3044\u3066\u3044\u308b\u30c1\u30e3\u30c3\u30c8 \u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u8005\u3068\u3084\u308a\u53d6\u308a\u3057\u3066\u304f\u3060\u3055\u3044\u3002";case 4:case 5:return"\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u8005\u306b\u304a\u3064\u306a\u304e\u3057\u3066\u3044\u307e\u3059\u3002";case 7:case 8:return"\u30b5\u30dd\u30fc\u30c8\u53d7\u4ed8\u6642\u9593\u5185\u306b\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002";
case 6:case 9:case 10:case 11:case 12:return"\u3053\u306e\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u3066\u304b\u3089\u3001\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3067\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002";case 13:return"\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3067\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002";
default:return"\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002"}default:return"\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002"}}
function m4a(a){var b;return((b=a.submit_error)==null?0:b.length)?(a=a.submit_error[0],o4a(a.code,a.sub_code)):""}
function p4a(a,b){(a=a.querySelector(".recaptcha"))&&po(a,"invalid",b)}
function n4a(a,b){for(var c=!1,e=a.model.strings.VALIDATION_NOTE,f=t(b.result||[]),h=f.next();!h.done;h=f.next())if(h=h.value.split(":"),h[0]==="REQUIRED_FORM_FRD_VALUE"){if(h=q4a(a,h[1],h[2]))h.isVisible()?QQ(h,!0,a.model.strings.REQUIRED_FIELD):e=a.model.strings.REQUIRED_FIELD+": "+h.model.getName(),c=!0}else{var k=a.rf(h[1]);if(h[0]==="REQUIRED_RECAPTCHA")a.page===a.model.total_pages&&(e=a,e.model.fallback_to_recaptcha_v2&&(e.oa||(po(e.querySelector(".g-recaptcha"),"hidden",!0),e4a(e)),p4a(e,!0)),
c=!0,e=a.model.strings.REQUIRED_RECAPTCHA_NOTIFICATION);else if(h[0]==="CHAT_UNAVAILABLE")Q0(a),c=!0;else if(k&&k.isVisible()){if(c=k.getType()==="PHONE_NUMBER"&&a.c2c)a:{c=a;var n=k.getValues(!0)[0];if(n&&n.value){n=JSON.parse(n.value);var p;if(p=n){n=n.country;p=[];var r=c.model.phone_type_required_countries;r&&(p=r.split(","));p=p.indexOf(n)!==-1}if(p){F0(k,!1,c.model.strings.PHONE_TYPE_VALIDATION,!0);c=!0;break a}}c=!1}c||F0(k,!1,a.model.strings[h[0]]||a.model.strings.DEFAULT);c=!0}}c?(T0(a,"invalid",
e+r4a(a,b)),a.dispatchEvent("invalidated"),R0(17)):Z0(a)}
function j4a(a){var b=a.querySelector(".notification-area");b&&(po(b,"error",!1),po(b,"invalid",!1),b.textContent="");N0(a,function(e){F0(e,!0)});
b=t(a.qa);for(var c=b.next();!c.done;c=b.next())QQ(c.value,!1);a.oa&&p4a(a,!1)}
function T0(a,b,c){var e=a.querySelector(".notification-area");e&&(po(e,b,!0),e.textContent=c,b==="invalid"?(e.setAttribute("role","alert"),(b=a.element.querySelector('[aria-invalid="true"]'))&&b.focus(),(a=a.element.querySelector(".invalid .validation-message"))&&a.setAttribute("aria-live","polite")):e.setAttribute("role","status"))}
l.getStatusMessage=function(){var a;return((a=this.querySelector(".notification-area"))==null?void 0:a.innerText)||""};
l.setErrorMessage=function(a){T0(this,"error",a)};
function V0(a,b,c){a.setErrorMessage(b+r4a(a,c));a.dispatchEvent("error");$0(!1)}
function r4a(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(Aa(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(Aa(b.result)));return a.join("\n")}
function Z0(a){Y3a(a,a.page+1);a.dispatchEvent("nextpage");R0(6)}
function l4a(a){a.dispatchEvent("submitstart");if(!a.model.is_chat_form||a.ua.length>0)s4a(a),t4a(a);if(a.model.is_chat_form){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);window.sc_enableFormSubmissionDetailsAndDownloadUi&&(u4a(a),v4a(a,S0(a,".submission-details-chat__content")),w4a(a),b=S0(a,".submission-details-chat__download-button"),b.addEventListener("click",function(){x4a(a)}),S0(a,".submission-details-chat__edit-button").addEventListener("click",function(){y4a(a)}),window.sc_trackStatsEvent(182,
4,z().pid),po(S0(a,".submission-details-chat"),"hidden",!1),b.focus());
S0(a,".notification-area").textContent=a.model.strings.CHAT_CREATING;a.dispatchEvent("chatrequested")}R0(22);a.dispatchEvent("submitend");a.dispatchEvent("cleancomplete");Yo("FormSurveysFeature__enable_hats")==="true"&&d4a()}
function s4a(a){for(var b=a.model.is_chat_form&&a.ua.length>0,c=0;c0&&a.Ec.set(c.getId(),e)}b=t(a.qa);for(c=b.next();!c.done;c=b.next())c=c.value,e=c.Xg(),c.isVisible()&&e&&a.ya.set(e,c.getDisplayValues())}
function v4a(a,b){a=t(a.ya.entries());for(var c=a.next();!c.done;c=a.next()){var e=t(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+=": ",po(c,"multi-value",f.length>1),e=t(f),f=e.next();!f.done;f=e.next())f=f.value,h=document.createElement("span"),po(h,"submission-value",!0),h.innerText=f,c.appendChild(h);b.appendChild(c)}}
function x4a(a){for(var b="",c=t(a.ya.entries()),e=c.next();!e.done;e=c.next()){var f=t(e.value);e=f.next().value;f=f.next().value;b+=e;if(f)for(b+=":",e=t(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";L0.download(b,c,"text/plain");window.sc_trackStatsEvent(182,47,z().pid);Zo("contact_form_submission_download")}
function y4a(a){var b=new URLSearchParams;a=t(a.Ec.entries());for(var c=a.next();!c.done;c=a.next()){var e=t(c.value);c=e.next().value;e=e.next().value;e=t(e);for(var f=e.next();!f.done;f=e.next())b.append("pcff",c+":"+f.value)}Zo("contact_form_submission_edit");window.sc_trackStatsEvent(182,24,z().pid);b=new URL(""+window.location.origin+window.location.pathname+"?"+b);No(b.toString())}
function $0(a){Co({httpMethod:"POST",endpoint:"cufz",requestBody:{success:a,page_view_id:z().pvid}})}
function q4a(a,b,c){return b&&c?a.qa.find(function(e){return AP(e.model.Fd(),uP(vP(new eA,+b),+b).ud(+c))}):null}
l.rf=function(a){var b=null;N0(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 Y3a(a,b){if(b===a.page||b<1||b>a.model.total_pages)return!1;a.page=b;O0(a);P0(a,!1);return!0}
function R0(a,b){window.sc_trackStatsEvent(b===void 0?21:b,a,z().pid)}
function z4a(a,b){var c=X0(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){Co({httpMethod:"POST",endpoint:"escalationavailability",params:{v:1,psd:JSON.stringify(e)},requestBody:c.serialize(),onLoadCallback:function(k){try{f(JSON.parse(k.responseText))}catch(n){h(Error("Could not parse escalationavailability response"))}},
Id:function(){h(Error("escalationavailability endpoint returned an error"))},
Lr:!0})})}
function X0(a,b){var c=new SQ,e=a.getId();uh(c,2,e);e=Number(a.getRedwoodId());sh(c,4,e);kg(c,3,[b],ne);if(a.selectedSymptomFrdValues){b=[];e=t(a.selectedSymptomFrdValues);for(var f=e.next();!f.done;f=e.next()){var h=void 0;b.push.apply(b,Aa((h=wP(f.value))!=null?h:[]))}a=WMa(XQ(VQ(new TQ,UQ(a.selectedSymptomFrdValues)).Wd(a.selectedSymptomFrdValues.Eh()),[xP(uP(vP(new eA,8000072),8000072).ud(15),b)]));Dg(c,VP,7,a)}return c}
l.getEscalationChannelAvailabilityInformation=function(a){var b=this,c,e,f,h,k,n,p,r,u;return Ya(function(w){if(w.o==1)return w.yield(z4a(b,a),2);if(c=w.ma)switch(a){case 1:return w.return((f=(e=c.chat_channel)==null?void 0:e.common_options)!=null?f:null);case 3:return w.return((n=(h=c)==null?void 0:(k=h.email_channel)==null?void 0:k.common_options)!=null?n:null);case 5:return w.return((u=(p=c)==null?void 0:(r=p.c2c_channel)==null?void 0:r.common_options)!=null?u:null)}return w.return(null)})};
function g4a(a){var b,c,e;return Ya(function(f){return f.o==1?f.yield(z4a(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 V3a(a){var b=a.querySelector(".contact-form__gdpr-dialog");if(b){var c=function(e){var f=this.Fb().strings,h=this.Fb().style_params,k=this.Fb().gdpr_privacy_policy_url,n=z().lang,p={};f=new qD(z().lang,(p["gdpr_dialog.trigger_needing_privacy_policy_url"]=f.GDPR_DIALOG_TRIGGER,p["gdpr_dialog.title"]=f.GDPR_DIALOG_TITLE,p["gdpr_dialog.ok"]=f.GDPR_DIALOG_OK,p));var r=new ZQ({Oa:f,locale:n,privacyPolicyUrl:k,xp:h?{"font-family":h.font_family.title}:void 0,Gn:h?{"font-family":h.font_family.body}:
void 0,Ln:h?{"font-weight":String(h.strong_font_weight)}:void 0});eq(e,function(){r.render()});
return r}.call(a,b);
$Ma(c,function(){c.data=new Map;c.Ja();for(var e=t(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||$Q(c,f.name,f.value);e=t(Object.keys(a.productSpecificData));for(f=e.next();!f.done;f=e.next())f=f.value,$Q(c,f,a.productSpecificData[f]);a.gcmRegistrationId&&$Q(c,"GCM",a.gcmRegistrationId)})}}
function P3a(a,b){b.addEventListener("uploadstart",function(){++a.qb});
b.addEventListener("uploadend",function(){--a.qb;bp(a.element,"uploadend")})}
function Q0(a){if(!a.Ma){var b=a.querySelector(".submit-button");b&&(b.disabled=!0);b=S0(a,".notification-area");po(b,"invalid",!0);b.textContent=a.model.strings.CHAT_UNAVAILABLE}}
l.getId=function(){return this.element.getAttribute("id")};
l.getRedwoodId=function(){return this.element.dataset.contactFormRedwoodId};
l.getContactType=function(){return this.model.contact_type};
l.shouldSubmitToCasesV2=function(){return this.model.should_submit_to_cases_v2};
l.getTitle=function(){var a=this.element.querySelector(".contact-form__title");return a?a.textContent:""};
l.Fb=function(){return this.model};
l.getElement=function(){return this.element};
l.getCaseId=function(){return this.caseId};
l.getChatPoolId=function(){return this.chatPoolId};
l.getChatSupportRequestId=function(){return this.model.chat_support_request_id||""};
l.IP=function(){var a=[];N0(this,function(b){a.push(A4a(b))});
Array.prototype.push.apply(a,h4a(this));return a};
function A4a(a){return{getValues:a.getValues.bind(a),getType:a.getType.bind(a),isVisible:a.isVisible.bind(a),isConditional:a.isConditional.bind(a),hasSatisfiedDependencies:a.hasSatisfiedDependencies.bind(a),getId:a.getId.bind(a),getDisplayName:a.getDisplayName.bind(a),getFrdV1Identifier:a.getFrdV1Identifier.bind(a),getFrdV2Identifier:a.getFrdV2Identifier.bind(a),getFrdIdentifier:a.getFrdIdentifier.bind(a),getFrdContext:a.getFrdContext.bind(a),isCasesTarget:a.isCasesTarget.bind(a),setValues:a.setValues.bind(a),
getElement:a.getElement.bind(a),targetVerified:a.targetVerified.bind(a),setTargetVerified:a.setTargetVerified.bind(a),hide:a.hide.bind(a)}}
l.LP=function(){var a=[];N0(this,function(b){b.isVisible()&&a.push(A4a(b))});
return a};
l.setValidateOnly=function(a){this.validateOnly=a};
l.listen=function(a,b,c,e){this.listeners.push({type:a,listener:b,scope:e})};
l.unlisten=function(a,b,c,e){for(c=0;c0&&!a.ub;)a.Qa.shift()()}
l.ot=function(){var a=this;if(UP(b1(this))){var b=document.activeElement;c1(this,!0);var c=new kQ;C4a(this,c);Co({httpMethod:"POST",endpoint:"getavailablevaluesforgraph",params:{v:"1"},requestBody:c.serialize(),onLoadCallback:function(e){try{for(var f=VLa(e.responseText),h=t(Cg(f,lQ,2,ag())),k=h.next();!k.done;k=h.next()){var n=Ag(k.value,Zl,1),p=n.getFrdContext(),r=p?Vg(p,2):null,u=a.Ha.get(H0(n));if(u)for(var w=t(u),E=w.next();!E.done;E=w.next()){var la=E.value,ma=Vg(C3a(la),2);if(!(r&&ma&&r!==
ma||!D0(la))){var sa=Ql(Sl(bm(n)),Md);switch(la.getType()){case "CHECKBOX":case "RADIOBUTTON":for(var za=t(la.querySelectorAll(".list-item")),Ca=za.next();!Ca.done;Ca=za.next()){var Ia=Ca.value,Ma=sa.indexOf(Ia.querySelector("input").value)===-1;po(Ia,"hidden-by-vrg",Ma)}break;case "DROPDOWN":for(var Qa=t(la.querySelectorAll("option")),Va=Qa.next();!Va.done;Va=Qa.next()){var Za=Va.value;if(Za!==la.querySelector("option")){var vb=sa.indexOf(Za.value)===-1;po(Za,"hidden-by-vrg",vb)}}la.element.querySelector("select").dispatchEvent(new Event("selectvrgupdate"))}}}}}catch(Db){}c1(a,
!1);b.focus();B4a(a)},
Id:function(){c1(a,!1);b.focus();B4a(a)}})}};
function c1(a,b){a.ub=b;a=t(a.Ra);for(var c=a.next();!c.done;c=a.next())c=c.value,D0(c)&&E3a(c,b)}
function C4a(a,b){var c=b1(a);c=UP(c);SLa(b,nh(c,1));TLa(b,oh(c,2));c=[];for(var e=[],f=!1,h=t(a.Ra),k=h.next();!k.done;k=h.next()){k=k.value;if(D0(k)){var n=k.getFrdIdentifier();n&&c.push(n)}if(B0(k)&&k.hasSatisfiedDependencies()){n=[];for(var p=t(k.getValues()),r=p.next();!r.done;r=p.next())n.push(r.value.value);n.length!==0&&(p=new Rl,k.getType()==="HIDDEN"?D4a(D3a(k),n[0],p):k.getFrdIdentifier()===8000001?p.yj((new Ll).Fg(n.map(function(w){return Number(w)||0}))):Ul(p,(new Pl).Fg(n)),n=cm(new Zl,
p),p=C3a(k),(r=ph(p,2))&&$l(n,Hl(new Gl,ph(p,1)).ud(r)),(k=k.getFrdV2Identifier())&&am(n,k),e.push(n),!f&&H0(n)===8000072&&(f=!0))}}if(window.sc_filter_promoted_by_selected_symptom&&!f){var u;
h=(u=a.selectedSymptomFrdValues)==null?void 0:UQ(u);u=Lg(b,2);if(a.selectedSymptomFrdValues&&h&&u&&h===u){u=t(a.mb);for(h=u.next();!h.done;h=u.next())if(H0(h.value)===8000072){f=!0;break}if(!f){f=[];u=t(a.selectedSymptomFrdValues);for(h=u.next();!h.done;h=u.next())k=void 0,f.push.apply(f,Aa((k=wP(h.value))!=null?k:[]));e.push(iA(xP(uP(vP(new eA,8000072),8000072).ud(15),f)))}}}kg(b,3,c,ne);U2a(b,a.mb.concat(e));wh(b,5,a.model.content_publish_state)}
function D4a(a,b,c){switch(a){case 1:c.yj((new Ll).Fg([Number(b)]));break;case 2:case 5:c.Eg((new Pl).Fg([b]));break;case 3:Wl(c,Kl(new Jl,[Number(b)]));break;case 4:a=b.split(",");Ul(c,(new Pl).Fg(a));break;case 9:c.Nh(b==="true");break;case 8:a=b.split(",").map(function(e){return Number(e)});
c.ov(Ol(new Ml,[(new Ll).Fg(a)]));break;case 11:case 6:case 7:case 10:Yl(c,(new Il).Fg([b]))}}
function b1(a){a=JSON.parse(a.element.getAttribute("data-form-service-vrg"));return new TP(a)}
l.getServiceVrgTaxonomyId=function(){var a=UP(b1(this));return a?Lg(a,1):null};
l.getServiceVrgTaxonomyView=function(){var a=UP(b1(this));return a?Ug(a,2):null};
l.setSupportJourneyId=function(a){this.submitId=a};
function k4a(a){window.sc_log&&window.sc_log("Form","INFO","Case ID: "+a.caseId)}
l.setIncludesTargetSelector=function(a){this.Ua=a};
l.setTargetVerified=function(a){this.targetVerified=a};
function W3a(a,b){var c,e,f,h,k,n,p,r,u;Ya(function(w){if(w.o==1){if(!b)return w.return();c=new iQ(JSON.parse(b));a.Qd=(e=ah(c,7))!=null?e:"";a.Qd&&window.sc_log&&window.sc_log("Helpcenter Field","INFO","Form Helpcenter Fields User-based FRD Value Lookup EventID: "+a.Qd);return w.yield(RQ({helpCenterFrdFieldsConfg:c,locale:z().lang,neoTaxonomy:jQ(),placements:[a.Ss(1),a.Ss(2)],Tu:"*"}),2)}f=w.ma;h=a.getScFrdValues().map(function(E){return new eA(E)});
k=t(a.Ha.keys());for(n=k.next();!n.done;n=k.next())p=n.value,h.push(vP(new eA,p));r=a.getHcfNameScFrdValueMap();u=f.Vk;E4a(a,u,2,h,r,".cf div.helpcenter-fields-container.top");E4a(a,u,1,h,r,".cf div.helpcenter-fields-container.bottom");EP(a.Ca,a.qa.concat(f.Fq).map(function(E){return E.model}));
Oa(w)})}
l.Ss=function(a){var b=new HP,c=new GP,e=this.getContactType();rg(c,3,FP,oe(e));wh(c,2,a);Hg(b,1,GP,c);c=new GP;e=this.getRedwoodId();rg(c,1,FP,Ue(e));wh(c,2,a);Hg(b,1,GP,c);a=new MP;Fg(a,1,LP,b);return a};
function E4a(a,b,c,e,f,h){if(h=a.element.querySelector(h)){var k=b.filter(function(n){if(n.model.placements.length||e.some(function(la){return AP(la,n.model.Fd())})||!n.model.Fd().getId()&&f.has(n.model.getName()))return!1;
for(var p=t(n.model.ua),r=p.next();!r.done;r=p.next()){r=r.value;var u=void 0,w=void 0,E=t((w=(u=r.Et())==null?void 0:u.o())!=null?w:[]);for(u=E.next();!u.done;u=E.next())u.value.Ds()===c&&n.model.placements.push(r)}return!!n.model.placements.length});
k.length&&eq(h,function(){for(var n=t(k),p=n.next();!p.done;p=n.next())p=p.value,p.render(),a.qa.push(p)})}}
l.getHelpCenterFieldFrds=function(a){return this.Ca.Pc(a===void 0?!1:a).map(function(b){return zP(b)})};
l.setHelpCenterFieldFrd=function(a){a=new eA(a);for(var b=t(CP(this.Ca)),c=b.next();!c.done;c=b.next())if(c=c.value,AP(c.Fd(),a)){V2a(c,a);break}};
function X3a(a){var b=[];z().is_render_api||b.push("direct_to_form");so("cse")==="gse"&&b.push("gse");b.length&&a.addScFrdValue(zP(xP(uP(vP(new eA,8000104),8000104).ud(15),b)))}
function U0(){switch(z().rs){case 3:case 8:return!0;default:return!1}}
window.sc_initForm=function(a,b,c){a=new O3a(a,b,c);return{getEscalationChannelAvailabilityInformation:a.getEscalationChannelAvailabilityInformation.bind(a),getContactType:a.getContactType.bind(a),submitForm:a.submitForm.bind(a),getFields:a.IP.bind(a),getVisibleFields:a.LP.bind(a),getSubjectFieldId:a.getSubjectFieldId.bind(a),getBodyFieldId:a.getBodyFieldId.bind(a),getFieldValues:a.getFieldValues.bind(a),getChatPoolId:a.getChatPoolId.bind(a),getChatSupportRequestId:a.getChatSupportRequestId.bind(a),
setScreenshotter:a.setScreenshotter.bind(a),setGcmRegistrationId:a.setGcmRegistrationId.bind(a),getProductSpecificData:a.getProductSpecificData.bind(a),setProductSpecificData:a.setProductSpecificData.bind(a),setValidateOnly:a.setValidateOnly.bind(a),listen:a.listen.bind(a),unlisten:a.unlisten.bind(a),getInternalHelpcenterName:a.getInternalHelpcenterName.bind(a),setReenableOnValidated:function(){},
getCaseId:a.getCaseId.bind(a),getScFrdValues:a.getScFrdValues.bind(a),setScFrdValue:a.setScFrdValue.bind(a),addScFrdValue:a.addScFrdValue.bind(a),getHcfNameScFrdValueMap:a.getHcfNameScFrdValueMap.bind(a),setHcfNameScFrdValueMap:a.setHcfNameScFrdValueMap.bind(a),setSelectedSymptomFrdValues:a.setSelectedSymptomFrdValues.bind(a),setParentCaseName:a.setParentCaseName.bind(a),setSubmissionChannel:a.setSubmissionChannel.bind(a),shouldSubmitToCasesV2:a.shouldSubmitToCasesV2.bind(a),addCasesAttachment:a.addCasesAttachment.bind(a),
setChatType:function(){},
getChatAvailability:a.getChatAvailability.bind(a),getRedwoodId:a.getRedwoodId.bind(a),prepopulateFields:a.prepopulateFields.bind(a),setAssistiveQuestionAnswers:a.setAssistiveQuestionAnswers.bind(a),getId:a.getId.bind(a),getServiceVrgTaxonomyId:a.getServiceVrgTaxonomyId.bind(a),getServiceVrgTaxonomyView:a.getServiceVrgTaxonomyView.bind(a),setSupportJourneyId:a.setSupportJourneyId.bind(a),getInjectedScFrdValues:a.getInjectedScFrdValues.bind(a),setInjectedScFrdValue:a.setInjectedScFrdValue.bind(a),getInjectedFrdValuesEventId:a.getInjectedFrdValuesEventId.bind(a),
setIncludesTargetSelector:a.setIncludesTargetSelector.bind(a),setTargetVerified:a.setTargetVerified.bind(a),getStatusMessage:a.getStatusMessage.bind(a),setErrorMessage:a.setErrorMessage.bind(a),getHelpCenterFieldFrds:a.getHelpCenterFieldFrds.bind(a),setHelpCenterFieldFrd:a.setHelpCenterFieldFrd.bind(a)}};
false