"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[690],{6327:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(6427),s=i(6087),a=i(5280),n=i(790);const l=(0,s.memo)((({title:t,options:e,help:i,className:s="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:l="general",optionName:r,disabled:m})=>{const[d,c]=(0,a.G)(l,r);return(0,n.jsx)(o.RadioControl,{label:t,options:e,help:i,className:s,selected:parseInt(d),onChange:c,disabled:m})}))},4832:(t,e,i)=>{i.d(e,{A:()=>r});var o=i(6087),s=i(6427),a=i(7723),n=i(5280),l=i(790);const r=(0,o.memo)((({title:t,options:e,className:i="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:o="general",optionName:r,disabled:m=!1,help:d="",notSet:c=!1})=>{const[g,u]=(0,n.G)(o,r),p=c?[{label:(0,a.__)("(not set)","gtm-kit"),value:""},...e]:e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(s.SelectControl,{label:t,value:g,options:p,className:i,onChange:u,disabled:m,help:d})})}))},3903:(t,e,i)=>{i.d(e,{A:()=>r});var o=i(6427),s=i(6087),a=i(5280),n=i(1835),l=i(790);const r=(0,s.memo)((({title:t,placeholder:e,help:i,className:s="gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",optionGroup:r="general",optionName:m,isDisabled:d,notificationId:c="",onBlur:g,transform:u})=>{const[p,_]=(0,a.G)(r,m),{removeNotification:h}=(0,n.h)();return(0,l.jsx)(o.TextControl,{label:t,placeholder:e,help:i,className:s,value:p||"",onChange:t=>{_(t),c&&h(c)},onBlur:t=>{const e=t.target.value;if(u){const t=u(e);t!==e&&_(t)}g&&g(e)},disabled:d})}))},6992:(t,e,i)=>{i.d(e,{A:()=>r});var o=i(6427),s=i(6087),a=i(5280),n=i(1835),l=i(790);const r=(0,s.memo)((({title:t,label:e,optionGroup:i="general",optionName:r,disabled:m=!1,narrow:d=!1,premium:c=!1,notificationId:g=""})=>{const u=(0,s.useId)(),[p,_]=(0,a.G)(i,r),{removeNotification:h}=(0,n.h)(),k="gtmkit-settings-field-wrap "+(d?"gtmkit-py-2":"gtmkit-py-4");return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:k,children:(0,l.jsx)(o.BaseControl,{label:c?(0,l.jsxs)(l.Fragment,{children:[t,(0,l.jsx)("span",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-normal gtmkit-rounded-full gtmkit-py-0.5 gtmkit-px-2 gtmkit-h-5 gtmkit-leading-5 gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"})]}):t,id:u,children:(0,l.jsx)(o.ToggleControl,{label:e,checked:!m&&Boolean(p),onChange:()=>{_(!Boolean(p)),g&&h(g)},disabled:m})})})})}))},7722:(t,e,i)=>{i.d(e,{A:()=>d});var o=i(6942),s=i.n(o),a=i(6427),n=i(7723),l=i(7449),r=i(790);const m={variant:{section:"gtmkit-feature-upsell--section",single:"gtmkit-feature-upsell--single"}},d=({children:t,shouldUpsell:e=!0,className:i="",variant:o="section",cardLink:d="",cardText:c=(0,n.__)("Unlock with premium","gtm-kit"),...g})=>{if(!e)return t;const u=d||(0,l.a)("upgrades","upgrades");return(0,r.jsxs)("div",{className:s()("gtmkit-feature-upsell gtmkit-relative gtmkit-max-w-screen-lg",m.variant[o],i),children:[(0,r.jsx)("div",{className:s()("gtmkit-opacity-60",{"gtmkit-space-y-8":"section"===o},{"gtmkit-px-4":"single"===o}),children:t}),(0,r.jsx)("div",{className:"gtmkit-absolute gtmkit-inset-0 gtmkit-ring-1 gtmkit-ring-black gtmkit-ring-opacity-5 gtmkit-shadow-lg gtmkit-rounded-md"}),(0,r.jsx)("div",{className:s()("gtmkit-absolute gtmkit-inset-0 gtmkit-flex gtmkit-items-center",{"gtmkit-justify-center":"section"===o},{"gtmkit-justify-end":"single"===o}),children:(0,r.jsx)(a.Button,{as:"a",className:s()("gtmkit-shadow-lg gtmkit-rounded is-primary",{"gtmkit-text-lg gtmkit-py-6 gtmkit-px-8":"section"===o},{"gtmkit-text-sm gtmkit-py-0.5 gtmkit-px-4 gtmkit-mr-8":"single"===o}),variant:"upsell",onClick:()=>{window.location.href=u},target:"_blank",rel:"noopener",...g,children:c})})]})}},4901:(t,e,i)=>{i.d(e,{A:()=>m});var o=i(7723),s=i(6992),a=i(237),n=i(6087),l=i(3951),r=i(790);const m=(0,n.memo)((({pluginName:t,optionName:e,pluginInactive:i})=>{const{useSettings:m,updateStateSettings:d}=(0,n.useContext)(l.ph);return(0,r.jsxs)(a.A,{disabled:i,children:[(0,r.jsx)(a.A.Header,{title:(0,o.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,o.__)("%s Integration","gtm-kit"),t)}),(0,r.jsx)(a.A.Content,{children:(0,r.jsx)(s.A,{title:(0,o.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,o.__)("Track %s","gtm-kit"),t),label:(0,o.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,o.__)("Activate the %s integration","gtm-kit"),t),optionGroup:"integrations",optionName:e,disabled:i,useSettings:m,updateStateSettings:d})})]})}))},8949:(t,e,i)=>{i.d(e,{A:()=>m});var o=i(7723),s=i(6087),a=i(6427),n=i(237),l=i(8621),r=i(790);const m=(0,s.memo)((({pluginName:t})=>(0,r.jsxs)(n.A,{children:[(0,r.jsx)(n.A.Header,{title:(0,o.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,o.__)("%s is not active","gtm-kit"),t),className:"gtmkit-text-red-600"}),(0,r.jsxs)(n.A.Content,{children:[(0,r.jsx)("p",{className:"gtmkit-mb-6",children:(0,o.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,o.__)("If you haven't installed and activated %s you must do that.","gtm-kit"),t)}),(0,r.jsx)(a.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-sm disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey",onClick:()=>{window.location.href=l.A.getPluginInstallUrl()+t},children:(0,o.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,o.__)("Install %s","gtm-kit"),t)})]})]})))},237:(t,e,i)=>{i.d(e,{A:()=>r});var o=i(6087),s=i(790);const a=(0,o.memo)((({as:t="h3",title:e="",children:i,className:o="",...a})=>(0,s.jsxs)(t,{...a,className:"gtmkit-font-bold gtmkit-text-lg gtmkit-px-8 gtmkit-py-4 gtmkit-border-b gtmkit-border-color-grey gtmkit-flex gtmkit-items-center "+o,children:[e,i]}))),n=(0,o.memo)((({as:t="div",children:e,className:i="",...o})=>(0,s.jsx)(t,{...o,className:"gtmkit-px-8 gtmkit-py-6 "+i,children:e}))),l=(0,o.forwardRef)((({children:t,className:e="",disabled:i=!1,...o},a)=>(0,s.jsx)("div",{...o,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+e+(i?"gtmkit-opacity-60":""),ref:a,children:t})));l.Header=a,l.Content=n;const r=l},7690:(t,e,i)=>{i.r(e),i.d(e,{default:()=>w});var o=i(7723),s=i(6087),a=i(9566),n=i(9132),l=i(3951),r=i(8621);var m=i(6992),d=i(8949),c=i(4832),g=i(6427),u=i(790);const p=(0,s.memo)((({title:t,className:e="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:i="general",optionName:a,disabled:n=!1,help:m="",notSet:d=!0,maxResults:c=15})=>{const{useSettings:p,updateStateSettings:_}=(0,s.useContext)(l.ph),[h,k]=(0,s.useState)(""),b=p&&p[i][a],x=(0,s.useMemo)((()=>{const t=r.A.getPageOptions();let e=t;h&&(e=t.filter((t=>t.label.toLowerCase().includes(h.toLowerCase()))));const i=e.slice(0,c),s=d?[{label:(0,o.__)("(not set)","gtm-kit"),value:""},...i]:i;if(b&&""!==b){const e=t.find((t=>t.value===b));e&&!s.find((t=>t.value===b))&&s.unshift(e)}return s}),[h,b,c,d]);return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(g.ComboboxControl,{label:t,value:b||"",options:x,className:e,onChange:t=>_(i,a,t),onFilterValueChange:t=>k(t),disabled:n,help:m})})}));var _=i(3903),h=i(6327),k=i(4901),b=i(237),x=i(8562),v=i(7722),f=i(7449);const w=()=>{const{settings:t}=(0,s.useContext)(l.ph),{isPremium:e}=(()=>{const{isPremium:t,hasValidLicense:e}=(0,s.useContext)(n.BN),{settings:i}=(0,s.useContext)(l.ph),o=(0,s.useCallback)((()=>t&&e),[t,e]),a=(0,s.useCallback)((t=>r.A.isPluginActive(t)),[]),m=(0,s.useCallback)((()=>Boolean(i?.general?.sgtm_domain&&i.general.sgtm_domain.trim())),[i?.general?.sgtm_domain]),d=(0,s.useCallback)((t=>{var e;return null!==(e={webhooks:o()&&m(),advancedTracking:o(),premiumIntegrations:o(),woocommerce:a("woocommerce"),edd:a("easy-digital-downloads"),cf7:a("contact-form-7"),sgtm:m(),cookieKeeper:m()&&o()}[t])&&void 0!==e&&e}),[o,a,m]);return{isPremium:t,hasValidLicense:e,requiresPremium:o,isPluginActive:a,hasSGTM:m,canUseFeature:d}})(),i="WooCommerce",{pluginInactive:g,settingsInactive:w,sgtmInactive:j}=(0,a.q)("woocommerce","woocommerce_integration"),N=j||!t.premium.woocommerce_webhooks;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,o.__)("WooCommerce","gtm-kit")}),g?(0,u.jsx)(d.A,{pluginName:i}):null,(0,u.jsx)(k.A,{pluginName:i,optionName:"woocommerce_integration",pluginInactive:g}),(0,u.jsxs)(b.A,{disabled:w,children:[(0,u.jsx)(b.A.Header,{title:(0,o.__)("Basic Settings","gtm-kit")}),(0,u.jsxs)(b.A.Content,{children:[(0,u.jsx)(c.A,{title:(0,o.__)("Brand","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_brand",options:r.A.getTaxonomyOptions(),help:(0,o.__)("Select the taxonomy that is used for product brands","gtm-kit"),notSet:!0,disabled:w}),(0,u.jsx)(m.A,{title:(0,o.__)("Use SKU instead of ID","gtm-kit"),label:(0,o.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_use_sku",disabled:w}),(0,u.jsx)(m.A,{title:(0,o.__)("Exclude tax","gtm-kit"),label:(0,o.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_tax",disabled:w}),(0,u.jsx)(m.A,{title:(0,o.__)("Exclude shipping from revenue","gtm-kit"),label:(0,o.__)("Exclude shipping from revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_shipping",disabled:w})]})]}),(0,u.jsxs)(b.A,{disabled:w,children:[(0,u.jsx)(b.A.Header,{title:(0,o.__)("User Data","gtm-kit")}),(0,u.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,u.jsx)(b.A.Content,{children:(0,u.jsx)(m.A,{title:(0,o.__)("Include customer data","gtm-kit"),label:(0,o.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_customer_data",disabled:w})}),(0,u.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,u.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,u.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,o.__)("User-Provided Data","gtm-kit")}),(0,u.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,o.__)("The user data is available in the datalayer in 'ecommerce.customer' and a subset of the user data formatted for the 'User-Provided Data' variable is available in 'user-data'.","gtm-kit")," ",(0,u.jsx)("a",{href:"https://support.google.com/google-ads/answer/13262500?sjid=9465166023214753583-EU#Code_snippet",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,o.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,u.jsxs)(b.A,{disabled:w,children:[(0,u.jsx)(b.A.Header,{title:(0,o.__)("Webhooks for Server-side Tracking","gtm-kit"),children:e?(0,u.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,u.jsx)(v.A,{shouldUpsell:!e,children:(0,u.jsxs)(b.A.Content,{children:[j?(0,u.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,o.__)("In order to use webhooks you must first enable Server-side Tagging by entering a sGTM Container Domain","gtm-kit"),(0,u.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:(0,f.a)("general","container?focus=sgtm"),children:(0,o.__)("Go to sGTM settings","gtm-kit")})]}):(0,u.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,o.__)("In order to use webhooks you must configure you server-side container to handle the webhooks","gtm-kit"),(0,u.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:(0,f.a)("templates","server-side-tagging"),children:(0,o.__)("Go to GTM Templates","gtm-kit")})]}),(0,u.jsx)(m.A,{title:(0,o.__)("Send webhooks to server GTM container","gtm-kit"),label:(0,o.__)("This option will allow you to send GTM events using webhooks to your server GTM container.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_webhooks",disabled:j}),(0,u.jsx)("h3",{className:"gtmkit-pt-3 gtmkit-mb-2 gtmkit-font-bold",children:(0,o.__)("GTM Events Send by Server-Side Webhooks:","gtm-kit")}),(0,u.jsx)(m.A,{title:(0,u.jsx)("code",{children:"purchase"}),label:(0,o.__)("Send an 'purchase' event from the server side when an order is created.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_purchase_webhook",disabled:N,narrow:!0}),t.premium.woocommerce_purchase_webhook||!e?(0,u.jsx)("div",{className:"gtmkit-px-8",children:(0,u.jsx)(h.A,{options:[{label:(0,o.__)("Send 'purchase' event when an order is created.'","gtm-kit"),value:0},{label:(0,o.__)("Send 'purchase' event when the order has been paid and order status is 'Processing'.","gtm-kit"),value:1}],optionGroup:"premium",optionName:"woocommerce_purchase_webhook_trigger",disabled:N,className:"gtmkit-settings-field-wrap gtmkit-pb-6"})}):null,(0,u.jsx)(m.A,{title:(0,u.jsx)("code",{children:"order_paid"}),label:(0,o.__)("Send an 'order_paid' event from the server side when an order has 'Processing' status.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_order_paid_webhook",disabled:N,narrow:!0}),(0,u.jsx)(m.A,{title:(0,u.jsx)("code",{children:"refund"}),label:(0,o.__)("Send an 'refund' event from the server side when an order has been refunded or cancelled.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_refund_webhook",disabled:N,narrow:!0})]})})]}),(0,u.jsxs)(b.A,{disabled:w,children:[(0,u.jsx)(b.A.Header,{title:(0,o.__)("Event Customization","gtm-kit")}),(0,u.jsxs)(b.A.Content,{children:[(0,u.jsx)(h.A,{title:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("code",{children:"view_item_list"})," (with product filter)"]}),options:[{label:(0,o.__)("Push view_item_list when the list is updated using a product filter.","gtm-kit"),value:0},{label:(0,o.__)("Only only push view_item_list once per per page for each list.","gtm-kit"),value:1}],help:(0,o.__)("Do you what to push the view_item_list event if the list is updated using a filter or just once per page view?","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_view_item_list_limit",disabled:w}),(0,u.jsx)(h.A,{title:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("code",{children:"view_item"})," '(variable product)'"]}),options:[{label:(0,o.__)("Only push view_item on the master product","gtm-kit"),value:0},{label:(0,o.__)("Push view_item on master and variation products (higher number of views).","gtm-kit"),value:1},{label:(0,o.__)("Only push view_item on variation products.","gtm-kit"),value:2}],help:(0,o.__)('When do you want to fire the "view_item" event on variable products?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_variable_product_tracking",disabled:w}),(0,u.jsx)(h.A,{title:(0,u.jsx)("code",{children:"add_shipping_info"}),options:[{label:(0,o.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,o.__)("When a shipment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,o.__)("Disable the 'add_shipment_info' event.","gtm-kit"),value:0}],help:(0,o.__)('When do you want to fire the "add_shipment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_shipping_info",disabled:w}),(0,u.jsx)(h.A,{title:(0,u.jsx)("code",{children:"add_payment_info"}),options:[{label:(0,o.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,o.__)("When a payment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,o.__)("Disable the 'add_payment_info' event.","gtm-kit"),value:0}],help:(0,o.__)('When do you want to fire the "add_payment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_payment_info",disabled:w}),(0,u.jsx)(v.A,{shouldUpsell:!e,variant:"single",children:(0,u.jsx)(m.A,{title:(0,u.jsx)("code",{children:"purchase"}),label:(0,o.__)("Disable the 'purchase' event in frontend an rely on server-side webhook.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_disable_frontend_purchase_event",disabled:N,premium:e})})]})]}),(0,u.jsxs)(b.A,{disabled:w,children:[(0,u.jsx)(b.A.Header,{title:(0,o.__)("Google Ads Settings","gtm-kit")}),(0,u.jsxs)(b.A.Content,{children:[(0,u.jsx)(c.A,{title:(0,o.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_google_business_vertical",options:x.X,help:(0,o.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:w}),(0,u.jsx)(_.A,{title:(0,o.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_product_id_prefix",placeholder:(0,o.__)("Enter prefix","gtm-kit"),help:(0,o.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:w})]})]}),(0,u.jsxs)(b.A,{disabled:w,children:[(0,u.jsx)(b.A.Header,{title:(0,o.__)("Custom CSS Selectors","gtm-kit"),children:e?(0,u.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,u.jsx)(v.A,{shouldUpsell:!e,children:(0,u.jsxs)(b.A.Content,{children:[(0,u.jsx)("p",{className:"gtmkit-mb-4",children:(0,o.__)("If your shop is not compatible with the default CSS selectors you can specify your own CSS selectors.","gtm-kit")}),(0,u.jsx)(_.A,{title:(0,o.__)("Single Product (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_single_product_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,o.__)("Enter CSS selector","gtm-kit"),help:(0,o.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit")}),(0,u.jsx)(_.A,{title:(0,o.__)("Product List (select_item):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_item_selector",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,o.__)("Enter CSS selector","gtm-kit"),help:(0,o.__)("Enter the CSS selector that matches your product list item, which should be use to fire the select_item event.","gtm-kit")}),(0,u.jsx)(_.A,{title:(0,o.__)("Product List (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,o.__)("Enter CSS selector","gtm-kit"),help:(0,o.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit")})]})})]}),(0,u.jsxs)(b.A,{disabled:w,children:[(0,u.jsx)(b.A.Header,{title:(0,o.__)("Advanced Settings","gtm-kit")}),(0,u.jsxs)(b.A.Content,{children:[(0,u.jsx)(m.A,{title:(0,o.__)("Custom Order Received Page","gtm-kit"),label:(0,o.__)("Enable custom order received (thank you) page","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_custom_order_received_page_enabled",disabled:w}),t.integrations.woocommerce_custom_order_received_page_enabled?(0,u.jsx)("div",{className:"gtmkit-px-8",children:(0,u.jsx)(p,{title:(0,o.__)("Select Page","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_custom_order_received_page",help:(0,o.__)("Select a custom page to use as the order received (thank you) page","gtm-kit"),notSet:!0,disabled:w,className:"gtmkit-settings-field-wrap gtmkit-pb-6",maxResults:15})}):null,(0,u.jsx)(m.A,{title:(0,o.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,o.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_dequeue_script",disabled:w}),(0,u.jsx)(m.A,{title:(0,o.__)("Include permalink structure","gtm-kit"),label:(0,o.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_permalink_structure",disabled:w}),(0,u.jsx)(m.A,{title:(0,o.__)("Include path of pages","gtm-kit"),label:(0,o.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_pages",disabled:w})]})]})]})}},8562:(t,e,i)=>{i.d(e,{X:()=>s});var o=i(7723);const s=[{label:(0,o.__)("Retail","gtm-kit"),value:"retail"},{label:(0,o.__)("Education","gtm-kit"),value:"education"},{label:(0,o.__)("Flights","gtm-kit"),value:"flights"},{label:(0,o.__)("Hotel rental","gtm-kit"),value:"hotel_rental"},{label:(0,o.__)("Jobs","gtm-kit"),value:"jobs"},{label:(0,o.__)("Local deals","gtm-kit"),value:"local"},{label:(0,o.__)("Real estate","gtm-kit"),value:"real_estate"},{label:(0,o.__)("Travel","gtm-kit"),value:"travel"},{label:(0,o.__)("Custom","gtm-kit"),value:"custom"}]},9566:(t,e,i)=>{i.d(e,{q:()=>l});var o=i(6087),s=i(3951),a=i(9132),n=i(8621);const l=(t,e)=>{const{settings:i}=(0,o.useContext)(s.ph),{isPremium:l,hasValidLicense:r}=(0,o.useContext)(a.BN);return(0,o.useMemo)((()=>{const o=!n.A.isPluginActive(t),s="1"===i?.integrations?.[e]||!0===i?.integrations?.[e],a=o||!s,m=a||!(l&&r),d=m||!(i?.general?.sgtm_domain&&i.general.sgtm_domain.trim());return{pluginActive:!o,pluginInactive:o,integrationEnabled:s,settingsInactive:a,premiumActive:!m,premiumInactive:m,sgtmActive:!d,sgtmInactive:d,canUseIntegration:!a,canUsePremiumFeatures:!m,canUseSgtmFeatures:!d}}),[t,e,i?.integrations,i?.general?.sgtm_domain,l,r])}},1835:(t,e,i)=>{i.d(e,{h:()=>a});var o=i(6087),s=i(282);const a=()=>{var t,e;const{notifications:i,setNotificationStatus:a,isUpdatingNotifications:n}=(0,o.useContext)(s.V2),l=(0,o.useCallback)((t=>a(t,"dismiss")),[a]),r=(0,o.useCallback)((t=>a(t,"remove")),[a]),m=null!==(t=i?.metrics?.total)&&void 0!==t?t:0,d=null!==(e=i?.metrics?.problem)&&void 0!==e?e:0;return{notifications:i,dismissNotification:l,removeNotification:r,isUpdatingNotifications:n,totalNotifications:m,problemNotifications:d,hasProblems:d>0,hasNotifications:m>0}}},5280:(t,e,i)=>{i.d(e,{G:()=>a});var o=i(6087),s=i(3951);const a=(t,e)=>{const{settings:i,updateStateSettings:a}=(0,o.useContext)(s.ph),n=i?.[t]?.[e];return[n,(0,o.useCallback)((i=>{a(t,e,i)}),[t,e,a])]}}}]);