(()=>{"use strict";var e,t,n={6023:(e,t,n)=>{n.d(t,{E1:()=>E,om:()=>p,tY:()=>d});var a=n(1609),s=n(7723),i=n(6427),o=n(6087),r=n(3905);const c=Symbol("sharedMax"),d=[{maxCharacterCount:15,capitalizedName:(0,s._x)("The first display URL path","Capitalized asset field name as the start of an error message","google-listings-and-ads")},{maxCharacterCount:15,capitalizedName:(0,s._x)("The second display URL path","Capitalized asset field name as the start of an error message","google-listings-and-ads")}],l=[{key:r.Ms.MARKETING_IMAGE,min:1,imageConfig:{minWidth:600,minHeight:314,suggestedWidth:1200,suggestedHeight:628},heading:(0,s._x)("Landscape images","Plural asset field name as the heading","google-listings-and-ads"),helpSubheading:(0,s._x)("Landscape image (1.91:1)","Asset field name with its aspect ratio as the subheading within a help tip","google-listings-and-ads"),lowercaseName:(0,s._x)("landscape","Lowercase asset field name","google-listings-and-ads")},{key:r.Ms.SQUARE_MARKETING_IMAGE,min:1,imageConfig:{minWidth:300,minHeight:300,suggestedWidth:1200,suggestedHeight:1200},heading:(0,s._x)("Square images","Plural asset field name as the heading","google-listings-and-ads"),helpSubheading:(0,s._x)("Square image (1:1)","Asset field name with its aspect ratio as the subheading within a help tip","google-listings-and-ads"),lowercaseName:(0,s._x)("square","Lowercase asset field name","google-listings-and-ads")},{key:r.Ms.PORTRAIT_MARKETING_IMAGE,min:0,imageConfig:{minWidth:480,minHeight:600,suggestedWidth:960,suggestedHeight:1200},heading:(0,s._x)("Portrait images","Plural asset field name as the heading","google-listings-and-ads"),helpSubheading:(0,s._x)("Portrait image (4:5)","Asset field name with its aspect ratio as the subheading within a help tip","google-listings-and-ads"),lowercaseName:(0,s._x)("portrait","Lowercase asset field name","google-listings-and-ads")}],g=[{key:r.Ms.LOGO,min:1,imageConfig:{minWidth:128,minHeight:128,suggestedWidth:1200,suggestedHeight:1200},heading:(0,s._x)("Logo","Plural asset field name as the heading","google-listings-and-ads"),helpSubheading:(0,s._x)("Logo (1:1)","Asset field name with its aspect ratio as the subheading within a help tip","google-listings-and-ads"),lowercaseName:(0,s._x)("logo","Lowercase asset field name","google-listings-and-ads")}];l[c]=20,g[c]=5;const u=[l,g],p=u.flat(),E=[{key:r.Ms.BUSINESS_NAME,min:1,max:1,maxCharacterCounts:25,heading:(0,s._x)("Business name","Plural asset field name as the heading","google-listings-and-ads"),capitalizedName:(0,s._x)("Business name","Capitalized asset field name as the placeholder or the start of an error message","google-listings-and-ads"),lowercaseSingularName:(0,s._x)("business name","Singular and lowercase asset field name","google-listings-and-ads"),help:(0,s.__)("The business name is the name of your business or brand. In certain layouts, it may appear in the text of your ad.","google-listings-and-ads")},{key:r.Ms.HEADLINE,min:3,max:5,maxCharacterCounts:[15,30,30,30,30],heading:(0,s._x)("Headlines","Plural asset field name as the heading","google-listings-and-ads"),extraSubheading:(0,a.createElement)(i.ExternalLink,{href:"https://support.google.com/google-ads/answer/6167101"},(0,s.__)("Learn how to write effective ads","google-listings-and-ads")),addButtonText:(0,s.__)("Add headline","google-listings-and-ads"),capitalizedName:(0,s._x)("Headline","Capitalized asset field name as the placeholder or the start of an error message","google-listings-and-ads"),lowercaseSingularName:(0,s._x)("headline","Singular and lowercase asset field name","google-listings-and-ads"),lowercasePluralName:(0,s._x)("headlines","Plural and lowercase asset field name","google-listings-and-ads"),help:(0,s.__)("The headline is the first line of your ad and is most likely the first thing people notice, so consider including words that people may have entered in their Google search.","google-listings-and-ads")},{key:r.Ms.LONG_HEADLINE,min:1,max:5,maxCharacterCounts:90,heading:(0,s._x)("Long headlines","Plural asset field name as the heading","google-listings-and-ads"),addButtonText:(0,s.__)("Add long headline","google-listings-and-ads"),capitalizedName:(0,s._x)("Long headline","Capitalized asset field name as the placeholder or the start of an error message","google-listings-and-ads"),lowercaseSingularName:(0,s._x)("long headline","Singular and lowercase asset field name","google-listings-and-ads"),lowercasePluralName:(0,s._x)("long headlines","Plural and lowercase asset field name","google-listings-and-ads"),help:(0,a.createElement)(o.Fragment,null,(0,a.createElement)("div",null,(0,s.__)("The long headline is the first line of your ad, and appears instead of your short headline in larger ads. Long headlines can be up to 90 characters, and may appear with or without your description.","google-listings-and-ads")),(0,a.createElement)("div",null,(0,s.__)("The length of the rendered headline will depend on the site it appears on. If shortened, it will end with an ellipsis(…).","google-listings-and-ads")))},{key:r.Ms.DESCRIPTION,min:2,max:5,maxCharacterCounts:[60,90,90,90,90],heading:(0,s._x)("Descriptions","Plural asset field name as the heading","google-listings-and-ads"),addButtonText:(0,s.__)("Add description","google-listings-and-ads"),capitalizedName:(0,s._x)("Description","Capitalized asset field name as the placeholder or the start of an error message","google-listings-and-ads"),lowercaseSingularName:(0,s._x)("description","Singular and lowercase asset field name","google-listings-and-ads"),lowercasePluralName:(0,s._x)("descriptions","Plural and lowercase asset field name","google-listings-and-ads"),help:(0,a.createElement)(o.Fragment,null,(0,a.createElement)("div",null,(0,s.__)("The description adds to the headline and provides additional context or details. It can be up to 90 characters, and may appear after the headline.","google-listings-and-ads")),(0,a.createElement)("div",null,(0,s.__)("The length of the rendered description will depend on the site it appears on. If it's shortened, it will end with an ellipsis(…). The description doesn't show in all sizes and formats.","google-listings-and-ads")))}];{function _(e){const t=(0,s._x)(", ","The separator for concatenating the types of assets","google-listings-and-ads");return(0,s.sprintf)(
// translators: 1: Concatenated text for the types of assets except for the last one. 2: The last type of assets.
// translators: 1: Concatenated text for the types of assets except for the last one. 2: The last type of assets.
(0,s.__)("%1$s and %2$s","google-listings-and-ads"),e.slice(0,-1).join(t),e.at(-1))}function h(e,t){if(t){if(0===e.min)return;return(0,s.sprintf)(
// translators: 1: The minimal number of this item.
// translators: 1: The minimal number of this item.
(0,s.__)("At least %d required","google-listings-and-ads"),e.min)}if(!e.requiredSingleValue)return(0,s.sprintf)(
// translators: 1: The minimal number of this item. 2: The maximum number of this item.
// translators: 1: The minimal number of this item. 2: The maximum number of this item.
(0,s.__)("At least %1$d required. Add up to %2$d.","google-listings-and-ads"),e.min,e.max)}function m(e,t){const{helpSubheading:n,imageConfig:i}=e,r=(0,a.createElement)("ul",null,(0,o.createInterpolateElement)((0,s.sprintf)(
// translators: 1: Recommended width. 2: Recommended height. 3: Minimal width. 4: Minimal height.
// translators: 1: Recommended width. 2: Recommended height. 3: Minimal width. 4: Minimal height.
(0,s.__)("Recommended size: %1$d x %2$dMin. size: %3$d x %4$d","google-listings-and-ads"),i.suggestedWidth,i.suggestedHeight,i.minWidth,i.minHeight),{listItem:(0,a.createElement)("li",null)}));return(0,a.createElement)(o.Fragment,{key:e.key},(0,a.createElement)("div",null,(0,a.createElement)("strong",null,n),t&&r),!t&&r)}function C(e){const t=e.map((e=>e.lowercaseName)),n=(0,s.sprintf)(
// translators: 1: The maximum number of this image assets. 2: Text for the types of image assets.
// translators: 1: The maximum number of this image assets. 2: Text for the types of image assets.
(0,s.__)("You can add up to a maximum of %1$d image assets, which can be a combination of %2$s images.","google-listings-and-ads"),e[c],_(t));return(0,a.createElement)("div",null,n)}function T(e,t){const n=e.map((e=>m(e,t)));return(0,a.createElement)(o.Fragment,null,t&&C(e),(0,a.createElement)("div",null,(0,s.__)("Add images that meet or can be cropped to the recommended sizes. Note: The maximum file size for any image is 5120 KB.","google-listings-and-ads")),n)}function A(e,t,n){return t.reduce(((e,t)=>t.key===this.key?e:e-Math.max(t.min,n[t.key].length)),e)}function S(e,t,n){if(t.reduce(((e,t)=>e+n[t.key].length),0)===e)return(0,s.sprintf)(
// translators: The shared maximum number of the grouped types of image assets.
// translators: The shared maximum number of the grouped types of image assets.
(0,s.__)("The maximum number of images that can be uploaded is %d.","google-listings-and-ads"),e);const a=t.filter((e=>e.min>0)).map((e=>(0,s.sprintf)(
// translators: 1: The minimum number of this asset field. 2: Asset field name.
// translators: 1: The minimum number of this asset field. 2: Asset field name.
(0,s.__)("%1$d %2$s","google-listings-and-ads"),e.min,e.lowercaseName)));return(0,s.sprintf)(
// translators: 1: The shared maximum number of the grouped types of image assets. 2: Text for the minimum number and type of each image asset.
// translators: 1: The shared maximum number of the grouped types of image assets. 2: Text for the minimum number and type of each image asset.
(0,s.__)("Maximum %1$d images can be uploaded, with a minimum of %2$s image.","google-listings-and-ads"),e,_(a))}u.forEach((e=>{const t=e.length>1,n=e[c],a=T(e,t);e.forEach((s=>{!t&&Number.isInteger(n)&&(s.max=n),s.subheading=h(s,t),s.help=a,s.getMax=A.bind(s,n,e),s.getMaxNumberTip=t?S.bind(null,n,e):()=>null}))})),E.forEach((e=>{e.requiredSingleValue=1===e.min&&1===e.max,e.subheading=h(e)}))}},3905:(e,t,n)=>{n.d(t,{$g:()=>y,CX:()=>I,DA:()=>i,K4:()=>l,Ms:()=>G,Mx:()=>o,Q:()=>s,Th:()=>a,Tj:()=>m,WR:()=>S,Wn:()=>A,X4:()=>T,Z3:()=>_,ZD:()=>N,aL:()=>R,ac:()=>P,ds:()=>h,iH:()=>u,k1:()=>r,km:()=>E,ll:()=>O,r6:()=>c,rS:()=>g,s_:()=>d,vL:()=>f,zU:()=>C});const a=window.glaData,s=(window.glaProductData,0),i="report-source",o="paid",r="free",c=o,d="programs",l={SUBMISSION_SUCCESS:"submission-success",CAMPAIGN_CREATION_SUCCESS:"campaign-creation-success"},g={CAN_ONBOARDING_SETUP_CES_PROMPT_OPEN:"gla-can-onboarding-setup-ces-prompt-open"},u={WPCOM_DISCONNECTED:"JETPACK_DISCONNECTED",GOOGLE_DISCONNECTED:"GOOGLE_DISCONNECTED"},p=[["CAMPAIGN","campaign"],["ASSET_GROUP","asset-group"]],E=Object.fromEntries(p),_=p.reduce(((e,t,n)=>{const a=(n+1).toString();return e[t[1]]=a,e}),{}),h="product",m="account",C="request-review",T=5,A={CONNECTED:"connected",DISCONNECTED:"disconnected",INCOMPLETE:"incomplete"},S={CONNECTED:"connected",DISCONNECTED:"disconnected",INCOMPLETE:"incomplete"},I={UNKNOWN:"unknown",PENDING:"pending",APPROVED:"approved",CANCELLED:"cancelled"},R={ALL:"ALL",EXCEPT:"EXCEPT",ONLY:"ONLY"},f=5,y="performance_max",N={BUSINESS_NAME:"business_name",MARKETING_IMAGE:"marketing_image",SQUARE_MARKETING_IMAGE:"square_marketing_image",PORTRAIT_MARKETING_IMAGE:"portrait_marketing_image",LOGO:"logo",HEADLINE:"headline",LONG_HEADLINE:"long_headline",DESCRIPTION:"description",CALL_TO_ACTION_SELECTION:"call_to_action_selection"},O={FINAL_URL:"final_url",DISPLAY_URL_PATH:"display_url_path"},G={...N,...O},P={APPROVED:"approved",DISAPPROVED:"disapproved",ERROR:"error",DISABLED:"disabled"}},6520:(e,t,n)=>{n.d(t,{RV:()=>i,Ui:()=>s,W1:()=>r,fP:()=>c,mY:()=>o});var a=n(3905);const s="wc/gla",i="/wc/gla",o="core/notices",r={DELETE:"DELETE",POST:"POST"},c={assets:{},[a.ll.FINAL_URL]:"",[a.ll.DISPLAY_URL_PATH]:[]}},3658:(e,t,n)=>{n.d(t,{U:()=>g.Ui,j:()=>Wt});var a={};n.r(a),n.d(a,{createAdsCampaign:()=>Y,createCampaignAssetGroup:()=>Z,createMappingRule:()=>pe,deleteAdsCampaign:()=>J,deleteMappingRule:()=>_e,deleteShippingRates:()=>y,deleteShippingTimes:()=>G,disconnectAllAccounts:()=>$,disconnectGoogleAccount:()=>x,disconnectGoogleAdsAccount:()=>F,fetchExistingGoogleAdsAccounts:()=>B,fetchExistingGoogleMCAccounts:()=>L,fetchGoogleAccount:()=>D,fetchGoogleAdsAccount:()=>v,fetchGoogleAdsAccountBillingStatus:()=>H,fetchGoogleAdsAccountStatus:()=>Ae,fetchGoogleMCAccount:()=>V,fetchJetpackAccount:()=>U,fetchMCSetup:()=>ae,fetchSettings:()=>P,fetchShippingRates:()=>R,fetchShippingTimes:()=>N,fetchTargetAudience:()=>W,hydratePrefetchedData:()=>I,receiveAdsAccount:()=>Q,receiveGoogleAccountAccess:()=>b,receiveGoogleAdsAccountBillingStatus:()=>k,receiveGoogleMCContactInformation:()=>j,receiveGtinMigrationStatus:()=>Te,receiveMCAccount:()=>z,receiveMCIssues:()=>oe,receiveMCProductFeed:()=>re,receiveMCProductStatistics:()=>se,receiveMCReviewRequest:()=>ie,receiveMCSetup:()=>ne,receiveMappingAttributes:()=>le,receiveMappingRules:()=>ue,receiveMappingSources:()=>ge,receiveReport:()=>te,receiveStoreCategories:()=>he,receiveTour:()=>me,saveSettings:()=>w,saveTargetAudience:()=>K,sendMCReviewRequest:()=>de,syncSettings:()=>M,updateAdsCampaign:()=>X,updateCampaignAssetGroup:()=>ee,updateGoogleMCContactInformation:()=>q,updateMCProductVisibility:()=>ce,updateMappingRule:()=>Ee,upsertShippingRates:()=>f,upsertShippingTimes:()=>O,upsertTour:()=>Ce});var s={};n.r(s),n.d(s,{getAdsBudgetRecommendations:()=>at,getAdsCampaigns:()=>ke,getCampaignAssetGroups:()=>He,getDashboardPerformance:()=>Ye,getExistingGoogleAdsAccounts:()=>ve,getExistingGoogleMCAccounts:()=>be,getGeneral:()=>Ne,getGoogleAccount:()=>Me,getGoogleAccountAccess:()=>Ue,getGoogleAdsAccount:()=>Ve,getGoogleAdsAccountBillingStatus:()=>Le,getGoogleAdsAccountStatus:()=>nt,getGoogleMCAccount:()=>De,getGoogleMCContactInformation:()=>xe,getGtinMigrationStatus:()=>st,getJetpackAccount:()=>we,getMCCountriesAndContinents:()=>Fe,getMCIssues:()=>We,getMCProductFeed:()=>ze,getMCProductStatistics:()=>je,getMCReviewRequest:()=>qe,getMCSetup:()=>Be,getMappingAttributes:()=>Xe,getMappingRules:()=>Ze,getMappingSources:()=>Je,getReport:()=>Ke,getReportByApiQuery:()=>Qe,getSettings:()=>Pe,getShippingRates:()=>Oe,getShippingTimes:()=>Ge,getStoreCategories:()=>et,getTargetAudience:()=>$e,getTour:()=>tt});var i={};n.r(i),n.d(i,{getAdsBudgetRecommendations:()=>xt,getAdsCampaigns:()=>Rt,getCampaignAssetGroups:()=>ft,getExistingGoogleAdsAccounts:()=>Tt,getExistingGoogleMCAccounts:()=>ht,getGoogleAccount:()=>pt,getGoogleAccountAccess:()=>Et,getGoogleAdsAccount:()=>mt,getGoogleAdsAccountBillingStatus:()=>Ct,getGoogleAdsAccountStatus:()=>vt,getGoogleMCAccount:()=>_t,getGoogleMCContactInformation:()=>At,getGtinMigrationStatus:()=>Ft,getJetpackAccount:()=>ut,getMCCountriesAndContinents:()=>St,getMCIssues:()=>Gt,getMCProductFeed:()=>Pt,getMCProductStatistics:()=>Nt,getMCReviewRequest:()=>Ot,getMCSetup:()=>yt,getMappingAttributes:()=>Ut,getMappingRules:()=>bt,getMappingSources:()=>Dt,getReportByApiQuery:()=>Mt,getSettings:()=>gt,getShippingRates:()=>dt,getShippingTimes:()=>lt,getStoreCategories:()=>Vt,getTargetAudience:()=>It,getTour:()=>Lt});var o=n(7143),r=n(1455),c=n.n(r),d=n(6476),l=n(3905),g=n(6520);const u=window.wp.dataControls;var p=n(7723);const E={RECEIVE_SHIPPING_RATES:"RECEIVE_SHIPPING_RATES",UPSERT_SHIPPING_RATES:"UPSERT_SHIPPING_RATES",DELETE_SHIPPING_RATES:"DELETE_SHIPPING_RATES",RECEIVE_SHIPPING_TIMES:"RECEIVE_SHIPPING_TIMES",UPSERT_SHIPPING_TIMES:"UPSERT_SHIPPING_TIMES",DELETE_SHIPPING_TIMES:"DELETE_SHIPPING_TIMES",RECEIVE_SETTINGS:"RECEIVE_SETTINGS",SAVE_SETTINGS:"SAVE_SETTINGS",RECEIVE_ACCOUNTS_JETPACK:"RECEIVE_ACCOUNTS_JETPACK",RECEIVE_ACCOUNTS_GOOGLE:"RECEIVE_ACCOUNTS_GOOGLE",RECEIVE_ACCOUNTS_GOOGLE_ACCESS:"RECEIVE_ACCOUNTS_GOOGLE_ACCESS",RECEIVE_ACCOUNTS_GOOGLE_MC:"RECEIVE_ACCOUNTS_GOOGLE_MC",RECEIVE_ACCOUNTS_GOOGLE_MC_EXISTING:"RECEIVE_ACCOUNTS_GOOGLE_MC_EXISTING",RECEIVE_ACCOUNTS_GOOGLE_ADS:"RECEIVE_ACCOUNTS_GOOGLE_ADS",DISCONNECT_ACCOUNTS_GOOGLE:"DISCONNECT_ACCOUNTS_GOOGLE",DISCONNECT_ACCOUNTS_GOOGLE_ADS:"DISCONNECT_ACCOUNTS_GOOGLE_ADS",DISCONNECT_ACCOUNTS_ALL:"DISCONNECT_ACCOUNTS_ALL",RECEIVE_ACCOUNTS_GOOGLE_ADS_BILLING_STATUS:"RECEIVE_ACCOUNTS_GOOGLE_ADS_BILLING_STATUS",RECEIVE_ACCOUNTS_GOOGLE_ADS_EXISTING:"RECEIVE_ACCOUNTS_GOOGLE_ADS_EXISTING",RECEIVE_MC_CONTACT_INFORMATION:"RECEIVE_MC_CONTACT_INFORMATION",RECEIVE_MC_COUNTRIES_AND_CONTINENTS:"RECEIVE_MC_COUNTRIES_AND_CONTINENTS",RECEIVE_TARGET_AUDIENCE:"RECEIVE_TARGET_AUDIENCE",SAVE_TARGET_AUDIENCE:"SAVE_TARGET_AUDIENCE",RECEIVE_ADS_CAMPAIGNS:"RECEIVE_ADS_CAMPAIGNS",CREATE_ADS_CAMPAIGN:"CREATE_ADS_CAMPAIGN",UPDATE_ADS_CAMPAIGN:"UPDATE_ADS_CAMPAIGN",DELETE_ADS_CAMPAIGN:"DELETE_ADS_CAMPAIGN",RECEIVE_CAMPAIGN_ASSET_GROUPS:"RECEIVE_CAMPAIGN_ASSET_GROUPS",CREATE_CAMPAIGN_ASSET_GROUP:"CREATE_CAMPAIGN_ASSET_GROUP",UPDATE_CAMPAIGN_ASSET_GROUP:"UPDATE_CAMPAIGN_ASSET_GROUP",RECEIVE_MC_SETUP:"RECEIVE_MC_SETUP",RECEIVE_REPORT:"RECEIVE_REPORT",RECEIVE_MC_PRODUCT_STATISTICS:"RECEIVE_MC_PRODUCT_STATISTICS",RECEIVE_MC_REVIEW_REQUEST:"RECEIVE_MC_REVIEW_REQUEST",RECEIVE_MC_ISSUES:"RECEIVE_MC_ISSUES",RECEIVE_MC_PRODUCT_FEED:"RECEIVE_MC_PRODUCT_FEED",UPDATE_MC_PRODUCTS_VISIBILITY:"UPDATE_MC_PRODUCTS_VISIBILITY",RECEIVE_MAPPING_ATTRIBUTES:"RECEIVE_MAPPING_ATTRIBUTES",RECEIVE_MAPPING_SOURCES:"RECEIVE_MAPPING_SOURCES",RECEIVE_MAPPING_RULES:"RECEIVE_MAPPING_RULES",UPSERT_MAPPING_RULE:"UPSERT_MAPPING_RULE",DELETE_MAPPING_RULE:"DELETE_MAPPING_RULE",RECEIVE_STORE_CATEGORIES:"RECEIVE_STORE_CATEGORIES",RECEIVE_TOUR:"RECEIVE_TOUR",UPSERT_TOUR:"UPSERT_TOUR",HYDRATE_PREFETCHED_DATA:"HYDRATE_PREFETCHED_DATA",RECEIVE_GOOGLE_ADS_ACCOUNT_STATUS:"RECEIVE_GOOGLE_ADS_ACCOUNT_STATUS",RECEIVE_ADS_BUDGET_RECOMMENDATIONS:"RECEIVE_ADS_BUDGET_RECOMMENDATIONS",RECEIVE_GTIN_MIGRATION_STATUS:"RECEIVE_GTIN_MIGRATION_STATUS"};var _=n(8998),h=n(6023),m=n(399);function C(e){const t=e.targeted_locations.length>0,n=t?e.targeted_locations:[e.country];return{...e,allowMultiple:t,displayCountries:n}}function T(e){const t=new Map;h.E1.forEach((e=>{const{maxCharacterCounts:n}=e;if(Array.isArray(n)){const[a,s]=n;a{const s=a[t];if(s&&!(s.length<2)&&n(s[0].content)>e){const i=s.findIndex((({content:t})=>n(t)<=e));i>0&&(s.unshift(...s.splice(i,1)),a[t]=s)}})),{...e,assets:a}}const A=()=>window.navigator.userAgent.toLowerCase().includes("wc-ios"),S=()=>window.navigator.userAgent.toLowerCase().includes("wc-android");function I(e){return{type:E.HYDRATE_PREFETCHED_DATA,data:e}}function*R(){try{const e=(yield(0,u.apiFetch)({path:`${g.RV}/mc/shipping/rates`})).map((e=>({...e,rate:Number(e.rate)})));return{type:E.RECEIVE_SHIPPING_RATES,shippingRates:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading shipping rates.","google-listings-and-ads"))}}function*f(e){const t=(yield(0,u.apiFetch)({path:`${g.RV}/mc/shipping/rates/batch`,method:"POST",data:{rates:e}})).success.map((e=>({...e.rate,rate:Number(e.rate.rate)})));return{type:E.UPSERT_SHIPPING_RATES,shippingRates:t}}function*y(e){return yield(0,u.apiFetch)({path:`${g.RV}/mc/shipping/rates/batch`,method:"DELETE",data:{ids:e}}),{type:E.DELETE_SHIPPING_RATES,ids:e}}function*N(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/shipping/times`}),t=Object.values(e).map((e=>({countryCode:e.country_code,time:Number(e.time),maxTime:Number(e.max_time)})));return{type:E.RECEIVE_SHIPPING_TIMES,shippingTimes:t}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading shipping times.","google-listings-and-ads"))}}function*O(e){const{countries:t,time:n,maxTime:a}=e;return yield(0,u.apiFetch)({path:`${g.RV}/mc/shipping/times/batch`,method:"POST",data:{country_codes:t,time:n,max_time:a}}),{type:E.UPSERT_SHIPPING_TIMES,shippingTime:e}}function*G(e){return yield(0,u.apiFetch)({path:`${g.RV}/mc/shipping/times/batch`,method:"DELETE",data:{country_codes:e}}),{type:E.DELETE_SHIPPING_TIMES,countryCodes:e}}function*P(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/settings`});return{type:E.RECEIVE_SETTINGS,settings:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading merchant center settings.","google-listings-and-ads"))}}function*w(e){return yield(0,u.apiFetch)({path:`${g.RV}/mc/settings`,method:"POST",data:e}),{type:E.SAVE_SETTINGS,settings:e}}function*M(){yield(0,u.apiFetch)({path:`${g.RV}/mc/settings/sync`,method:"POST"})}function*U(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/jetpack/connected`});return{type:E.RECEIVE_ACCOUNTS_JETPACK,account:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading Jetpack account info.","google-listings-and-ads"))}}function*D(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/google/connected`});return{type:E.RECEIVE_ACCOUNTS_GOOGLE,account:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading Google account info.","google-listings-and-ads"))}}function b(e){return{type:E.RECEIVE_ACCOUNTS_GOOGLE_ACCESS,data:e}}function*V(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/connection`}),t=e.id||null;return yield I({mcId:t}),{type:E.RECEIVE_ACCOUNTS_GOOGLE_MC,account:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading Google Merchant Center account info.","google-listings-and-ads"))}}function*L(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/accounts`});return{type:E.RECEIVE_ACCOUNTS_GOOGLE_MC_EXISTING,accounts:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error getting your Google Merchant Center accounts.","google-listings-and-ads"))}}function*v(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/ads/connection`}),t=e.id||null;return yield I({adsId:t}),{type:E.RECEIVE_ACCOUNTS_GOOGLE_ADS,account:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading Google Ads account info.","google-listings-and-ads"))}}function*x(){try{return yield(0,u.apiFetch)({path:`${g.RV}/google/connect`,method:"DELETE"}),{type:E.DISCONNECT_ACCOUNTS_GOOGLE}}catch(e){throw(0,_.h)(e,(0,p.__)("Unable to disconnect your Google account.","google-listings-and-ads")),e}}function*F(e=!1){try{return yield(0,u.apiFetch)({path:`${g.RV}/ads/connection`,method:"DELETE"}),{type:E.DISCONNECT_ACCOUNTS_GOOGLE_ADS,invalidateRelatedState:e}}catch(e){throw(0,_.h)(e,(0,p.__)("Unable to disconnect your Google Ads account.","google-listings-and-ads")),e}}function*$(){try{return yield(0,u.apiFetch)({path:`${g.RV}/connections`,method:"DELETE"}),{type:E.DISCONNECT_ACCOUNTS_ALL}}catch(e){if(e.errors[`${g.RV}/rest-api/authorize`])return{type:E.DISCONNECT_ACCOUNTS_ALL};throw(0,_.h)(e,(0,p.__)("Unable to disconnect all your accounts.","google-listings-and-ads")),e}}function k(e){return{type:E.RECEIVE_ACCOUNTS_GOOGLE_ADS_BILLING_STATUS,billingStatus:e}}function*H(){try{return k(yield(0,u.apiFetch)({path:`${g.RV}/ads/billing-status`}))}catch(e){(0,_.h)(e,(0,p.__)("There was an error getting the billing status of your Google Ads account.","google-listings-and-ads"))}}function*B(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/ads/accounts`});return{type:E.RECEIVE_ACCOUNTS_GOOGLE_ADS_EXISTING,accounts:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error getting your Google Ads accounts.","google-listings-and-ads"))}}function j(e){return{type:E.RECEIVE_MC_CONTACT_INFORMATION,data:e}}function*q(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/contact-information`,method:"POST"});yield j(e)}catch(e){throw(0,_.h)(e,(0,p.__)("Unable to update your Google Merchant Center contact information.","google-listings-and-ads")),e}}function*W(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/target_audience`});return{type:E.RECEIVE_TARGET_AUDIENCE,target_audience:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading target audience.","google-listings-and-ads"))}}function z(e){return{type:E.RECEIVE_ACCOUNTS_GOOGLE_MC,account:e}}function Q(e){return{type:E.RECEIVE_ACCOUNTS_GOOGLE_ADS,account:e}}function*K(e){return yield(0,u.apiFetch)({path:`${g.RV}/mc/target_audience`,method:"POST",data:e}),{type:E.SAVE_TARGET_AUDIENCE,target_audience:e}}function*Y(e,t){let n="wc-web";A()?n="wc-ios":S()&&(n="wc-android");try{const a=yield(0,u.apiFetch)({path:`${g.RV}/ads/campaigns`,method:"POST",data:{amount:e,targeted_locations:t,label:n}});return{type:E.CREATE_ADS_CAMPAIGN,createdCampaign:C(a)}}catch(e){throw(0,_.h)(e),e}}function*X(e,t){try{return yield(0,u.apiFetch)({path:`${g.RV}/ads/campaigns/${e}`,method:"PATCH",data:t}),{type:E.UPDATE_ADS_CAMPAIGN,id:e,data:t}}catch(e){throw(0,_.h)(e),e}}function*J(e){try{return yield(0,u.apiFetch)({path:`${g.RV}/ads/campaigns/${e}`,method:"DELETE"}),{type:E.DELETE_ADS_CAMPAIGN,id:e}}catch(e){throw(0,_.h)(e),e}}function*Z(e){try{const t=yield(0,u.apiFetch)({path:`${g.RV}/ads/campaigns/asset-groups`,method:"POST",data:{campaign_id:e}});return{type:E.CREATE_CAMPAIGN_ASSET_GROUP,campaignId:e,assetGroup:{...g.fP,id:t.id}}}catch(e){const t=(0,p.__)("There was an error creating the assets of the campaign.","google-listings-and-ads");throw(0,_.h)(e,null,t),e}}function*ee(e,t){try{return yield(0,u.apiFetch)({path:`${g.RV}/ads/campaigns/asset-groups/${e}`,method:"PUT",data:t}),{type:E.UPDATE_CAMPAIGN_ASSET_GROUP,assetGroupId:e}}catch(e){const t=(0,p.__)("There was an error updating the assets of the campaign.","google-listings-and-ads");throw(0,_.h)(e,null,t),e}}function te(e,t){return{type:E.RECEIVE_REPORT,reportKey:e,data:t}}function*ne(e){return{type:E.RECEIVE_MC_SETUP,mcSetup:e}}function*ae(){try{return ne(yield(0,u.apiFetch)({path:`${g.RV}/mc/setup`}))}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading your merchant center setup status.","google-listings-and-ads"))}}function*se(e){return{type:E.RECEIVE_MC_PRODUCT_STATISTICS,mcProductStatistics:e}}function*ie(e){return{type:E.RECEIVE_MC_REVIEW_REQUEST,mcReviewRequest:e}}function*oe(e,t){return{type:E.RECEIVE_MC_ISSUES,query:e,data:t}}function*re(e,t){return{type:E.RECEIVE_MC_PRODUCT_FEED,query:e,data:t}}function*ce(e,t){try{return yield(0,u.apiFetch)({path:`${g.RV}/mc/product-visibility`,method:"POST",data:{ids:e,visible:t}}),{type:E.UPDATE_MC_PRODUCTS_VISIBILITY}}catch(e){throw(0,_.h)(e,(0,p.__)("Unable to update the channel visibility of products.","google-listings-and-ads")),e}}function*de(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/review`,method:"POST"});return yield ie(e)}catch(e){throw(0,_.h)(e),e}}function*le(e){return{type:E.RECEIVE_MAPPING_ATTRIBUTES,attributes:e}}function*ge(e,t){return{type:E.RECEIVE_MAPPING_SOURCES,sources:e,attributeKey:t}}function*ue(e,t){return{type:E.RECEIVE_MAPPING_RULES,rules:e,pagination:t}}function*pe(e){try{const t=yield(0,u.apiFetch)({path:`${g.RV}/mc/mapping/rules`,method:"POST",data:e});return{type:E.UPSERT_MAPPING_RULE,rule:t}}catch(e){throw(0,_.h)(e,(0,p.__)("There was an error creating the rule.","google-listings-and-ads")),e}}function*Ee(e){try{const t=yield(0,u.apiFetch)({path:`${g.RV}/mc/mapping/rules/${e.id}`,method:g.W1.POST,data:e});return{type:E.UPSERT_MAPPING_RULE,rule:t}}catch(e){throw(0,_.h)(e,(0,p.__)("There was an error updating the rule.","google-listings-and-ads")),e}}function*_e(e){try{const t=yield(0,u.apiFetch)({path:`${g.RV}/mc/mapping/rules/${e.id}`,method:g.W1.DELETE,data:e});return{type:E.DELETE_MAPPING_RULE,rule:t}}catch(e){throw(0,_.h)(e,(0,p.__)("There was an error deleting the rule.","google-listings-and-ads")),e}}function*he(e){return{type:E.RECEIVE_STORE_CATEGORIES,storeCategories:e}}function*me(e){return{type:E.RECEIVE_TOUR,tour:e}}function*Ce(e,t=!1){const n=[(0,u.apiFetch)({path:`${g.RV}/tours`,method:g.W1.POST,data:e})],a={type:E.UPSERT_TOUR,tour:e};!0===t?n.unshift(a):n.push(a);try{for(const e of n)yield e}catch(e){(0,_.h)(e,(0,p.__)("There was an error updating the tour.","google-listings-and-ads"))}}function*Te(e){return{type:E.RECEIVE_GTIN_MIGRATION_STATUS,data:e}}function*Ae(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/ads/account-status`});return{type:E.RECEIVE_GOOGLE_ADS_ACCOUNT_STATUS,data:e}}catch(e){(0,_.h)(e,(0,p.__)("There was an error getting the status of your Google Ads account.","google-listings-and-ads"))}}var Se={};function Ie(e){return[e]}function Re(e,t,n){var a;if(e.length!==t.length)return!1;for(a=n;ae.general,Oe=e=>e.mc.shipping.rates,Ge=e=>e.mc.shipping.times,Pe=e=>e.mc.settings,we=e=>e.mc.accounts.jetpack,Me=e=>e.mc.accounts.google,Ue=e=>e.mc.accounts.google_access,De=e=>e.mc.accounts.mc,be=e=>e.mc.accounts.existing_mc,Ve=e=>e.mc.accounts.ads,Le=e=>e.mc.accounts.ads_billing_status,ve=e=>e.mc.accounts.existing_ads,xe=e=>e.mc.contact,Fe=fe((e=>{const{countries:t,continents:n}=e.mc;return{countries:t,continents:n}}),(e=>[e.mc.countries,e.mc.continents])),$e=e=>e.mc.target_audience,ke=(e,t)=>!1===t?.exclude_removed?e.all_ads_campaigns:e.ads_campaigns,He=(e,t)=>e.campaign_asset_groups[t]||null,Be=e=>e.mc_setup,je=e=>e.mc_product_statistics,qe=e=>e.mc_review_request,We=fe(((e,t)=>{const n=e.mc_issues[t.issue_type];if(!n)return n;const a=(t.page-1)*t.per_page,s=a+t.per_page;return{issues:n.issues.slice(a,s),total:n.total}}),(e=>[e.mc_issues])),ze=(e,t)=>e.mc_product_feed?{products:e.mc_product_feed.pages[t.page],total:e.mc_product_feed.total}:e.mc_product_feed,Qe=(e,t,n,a)=>{const s=(0,ye.kj)(t,n,a);return e.report[s]||null},Ke=(0,o.createRegistrySelector)((e=>(t,n,a,s,i)=>{const o=e(g.Ui),r=(0,ye.dh)(n,a,s,i),c=[n,a,r];return{reportQuery:r,loaded:o.hasFinishedResolution("getReportByApiQuery",c),data:o.getReportByApiQuery(...c)}})),Ye=(0,o.createRegistrySelector)((e=>(t,n,a,s)=>{const i=e(g.Ui),o=["programs",n,(0,ye.N2)(n,a,s)],r=i.getReportByApiQuery(...o);return{data:r?r.totals:null,loaded:i.hasFinishedResolution("getReportByApiQuery",o)}})),Xe=e=>e.mc.mapping.attributes,Je=(e,t)=>e.mc.mapping.sources[t],Ze=fe(((e,t)=>{const n={...e.mc.mapping.rules},{page:a,perPage:s}=t,i=(a-1)*s,o=i+s;return{rules:n?.items.slice(i,o)||[],total:n.total,pages:n.pages}}),(e=>[e.mc.mapping.rules])),et=e=>e.store_categories,tt=(e,t)=>e.tours[t]||null,nt=e=>e.ads.accountStatus,at=(e,t=[])=>{const n=(0,ye.eT)(t);return e.ads.budgetRecommendations[n]||null},st=e=>e.gtinMigrationStatus;var it=n(3832);const ot=e=>({type:"FETCH_WITH_HEADERS",options:e}),rt=e=>({type:"GLA_AWAIT_PROMISE",promise:e}),ct={...u.controls,FETCH_WITH_HEADERS:({options:e})=>c()({...e,parse:!1}).then((e=>Promise.all([e.headers,e.status,e.json()]))).then((([e,t,n])=>({headers:e,status:t,data:n}))),GLA_AWAIT_PROMISE:({promise:e})=>e};function*dt(){yield R()}function*lt(){yield N()}function*gt(){yield P()}function*ut(){yield U()}function*pt(){yield D()}function*Et(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/google/reconnected`});yield b(e)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading Google account access info.","google-listings-and-ads"))}}function*_t(){yield V()}function*ht(){yield L()}function*mt(){yield v()}function*Ct(){yield H()}function*Tt(){yield B()}function*At(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/contact-information`});yield j(e)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading Google Merchant Center contact information.","google-listings-and-ads"))}}function*St(){try{const e={continents:!0},t=(0,it.addQueryArgs)(`${g.RV}/mc/countries`,e),n=yield(0,u.apiFetch)({path:t});return{type:E.RECEIVE_MC_COUNTRIES_AND_CONTINENTS,data:n}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading supported country details.","google-listings-and-ads"))}}function*It(){yield W()}function*Rt(e){try{const t=yield(0,u.apiFetch)({path:(0,it.addQueryArgs)(`${g.RV}/ads/campaigns`,e)});return{type:E.RECEIVE_ADS_CAMPAIGNS,query:e,adsCampaigns:t.map(C)}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading ads campaigns.","google-listings-and-ads"))}}function*ft(e){const t=`${g.RV}/ads/campaigns/asset-groups`,n={campaign_id:e},a=(0,it.addQueryArgs)(t,n);try{const t=yield(0,u.apiFetch)({path:a});return{type:E.RECEIVE_CAMPAIGN_ASSET_GROUPS,campaignId:e,assetGroups:t.map(T)}}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading the assets of the campaign.","google-listings-and-ads"))}}function*yt(){yield ae()}function*Nt(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/product-statistics`});yield se(e)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading your merchant center product statistics.","google-listings-and-ads"))}}function*Ot(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/review`});yield ie(e)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading your merchant center product review request status.","google-listings-and-ads"))}}function*Gt(e){try{const{issue_type:t,...n}=e,a=yield(0,u.apiFetch)({path:(0,it.addQueryArgs)(`${g.RV}/mc/issues/${t||l.Tj}`,n)});yield oe(e,a)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading issues to resolve.","google-listings-and-ads"))}}function*Pt(e){try{const t=yield(0,u.apiFetch)({path:(0,it.addQueryArgs)(`${g.RV}/mc/product-feed`,e)});yield re(e,t)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading product feed.","google-listings-and-ads"))}}pt.shouldInvalidate=e=>e.type===E.DISCONNECT_ACCOUNTS_GOOGLE,Et.shouldInvalidate=e=>e.type===E.DISCONNECT_ACCOUNTS_GOOGLE,mt.shouldInvalidate=e=>e.type===E.DISCONNECT_ACCOUNTS_GOOGLE_ADS&&e.invalidateRelatedState,Ct.shouldInvalidate=e=>e.type===E.RECEIVE_ACCOUNTS_GOOGLE_ADS,Tt.shouldInvalidate=mt.shouldInvalidate,Rt.shouldInvalidate=(e,t)=>(e.type===E.UPDATE_ADS_CAMPAIGN||e.type===E.DELETE_ADS_CAMPAIGN||e.type===E.CREATE_ADS_CAMPAIGN)&&!1===t?.exclude_removed,Gt.shouldInvalidate=e=>e.type===E.UPDATE_MC_PRODUCTS_VISIBILITY,Pt.shouldInvalidate=(e,t)=>e.type===E.UPDATE_MC_PRODUCTS_VISIBILITY||e.type===E.RECEIVE_MC_PRODUCT_FEED&&(e.query.per_page!==t.per_page||e.query.orderby!==t.orderby||e.query.order!==t.order);const wt=new Map([[l.k1,"mc"],[l.Mx,"ads"]]);function*Mt(e,t,n){const a=wt.get(t),s=`${g.RV}/${a}/reports/${e}`,i=(0,it.addQueryArgs)(s,n);try{const a=yield(0,u.apiFetch)({path:i}),s=(0,ye.kj)(e,t,n);yield te(s,a)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading report.","google-listings-and-ads"))}}function*Ut(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/mapping/attributes`});yield le(e.data)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading the mapping attributes.","google-listings-and-ads"))}}function*Dt(e){try{if(!e)return;const t=yield(0,u.apiFetch)({path:(0,it.addQueryArgs)(`${g.RV}/mc/mapping/sources`,{attribute:e})});yield ge(t.data,e)}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading the mapping sources for the selected attribute.","google-listings-and-ads"))}}function*bt(e){try{const t=yield ot({path:(0,it.addQueryArgs)(`${g.RV}/mc/mapping/rules`,{page:e.page,per_page:e.perPage})}),n=parseInt(t.headers.get("x-wp-total"),10),a=parseInt(t.headers.get("x-wp-totalpages"),10),s=t.data;yield ue(s,{...e,total:n,pages:a})}catch(e){(0,_.h)(e,(0,p.__)("There was an error loading the mapping rules.","google-listings-and-ads"))}}function*Vt(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/mc/mapping/categories`});yield he(e)}catch(e){(0,_.h)(e,(0,p.__)("There was an error getting the store categories.","google-listings-and-ads"))}}function*Lt(e){try{const{data:t}=yield ot({path:`${g.RV}/tours/${e}`});yield me(t)}catch(e){if(404===e.status)return;const t=e?.json()||e?.text(),n=yield rt(t);(0,_.h)(n,(0,p.__)("There was an error getting the tour.","google-listings-and-ads"))}}function*vt(){yield Ae()}function*xt(e){if(!e||!e.length)return;const t=(0,ye.eT)(e),n=`${g.RV}/ads/campaigns/budget-recommendation`,a={country_codes:e},s=(0,it.addQueryArgs)(n,a);try{const{data:e}=yield ot({path:s}),{currency:n,recommendations:a}=e;return{type:E.RECEIVE_ADS_BUDGET_RECOMMENDATIONS,countryCodesKey:t,currency:n,recommendations:a}}catch(e){if(404===e.status)return;const t=e?.json()||e?.text(),n=yield rt(t);(0,_.h)(n,(0,p.__)("There was an error getting the budget recommendation.","google-listings-and-ads"))}}function*Ft(){try{const e=yield(0,u.apiFetch)({path:`${g.RV}/gtin-migration`});yield Te(e)}catch(e){(0,_.h)(e,(0,p.__)("There was an error getting the GTIN Migration Status.","google-listings-and-ads"))}}bt.shouldInvalidate=e=>e.type===E.UPSERT_MAPPING_RULE||e.type===E.DELETE_MAPPING_RULE,vt.shouldInvalidate=e=>e.type===E.DISCONNECT_ACCOUNTS_GOOGLE_ADS,xt.shouldInvalidate=e=>e.type===E.DISCONNECT_ACCOUNTS_GOOGLE_ADS;var $t=n(8468);const kt={general:{version:null,mcId:null,adsId:null},mc:{target_audience:null,countries:null,continents:null,shipping:{rates:[],times:[]},settings:null,accounts:{jetpack:null,google:null,mc:null,ads:null,existing_mc:null,existing_ads:null,ads_billing_status:null,google_access:null},contact:null,mapping:{attributes:[],sources:{},rules:{items:[],total:null,pages:null}}},ads_campaigns:null,all_ads_campaigns:null,campaign_asset_groups:{},mc_setup:null,mc_product_statistics:null,mc_issues:{account:null,product:null},mc_review_request:{status:null,cooldown:null,issues:null,reviewEligibleRegions:[]},mc_product_feed:null,report:{},store_categories:[],tours:{},ads:{accountStatus:{hasAccess:null,inviteLink:null,step:null},budgetRecommendations:{}},gtinMigrationStatus:null};function Ht(e,t=""){const n=Object.assign(e.constructor(),e),a=e=>null==e?{}:(0,$t.clone)(e);return{setIn(e,s){const i=(e=>t?Array.isArray(t)||Array.isArray(e)?[].concat(t,e):`${t}.${e}`:e)(e);return(0,$t.setWith)(n,i,s,a),this},end:()=>n}}function Bt(e,t,n){return Ht(e).setIn(t,n).end()}function jt(e,t){return t?e.json?e.json():Promise.reject(e):e}var qt=n(3666);(0,o.registerStore)(g.Ui,{actions:a,selectors:s,resolvers:i,controls:ct,reducer:(e=kt,t)=>{switch(t.type){case E.RECEIVE_SHIPPING_RATES:return Bt(e,"mc.shipping.rates",t.shippingRates);case E.UPSERT_SHIPPING_RATES:{const{shippingRates:n}=t,a=[...e.mc.shipping.rates];return n.forEach((e=>{const t=a.findIndex((t=>t.id===e.id));t>=0?a[t]=e:a.push(e)})),Bt(e,"mc.shipping.rates",a)}case E.DELETE_SHIPPING_RATES:{const{ids:n}=t,a=e.mc.shipping.rates.filter((e=>!n.includes(e.id)));return Bt(e,"mc.shipping.rates",a)}case E.RECEIVE_SHIPPING_TIMES:return Bt(e,"mc.shipping.times",t.shippingTimes);case E.UPSERT_SHIPPING_TIMES:{const{countries:n,time:a,maxTime:s}=t.shippingTime,i=[...e.mc.shipping.times];return n.forEach((e=>{const t={countryCode:e,time:a,maxTime:s},n=i.findIndex((t=>t.countryCode===e));n>=0?i[n]=t:i.push(t)})),Bt(e,"mc.shipping.times",i)}case E.DELETE_SHIPPING_TIMES:{const n=new Set(t.countryCodes),a=e.mc.shipping.times.filter((e=>!n.has(e.countryCode)));return Bt(e,"mc.shipping.times",a)}case E.RECEIVE_SETTINGS:return Bt(e,"mc.settings",t.settings);case E.SAVE_SETTINGS:return Bt(e,"mc.settings",{...e.mc.settings,...t.settings});case E.RECEIVE_ACCOUNTS_JETPACK:return Bt(e,"mc.accounts.jetpack",t.account);case E.RECEIVE_ACCOUNTS_GOOGLE:return Bt(e,"mc.accounts.google",t.account);case E.RECEIVE_ACCOUNTS_GOOGLE_ACCESS:return Bt(e,"mc.accounts.google_access",t.data);case E.RECEIVE_ACCOUNTS_GOOGLE_MC:return Bt(e,"mc.accounts.mc",t.account);case E.RECEIVE_ACCOUNTS_GOOGLE_MC_EXISTING:return Bt(e,"mc.accounts.existing_mc",t.accounts);case E.RECEIVE_ACCOUNTS_GOOGLE_ADS:return Bt(e,"mc.accounts.ads",t.account);case E.DISCONNECT_ACCOUNTS_GOOGLE_ADS:return Bt(e,"mc.accounts.ads",kt.mc.accounts.ads);case E.RECEIVE_ACCOUNTS_GOOGLE_ADS_BILLING_STATUS:return Bt(e,"mc.accounts.ads_billing_status",t.billingStatus);case E.RECEIVE_ACCOUNTS_GOOGLE_ADS_EXISTING:return Bt(e,"mc.accounts.existing_ads",t.accounts);case E.RECEIVE_MC_CONTACT_INFORMATION:return Bt(e,"mc.contact",t.data);case E.RECEIVE_MC_COUNTRIES_AND_CONTINENTS:{const{data:n}=t;return Ht(e,"mc").setIn("countries",n.countries).setIn("continents",n.continents).end()}case E.RECEIVE_TARGET_AUDIENCE:case E.SAVE_TARGET_AUDIENCE:return Bt(e,"mc.target_audience",t.target_audience);case E.RECEIVE_ADS_CAMPAIGNS:return!1===t.query?.exclude_removed?Bt(e,"all_ads_campaigns",t.adsCampaigns):Bt(e,"ads_campaigns",t.adsCampaigns);case E.CREATE_ADS_CAMPAIGN:return Bt(e,"ads_campaigns",[...e.ads_campaigns||[],t.createdCampaign]);case E.UPDATE_ADS_CAMPAIGN:{const{id:n,data:a}=t,s=e.ads_campaigns.findIndex((e=>e.id===n)),i={...e.ads_campaigns[s],...a},o=[...e.ads_campaigns];return o[s]=i,Bt(e,"ads_campaigns",o)}case E.DELETE_ADS_CAMPAIGN:{const{id:n}=t,a=e.ads_campaigns.filter((e=>e.id!==n));return Bt(e,"ads_campaigns",a)}case E.RECEIVE_CAMPAIGN_ASSET_GROUPS:return Bt(e,["campaign_asset_groups",t.campaignId],t.assetGroups);case E.CREATE_CAMPAIGN_ASSET_GROUP:{const{campaignId:n,assetGroup:a}=t;return Bt(e,["campaign_asset_groups",n],[...e.campaign_asset_groups[n]||[],a])}case E.RECEIVE_MC_SETUP:return Bt(e,"mc_setup",t.mcSetup);case E.RECEIVE_MC_PRODUCT_STATISTICS:return Bt(e,"mc_product_statistics",t.mcProductStatistics);case E.RECEIVE_MC_REVIEW_REQUEST:return Bt(e,"mc_review_request",t.mcReviewRequest);case E.RECEIVE_MC_ISSUES:{const{query:n,data:a}=t,s=e.mc_issues[n.issue_type]?.issues.slice()||[];return s.splice((n.page-1)*n.per_page,n.per_page,...a.issues),Ht(e,`mc_issues.${n.issue_type}`).setIn("issues",s).setIn("total",a.total).end()}case E.RECEIVE_MC_PRODUCT_FEED:{const{query:n,data:a}=t,s=e.mc_product_feed||{},i=Ht(e,"mc_product_feed");return s.per_page===n.per_page&&s.order===n.order&&s.orderby===n.orderby||i.setIn("pages",{}),i.setIn(["pages",n.page],a.products).setIn("per_page",n.per_page).setIn("order",n.order).setIn("orderby",n.orderby).setIn("total",a.total).end()}case E.RECEIVE_REPORT:{const{reportKey:n,data:a}=t;return Bt(e,["report",n],a)}case E.RECEIVE_MAPPING_ATTRIBUTES:return Bt(e,"mc.mapping.attributes",t.attributes);case E.RECEIVE_MAPPING_SOURCES:{const{attributeKey:n,sources:a}=t;return Bt(e,["mc","mapping","sources",n],a)}case E.RECEIVE_MAPPING_RULES:{const{rules:n,pagination:a}=t,s=[...e.mc.mapping.rules.items],i=(a.page-1)*a.perPage,o=a.perPage;return s.splice(i,o,...n),Ht(e,"mc.mapping.rules").setIn("items",s).setIn("total",a.total).setIn("pages",a.pages).end()}case E.UPSERT_MAPPING_RULE:{const{rule:n}=t,a=[...e.mc.mapping.rules.items],s=a.findIndex((e=>e.id===n.id));return s>=0?a[s]=n:a.push(n),Bt(e,"mc.mapping.rules.items",a)}case E.DELETE_MAPPING_RULE:{const n=e.mc.mapping.rules.items.filter((e=>e.id!==t.rule.id));return Bt(e,"mc.mapping.rules.items",n)}case E.RECEIVE_STORE_CATEGORIES:{const{storeCategories:n}=t;return Bt(e,"store_categories",n)}case E.RECEIVE_TOUR:case E.UPSERT_TOUR:{const{tour:n}=t;return Bt(e,["tours",n.id],n)}case E.HYDRATE_PREFETCHED_DATA:{const n=Ht(e,"general");return["version","mcId","adsId"].forEach((e=>{t.data.hasOwnProperty(e)&&n.setIn(e,t.data[e])})),n.end()}case E.RECEIVE_GOOGLE_ADS_ACCOUNT_STATUS:{const{data:{has_access:n,invite_link:a,step:s}}=t;return Ht(e,"ads.accountStatus").setIn("hasAccess",n).setIn("inviteLink",a).setIn("step",s).end()}case E.RECEIVE_ADS_BUDGET_RECOMMENDATIONS:{const{countryCodesKey:n,currency:a,recommendations:s}=t;return Bt(e,["ads","budgetRecommendations",n],{currency:a,recommendations:s})}case E.RECEIVE_GTIN_MIGRATION_STATUS:{const{data:n}=t;return Bt(e,"gtinMigrationStatus",n?.status)}case E.DISCONNECT_ACCOUNTS_ALL:default:return e}}}),(0,o.dispatch)(g.Ui).hydratePrefetchedData(l.Th.initialWpData),c().use(function(e){const t=new RegExp(`^${g.RV}/`);return function(n,a){if(!t.test(n.path))return a(n);const{parse:s=!0}=n;return a({...n,parse:!1}).catch(e).catch((async e=>Promise.reject(await jt(e,s)))).then((e=>s&&204===e.status?null:jt(e,s)))}}((e=>{if(l.Th.mcSetupComplete&&401===e.status)return(e.json||e.text).call(e).then((e=>"string"==typeof e?{message:e}:e)).then((e=>{const t=(0,qt.Ke)(e.code);return t&&(0,d.getHistory)().replace(t),e})).then((t=>Promise.reject({...t,statusCode:e.status})));throw e})));const Wt=()=>(0,o.useDispatch)(g.Ui)},7615:(e,t,n)=>{n.d(t,{XQ:()=>r,jr:()=>p,eT:()=>_,N2:()=>c,kj:()=>g,dh:()=>d,bM:()=>E,YK:()=>o});var a=n(8443),s=n(7374);const i=["clicks","impressions"],o=["sales","conversions","spend",...i],r=Object.freeze({NONE:0,FOR_METRIC:1,FOR_REQUEST:2});function c(e,t,n){const r=(0,s.getCurrentDates)(t);return{after:(0,a.format)("Y-m-d",r[n].after),before:(0,a.format)("Y-m-d",r[n].before),fields:"free"===e?i:o}}function d(e,t,n,a){const s=c(t,n,a),{order:i="desc"}=n;let{orderby:o}=n;o&&s.fields.includes(o)||(o=s.fields[0]);const r={...s,interval:"day",orderby:o,order:i};return"programs"===e&&n.programs?r.ids=n.programs:"products"===e&&n.products&&(r.ids=n.products.replace(/\d+/g,"gla_$&")),r}function l(e,t){if(t){if(Array.isArray(t))return[...t].sort();if("object"==typeof t)return Object.fromEntries(Object.entries(t).sort())}return t}function g(e,t,n){return`${e}:${t}:${JSON.stringify(n,l)}`}function u(e,t){let n=null;if("number"==typeof e&&"number"==typeof t&&(n=0,e!==t)){const a=(e-t)/t*100;n=Number.isFinite(a)?function(e,t=2){const n=Math.pow(10,t);return Math.round(e*n)/n}(a):null}return n}const p=(e,t,n)=>({value:e,delta:u(e,t),prevValue:t,missingFreeListingsData:n});function E(e={},t={},n){return(n||Object.keys(e)).reduce(((n,a)=>({...n,[a]:p(e[a],t[a],e[a]&&t[a]?r.NONE:r.FOR_REQUEST)})),{})}function _(e=[]){return[...e].sort().join("_").toLowerCase()}},399:(e,t,n)=>{n.d(t,{A:()=>s});const a=new Map;function s(e){if(a.has(e))return a.get(e);throw new Error(`The given \`kind\` of character counter is an unknown kind: ${e}`)}a.set("google-ads",function(){const e=[/[\u0000-\u04F9]/,/[\u1E00-\u20BF]/,/[\uFF61-\uFFDC]/,/[\u0E00-\u0E7F]/,/[\u2100-\u213A]/,/[\u0600-\u06FF]/,/[\u0750-\u077F]/,/[\uFB50-\uFDFF]/,/[\uFE70-\uFEFF]/,/[\u05D0-\u05EA]/,/\u05BE|\u05F3|\u05F4/],t=new Set(["ऀ","ँ","ं","ऺ","़","ु","ू","ृ","ॄ","ॅ","ॆ","े","ै","्","॑","॒","॓","॔","ॕ","ॖ","ॗ","ॢ","ॣ"]);return function(n){return n.split("").reduce(((n,a)=>n+function(n){return e.some((e=>e.test(n)))?1:/[\u0900-\u0D7F]/.test(n)?t.has(n)?0:1:2}(a)),0)}}())},8998:(e,t,n)=>{n.d(t,{h:()=>o});var a=n(7143),s=n(7723),i=n(6520);function o(e,t,n){if(401!==e?.statusCode){const o=function(e,t,n){const a=[],i=e?.message;return t&&a.push(t),i&&"string"==typeof i?a.push(i):n&&a.push(n),0===a.length&&a.push((0,s.__)("Unknown error occurred.","google-listings-and-ads")),a.join((0,s._x)(" ","The spacing between sentences. It's a space in English. Please use an empty string if no spacing is needed in that language.","google-listings-and-ads"))}(e,t,n);(0,a.dispatch)(i.mY).createNotice("error",o)}console.error(e)}},6473:(e,t,n)=>{n.d(t,{lr:()=>p,GH:()=>u,T1:()=>l,CU:()=>d,qX:()=>E,E$:()=>g,JL:()=>c,Ff:()=>h,ce:()=>_,dQ:()=>T,T:()=>C,Xh:()=>m});const a=window.wc.tracks;var s=n(7143),i=n(2619),o=n(3905),r=n(3658);const c=(0,i.createHooks)(),d="tracking",l="FILTER_ONBOARDING",g=new Map;g.set(l,["context","step"]);const u="setup-mc",p="setup-ads";function E(e){const{slug:t}=o.Th,{version:n,adsId:a,mcId:i}=(0,s.select)(r.U).getGeneral(),c={...e,[`${t}_version`]:n};return i&&(c[`${t}_mc_id`]=i),a&&(c[`${t}_ads_id`]=a),c}function _(e,t){(0,a.recordEvent)(e,E(t))}function h(e,t){(0,a.queueRecordEvent)(e,E(t))}const m=(e,t,n)=>{const a={context:e};let s;"goto"===n?(s="gla_table_go_to_page",a.page=t):(s="gla_table_page_click",a.direction=n),_(s,a)};function C(e,t,n){_(e,{triggered_by:`stepper-step${t}-button`,action:`go-to-step${t}`,context:n})}function T(e,t,n,a){_(e,{triggered_by:`step${t}-continue-button`,action:`go-to-step${n}`,context:a})}},3666:(e,t,n)=>{n.d(t,{$K:()=>i,FN:()=>E,Ke:()=>m,Q4:()=>c,Qk:()=>_,XG:()=>l,Xb:()=>h,hP:()=>p,uB:()=>d,uZ:()=>u,xP:()=>g});var a=n(6476),s=n(3905);const i={editCampaign:"/campaigns/edit",createCampaign:"/campaigns/create",editStoreAddress:"/edit-store-address",reconnectWPComAccount:"/reconnect-wpcom-account",reconnectGoogleAccount:"/reconnect-google-account"},o="/google/dashboard",r="/google/settings",c=(e,t)=>(0,a.getNewPath)({subpath:i.editCampaign,programId:e,initialStep:t},o),d=()=>(0,a.getNewPath)({subpath:i.createCampaign},o),l=()=>(0,a.getNewPath)(null,"/google/start",null),g=()=>(0,a.getNewPath)(null,"/google/setup-mc",null),u=(e=null)=>(0,a.getNewPath)(e,o,null),p=(e=null)=>(0,a.getNewPath)(e,"/google/product-feed",null),E=()=>(0,a.getNewPath)(null,r,null),_=()=>(0,a.getNewPath)(null,"/google/shipping",null),h=()=>(0,a.getNewPath)({subpath:i.editStoreAddress},r,null),m=e=>{let t;switch(e){case s.iH.WPCOM_DISCONNECTED:t=i.reconnectWPComAccount;break;case s.iH.GOOGLE_DISCONNECTED:t=i.reconnectGoogleAccount;break;default:return}return(0,a.getNewPath)({subpath:t},r,null)}},1609:e=>{e.exports=window.React},5795:e=>{e.exports=window.ReactDOM},8468:e=>{e.exports=window.lodash},8846:e=>{e.exports=window.wc.components},4111:e=>{e.exports=window.wc.currency},7752:e=>{e.exports=window.wc.customerEffortScore},314:e=>{e.exports=window.wc.data},7374:e=>{e.exports=window.wc.date},6476:e=>{e.exports=window.wc.navigation},3577:e=>{e.exports=window.wc.number},5703:e=>{e.exports=window.wc.wcSettings},1455:e=>{e.exports=window.wp.apiFetch},6427:e=>{e.exports=window.wp.components},9491:e=>{e.exports=window.wp.compose},7143:e=>{e.exports=window.wp.data},8443:e=>{e.exports=window.wp.date},8107:e=>{e.exports=window.wp.dom},6087:e=>{e.exports=window.wp.element},2619:e=>{e.exports=window.wp.hooks},8537:e=>{e.exports=window.wp.htmlEntities},7723:e=>{e.exports=window.wp.i18n},5573:e=>{e.exports=window.wp.primitives},3832:e=>{e.exports=window.wp.url}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={exports:{}};return n[e](i,i.exports,s),i.exports}s.m=n,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>({61:"product-feed",96:"vendors",207:"get-started-page",223:"commons",352:"onboarding",456:"attribute-mapping",472:"settings",528:"reports",553:"shipping",663:"ads-onboarding",945:"dashboard"}[e]+".js?ver="+{61:"9dce87931e14ceb96bd0",96:"e76b7f5484d80ac7acad",207:"6b3a36f011299ff5f91d",223:"db137169492470aa2cd3",352:"5298fbd73de5a4b38c02",456:"fdd5f7cb86ca0f23675e",472:"8b9caa7f115a63904e1e",528:"b70e39ef5e61ad918cee",553:"f226be63dbcd2804ae7e",663:"4068323a565e6ad186d5",945:"7315dfa0599400a17466"}[e]),s.miniCssF=e=>({61:"product-feed",207:"get-started-page",352:"onboarding",456:"attribute-mapping",472:"settings",528:"reports",553:"shipping",663:"ads-onboarding",945:"dashboard"}[e]+".css?ver="+{61:"9dce87931e14ceb96bd0",207:"6b3a36f011299ff5f91d",352:"5298fbd73de5a4b38c02",456:"fdd5f7cb86ca0f23675e",472:"8b9caa7f115a63904e1e",528:"b70e39ef5e61ad918cee",553:"f226be63dbcd2804ae7e",663:"4068323a565e6ad186d5",945:"7315dfa0599400a17466"}[e]),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="google-listings-and-ads:",s.l=(n,a,i,o)=>{if(e[n])e[n].push(a);else{var r,c;if(void 0!==i)for(var d=document.getElementsByTagName("script"),l=0;l{r.onerror=r.onload=null,clearTimeout(p);var s=e[n];if(delete e[n],r.parentNode&&r.parentNode.removeChild(r),s&&s.forEach((e=>e(a))),t)return t(a)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),c&&document.head.appendChild(r)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{if("undefined"!=typeof document){var e={57:0};s.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{61:1,207:1,352:1,456:1,472:1,528:1,553:1,663:1,945:1}[t]&&n.push(e[t]=(e=>new Promise(((t,n)=>{var a=s.miniCssF(e),i=s.p+a;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),a=0;a{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",s.nc&&(o.nonce=s.nc),o.onerror=o.onload=n=>{if(o.onerror=o.onload=null,"load"===n.type)a();else{var s=n&&n.type,r=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+r+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=r,o.parentNode&&o.parentNode.removeChild(o),i(c)}},o.href=t,document.head.appendChild(o)})(e,i,0,t,n)})))(t).then((()=>{e[t]=0}),(n=>{throw delete e[t],n})))}}})(),(()=>{var e={57:0};s.f.j=(t,n)=>{var a=s.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise(((n,s)=>a=e[t]=[n,s]));n.push(a[2]=i);var o=s.p+s.u(t),r=new Error;s.l(o,(n=>{if(s.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;r.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",r.name="ChunkLoadError",r.type=i,r.request=o,a[1](r)}}),"chunk-"+t,t)}};var t=(t,n)=>{var a,i,[o,r,c]=n,d=0;if(o.some((t=>0!==e[t]))){for(a in r)s.o(r,a)&&(s.m[a]=r[a]);c&&c(s)}for(t&&t(n);dt=>(0,d.createElement)("div",{className:"gla-admin-page"},(0,d.createElement)(e,{...t}))),"withAdminPageShell");s(3658);var g=s(6473);const u=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(945)]).then(s.bind(s,6905)))),p=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(207)]).then(s.bind(s,494)))),E=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(352)]).then(s.bind(s,550)))),_=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(663)]).then(s.bind(s,923)))),h=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(528)]).then(s.bind(s,9531)))),m=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(61)]).then(s.bind(s,9061)))),C=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(456)]).then(s.bind(s,8885)))),T=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(472)]).then(s.bind(s,2625)))),A=(0,o.lazy)((()=>Promise.all([s.e(223),s.e(96),s.e(553)]).then(s.bind(s,6343)))),S=new Set,I=(0,c.getSetting)("admin")?.woocommerceTranslation||(0,i.__)("WooCommerce","google-listings-and-ads");(0,r.addFilter)("woocommerce_admin_pages_list","woocommerce/google-listings-and-ads/add-page-routes",(e=>{const t=[["",I],["/marketing",(0,i.__)("Marketing","google-listings-and-ads")],(0,i.__)("Google for WooCommerce","google-listings-and-ads")],n=[{breadcrumbs:[...t],container:p,path:"/google/start",wpOpenMenu:"toplevel_page_woocommerce-marketing"},{breadcrumbs:[...t,(0,i.__)("Setup Merchant Center","google-listings-and-ads")],container:E,path:"/google/setup-mc"},{breadcrumbs:[...t,(0,i.__)("Setup Google Ads","google-listings-and-ads")],container:_,path:"/google/setup-ads"},{breadcrumbs:[...t,(0,i.__)("Dashboard","google-listings-and-ads")],container:u,path:"/google/dashboard",wpOpenMenu:"toplevel_page_woocommerce-marketing"},{breadcrumbs:[...t,(0,i.__)("Reports","google-listings-and-ads")],container:h,path:"/google/reports",wpOpenMenu:"toplevel_page_woocommerce-marketing"},{breadcrumbs:[...t,(0,i.__)("Product Feed","google-listings-and-ads")],container:m,path:"/google/product-feed",wpOpenMenu:"toplevel_page_woocommerce-marketing"},{breadcrumbs:[...t,(0,i.__)("Attribute Mapping","google-listings-and-ads")],container:C,path:"/google/attribute-mapping",wpOpenMenu:"toplevel_page_woocommerce-marketing"},{breadcrumbs:[...t,(0,i.__)("Settings","google-listings-and-ads")],container:T,path:"/google/settings",wpOpenMenu:"toplevel_page_woocommerce-marketing"},{breadcrumbs:[...t,(0,i.__)("Shipping","google-listings-and-ads")],container:A,path:"/google/shipping",wpOpenMenu:"toplevel_page_woocommerce-marketing"}];return n.forEach((e=>{e.container=l(e.container);const t=e.path.substring(1).replace(/\//g,"_");S.add(t)})),e.concat(n)})),(0,r.addFilter)("woocommerce_tracks_client_event_properties","woocommerce/google-listings-and-ads/add-base-event-properties-to-page-view",((e,t)=>"wcadmin_page_view"===t&&S.has(e.path)?(0,g.qX)(e):e))})();