PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
/
checkout-blocks
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[552],{6094:(e,o,t)=>{t.r(o),t.d(o,{default:()=>h});var r=t(1609),s=t(851),c=t(7723),a=t(4656),n=t(4958),l=t(7143),d=t(7594),u=t(6087);const i=({disabled:e,onChange:o,placeholder:t,value:s})=>{const[n,l]=(0,u.useState)(!1),[d,i]=(0,u.useState)("");return(0,r.createElement)("div",{className:"wc-block-checkout__add-note"},(0,r.createElement)(a.CheckboxControl,{disabled:e,label:(0,c.__)("Add a note to your order","woocommerce"),checked:n,onChange:e=>{l(e),e?s!==d&&o(d):(o(""),i(s))}}),n&&(0,r.createElement)(a.Textarea,{disabled:e,onTextChange:o,placeholder:t,value:s}))},h=({className:e})=>{const{needsShipping:o}=(0,n.m)(),{isProcessing:t,orderNotes:u}=(0,l.useSelect)((e=>{const o=e(d.CHECKOUT_STORE_KEY);return{isProcessing:o.isProcessing(),orderNotes:o.getOrderNotes()}})),{__internalSetOrderNotes:h}=(0,l.useDispatch)(d.CHECKOUT_STORE_KEY);return(0,r.createElement)(a.FormStep,{id:"order-notes",showStepNumber:!1,className:(0,s.A)("wc-block-checkout__order-notes",e),disabled:t},(0,r.createElement)(i,{disabled:t,onChange:h,placeholder:o?(0,c.__)("Notes about your order, e.g. special notes for delivery.","woocommerce"):(0,c.__)("Notes about your order.","woocommerce"),value:u}))}}}]);
[-] fields-style.js
[edit]
[-] payment-style.js
[edit]
[-] actions-frontend.js
[edit]
[-] totals-frontend.js
[edit]
[-] order-summary-cart-items-style.js
[edit]
[-] order-summary-shipping-frontend.js
[edit]
[-] totals-style.js
[edit]
[-] order-summary-taxes-style.js
[edit]
[-] order-summary-style.js
[edit]
[-] billing-address-frontend.js
[edit]
[-] shipping-address-style.js
[edit]
[-] shipping-methods-style.js
[edit]
[-] pickup-options-frontend.js
[edit]
[-] shipping-methods-frontend.js
[edit]
[-] order-summary-discount-frontend.js
[edit]
[-] payment-frontend.js
[edit]
[-] order-summary-cart-items-frontend.js
[edit]
[-] order-summary-frontend.js
[edit]
[-] order-summary-coupon-form-frontend.js
[edit]
[-] terms-frontend.js
[edit]
[-] shipping-method-style.js
[edit]
[-] shipping-method-frontend.js
[edit]
[-] order-summary-shipping-style.js
[edit]
[-] billing-address-style.js
[edit]
[-] actions-style.js
[edit]
[-] express-payment-frontend.js
[edit]
[-] terms-style.js
[edit]
[-] order-summary-discount-style.js
[edit]
[-] order-summary-subtotal-style.js
[edit]
[-] order-note-frontend.js
[edit]
[-] order-summary-fee-style.js
[edit]
[-] additional-information-frontend.js
[edit]
[-] order-summary-coupon-form-style.js
[edit]
[-] shipping-address-frontend.js
[edit]
[-] order-summary-subtotal-frontend.js
[edit]
[-] contact-information-style.js
[edit]
[-] order-summary-taxes-frontend.js
[edit]
[+]
..
[-] fields-frontend.js
[edit]
[-] additional-information-style.js
[edit]
[-] pickup-options-style.js
[edit]
[-] order-summary-fee-frontend.js
[edit]
[-] contact-information-frontend.js
[edit]