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rc.2 3.1.0 6.2.1 3.1.1 6.2.2 3.1.2 6.2.3 3.2.0 6.3.0 3.2.1 6.3.0-beta.1 3.2.2 6.3.0-rc.1 3.2.3 6.3.0-rc.2 3.2.4 6.3.1 3.2.5 6.3.2 3.2.6 6.4.0 3.3.0 6.4.0-beta.1 3.3.1 6.4.0-rc.1 3.3.2 6.4.1 3.3.2-rc.1 6.4.2 3.3.3 6.5.0 3.3.4 6.5.0-beta.1 3.3.5 6.5.0-rc.1 3.3.6 6.5.0-rc.2 3.4.0 6.5.1 3.4.0-beta.1 6.5.2 3.4.0-rc.2 6.6.0 3.4.1 6.6.0-beta.1 3.4.2 6.6.0-rc.1 3.4.3 6.6.0-rc.2 3.4.4 6.6.1 3.4.5 6.6.2 3.4.6 6.7.0 3.4.7 6.7.0-beta.1 3.4.8 6.7.0-beta.2 3.5.0 6.7.0-rc.1 3.5.0-beta.1 6.7.1 3.5.0-rc.1 6.8.0 3.5.0-rc.2 6.8.0-beta.1 3.5.1 6.8.0-beta.2 3.5.10 6.8.0-rc.1 3.5.2 6.8.1 3.5.3 6.8.2 3.5.4 6.8.3 3.5.5 6.9.0 3.5.6 6.9.0-beta.1 3.5.7 6.9.0-beta.2 3.5.8 6.9.0-rc.1 3.5.9 6.9.1 3.6.0 6.9.2 3.6.0-beta.1 6.9.3 3.6.0-rc.1 6.9.4 3.6.0-rc.2 6.9.5 3.6.0-rc.3 7.0.0 3.6.1 7.0.0-beta.1 3.6.2 7.0.0-beta.2 3.6.3 7.0.0-beta.3 3.6.4 7.0.0-rc.1 3.6.5 7.0.0-rc.2 3.6.6 7.0.1 3.6.7 7.0.2 3.7.0 7.1.0 3.7.0-beta.1 7.1.0-beta.1 3.7.0-rc.1 7.1.0-beta.2 3.7.0-rc.2 7.1.0-rc.1 3.7.1 7.1.0-rc.2 3.7.2 7.1.1
woocommerce / assets / client / admin / chunks / settings-payments-cod.js
woocommerce / assets / client / admin / chunks Last commit date
1133.style-rtl.css 7 months ago 1133.style.css 1 year ago 1226.style-rtl.css 1 month ago 1226.style.css 1 month ago 1438.style-rtl.css 1 month ago 1438.style.css 1 month ago 1494.style-rtl.css 1 month ago 1494.style.css 1 month ago 1851.js 1 month ago 2152.style-rtl.css 1 month ago 2152.style.css 1 month ago 2482.js 1 month ago 266.js 2 months ago 266.js.LICENSE.txt 2 months ago 2863.js 1 month ago 2863.style-rtl.css 1 month ago 2863.style.css 1 month ago 2985.style-rtl.css 7 months ago 2985.style.css 1 year ago 2999.js 1 month ago 3151.style-rtl.css 5 months ago 3151.style.css 5 months ago 3203.js 1 month ago 3203.js.LICENSE.txt 1 month ago 3256.style-rtl.css 5 months ago 3256.style.css 5 months ago 3381.js 1 month ago 3404.style-rtl.css 5 months ago 3404.style.css 5 months ago 3501.style-rtl.css 1 month ago 3501.style.css 1 month ago 3534.style-rtl.css 7 months ago 3534.style.css 1 year ago 3678.style-rtl.css 1 month ago 3678.style.css 1 month ago 4040.style-rtl.css 1 month ago 4040.style.css 1 month ago 4235.js 1 month ago 4235.js.LICENSE.txt 1 month ago 4277.js 2 months ago 4409.style-rtl.css 5 months ago 4409.style.css 5 months ago 4581.js 1 month ago 4581.style-rtl.css 1 month ago 4581.style.css 1 month ago 504.style-rtl.css 7 months ago 504.style.css 1 year ago 5113.style-rtl.css 5 months ago 5113.style.css 5 months ago 5242.js 2 months ago 5242.js.LICENSE.txt 2 months ago 5359.style-rtl.css 1 month ago 5359.style.css 1 month ago 5787.js 1 month ago 5845.style-rtl.css 5 months ago 5845.style.css 5 months ago 592.style-rtl.css 1 month ago 592.style.css 1 month ago 5941.style-rtl.css 5 months ago 5941.style.css 5 months ago 5945.js 2 months ago 5945.js.LICENSE.txt 1 year ago 6005.js 1 month ago 6049.js 1 month ago 6071.style-rtl.css 5 months ago 6071.style.css 5 months ago 6115.style-rtl.css 7 months ago 6115.style.css 1 year ago 6407.js 1 month ago 6424.style-rtl.css 5 months ago 6424.style.css 5 months ago 6562.js 2 months ago 6620.style-rtl.css 1 month ago 6620.style.css 1 month ago 6657.js 1 month ago 6779.style-rtl.css 7 months ago 6779.style.css 1 year ago 6844.js 1 month ago 7106.js 1 month ago 7202.style-rtl.css 5 months ago 7202.style.css 5 months ago 7210.style-rtl.css 1 month ago 7210.style.css 1 month ago 7734.js 2 months ago 7752.style-rtl.css 1 month ago 7752.style.css 1 month ago 7956.style-rtl.css 7 months ago 7956.style.css 1 year ago 8.style-rtl.css 7 months ago 8.style.css 1 year ago 8013.style-rtl.css 7 months ago 8013.style.css 1 year ago 8039.style-rtl.css 7 months ago 8039.style.css 1 year ago 8068.style-rtl.css 5 months ago 8068.style.css 5 months ago 823.style-rtl.css 7 months ago 823.style.css 1 year ago 8286.style-rtl.css 5 months ago 8286.style.css 5 months ago 9104.js 1 month ago 9104.style-rtl.css 1 month ago 9104.style.css 1 month ago 945.style-rtl.css 7 months ago 945.style.css 1 year ago 9678.js 1 month ago 9678.style-rtl.css 1 month ago 9678.style.css 1 month ago 9680.style-rtl.css 1 month ago 9680.style.css 1 month ago 9801.js 1 month ago activity-panels-help.js 1 month ago activity-panels-inbox.js 1 month ago activity-panels-setup.js 1 month ago analytics-report-categories.js 1 month ago analytics-report-coupons.js 1 month ago analytics-report-customers.js 1 month ago analytics-report-downloads.js 1 month ago analytics-report-orders.js 1 month ago analytics-report-products.js 1 month ago analytics-report-revenue.js 1 month ago analytics-report-stock.js 1 month ago analytics-report-taxes.js 1 month ago analytics-report-variations.js 1 month ago analytics-report.js 1 month ago analytics-settings.js 1 month ago category-metabox.js 1 month ago core-profiler.js 1 month ago customizable-dashboard.js 1 month ago customize-store.js 1 month ago customize-store.js.LICENSE.txt 5 months ago dashboard-charts.js 1 month ago dashboard.js 1 month ago edit-product-page.js 1 month ago experimental-products-app-variation-view-main.js 1 month ago homescreen.js 1 month ago launch-store.js 1 month ago launch-store.js.LICENSE.txt 2 months ago leaderboards.js 1 month ago marketplace.js 1 month ago mobile-app-login.js 1 month ago multichannel-marketing.js 1 month ago product-page.js 1 month ago settings-payments-bacs.js 1 month ago settings-payments-cheque.js 1 month ago settings-payments-cod.js 1 month ago settings-payments-main.js 1 month ago settings-payments-offline.js 1 month ago settings-payments-woocommerce-payments.js 1 month ago shipping-recommendations.js 1 month ago store-alerts.js 1 month ago store-performance.js 1 month ago wcpay-payment-welcome-page.js 1 month ago
settings-payments-cod.js
1 lines
1 "use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[3501],{4333:(e,t,o)=>{o.d(t,{W:()=>a});var s=o(56427),n=o(39793);const a=({size:e="medium"})=>(0,n.jsx)("div",{className:`woocommerce-field-placeholder woocommerce-field-placeholder--${e}`,children:(0,n.jsx)(s.Placeholder,{})})},23183:(e,t,o)=>{o.d(t,{w:()=>i});var s=o(56427),n=o(51609),a=o(39793);const i=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});i.Layout=({children:e})=>((0,n.useEffect)(()=>{const e=document.getElementById("wpbody");e&&e.querySelector(".settings-layout")&&e.classList.add("has-settings-layout")},[]),(0,a.jsx)("div",{className:"settings-layout",children:e})),i.Section=({title:e,description:t,children:o,id:s})=>(0,a.jsxs)("div",{className:"settings-section",id:s,children:[(0,a.jsxs)("div",{className:"settings-section__details",children:[(0,a.jsx)("h2",{children:e}),(0,a.jsx)("p",{children:t})]}),(0,a.jsx)("div",{className:"settings-section__controls",children:o})]}),i.Actions=({children:e})=>(0,a.jsx)(s.Card,{className:"settings-card__wrapper ",children:(0,a.jsx)(s.CardBody,{className:"form__actions",children:e})}),i.Form=({children:e,onSubmit:t})=>(0,a.jsx)("form",{onSubmit:t,className:"settings-form",children:e})},86662:(e,t,o)=>{o.r(t),o.d(t,{SettingsPaymentsCod:()=>u,default:()=>_});var s=o(56427),n=o(98846),a=o(27723),i=o(47143),r=o(40314),l=o(86087);function c(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}var d=o(23183),m=o(4333),h=o(39793);const u=()=>{const{createSuccessNotice:e,createErrorNotice:t}=(0,i.useDispatch)("core/notices"),{codSettings:o,isLoading:u}=(0,i.useSelect)(e=>({codSettings:e(r.paymentGatewaysStore).getPaymentGateway("cod"),isLoading:!e(r.paymentGatewaysStore).hasFinishedResolution("getPaymentGateway",["cod"])}),[]),{updatePaymentGateway:_,invalidateResolutionForStoreSelector:p}=(0,i.useDispatch)(r.paymentGatewaysStore),{invalidateResolution:g,invalidateResolutionForStoreSelector:y}=(0,i.useDispatch)(r.paymentSettingsStore),[b,w]=(0,l.useState)({}),[v,f]=(0,l.useState)(!1),[x,S]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{o&&(w({enabled:o.enabled,title:o.settings.title.value,description:o.description,instructions:o.settings.instructions.value,enable_for_methods:Array.isArray(o.settings.enable_for_methods.value)?o.settings.enable_for_methods.value:[],enable_for_virtual:"yes"===o.settings.enable_for_virtual.value}),S(!1))},[o]),(0,h.jsx)(d.w,{children:(0,h.jsx)(d.w.Layout,{children:(0,h.jsxs)(d.w.Form,{onSubmit:s=>{s.preventDefault(),(()=>{if(!o)return;f(!0);const s={title:String(b.title),instructions:String(b.instructions),enable_for_methods:Array.isArray(b.enable_for_methods)?b.enable_for_methods:[],enable_for_virtual:b.enable_for_virtual?"yes":"no"};_("cod",{enabled:Boolean(b.enabled),description:String(b.description),settings:s}).then(()=>{S(!1),p("getPaymentGateway"),e((0,a.__)("Settings updated successfully","woocommerce"))}).catch(()=>{t((0,a.__)("Failed to update settings","woocommerce"))}).finally(()=>{f(!1),g("getPaymentProviders",[]),y("getOfflinePaymentGateways")})})()},children:[(0,h.jsxs)(d.w.Section,{title:(0,a.__)("Enable and customise","woocommerce"),description:(0,a.__)("Choose how you want to present cash on delivery payments to your customers during checkout.","woocommerce"),children:[u?(0,h.jsx)(m.W,{size:"small"}):(0,h.jsx)(s.CheckboxControl,{label:(0,a.__)("Enable cash on delivery payments","woocommerce"),checked:Boolean(b.enabled),onChange:e=>{w({...b,enabled:e}),S(!0)}}),u?(0,h.jsx)(m.W,{size:"medium"}):(0,h.jsx)(s.TextControl,{label:(0,a.__)("Title","woocommerce"),help:(0,a.__)("Payment method name that the customer will see during checkout.","woocommerce"),placeholder:(0,a.__)("Cash on delivery payments","woocommerce"),value:String(b.title),onChange:e=>{w({...b,title:e}),S(!0)}}),u?(0,h.jsx)(m.W,{size:"large"}):(0,h.jsx)(s.TextareaControl,{label:(0,a.__)("Description","woocommerce"),help:(0,a.__)("Payment method description that the customer will see during checkout.","woocommerce"),value:String(b.description),onChange:e=>{w({...b,description:e}),S(!0)}}),u?(0,h.jsx)(m.W,{size:"large"}):(0,h.jsx)(s.TextareaControl,{label:(0,a.__)("Instructions","woocommerce"),help:(0,a.__)("Instructions that will be added to the thank you page and emails.","woocommerce"),value:String(b.instructions),onChange:e=>{w({...b,instructions:e}),S(!0)}}),u||!o?(0,h.jsx)(m.W,{size:"medium"}):(0,h.jsx)(n.TreeSelectControl,{label:(0,a.__)("Enable for shipping methods","woocommerce"),help:(0,a.__)("Select shipping methods for which this payment method is enabled.","woocommerce"),options:o.settings.enable_for_methods?.options?(j=o.settings.enable_for_methods.options,Object.entries(j).map(([e,t])=>({label:c(e),value:e,children:Object.entries(t).map(([e,t])=>({value:e,label:c(t)}))}))):[],value:Array.isArray(b.enable_for_methods)?b.enable_for_methods:[],onChange:e=>{w({...b,enable_for_methods:e}),S(!0)},selectAllLabel:!1}),u?(0,h.jsx)(m.W,{size:"small"}):(0,h.jsx)(s.CheckboxControl,{label:(0,a.__)("Accept for virtual orders","woocommerce"),help:(0,a.__)("Accept cash on delivery if the order is virtual","woocommerce"),checked:Boolean(b.enable_for_virtual),onChange:e=>{w({...b,enable_for_virtual:e}),S(!0)}})]}),(0,h.jsx)(d.w.Actions,{children:(0,h.jsx)(s.Button,{variant:"primary",type:"submit",isBusy:v,disabled:v||!x,children:(0,a.__)("Save changes","woocommerce")})})]})})});var j},_=u}}]);