AdsLeadGenWebBasedFormGenerationTransformer",["AdsApiLeadGenLocale","AdsLeadGenForm","AdsLeadGenFormConditionalLogicEndPages","AdsLeadGenFormCreative","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorQuestionAPITransformer","AdsLeadGenFormQuestion","AdsLeadGenFormThankYouPage","EditorState","LeadGenDataStatus","guid","immutable"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t,n){var a,i,l,u,c={},d=r("immutable").Map(),m=e.context_card;m!=null&&m.content!=null&&m.content.forEach(function(e,t){d=d.set("content_"+t,e)});var p={context_card_button_text:(a=m==null?void 0:m.button_text)!=null?a:"",context_card_content:d,context_card_cover_photo:null,context_card_format:"TEXT",context_card_style:o("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:(i=m==null?void 0:m.title)!=null?i:"",context_card_content_cache:d,context_card_is_selected:m!=null,context_card_is_cover_photo_selected:!1,trust_signals:r("immutable").List(),trust_signals_is_selected:!1},_={custom_disclaimer_consents:r("immutable").OrderedMap(),custom_disclaimer_title:"",custom_disclaimer_editor_state:r("EditorState").createEmpty(),custom_disclaimer_is_selected:!1,privacy_policy_link_text:"",privacy_policy_url:(l=e.form_privacy_policy_url)!=null?l:""},f=[],g=e.contact_information_questions,h=g.find(function(e){return e.category==="EMAIL"}),y=g.find(function(e){return e.category==="PHONE"}),C=h!=null?h.optional:!0,b=y!=null?y.optional:!0,v=g;C&&b&&(h!=null?v=g.map(function(e){return e.category==="EMAIL"?babelHelpers.extends({},e,{optional:!1}):e}):y!=null?v=g.map(function(e){return e.category==="PHONE"?babelHelpers.extends({},e,{optional:!1}):e}):v=[].concat(g,[{category:"EMAIL",optional:!1}])),v.forEach(function(e){var t=o("AdsLeadGenFormEditorConstants").CMS_PII_MAP[e.category];t!=null&&f.push(new(r("AdsLeadGenFormQuestion"))({answers:r("immutable").List(),id:t,label:s(e.category),questionTypeKey:"prefill",isOptional:e.optional,disablePrefill:!1}))});var S=[];e.short_answer_questions.forEach(function(e,t){S.push(o("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion({key:null,label:e.question,type:"CUSTOM",custom_question_format:"short-answer",options:[],inline_context:"",conditional_questions_choices_field_type:null,conditional_questions_dependent_field:null},f.length+t))});var R=[];e.multiple_choice_questions.forEach(function(e,t){R.push(o("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion({key:null,label:e.question,type:"CUSTOM",custom_question_format:"multiple-choice",options:e.answers.map(function(e){return{value:e,key:null}}),inline_context:"",conditional_questions_choices_field_type:null,conditional_questions_dependent_field:null},f.length+S.length+t))});var L=[].concat(R,S,f),E=r("immutable").OrderedMap(L.map(function(e){return[e.id,e]})),k=new(r("AdsLeadGenFormThankYouPage"))({website_url:e.final_url,button_type:"VIEW_WEBSITE",should_merge_with_default_typ:!0}),I=new(r("AdsLeadGenFormCreative"));I=I.set("isCoverPhotoSelected",!0),I=I.set("isUploadingPhoto",!1);var T=r("immutable").List(),D=null,x=r("immutable").OrderedMap(),$=!1,P=!1,N=new(r("AdsLeadGenFormConditionalLogicEndPages")),M=0,w={block_display_for_non_targeted_viewer:!0,locale:(u=e.form_locale)!=null?u:"en_US",is_optimized_for_quality:!1,form_type:"MORE_VOLUME",is_form_extension_eligible:!0,privacy_policy_optional:e.form_privacy_policy_url==null};return c=babelHelpers.extends({},p,_,{background_image_option:"NO_IMAGE",is_off_facebook:!1,is_optimized_for_quality:w.is_optimized_for_quality,is_optimized_for_creatives:!1,form_type:w.form_type,follow_up_action_url:"",id:r("guid")(),locale:r("AdsApiLeadGenLocale")[w.locale.toUpperCase()],name:e.form_name,page_id:t,status:r("LeadGenDataStatus").ACTIVE,block_display_for_non_targeted_viewer:w.block_display_for_non_targeted_viewer,question_page_custom_headline:"",questions:E,is_created_from_template:!1,is_created_from_auto_generation:!0,is_auto_thread_creation_enabled:n!=null?n:!1,is_phone_sms_verify_enabled:!1,should_enforce_work_email:!1,partner_app_welcome_msg_flow_id:null,thank_you_page:k,disqualified_end_component:D,tracking_parameters:T,creatives_data:I,has_conditional_logic:$,conditional_logic:x,end_pages:N,is_form_extension_eligible:w.is_form_extension_eligible,is_conditional_question_preview_ready:P,flexible_form_delivery_options:M,privacy_policy_optional:w.privacy_policy_optional}),new(r("AdsLeadGenForm"))(c)}function s(e){var t,n={EMAIL:"Email",FULL_NAME:"Full name",FIRST_NAME:"First name",LAST_NAME:"Last name",PHONE:"Phone",COMPANY_NAME:"Company name",JOB_TITLE:"Job title",WORK_EMAIL:"Work email",WORK_PHONE_NUMBER:"Work phone number",CITY:"City",STATE:"State",ZIP_CODE:"Zip code",COUNTRY:"Country",POST_CODE:"Post code",PROVINCE:"Province",STREET_ADDRESS:"Street address",DATE_OF_BIRTH:"Date of birth",GENDER:"Gender",MILITARY_STATUS:"Military status",MARITAL_STATUS:"Marital status",RELATIONSHIP_STATUS:"Relationship status"};return(t=n[e])!=null?t:e}l.fromAPI=e}),98);
-----
AdsLWILeadGenCreatorLanguageSelector.react",["cx","AdsApiLeadGenLocale","AdsBulkSingleSelector.react","AdsBulkSingleSelectorOption.react","AdsLWILeadGenCreatorSectionHeader.react","AdsLWILeadGenStrings","AdsLeadGenFormEditorConfigurationSetLocaleAction","AdsLeadGenLocale","ContextualLayerHideOnScroll","react","vulture"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.formID;a=a.language;c("vulture")("aUMNRHntYFL");var e=function(a){c("AdsLeadGenFormEditorConfigurationSetLocaleAction").dispatch({formID:b,locale:a},{line:"39",module:"AdsLWILeadGenCreatorLanguageSelector.react.js",moduleID:f.id})},g=Object.keys(c("AdsApiLeadGenLocale")).map(function(a){return j.jsx(c("AdsBulkSingleSelectorOption.react"),{value:c("AdsApiLeadGenLocale")[a],children:c("AdsLeadGenLocale")[c("AdsApiLeadGenLocale")[a]]},a)});return j.jsxs("div",{children:[j.jsx(c("AdsLWILeadGenCreatorSectionHeader.react"),{className:"_3-8y",title:d("AdsLWILeadGenStrings").LANGUAGE_SELECTOR_SECTION_TITLE,tooltip:d("AdsLWILeadGenStrings").LANGUAGE_SELECTOR_SECTION_TOOLTIP}),j.jsx("div",{className:"_2pi4",children:j.jsx(d("AdsBulkSingleSelector.react").AdsBulkSingleSelector,{contextualLayerBehaviors:{ContextualLayerHideOnScroll:c("ContextualLayerHideOnScroll")},maxheight:200,value:a,onChange:e,children:g})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometLeadGenFormLanguageSelector.react",["fbt","AdsApiLeadGenLocale","AdsLeadGenLocale","CometRowItem.react","CurrentLocale","LWICometRow.react","LWIOmniFormSelect.react","react","useLWICometLeadGenFormContextDispatcher","vulture","withLWICometFormContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useMemo;function a(a){a=a.locale;c("vulture")("8AZSu0k0SVQ");var b=c("useLWICometLeadGenFormContextDispatcher")(),e=l(function(){return Object.keys(c("AdsApiLeadGenLocale")).map(function(a){return{label:d("AdsLeadGenLocale")[c("AdsApiLeadGenLocale")[a]],value:c("AdsApiLeadGenLocale")[a]}})},[]),f=k(function(a){return b({locale:a,type:"lwi_lead_gen_form_reducer.set_locale"})},[b]);return j.jsx(c("LWICometRow.react"),{children:j.jsx(c("CometRowItem.react"),{expanding:!0,children:j.jsx(c("LWIOmniFormSelect.react"),{ariaLabel:h._("{Form Language} form language, drop-down list, double-click to change",[h._param("Form Language",a)]),label:h._("Form language"),onValueChange:f,options:e,value:a})})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometFormContext")(a,function(a){return{locale:(a=a.form.locale)!=null?a:c("CurrentLocale").get()}});g["default"]=e}),226);
-----
AdsLeadGenFormEditorSettingsConfigurationSectionV2.react",["fbt","AdsApiLeadGenLocale","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorFunnelLogger","AdsLeadGenFormEditorFunnelLoggerConstants","AdsLeadGenFormEditorSection.react","AdsLeadGenLocale","GeoBaseText.react","GeoRadioList.react","GeoRadioListItem.react","GeoSelector.react","GeoSelectorItem.react","GeoTooltip.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback,l=h._("Form configuration"),m=h._("Language"),n=h._("This is the language your audience will see when they view your form."),o=h._("Sharing"),p=h._("By default, only people who receive your ad delivery directly will be able to see and submit this form. Select "Open" to let people share this form with friends and allow submissions from people tagged in the comments."),q=[{value:!0,label:h._("{title for the option} {=m2} {more description for the option}",[h._param("title for the option",j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",weight:"bold",children:h._("Restricted")})),h._param("more description for the option",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("Only people who receive your ad delivery directly can submit this form.")})),h._implicitParam("=m2",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("-")}))])},{value:!1,label:h._("{title for the option} {=m2} {more description for the option}",[h._param("title for the option",j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",weight:"bold",children:h._("Open")})),h._param("more description for the option",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("Your ad can be shared and anyone can submit this form.")})),h._implicitParam("=m2",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("-")}))])}];function a(a){var b=a.blockDisplayForNonTargetedViewer;a.errors;var e=a.expandedSection,f=a.isExpandable,g=a.language,h=a.onBlockDisplayForNonTargetedViewerChange,i=a.onLanguageChange;a.status;a=e===d("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.CONFIGURATION?j.jsxs("div",{style:{padding:"0px 16px 32px 16px"},children:[j.jsx(r,{selectedLanguage:g,onChange:i}),j.jsx("div",{className:"_3-8z"}),j.jsx(s,{selectedSharing:b,onChange:h})]}):null;return f===!0?j.jsx(c("AdsLeadGenFormEditorSection.react"),{contentTab:"settingsTab",dataTestID:"ADS_LEADGEN_FORM_EDITOR_SETTINGS_CONFIGURATION_HEADER",expandedSectionID:e,isCollapsible:!0,label:l,sectionID:d("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.CONFIGURATION,children:a}):a}a.displayName=a.name+" [from "+f.id+"]";function r(a){var b=a.onChange;a=a.selectedLanguage;var e=k(function(){d("AdsLeadGenFormEditorFunnelLogger").appendAction(d("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_EVENTS.CLICK_FORM_LOCALE_SELECTOR)},[]);return j.jsx(c("GeoSelector.react"),{"data-testid":void 0,label:m,tooltipText:n,value:a,onChange:b,onClick:e,children:Object.entries(c("AdsApiLeadGenLocale")).map(function(a){var b=a[0];a=a[1];return j.jsx(c("GeoSelectorItem.react"),{label:c("AdsLeadGenLocale")[a],value:a},b)})})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b=a.onChange;a=a.selectedSharing;return j.jsx(c("GeoRadioList.react"),{"data-testid":void 0,label:o,tooltip:j.jsx(c("GeoTooltip.react"),{content:p}),value:a,onChange:b,children:q.map(function(a,b){return j.jsx(c("GeoRadioListItem.react"),babelHelpers["extends"]({},a),b)})})}s.displayName=s.name+" [from "+f.id+"]";g.SECTION_LABEL=l;g.AdsLeadGenFormEditorSettingsConfigurationSectionV2=a}),226);
-----
AdsApiLeadGenLocale",[],(function(a,b,c,d,e,f){a=Object.freeze({AR_AR:"ar_AR",CS_CZ:"cs_CZ",DA_DK:"da_DK",DE_DE:"de_DE",EL_GR:"el_GR",EN_GB:"en_GB",EN_US:"en_US",ES_ES:"es_ES",ES_LA:"es_LA",FI_FI:"fi_FI",FR_FR:"fr_FR",HE_IL:"he_IL",HI_IN:"hi_IN",HU_HU:"hu_HU",ID_ID:"id_ID",IT_IT:"it_IT",JA_JP:"ja_JP",KO_KR:"ko_KR",NB_NO:"nb_NO",NL_NL:"nl_NL",PL_PL:"pl_PL",PT_BR:"pt_BR",PT_PT:"pt_PT",RO_RO:"ro_RO",RU_RU:"ru_RU",SV_SE:"sv_SE",TH_TH:"th_TH",TR_TR:"tr_TR",VI_VN:"vi_VN",ZH_CN:"zh_CN",ZH_HK:"zh_HK",ZH_TW:"zh_TW"});f["default"]=a}),66);
-----
AdsLeadGenFormTemplateFields",["AdsApiLeadGenLocale","AdsLeadGenFormFieldsForTemplate","CurrentLocale"],(function(a,b,c,d,e,f,g){"use strict";a="en_US";b=String(c("CurrentLocale").get()).toUpperCase();Object.prototype.hasOwnProperty.call(c("AdsApiLeadGenLocale"),b)&&(a=String(c("AdsApiLeadGenLocale")[b]));d=["id","translated_template_description.locale("+a+")","translated_template_name.locale("+a+")","template_form{"+c("AdsLeadGenFormFieldsForTemplate").toString()+"}","form_template_type","translated_template_content.locale("+a+")"];g["default"]=d}),98);
-----
AdsLeadGenAutoFormV2Transformer",["AdsApiLeadGenLocale","AdsLeadGenForm","AdsLeadGenFormConditionalLogicEndPages","AdsLeadGenFormCreative","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorQuestionAPITransformer","AdsLeadGenFormQuestion","CurrentLocale","EditorState","LeadGenDataStatus","formatDate","guid","immutable"],(function(a,b,c,d,e,f,g){"use strict";var h=c("immutable").List([{key:"email",label:"Email",type:"EMAIL"},{key:"full_name",label:"Full name",type:"FULL_NAME"}]);function a(a,b){var e,f,g={},h={context_card_button_text:"",context_card_content:c("immutable").Map(),context_card_cover_photo:null,context_card_format:"TEXT",context_card_style:d("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:"",context_card_content_cache:c("immutable").Map(),context_card_is_selected:!1,context_card_is_cover_photo_selected:!1};e={custom_disclaimer_consents:c("immutable").OrderedMap(),custom_disclaimer_title:"",custom_disclaimer_editor_state:c("EditorState").createEmpty(),custom_disclaimer_is_selected:!1,privacy_policy_link_text:"",privacy_policy_url:(e=b.privacy_policy_url)!=null?e:""};var l=i(a==null?void 0:a.pii_questions);f={block_display_for_non_targeted_viewer:!0,locale:(f=a==null?void 0:a.locale_string)!=null?f:"en_US",is_optimized_for_quality:!1,form_type:j(b.form_type),is_form_extension_eligible:!0};var m="Please answer the below questions";l=c("immutable").OrderedMap(l.map(function(a){return[a.id,a]}));var n=null,o=new(c("AdsLeadGenFormCreative"))();o=o.set("isCoverPhotoSelected",!0);o=o.set("isUploadingPhoto",!1);var p=c("immutable").List(),q=null,r=c("immutable").OrderedMap(),s=!1,t=!1,u=new(c("AdsLeadGenFormConditionalLogicEndPages"))(),v=c("formatDate")(Date.now()/1e3,"m/d/Y g:ia");g=babelHelpers["extends"]({},h,e,{is_off_facebook:!1,is_optimized_for_quality:f.is_optimized_for_quality,is_optimized_for_creatives:!1,form_type:j(b.form_type),follow_up_action_url:(h=b.privacy_policy_url)!=null?h:"",id:c("guid")(),locale:c("AdsApiLeadGenLocale")[String(c("CurrentLocale").get()).toUpperCase()],name:"Generated untitled "+v,page_id:(e=a==null?void 0:a.page_id)!=null?e:"",status:c("LeadGenDataStatus").ACTIVE,block_display_for_non_targeted_viewer:f.block_display_for_non_targeted_viewer,question_page_custom_headline:m,questions:l,is_created_from_template:!1,is_created_from_auto_generation:!0,is_auto_thread_creation_enabled:!1,thank_you_page:n,disqualified_end_component:q,tracking_parameters:p,creatives_data:o,has_conditional_logic:s,conditional_logic:r,end_pages:u,is_form_extension_eligible:f.is_form_extension_eligible,is_conditional_question_preview_ready:t});b=[];a!=null&&(b=k(a==null?void 0:a.custom_questions));return{form_data:new(c("AdsLeadGenForm"))(g),suggestion_questions:b}}function b(a){var b,e={},f={context_card_button_text:"",context_card_content:(b=c("immutable")).Map(),context_card_cover_photo:null,context_card_format:"TEXT",context_card_style:d("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:"",context_card_content_cache:b.Map(),context_card_is_selected:!1,context_card_is_cover_photo_selected:!1},g={custom_disclaimer_consents:b.OrderedMap(),custom_disclaimer_title:"",custom_disclaimer_editor_state:c("EditorState").createEmpty(),custom_disclaimer_is_selected:!1,privacy_policy_link_text:"",privacy_policy_url:""},j={block_display_for_non_targeted_viewer:!0,locale:"en_US",is_optimized_for_quality:!1,form_type:"MORE_VOLUME",is_form_extension_eligible:!0},k="",l=i(h);l=b.OrderedMap(l.map(function(a){return[a.id,a]}));var m=null,n=new(c("AdsLeadGenFormCreative"))();n=n.set("isCoverPhotoSelected",!0);n=n.set("isUploadingPhoto",!1);var o=b.List(),p=null;b=b.OrderedMap();var q=!1,r=!1,s=new(c("AdsLeadGenFormConditionalLogicEndPages"))(),t=c("formatDate")(Date.now()/1e3,"m/d/Y g:ia");e=babelHelpers["extends"]({},f,g,{is_off_facebook:!1,is_optimized_for_quality:j.is_optimized_for_quality,is_optimized_for_creatives:!1,form_type:"MORE_VOLUME",follow_up_action_url:"",id:a.id,locale:c("AdsApiLeadGenLocale")[String(c("CurrentLocale").get()).toUpperCase()],name:"Untitled "+t,page_id:(f=a==null?void 0:a.page_id)!=null?f:"",status:c("LeadGenDataStatus").ACTIVE,block_display_for_non_targeted_viewer:j.block_display_for_non_targeted_viewer,question_page_custom_headline:k,questions:l,is_created_from_template:!1,is_created_from_auto_generation:!1,is_auto_thread_creation_enabled:!1,thank_you_page:m,disqualified_end_component:p,tracking_parameters:o,creatives_data:n,has_conditional_logic:q,conditional_logic:b,end_pages:s,is_form_extension_eligible:j.is_form_extension_eligible,is_conditional_question_preview_ready:r});return new(c("AdsLeadGenForm"))(e)}function i(a){var b=[];a&&a.forEach(function(a){var e=(a==null?void 0:a.key)!=null?{fieldID:a.key}:{},f=d("AdsLeadGenFormEditorConstants").CMS_PII_MAP[a==null?void 0:a.type];if(f!=null)b.push(new(c("AdsLeadGenFormQuestion"))(babelHelpers["extends"]({answers:c("immutable").List(),id:d("AdsLeadGenFormEditorConstants").CMS_PII_MAP[a==null?void 0:a.type]},e,{label:(a==null?void 0:a.label)||"",questionTypeKey:"prefill"})));else return});return b}function j(a){switch(a){case"MORE_VOLUME":return"MORE_VOLUME";case"HIGHER_INTENT":return"HIGHER_INTENT";default:return"MORE_VOLUME"}}function k(a){var b=[],e=0;a&&a.forEach(function(a){if(a!==null&&(a==null?void 0:a.type)==="CUSTOM"||(a==null?void 0:a.type)==="DATE_TIME"||(a==null?void 0:a.type)==="STORE_LOOKUP"||(a==null?void 0:a.type)==="STORE_LOOKUP_WITH_TYPEAHEAD")if((a==null?void 0:a.options)!=null){var f=a==null?void 0:a.options[0].key;if(f.includes("[")&&f.includes("]")){f=f.split("]")[0].split("[")[1];f=f.split(",");var g=[];f.forEach(function(a){g.push({value:a,key:null})});f=babelHelpers["extends"]({},a,{options:c("immutable").List(g)});b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(f,e++))}else b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(a,e++))}else b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(a,e++))});return b}g.fromAPI=a;g.createClearForm=b}),98);
-----
AdsLeadGenFormTemplateTranslatedContentAPITransformer",["AdsApiLeadGenLocale","AdsLeadGenFormEditorAPITransformer","AdsLeadGenFormEditorQualifiedQuestionTransformer","AdsLeadGenFormRedesignExperiment","CurrentLocale"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){for(var c=0;c-----
AdsLeadGenAutoFormV2Transformer",["AdsApiLeadGenLocale","AdsLeadGenForm","AdsLeadGenFormConditionalLogicEndPages","AdsLeadGenFormCreative","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorQuestionAPITransformer","AdsLeadGenFormEditorUtils","AdsLeadGenFormQuestion","CurrentLocale","EditorState","LeadGenDataStatus","formatDate","immutable"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e,f,g={},k={context_card_button_text:"",context_card_content:c("immutable").Map(),context_card_cover_photo:null,context_card_format:"TEXT",context_card_style:d("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:"",context_card_content_cache:c("immutable").Map(),context_card_is_selected:!1,context_card_is_cover_photo_selected:!1};e={custom_disclaimer_consents:c("immutable").OrderedMap(),custom_disclaimer_title:"",custom_disclaimer_editor_state:c("EditorState").createEmpty(),custom_disclaimer_is_selected:!1,privacy_policy_link_text:"",privacy_policy_url:(e=b.privacy_policy_url)!=null?e:""};var l=h(a==null?void 0:a.pii_questions);f={block_display_for_non_targeted_viewer:!0,locale:(f=a==null?void 0:a.locale_string)!=null?f:"en_US",is_optimized_for_quality:!1,form_type:i(b.form_type),is_form_extension_eligible:!0};var m="Please answer the below questions";l=c("immutable").OrderedMap(l.map(function(a){return[a.id,a]}));var n=null,o=c("immutable").List(),p=null,q=c("immutable").OrderedMap(),r=!1,s=!1,t=new(c("AdsLeadGenFormConditionalLogicEndPages"))(),u=c("formatDate")(Date.now()/1e3,"m/d/Y g:ia");g=babelHelpers["extends"]({},k,e,{is_off_facebook:!1,is_optimized_for_quality:f.is_optimized_for_quality,is_optimized_for_creatives:!1,form_type:i(b.form_type),follow_up_action_url:(k=b.privacy_policy_url)!=null?k:"",id:d("AdsLeadGenFormEditorUtils").generateNewFormID(),locale:c("AdsApiLeadGenLocale")[String(c("CurrentLocale").get()).toUpperCase()],name:"Generated untitled "+u,page_id:(e=a==null?void 0:a.page_id)!=null?e:"",status:c("LeadGenDataStatus").ACTIVE,block_display_for_non_targeted_viewer:f.block_display_for_non_targeted_viewer,question_page_custom_headline:m,questions:l,is_created_from_template:!1,is_created_from_auto_generation:!0,is_auto_thread_creation_enabled:!1,thank_you_page:n,disqualified_end_component:p,tracking_parameters:o,creatives_data:new(c("AdsLeadGenFormCreative"))(),has_conditional_logic:r,conditional_logic:q,end_pages:t,is_form_extension_eligible:f.is_form_extension_eligible,is_conditional_question_preview_ready:s});b=[];a!=null&&(b=j(a==null?void 0:a.custom_questions));return{form_data:new(c("AdsLeadGenForm"))(g),suggestion_questions:b}}function h(a){var b=[];a&&a.forEach(function(a){var e=(a==null?void 0:a.key)!=null?{fieldID:a.key}:{},f=d("AdsLeadGenFormEditorConstants").CMS_PII_MAP[a==null?void 0:a.type];if(f!=null)b.push(new(c("AdsLeadGenFormQuestion"))(babelHelpers["extends"]({answers:c("immutable").List(),id:d("AdsLeadGenFormEditorConstants").CMS_PII_MAP[a==null?void 0:a.type]},e,{label:(a==null?void 0:a.label)||"",questionTypeKey:"prefill"})));else return});return b}function i(a){switch(a){case"MORE_VOLUME":return"MORE_VOLUME";case"HIGHER_INTENT":return"HIGHER_INTENT";default:return"MORE_VOLUME"}}function j(a){var b=[],e=0;a&&a.forEach(function(a){if(a!==null&&(a==null?void 0:a.type)==="CUSTOM"||(a==null?void 0:a.type)==="DATE_TIME"||(a==null?void 0:a.type)==="STORE_LOOKUP"||(a==null?void 0:a.type)==="STORE_LOOKUP_WITH_TYPEAHEAD")if((a==null?void 0:a.options)!=null){var f=a==null?void 0:a.options[0].key;f=f.split("]")[0].split("[")[1];f=f.split(",");var g=[];f.forEach(function(a){g.push({value:a,key:null})});f=babelHelpers["extends"]({},a,{options:c("immutable").List(g)});b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(f,e++))}else b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(a,e++))});return b}g.fromAPI=a}),98);
-----
AdsLeadGenFormTemplateTranslatedContentAPITransformer",["AdsApiLeadGenLocale","AdsLeadGenFormEditorAPITransformer","AdsLeadGenFormRedesignExperiment","CurrentLocale"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){for(var c=0;c-----
LWICometLeadGenFormLanguageSelector.react",["fbt","AdsApiLeadGenLocale","AdsLeadGenLocale","CometRowItem.react","CurrentLocale","LWICometRow.react","LWIOmniFormSelect.react","react","useLWICometLeadGenFormContextDispatcher","withLWICometFormContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useMemo;function a(a){a=a.locale;var b=c("useLWICometLeadGenFormContextDispatcher")(),e=k(function(){return Object.keys(c("AdsApiLeadGenLocale")).map(function(a){return{label:d("AdsLeadGenLocale")[c("AdsApiLeadGenLocale")[a]],value:c("AdsApiLeadGenLocale")[a]}})},[]),f=j(function(a){return b({locale:a,type:"lwi_lead_gen_form_reducer.set_locale"})},[b]);return i.jsx(c("LWICometRow.react"),{children:i.jsx(c("CometRowItem.react"),{expanding:!0,children:i.jsx(c("LWIOmniFormSelect.react"),{ariaLabel:h._("{Form Language}u662fu5f53u524du8868u5355u8bedu8a00uff0cu4e0bu62c9u83dcu5355uff0cu53ccu51fbu53efu66f4u6539",[h._param("Form Language",a)]),label:h._("u8868u5355u8bedu8a00"),onValueChange:f,options:e,value:a})})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometFormContext")(a,function(a){return{locale:(a=a.form.locale)!=null?a:c("CurrentLocale").get()}});g["default"]=e}),98);
-----
AdsLWILeadGenCreatorLanguageSelector.react",["cx","AdsApiLeadGenLocale","AdsBulkSingleSelector.react","AdsBulkSingleSelectorOption.react","AdsLWILeadGenCreatorSectionHeader.react","AdsLWILeadGenStrings","AdsLeadGenFormEditorConfigurationSetLocaleAction","AdsLeadGenLocale","ContextualLayerHideOnScroll","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,d;for(var e=arguments.length,f=new Array(e),g=0;g-----
AdsApiLeadGenLocale",[],(function(a,b,c,d,e,f){a=Object.freeze({AR_AR:"ar_AR",CS_CZ:"cs_CZ",DA_DK:"da_DK",DE_DE:"de_DE",EL_GR:"el_GR",EN_GB:"en_GB",EN_US:"en_US",ES_ES:"es_ES",ES_LA:"es_LA",FI_FI:"fi_FI",FR_FR:"fr_FR",HE_IL:"he_IL",HI_IN:"hi_IN",HU_HU:"hu_HU",ID_ID:"id_ID",IT_IT:"it_IT",JA_JP:"ja_JP",KO_KR:"ko_KR",NB_NO:"nb_NO",NL_NL:"nl_NL",PL_PL:"pl_PL",PT_BR:"pt_BR",PT_PT:"pt_PT",RO_RO:"ro_RO",RU_RU:"ru_RU",SV_SE:"sv_SE",TH_TH:"th_TH",TR_TR:"tr_TR",VI_VN:"vi_VN",ZH_CN:"zh_CN",ZH_HK:"zh_HK",ZH_TW:"zh_TW"});f["default"]=a}),66);
-----
AdsLeadGenForm",["AdsApiLeadGenLocale","AdsLeadGenFormBase","AdsLeadGenFormConditionalLogicEndPages","AdsLeadGenFormConstants","AdsLeadGenFormCreative","AdsLeadGenFormEditorConstants","AdsLeadGenFormUtils","AdsLeadGenLinkDecorator","CurrentLocale","EditorState","adsCreateAdAccountGKSelector","guid","immutable"],(function(a,b,c,d,e,f,g){"use strict";var h="-";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.getQuestion=function(a){return this.get("questions").get(a)};e.getCustomQuestions=function(){var a=this.get("questions");return a.filter(function(a){return a.get("questionTypeKey")!="prefill"})};e.deleteQuestion=function(a){return this.set("questions",this.get("questions")["delete"](a))};e.updateQuestion=function(a){var b=this.get("questions");return!b.has(a.get("id"))?this:this.set("questions",b.set(a.get("id"),a))};e.deleteConsent=function(a){a=this.get("custom_disclaimer_consents")["delete"](a);return this.set("custom_disclaimer_consents",a)};e.updateConsent=function(a){var b=this.get("custom_disclaimer_consents");return!b.has(a.get("id"))?this:this.set("custom_disclaimer_consents",b.set(a.get("id"),a))};e.getMCQStyleQuestions=function(){var a=this.getCustomQuestions();return b.getMCQStyleQuestions(a)};e.getQualifyingQuestions=function(){var a=this.getCustomQuestions();return b.getQualifyingQuestions(a)};e.getQualifyingQuestion=function(){var a=this.getQualifyingQuestions();return a.size>0?a.valueSeq().first():null};e.getRegularCustomQuestions=function(){var a=this.getCustomQuestions();return b.getRegularCustomQuestions(a)};e.getPrefillQuestions=function(){var a=this.get("questions");return b.getPrefillQuestions(a)};e.getConsent=function(a){return this.get("custom_disclaimer_consents").get(a)};e.getCustomQuestionsOfType=function(a){var b=this.getCustomQuestions();return b.filter(function(b){return b.get("questionTypeKey")===a})};e.getConditionalQuestion=function(){return this.getCustomQuestionsOfType("conditional").first()};e.getStoreLookupQuestion=function(){return this.getCustomQuestionsOfType("store-lookup").first()};e.getStoreLookupCityStateQuestion=function(){return this.getCustomQuestionsOfType("store-lookup-typeahead").first()};e.getAppointmentSchedulingQuestion=function(){return this.getCustomQuestionsOfType("date-time").first()};e.hasContextCard=function(){return this.get("context_card_is_selected")};e.hasStandardUserInfoQuestions=function(){return this.getPrefillQuestions().size>0};e.hasCustomQuestion=function(){var a=this.getCustomQuestions();return a.size>0};e.hasCustomQuestionWithoutQualifyingQuestion=function(){var a=this.getCustomQuestions();return a.filter(function(a){return a.get("questionTypeKey")!=="qualifying-question"}).size>0};e.hasQualifyingQuestion=function(){return this.getQualifyingQuestions().size>0};e.hasGatedContent=function(){var a=this.get("thank_you_page");return(a==null?void 0:a.button_type)==="VIEW_ON_FACEBOOK"};e.hasPrefillZipCodeOrPostCodeQuestions=function(){var a=this.getPrefillQuestions();return a.filter(function(a,b){return b===d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.ZIP||b===d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.POST_CODE}).size>0};e.hasZipCodeAndStoreLookUpQuestions=function(){var a=!!(this.getStoreLookupCityStateQuestion()||this.getStoreLookupQuestion()),b=this.getPrefillQuestions(),c=this.hasPrefillZipCodeOrPostCodeQuestions();b=b.filter(function(a,b){return b!==d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.ZIP&&b!==d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.POST_CODE}).size>0;return a&&c&&!b};e.getZipCodeOrPostCodeQuestions=function(){if(this.hasPrefillZipCodeOrPostCodeQuestions()){var a=this.getPrefillQuestions();return a.filter(function(a,b){return b===d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.ZIP||b===d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.POST_CODE}).first()}};e.isAtMaxQuestionCount=function(){return this.get("questions").size>=c("AdsLeadGenFormConstants").MAX_NUM_CUSTOM_QUESTIONS};e.isAtMaxConditionalQuestionCount=function(){return this.getCustomQuestionsOfType("conditional").size>=c("AdsLeadGenFormConstants").MAX_NUM_CONDITIONAL_QUESTION_GROUPS};e.isAtMaxStoreLookupQuestionCount=function(){return this.getCustomQuestionsOfType("store-lookup").size+this.getCustomQuestionsOfType("store-lookup-typeahead").size>=c("AdsLeadGenFormConstants").MAX_NUM_STORE_LOOKUP_QUESTIONS};e.isAtMaxAppointmentSchedulingQuestionCount=function(){return this.getCustomQuestionsOfType("date-time").size>=c("AdsLeadGenFormConstants").MAX_NUM_APPOINTMENT_SCHEDULING_QUESTIONS};e.isNewForm=function(){return this.get("id").startsWith(h)};e.hasReviewScreen=function(){return this.get("is_optimized_for_quality")&&this.hasStandardUserInfoQuestions()};e.clearAllDefaltFieldIDs=function(a){return this.clearCustomizedQuestionDefaultFieldIDs(a).clearCustomDisclaimerConsentDefaultFieldIDs()};e.clearCustomizedQuestionDefaultFieldIDs=function(a){var b=this,c=this.get("questions").map(function(c,e){c.get("fieldID")&&c.get("fieldID")===b.$AdsLeadGenForm1(c,a)&&(c=c.set("fieldID",""));c.get("answers")&&(c=c.set("answers",c.get("answers").map(function(a){a.fieldID===d("AdsLeadGenFormUtils").getDefaultFieldID(a.answer)&&(a.fieldID="");return a})));return c});return this.set("questions",c)};e.clearCustomDisclaimerConsentDefaultFieldIDs=function(){return this.set("custom_disclaimer_consents",this.get("custom_disclaimer_consents").map(function(a,b){return a.get("fieldID")===d("AdsLeadGenFormUtils").getDefaultFieldID(a.get("content"))?a.set("fieldID",""):a}))};b.getLocale=function(){var a=c("adsCreateAdAccountGKSelector")._("HokVPuuS")(),b=String(c("CurrentLocale").get()).toUpperCase();return a&&Object.prototype.hasOwnProperty.call(c("AdsApiLeadGenLocale"),b)?c("AdsApiLeadGenLocale")[b]:"en_US"};b.createNewForm=function(){return new b({block_display_for_non_targeted_viewer:!0,context_card_button_text:"",context_card_content:c("immutable").Map(),context_card_content_cache:c("immutable").Map(),context_card_cover_photo:null,context_card_format:"TEXT",context_card_is_cover_photo_selected:!1,context_card_is_selected:!0,context_card_style:d("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:"",custom_disclaimer_consents:c("immutable").OrderedMap(),custom_disclaimer_editor_state:c("EditorState").createEmpty(c("AdsLeadGenLinkDecorator")),custom_disclaimer_is_selected:!1,custom_disclaimer_title:"",follow_up_action_url:"",id:i(),is_off_facebook:!1,is_optimized_for_quality:!1,is_optimized_for_creatives:!1,form_type:"MORE_VOLUME",locale:this.getLocale(),name:"",page_id:"1",question_page_custom_headline:"",questions:c("immutable").OrderedMap(),conditional_logic:c("immutable").OrderedMap(),has_conditional_logic:!1,privacy_policy_link_text:"",privacy_policy_url:"",status:"ACTIVE",thank_you_page:null,creatives_data:new(c("AdsLeadGenFormCreative"))({}),end_pages:new(c("AdsLeadGenFormConditionalLogicEndPages"))(),disqualified_end_component:null,default_disqualified_end_component:null,default_thank_you_page:null,tracking_parameters:c("immutable").List.of({name:"",value:""})})};b.getQualifyingQuestions=function(a){return a.filter(function(a){a=a.get("questionTypeKey");return a==="qualifying-question"})};b.getMCQStyleQuestions=function(a){return a.filter(function(a){a=a.get("questionTypeKey");return a==="multiple-choice"||a==="conditional"})};b.getRegularCustomQuestions=function(a){return a.filter(function(a){a=a.get("questionTypeKey");return["short-answer","store-lookup","store-lookup-typeahead","date-time"].indexOf(a)>=0})};b.getPrefillQuestions=function(a){return a.filter(function(a){return a.get("questionTypeKey")==="prefill"})};e.$AdsLeadGenForm1=function(a,b){var c=a.get("label");b!=null&&b.has(String(a.get("id")))&&(c=b.get(String(a.get("id"))).label);return d("AdsLeadGenFormUtils").getDefaultFieldID(c)};return b}(c("AdsLeadGenFormBase"));var i=function(){return h+c("guid")()};g["default"]=a}),98);
-----
AdsLeadGenFormEditorSettingsConfigurationSectionV2.react",["cx","fbt","AdsApiLeadGenLocale","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorFunnelLogger","AdsLeadGenFormEditorFunnelLoggerConstants","AdsLeadGenFormEditorSection.react","AdsLeadGenLocale","GeoBaseText.react","GeoRadioList.react","GeoRadioListItem.react","GeoSelector.react","GeoSelectorItem.react","GeoTooltip.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l=i._("u8868u5355u914du7f6e"),m=i._("u8bedu8a00"),n=i._("u5e7fu544au53d7u4f17u67e5u770bu8868u5355u65f6u663eu793au7684u8bedu8a00u3002"),o=i._("u8868u5355u5206u4eab"),p=i._("u9ed8u8ba4u60c5u51b5u4e0buff0cu53eau6709u5e7fu544au7684u76f4u63a5u6295u653eu5bf9u8c61u624du80fdu770bu5230u5e76u63d0u4ea4u8868u5355u3002u9009u62e9u201cu5f00u653eu201du5373u53efu5141u8bb8u7528u6237u4e0eu597du53cbu5206u4eabu8868u5355uff0cu5e76u5141u8bb8u8bc4u8bbau4e2du6807u8bb0u7684u7528u6237u63d0u4ea4u8868u5355u3002"),q=[{value:!0,label:i._("{title for the option}{=m2}{more description for the option}",[i._param("title for the option",j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",weight:"bold",children:i._("u9650u5236")})),i._param("more description for the option",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("u53eau6709u5e7fu544au76f4u63a5u6295u653eu7684u5bf9u8c61u80fdu591fu63d0u4ea4u8868u5355u3002")})),i._implicitParam("=m2",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("uff1a")}))])},{value:!1,label:i._("{title for the option}{=m2}{more description for the option}",[i._param("title for the option",j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",weight:"bold",children:i._("u5f00u653e")})),i._param("more description for the option",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("u4f60u7684u5e7fu544au53efu4ee5u88abu5206u4eabuff0cu4efbu4f55u7528u6237u90fdu80fdu63d0u4ea4u6b64u8868u5355u3002")})),i._implicitParam("=m2",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("uff1a")}))])}];function a(a){return j.jsx(c("AdsLeadGenFormEditorSection.react"),{contentTab:"settingsTab",dataTestID:"ADS_LEADGEN_FORM_EDITOR_SETTINGS_CONFIGURATION_HEADER",expandedSectionID:a.expandedSection,isCollapsible:!0,label:l,sectionID:d("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.CONFIGURATION,children:a.expandedSection===d("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.CONFIGURATION?j.jsxs("div",{className:"_23mr",children:[j.jsx(r,{selectedLanguage:a.language,onChange:a.onLanguageChange}),j.jsx("div",{className:"_3-8z"}),j.jsx(s,{selectedSharing:a.blockDisplayForNonTargetedViewer,onChange:a.onBlockDisplayForNonTargetedViewerChange})]}):null})}a.displayName=a.name+" [from "+f.id+"]";function r(a){var b=a.selectedLanguage;a=a.onChange;var e=k(function(){d("AdsLeadGenFormEditorFunnelLogger").appendAction(d("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_EVENTS.CLICK_FORM_LOCALE_SELECTOR)},[]);return j.jsx(c("GeoSelector.react"),{"data-testid":void 0,label:m,tooltipText:n,value:b,onChange:a,onClick:e,children:Object.entries(c("AdsApiLeadGenLocale")).map(function(a){var b=a[0];a=a[1];return j.jsx(c("GeoSelectorItem.react"),{label:c("AdsLeadGenLocale")[a],value:a},b)})})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b=a.selectedSharing;a=a.onChange;return j.jsx(c("GeoRadioList.react"),{"data-testid":void 0,label:o,tooltip:j.jsx(c("GeoTooltip.react"),{content:p}),value:b,onChange:a,children:q.map(function(a,b){return j.jsx(c("GeoRadioListItem.react"),babelHelpers["extends"]({},a),b)})})}s.displayName=s.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
-----
AdsLWILeadGenCreatorLanguageSelector.react",["cx","AdsApiLeadGenLocale","AdsBulkSingleSelector.react","AdsBulkSingleSelectorOption.react","AdsLWILeadGenCreatorSectionHeader.react","AdsLWILeadGenStrings","AdsLeadGenFormEditorConfigurationSetLocaleAction","AdsLeadGenLocale","ContextualLayerHideOnScroll","react","vulture"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.formID;a=a.language;c("vulture")("aUMNRHntYFL");var e=function(a){c("AdsLeadGenFormEditorConfigurationSetLocaleAction").dispatch({formID:b,locale:a},{line:"39",module:"AdsLWILeadGenCreatorLanguageSelector.react.js",moduleID:f.id})},g=Object.keys(c("AdsApiLeadGenLocale")).map(function(a){return j.jsx(c("AdsBulkSingleSelectorOption.react"),{value:c("AdsApiLeadGenLocale")[a],children:c("AdsLeadGenLocale")[c("AdsApiLeadGenLocale")[a]]},a)});return j.jsxs("div",{children:[j.jsx(c("AdsLWILeadGenCreatorSectionHeader.react"),{className:"_3-8y",title:d("AdsLWILeadGenStrings").LANGUAGE_SELECTOR_SECTION_TITLE,tooltip:d("AdsLWILeadGenStrings").LANGUAGE_SELECTOR_SECTION_TOOLTIP}),j.jsx("div",{className:"_2pi4",children:j.jsx(d("AdsBulkSingleSelector.react").AdsBulkSingleSelector,{contextualLayerBehaviors:{ContextualLayerHideOnScroll:c("ContextualLayerHideOnScroll")},maxheight:200,value:a,onChange:e,children:g})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometLeadGenFormLanguageSelector.react",["fbt","AdsApiLeadGenLocale","AdsLeadGenLocale","CometRowItem.react","CurrentLocale","LWICometRow.react","LWIOmniFormSelect.react","react","useLWICometLeadGenFormContextDispatcher","vulture","withLWICometFormContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useMemo;function a(a){a=a.locale;c("vulture")("8AZSu0k0SVQ");var b=c("useLWICometLeadGenFormContextDispatcher")(),e=l(function(){return Object.keys(c("AdsApiLeadGenLocale")).map(function(a){return{label:d("AdsLeadGenLocale")[c("AdsApiLeadGenLocale")[a]],value:c("AdsApiLeadGenLocale")[a]}})},[]),f=k(function(a){return b({locale:a,type:"lwi_lead_gen_form_reducer.set_locale"})},[b]);return j.jsx(c("LWICometRow.react"),{children:j.jsx(c("CometRowItem.react"),{expanding:!0,children:j.jsx(c("LWIOmniFormSelect.react"),{ariaLabel:h._("{Form Language} form language, drop-down list, double-click to change",[h._param("Form Language",a)]),label:h._("Form language"),onValueChange:f,options:e,value:a})})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometFormContext")(a,function(a){return{locale:(a=a.form.locale)!=null?a:c("CurrentLocale").get()}});g["default"]=e}),226);
-----
AdsLeadGenFormEditorSettingsConfigurationSectionV2.react",["fbt","AdsApiLeadGenLocale","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorFunnelLogger","AdsLeadGenFormEditorFunnelLoggerConstants","AdsLeadGenFormEditorSection.react","AdsLeadGenLocale","GeoBaseText.react","GeoRadioList.react","GeoRadioListItem.react","GeoSelector.react","GeoSelectorItem.react","GeoTooltip.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback,l=h._("Form configuration"),m=h._("Language"),n=h._("This is the language your audience will see when they view your form."),o=h._("Sharing"),p=h._("By default, only people who receive your ad delivery directly will be able to see and submit this form. Select "Open" to let people share this form with friends and allow submissions from people tagged in the comments."),q=[{value:!0,label:h._("{title for the option} {=m2} {more description for the option}",[h._param("title for the option",j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",weight:"bold",children:h._("Restricted")})),h._param("more description for the option",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("Only people who receive your ad delivery directly can submit this form.")})),h._implicitParam("=m2",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("-")}))])},{value:!1,label:h._("{title for the option} {=m2} {more description for the option}",[h._param("title for the option",j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",weight:"bold",children:h._("Open")})),h._param("more description for the option",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("Your ad can be shared and anyone can submit this form.")})),h._implicitParam("=m2",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._("-")}))])}];function a(a){var b=a.blockDisplayForNonTargetedViewer;a.errors;var e=a.expandedSection,f=a.isExpandable,g=a.language,h=a.onBlockDisplayForNonTargetedViewerChange,i=a.onLanguageChange;a.status;a=e===d("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.CONFIGURATION?j.jsxs("div",{style:{padding:"0px 16px 32px 16px"},children:[j.jsx(r,{selectedLanguage:g,onChange:i}),j.jsx("div",{className:"_3-8z"}),j.jsx(s,{selectedSharing:b,onChange:h})]}):null;return f===!0?j.jsx(c("AdsLeadGenFormEditorSection.react"),{contentTab:"settingsTab",dataTestID:"ADS_LEADGEN_FORM_EDITOR_SETTINGS_CONFIGURATION_HEADER",expandedSectionID:e,isCollapsible:!0,label:l,sectionID:d("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.CONFIGURATION,children:a}):a}a.displayName=a.name+" [from "+f.id+"]";function r(a){var b=a.onChange;a=a.selectedLanguage;var e=k(function(){d("AdsLeadGenFormEditorFunnelLogger").appendAction(d("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_EVENTS.CLICK_FORM_LOCALE_SELECTOR)},[]);return j.jsx(c("GeoSelector.react"),{"data-testid":void 0,label:m,tooltipText:n,value:a,onChange:b,onClick:e,children:Object.entries(c("AdsApiLeadGenLocale")).map(function(a){var b=a[0];a=a[1];return j.jsx(c("GeoSelectorItem.react"),{label:c("AdsLeadGenLocale")[a],value:a},b)})})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b=a.onChange;a=a.selectedSharing;return j.jsx(c("GeoRadioList.react"),{"data-testid":void 0,label:o,tooltip:j.jsx(c("GeoTooltip.react"),{content:p}),value:a,onChange:b,children:q.map(function(a,b){return j.jsx(c("GeoRadioListItem.react"),babelHelpers["extends"]({},a),b)})})}s.displayName=s.name+" [from "+f.id+"]";g.SECTION_LABEL=l;g.AdsLeadGenFormEditorSettingsConfigurationSectionV2=a}),226);
-----
AdsApiLeadGenLocale",[],(function(a,b,c,d,e,f){a=Object.freeze({AR_AR:"ar_AR",CS_CZ:"cs_CZ",DA_DK:"da_DK",DE_DE:"de_DE",EL_GR:"el_GR",EN_GB:"en_GB",EN_US:"en_US",ES_ES:"es_ES",ES_LA:"es_LA",FI_FI:"fi_FI",FR_FR:"fr_FR",HE_IL:"he_IL",HI_IN:"hi_IN",HU_HU:"hu_HU",ID_ID:"id_ID",IT_IT:"it_IT",JA_JP:"ja_JP",KO_KR:"ko_KR",NB_NO:"nb_NO",NL_NL:"nl_NL",PL_PL:"pl_PL",PT_BR:"pt_BR",PT_PT:"pt_PT",RO_RO:"ro_RO",RU_RU:"ru_RU",SV_SE:"sv_SE",TH_TH:"th_TH",TR_TR:"tr_TR",VI_VN:"vi_VN",ZH_CN:"zh_CN",ZH_HK:"zh_HK",ZH_TW:"zh_TW"});f["default"]=a}),66);
-----
AdsLeadGenFormTemplateFields",["AdsApiLeadGenLocale","AdsLeadGenFormFieldsForTemplate","CurrentLocale"],(function(a,b,c,d,e,f,g){"use strict";a="en_US";b=String(c("CurrentLocale").get()).toUpperCase();Object.prototype.hasOwnProperty.call(c("AdsApiLeadGenLocale"),b)&&(a=String(c("AdsApiLeadGenLocale")[b]));d=["id","translated_template_description.locale("+a+")","translated_template_name.locale("+a+")","template_form{"+c("AdsLeadGenFormFieldsForTemplate").toString()+"}","form_template_type","translated_template_content.locale("+a+")"];g["default"]=d}),98);
-----
AdsLeadGenAutoFormV2Transformer",["AdsApiLeadGenLocale","AdsLeadGenForm","AdsLeadGenFormConditionalLogicEndPages","AdsLeadGenFormCreative","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorQuestionAPITransformer","AdsLeadGenFormQuestion","CurrentLocale","EditorState","LeadGenDataStatus","formatDate","guid","immutable"],(function(a,b,c,d,e,f,g){"use strict";var h=c("immutable").List([{key:"email",label:"Email",type:"EMAIL"},{key:"full_name",label:"Full name",type:"FULL_NAME"}]);function a(a,b){var e,f,g={},h={context_card_button_text:"",context_card_content:c("immutable").Map(),context_card_cover_photo:null,context_card_format:"TEXT",context_card_style:d("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:"",context_card_content_cache:c("immutable").Map(),context_card_is_selected:!1,context_card_is_cover_photo_selected:!1};e={custom_disclaimer_consents:c("immutable").OrderedMap(),custom_disclaimer_title:"",custom_disclaimer_editor_state:c("EditorState").createEmpty(),custom_disclaimer_is_selected:!1,privacy_policy_link_text:"",privacy_policy_url:(e=b.privacy_policy_url)!=null?e:""};var l=i(a==null?void 0:a.pii_questions);f={block_display_for_non_targeted_viewer:!0,locale:(f=a==null?void 0:a.locale_string)!=null?f:"en_US",is_optimized_for_quality:!1,form_type:j(b.form_type),is_form_extension_eligible:!0};var m="Please answer the below questions";l=c("immutable").OrderedMap(l.map(function(a){return[a.id,a]}));var n=null,o=new(c("AdsLeadGenFormCreative"))();o=o.set("isCoverPhotoSelected",!0);o=o.set("isUploadingPhoto",!1);var p=c("immutable").List(),q=null,r=c("immutable").OrderedMap(),s=!1,t=!1,u=new(c("AdsLeadGenFormConditionalLogicEndPages"))(),v=c("formatDate")(Date.now()/1e3,"m/d/Y g:ia");g=babelHelpers["extends"]({},h,e,{is_off_facebook:!1,is_optimized_for_quality:f.is_optimized_for_quality,is_optimized_for_creatives:!1,form_type:j(b.form_type),follow_up_action_url:(h=b.privacy_policy_url)!=null?h:"",id:c("guid")(),locale:c("AdsApiLeadGenLocale")[String(c("CurrentLocale").get()).toUpperCase()],name:"Generated untitled "+v,page_id:(e=a==null?void 0:a.page_id)!=null?e:"",status:c("LeadGenDataStatus").ACTIVE,block_display_for_non_targeted_viewer:f.block_display_for_non_targeted_viewer,question_page_custom_headline:m,questions:l,is_created_from_template:!1,is_created_from_auto_generation:!0,is_auto_thread_creation_enabled:!1,thank_you_page:n,disqualified_end_component:q,tracking_parameters:p,creatives_data:o,has_conditional_logic:s,conditional_logic:r,end_pages:u,is_form_extension_eligible:f.is_form_extension_eligible,is_conditional_question_preview_ready:t});b=[];a!=null&&(b=k(a==null?void 0:a.custom_questions));return{form_data:new(c("AdsLeadGenForm"))(g),suggestion_questions:b}}function b(a){var b,e={},f={context_card_button_text:"",context_card_content:(b=c("immutable")).Map(),context_card_cover_photo:null,context_card_format:"TEXT",context_card_style:d("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:"",context_card_content_cache:b.Map(),context_card_is_selected:!1,context_card_is_cover_photo_selected:!1},g={custom_disclaimer_consents:b.OrderedMap(),custom_disclaimer_title:"",custom_disclaimer_editor_state:c("EditorState").createEmpty(),custom_disclaimer_is_selected:!1,privacy_policy_link_text:"",privacy_policy_url:""},j={block_display_for_non_targeted_viewer:!0,locale:"en_US",is_optimized_for_quality:!1,form_type:"MORE_VOLUME",is_form_extension_eligible:!0},k="",l=i(h);l=b.OrderedMap(l.map(function(a){return[a.id,a]}));var m=null,n=new(c("AdsLeadGenFormCreative"))();n=n.set("isCoverPhotoSelected",!0);n=n.set("isUploadingPhoto",!1);var o=b.List(),p=null;b=b.OrderedMap();var q=!1,r=!1,s=new(c("AdsLeadGenFormConditionalLogicEndPages"))(),t=c("formatDate")(Date.now()/1e3,"m/d/Y g:ia");e=babelHelpers["extends"]({},f,g,{is_off_facebook:!1,is_optimized_for_quality:j.is_optimized_for_quality,is_optimized_for_creatives:!1,form_type:"MORE_VOLUME",follow_up_action_url:"",id:a.id,locale:c("AdsApiLeadGenLocale")[String(c("CurrentLocale").get()).toUpperCase()],name:"Untitled "+t,page_id:(f=a==null?void 0:a.page_id)!=null?f:"",status:c("LeadGenDataStatus").ACTIVE,block_display_for_non_targeted_viewer:j.block_display_for_non_targeted_viewer,question_page_custom_headline:k,questions:l,is_created_from_template:!1,is_created_from_auto_generation:!1,is_auto_thread_creation_enabled:!1,thank_you_page:m,disqualified_end_component:p,tracking_parameters:o,creatives_data:n,has_conditional_logic:q,conditional_logic:b,end_pages:s,is_form_extension_eligible:j.is_form_extension_eligible,is_conditional_question_preview_ready:r});return new(c("AdsLeadGenForm"))(e)}function i(a){var b=[];a&&a.forEach(function(a){var e=(a==null?void 0:a.key)!=null?{fieldID:a.key}:{},f=d("AdsLeadGenFormEditorConstants").CMS_PII_MAP[a==null?void 0:a.type];if(f!=null)b.push(new(c("AdsLeadGenFormQuestion"))(babelHelpers["extends"]({answers:c("immutable").List(),id:d("AdsLeadGenFormEditorConstants").CMS_PII_MAP[a==null?void 0:a.type]},e,{label:(a==null?void 0:a.label)||"",questionTypeKey:"prefill"})));else return});return b}function j(a){switch(a){case"MORE_VOLUME":return"MORE_VOLUME";case"HIGHER_INTENT":return"HIGHER_INTENT";default:return"MORE_VOLUME"}}function k(a){var b=[],e=0;a&&a.forEach(function(a){if(a!==null&&(a==null?void 0:a.type)==="CUSTOM"||(a==null?void 0:a.type)==="DATE_TIME"||(a==null?void 0:a.type)==="STORE_LOOKUP"||(a==null?void 0:a.type)==="STORE_LOOKUP_WITH_TYPEAHEAD")if((a==null?void 0:a.options)!=null){var f=a==null?void 0:a.options[0].key;if(f.includes("[")&&f.includes("]")){f=f.split("]")[0].split("[")[1];f=f.split(",");var g=[];f.forEach(function(a){g.push({value:a,key:null})});f=babelHelpers["extends"]({},a,{options:c("immutable").List(g)});b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(f,e++))}else b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(a,e++))}else b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(a,e++))});return b}g.fromAPI=a;g.createClearForm=b}),98);
-----
AdsLeadGenFormTemplateTranslatedContentAPITransformer",["AdsApiLeadGenLocale","AdsLeadGenFormEditorAPITransformer","AdsLeadGenFormEditorQualifiedQuestionTransformer","AdsLeadGenFormRedesignExperiment","CurrentLocale"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){for(var c=0;c
AdsLeadGenAutoFormV2Transformer",["AdsApiLeadGenLocale","AdsLeadGenForm","AdsLeadGenFormConditionalLogicEndPages","AdsLeadGenFormCreative","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorQuestionAPITransformer","AdsLeadGenFormEditorUtils","AdsLeadGenFormQuestion","CurrentLocale","EditorState","LeadGenDataStatus","formatDate","immutable"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e,f,g={},k={context_card_button_text:"",context_card_content:c("immutable").Map(),context_card_cover_photo:null,context_card_format:"TEXT",context_card_style:d("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:"",context_card_content_cache:c("immutable").Map(),context_card_is_selected:!1,context_card_is_cover_photo_selected:!1};e={custom_disclaimer_consents:c("immutable").OrderedMap(),custom_disclaimer_title:"",custom_disclaimer_editor_state:c("EditorState").createEmpty(),custom_disclaimer_is_selected:!1,privacy_policy_link_text:"",privacy_policy_url:(e=b.privacy_policy_url)!=null?e:""};var l=h(a==null?void 0:a.pii_questions);f={block_display_for_non_targeted_viewer:!0,locale:(f=a==null?void 0:a.locale_string)!=null?f:"en_US",is_optimized_for_quality:!1,form_type:i(b.form_type),is_form_extension_eligible:!0};var m="Please answer the below questions";l=c("immutable").OrderedMap(l.map(function(a){return[a.id,a]}));var n=null,o=c("immutable").List(),p=null,q=c("immutable").OrderedMap(),r=!1,s=!1,t=new(c("AdsLeadGenFormConditionalLogicEndPages"))(),u=c("formatDate")(Date.now()/1e3,"m/d/Y g:ia");g=babelHelpers["extends"]({},k,e,{is_off_facebook:!1,is_optimized_for_quality:f.is_optimized_for_quality,is_optimized_for_creatives:!1,form_type:i(b.form_type),follow_up_action_url:(k=b.privacy_policy_url)!=null?k:"",id:d("AdsLeadGenFormEditorUtils").generateNewFormID(),locale:c("AdsApiLeadGenLocale")[String(c("CurrentLocale").get()).toUpperCase()],name:"Generated untitled "+u,page_id:(e=a==null?void 0:a.page_id)!=null?e:"",status:c("LeadGenDataStatus").ACTIVE,block_display_for_non_targeted_viewer:f.block_display_for_non_targeted_viewer,question_page_custom_headline:m,questions:l,is_created_from_template:!1,is_created_from_auto_generation:!0,is_auto_thread_creation_enabled:!1,thank_you_page:n,disqualified_end_component:p,tracking_parameters:o,creatives_data:new(c("AdsLeadGenFormCreative"))(),has_conditional_logic:r,conditional_logic:q,end_pages:t,is_form_extension_eligible:f.is_form_extension_eligible,is_conditional_question_preview_ready:s});b=[];a!=null&&(b=j(a==null?void 0:a.custom_questions));return{form_data:new(c("AdsLeadGenForm"))(g),suggestion_questions:b}}function h(a){var b=[];a&&a.forEach(function(a){var e=(a==null?void 0:a.key)!=null?{fieldID:a.key}:{},f=d("AdsLeadGenFormEditorConstants").CMS_PII_MAP[a==null?void 0:a.type];if(f!=null)b.push(new(c("AdsLeadGenFormQuestion"))(babelHelpers["extends"]({answers:c("immutable").List(),id:d("AdsLeadGenFormEditorConstants").CMS_PII_MAP[a==null?void 0:a.type]},e,{label:(a==null?void 0:a.label)||"",questionTypeKey:"prefill"})));else return});return b}function i(a){switch(a){case"MORE_VOLUME":return"MORE_VOLUME";case"HIGHER_INTENT":return"HIGHER_INTENT";default:return"MORE_VOLUME"}}function j(a){var b=[],e=0;a&&a.forEach(function(a){if(a!==null&&(a==null?void 0:a.type)==="CUSTOM"||(a==null?void 0:a.type)==="DATE_TIME"||(a==null?void 0:a.type)==="STORE_LOOKUP"||(a==null?void 0:a.type)==="STORE_LOOKUP_WITH_TYPEAHEAD")if((a==null?void 0:a.options)!=null){var f=a==null?void 0:a.options[0].key;f=f.split("]")[0].split("[")[1];f=f.split(",");var g=[];f.forEach(function(a){g.push({value:a,key:null})});f=babelHelpers["extends"]({},a,{options:c("immutable").List(g)});b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(f,e++))}else b.push(d("AdsLeadGenFormEditorQuestionAPITransformer").formatCustomizedQuestion(a,e++))});return b}g.fromAPI=a}),98);
-----
AdsLeadGenFormTemplateTranslatedContentAPITransformer",["AdsApiLeadGenLocale","AdsLeadGenFormEditorAPITransformer","AdsLeadGenFormRedesignExperiment","CurrentLocale"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){for(var c=0;c
LWICometLeadGenFormLanguageSelector.react",["fbt","AdsApiLeadGenLocale","AdsLeadGenLocale","CometRowItem.react","CurrentLocale","LWICometRow.react","LWIOmniFormSelect.react","react","useLWICometLeadGenFormContextDispatcher","withLWICometFormContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useMemo;function a(a){a=a.locale;var b=c("useLWICometLeadGenFormContextDispatcher")(),e=k(function(){return Object.keys(c("AdsApiLeadGenLocale")).map(function(a){return{label:d("AdsLeadGenLocale")[c("AdsApiLeadGenLocale")[a]],value:c("AdsApiLeadGenLocale")[a]}})},[]),f=j(function(a){return b({locale:a,type:"lwi_lead_gen_form_reducer.set_locale"})},[b]);return i.jsx(c("LWICometRow.react"),{children:i.jsx(c("CometRowItem.react"),{expanding:!0,children:i.jsx(c("LWIOmniFormSelect.react"),{ariaLabel:h._("{Form Language}u662fu5f53u524du8868u5355u8bedu8a00uff0cu4e0bu62c9u83dcu5355uff0cu53ccu51fbu53efu66f4u6539",[h._param("Form Language",a)]),label:h._("u8868u5355u8bedu8a00"),onValueChange:f,options:e,value:a})})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometFormContext")(a,function(a){return{locale:(a=a.form.locale)!=null?a:c("CurrentLocale").get()}});g["default"]=e}),98);
-----
AdsLWILeadGenCreatorLanguageSelector.react",["cx","AdsApiLeadGenLocale","AdsBulkSingleSelector.react","AdsBulkSingleSelectorOption.react","AdsLWILeadGenCreatorSectionHeader.react","AdsLWILeadGenStrings","AdsLeadGenFormEditorConfigurationSetLocaleAction","AdsLeadGenLocale","ContextualLayerHideOnScroll","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,d;for(var e=arguments.length,f=new Array(e),g=0;g
AdsApiLeadGenLocale",[],(function(a,b,c,d,e,f){a=Object.freeze({AR_AR:"ar_AR",CS_CZ:"cs_CZ",DA_DK:"da_DK",DE_DE:"de_DE",EL_GR:"el_GR",EN_GB:"en_GB",EN_US:"en_US",ES_ES:"es_ES",ES_LA:"es_LA",FI_FI:"fi_FI",FR_FR:"fr_FR",HE_IL:"he_IL",HI_IN:"hi_IN",HU_HU:"hu_HU",ID_ID:"id_ID",IT_IT:"it_IT",JA_JP:"ja_JP",KO_KR:"ko_KR",NB_NO:"nb_NO",NL_NL:"nl_NL",PL_PL:"pl_PL",PT_BR:"pt_BR",PT_PT:"pt_PT",RO_RO:"ro_RO",RU_RU:"ru_RU",SV_SE:"sv_SE",TH_TH:"th_TH",TR_TR:"tr_TR",VI_VN:"vi_VN",ZH_CN:"zh_CN",ZH_HK:"zh_HK",ZH_TW:"zh_TW"});f["default"]=a}),66);
-----
AdsLeadGenForm",["AdsApiLeadGenLocale","AdsLeadGenFormBase","AdsLeadGenFormConditionalLogicEndPages","AdsLeadGenFormConstants","AdsLeadGenFormCreative","AdsLeadGenFormEditorConstants","AdsLeadGenFormUtils","AdsLeadGenLinkDecorator","CurrentLocale","EditorState","adsCreateAdAccountGKSelector","guid","immutable"],(function(a,b,c,d,e,f,g){"use strict";var h="-";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.getQuestion=function(a){return this.get("questions").get(a)};e.getCustomQuestions=function(){var a=this.get("questions");return a.filter(function(a){return a.get("questionTypeKey")!="prefill"})};e.deleteQuestion=function(a){return this.set("questions",this.get("questions")["delete"](a))};e.updateQuestion=function(a){var b=this.get("questions");return!b.has(a.get("id"))?this:this.set("questions",b.set(a.get("id"),a))};e.deleteConsent=function(a){a=this.get("custom_disclaimer_consents")["delete"](a);return this.set("custom_disclaimer_consents",a)};e.updateConsent=function(a){var b=this.get("custom_disclaimer_consents");return!b.has(a.get("id"))?this:this.set("custom_disclaimer_consents",b.set(a.get("id"),a))};e.getMCQStyleQuestions=function(){var a=this.getCustomQuestions();return b.getMCQStyleQuestions(a)};e.getQualifyingQuestions=function(){var a=this.getCustomQuestions();return b.getQualifyingQuestions(a)};e.getQualifyingQuestion=function(){var a=this.getQualifyingQuestions();return a.size>0?a.valueSeq().first():null};e.getRegularCustomQuestions=function(){var a=this.getCustomQuestions();return b.getRegularCustomQuestions(a)};e.getPrefillQuestions=function(){var a=this.get("questions");return b.getPrefillQuestions(a)};e.getConsent=function(a){return this.get("custom_disclaimer_consents").get(a)};e.getCustomQuestionsOfType=function(a){var b=this.getCustomQuestions();return b.filter(function(b){return b.get("questionTypeKey")===a})};e.getConditionalQuestion=function(){return this.getCustomQuestionsOfType("conditional").first()};e.getStoreLookupQuestion=function(){return this.getCustomQuestionsOfType("store-lookup").first()};e.getStoreLookupCityStateQuestion=function(){return this.getCustomQuestionsOfType("store-lookup-typeahead").first()};e.getAppointmentSchedulingQuestion=function(){return this.getCustomQuestionsOfType("date-time").first()};e.hasContextCard=function(){return this.get("context_card_is_selected")};e.hasStandardUserInfoQuestions=function(){return this.getPrefillQuestions().size>0};e.hasCustomQuestion=function(){var a=this.getCustomQuestions();return a.size>0};e.hasCustomQuestionWithoutQualifyingQuestion=function(){var a=this.getCustomQuestions();return a.filter(function(a){return a.get("questionTypeKey")!=="qualifying-question"}).size>0};e.hasQualifyingQuestion=function(){return this.getQualifyingQuestions().size>0};e.hasGatedContent=function(){var a=this.get("thank_you_page");return(a==null?void 0:a.button_type)==="VIEW_ON_FACEBOOK"};e.hasPrefillZipCodeOrPostCodeQuestions=function(){var a=this.getPrefillQuestions();return a.filter(function(a,b){return b===d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.ZIP||b===d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.POST_CODE}).size>0};e.hasZipCodeAndStoreLookUpQuestions=function(){var a=!!(this.getStoreLookupCityStateQuestion()||this.getStoreLookupQuestion()),b=this.getPrefillQuestions(),c=this.hasPrefillZipCodeOrPostCodeQuestions();b=b.filter(function(a,b){return b!==d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.ZIP&&b!==d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.POST_CODE}).size>0;return a&&c&&!b};e.getZipCodeOrPostCodeQuestions=function(){if(this.hasPrefillZipCodeOrPostCodeQuestions()){var a=this.getPrefillQuestions();return a.filter(function(a,b){return b===d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.ZIP||b===d("AdsLeadGenFormEditorConstants").CMS_PII_MAP.POST_CODE}).first()}};e.isAtMaxQuestionCount=function(){return this.get("questions").size>=c("AdsLeadGenFormConstants").MAX_NUM_CUSTOM_QUESTIONS};e.isAtMaxConditionalQuestionCount=function(){return this.getCustomQuestionsOfType("conditional").size>=c("AdsLeadGenFormConstants").MAX_NUM_CONDITIONAL_QUESTION_GROUPS};e.isAtMaxStoreLookupQuestionCount=function(){return this.getCustomQuestionsOfType("store-lookup").size+this.getCustomQuestionsOfType("store-lookup-typeahead").size>=c("AdsLeadGenFormConstants").MAX_NUM_STORE_LOOKUP_QUESTIONS};e.isAtMaxAppointmentSchedulingQuestionCount=function(){return this.getCustomQuestionsOfType("date-time").size>=c("AdsLeadGenFormConstants").MAX_NUM_APPOINTMENT_SCHEDULING_QUESTIONS};e.isNewForm=function(){return this.get("id").startsWith(h)};e.hasReviewScreen=function(){return this.get("is_optimized_for_quality")&&this.hasStandardUserInfoQuestions()};e.clearAllDefaltFieldIDs=function(a){return this.clearCustomizedQuestionDefaultFieldIDs(a).clearCustomDisclaimerConsentDefaultFieldIDs()};e.clearCustomizedQuestionDefaultFieldIDs=function(a){var b=this,c=this.get("questions").map(function(c,e){c.get("fieldID")&&c.get("fieldID")===b.$AdsLeadGenForm1(c,a)&&(c=c.set("fieldID",""));c.get("answers")&&(c=c.set("answers",c.get("answers").map(function(a){a.fieldID===d("AdsLeadGenFormUtils").getDefaultFieldID(a.answer)&&(a.fieldID="");return a})));return c});return this.set("questions",c)};e.clearCustomDisclaimerConsentDefaultFieldIDs=function(){return this.set("custom_disclaimer_consents",this.get("custom_disclaimer_consents").map(function(a,b){return a.get("fieldID")===d("AdsLeadGenFormUtils").getDefaultFieldID(a.get("content"))?a.set("fieldID",""):a}))};b.getLocale=function(){var a=c("adsCreateAdAccountGKSelector")._("HokVPuuS")(),b=String(c("CurrentLocale").get()).toUpperCase();return a&&Object.prototype.hasOwnProperty.call(c("AdsApiLeadGenLocale"),b)?c("AdsApiLeadGenLocale")[b]:"en_US"};b.createNewForm=function(){return new b({block_display_for_non_targeted_viewer:!0,context_card_button_text:"",context_card_content:c("immutable").Map(),context_card_content_cache:c("immutable").Map(),context_card_cover_photo:null,context_card_format:"TEXT",context_card_is_cover_photo_selected:!1,context_card_is_selected:!0,context_card_style:d("AdsLeadGenFormEditorConstants").DEFAULTS.CONTEXT_CARD_STYLE,context_card_title:"",custom_disclaimer_consents:c("immutable").OrderedMap(),custom_disclaimer_editor_state:c("EditorState").createEmpty(c("AdsLeadGenLinkDecorator")),custom_disclaimer_is_selected:!1,custom_disclaimer_title:"",follow_up_action_url:"",id:i(),is_off_facebook:!1,is_optimized_for_quality:!1,is_optimized_for_creatives:!1,form_type:"MORE_VOLUME",locale:this.getLocale(),name:"",page_id:"1",question_page_custom_headline:"",questions:c("immutable").OrderedMap(),conditional_logic:c("immutable").OrderedMap(),has_conditional_logic:!1,privacy_policy_link_text:"",privacy_policy_url:"",status:"ACTIVE",thank_you_page:null,creatives_data:new(c("AdsLeadGenFormCreative"))({}),end_pages:new(c("AdsLeadGenFormConditionalLogicEndPages"))(),disqualified_end_component:null,default_disqualified_end_component:null,default_thank_you_page:null,tracking_parameters:c("immutable").List.of({name:"",value:""})})};b.getQualifyingQuestions=function(a){return a.filter(function(a){a=a.get("questionTypeKey");return a==="qualifying-question"})};b.getMCQStyleQuestions=function(a){return a.filter(function(a){a=a.get("questionTypeKey");return a==="multiple-choice"||a==="conditional"})};b.getRegularCustomQuestions=function(a){return a.filter(function(a){a=a.get("questionTypeKey");return["short-answer","store-lookup","store-lookup-typeahead","date-time"].indexOf(a)>=0})};b.getPrefillQuestions=function(a){return a.filter(function(a){return a.get("questionTypeKey")==="prefill"})};e.$AdsLeadGenForm1=function(a,b){var c=a.get("label");b!=null&&b.has(String(a.get("id")))&&(c=b.get(String(a.get("id"))).label);return d("AdsLeadGenFormUtils").getDefaultFieldID(c)};return b}(c("AdsLeadGenFormBase"));var i=function(){return h+c("guid")()};g["default"]=a}),98);
-----
AdsLeadGenFormEditorSettingsConfigurationSectionV2.react",["cx","fbt","AdsApiLeadGenLocale","AdsLeadGenFormEditorConstants","AdsLeadGenFormEditorFunnelLogger","AdsLeadGenFormEditorFunnelLoggerConstants","AdsLeadGenFormEditorSection.react","AdsLeadGenLocale","GeoBaseText.react","GeoRadioList.react","GeoRadioListItem.react","GeoSelector.react","GeoSelectorItem.react","GeoTooltip.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l=i._("u8868u5355u914du7f6e"),m=i._("u8bedu8a00"),n=i._("u5e7fu544au53d7u4f17u67e5u770bu8868u5355u65f6u663eu793au7684u8bedu8a00u3002"),o=i._("u8868u5355u5206u4eab"),p=i._("u9ed8u8ba4u60c5u51b5u4e0buff0cu53eau6709u5e7fu544au7684u76f4u63a5u6295u653eu5bf9u8c61u624du80fdu770bu5230u5e76u63d0u4ea4u8868u5355u3002u9009u62e9u201cu5f00u653eu201du5373u53efu5141u8bb8u7528u6237u4e0eu597du53cbu5206u4eabu8868u5355uff0cu5e76u5141u8bb8u8bc4u8bbau4e2du6807u8bb0u7684u7528u6237u63d0u4ea4u8868u5355u3002"),q=[{value:!0,label:i._("{title for the option}{=m2}{more description for the option}",[i._param("title for the option",j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",weight:"bold",children:i._("u9650u5236")})),i._param("more description for the option",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("u53eau6709u5e7fu544au76f4u63a5u6295u653eu7684u5bf9u8c61u80fdu591fu63d0u4ea4u8868u5355u3002")})),i._implicitParam("=m2",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("uff1a")}))])},{value:!1,label:i._("{title for the option}{=m2}{more description for the option}",[i._param("title for the option",j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",weight:"bold",children:i._("u5f00u653e")})),i._param("more description for the option",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("u4f60u7684u5e7fu544au53efu4ee5u88abu5206u4eabuff0cu4efbu4f55u7528u6237u90fdu80fdu63d0u4ea4u6b64u8868u5355u3002")})),i._implicitParam("=m2",j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("uff1a")}))])}];function a(a){return j.jsx(c("AdsLeadGenFormEditorSection.react"),{contentTab:"settingsTab",dataTestID:"ADS_LEADGEN_FORM_EDITOR_SETTINGS_CONFIGURATION_HEADER",expandedSectionID:a.expandedSection,isCollapsible:!0,label:l,sectionID:d("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.CONFIGURATION,children:a.expandedSection===d("AdsLeadGenFormEditorConstants").SETTINGS_TAB.SECTIONS.CONFIGURATION?j.jsxs("div",{className:"_23mr",children:[j.jsx(r,{selectedLanguage:a.language,onChange:a.onLanguageChange}),j.jsx("div",{className:"_3-8z"}),j.jsx(s,{selectedSharing:a.blockDisplayForNonTargetedViewer,onChange:a.onBlockDisplayForNonTargetedViewerChange})]}):null})}a.displayName=a.name+" [from "+f.id+"]";function r(a){var b=a.selectedLanguage;a=a.onChange;var e=k(function(){d("AdsLeadGenFormEditorFunnelLogger").appendAction(d("AdsLeadGenFormEditorFunnelLoggerConstants").FUNNEL_LOGGING_EVENTS.CLICK_FORM_LOCALE_SELECTOR)},[]);return j.jsx(c("GeoSelector.react"),{"data-testid":void 0,label:m,tooltipText:n,value:b,onChange:a,onClick:e,children:Object.entries(c("AdsApiLeadGenLocale")).map(function(a){var b=a[0];a=a[1];return j.jsx(c("GeoSelectorItem.react"),{label:c("AdsLeadGenLocale")[a],value:a},b)})})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b=a.selectedSharing;a=a.onChange;return j.jsx(c("GeoRadioList.react"),{"data-testid":void 0,label:o,tooltip:j.jsx(c("GeoTooltip.react"),{content:p}),value:b,onChange:a,children:q.map(function(a,b){return j.jsx(c("GeoRadioListItem.react"),babelHelpers["extends"]({},a),b)})})}s.displayName=s.name+" [from "+f.id+"]";g["default"]=a}),98);
-----