File "additional-information-frontend.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce/assets/client/blocks/checkout-blocks/additional-information-frontend.js
File size: 1.72 KB
MIME-type: text/plain
Charset: utf-8

"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[2227],{9017:(e,t,i)=>{i.d(t,{A:()=>l});var o=i(7723);const l=({defaultTitle:e=(0,o.__)("Step","woocommerce"),defaultDescription:t=(0,o.__)("Step description text.","woocommerce"),defaultShowStepNumber:i=!0})=>({title:{type:"string",default:e},description:{type:"string",default:t},showStepNumber:{type:"boolean",default:i}})},7912:(e,t,i)=>{i.r(t),i.d(t,{default:()=>E});var o=i(1609),l=i(851),n=i(4656),a=i(812),s=i(7143),d=i(7594),r=i(1616),c=i(9292),u=i(2379),p=i(3505);const m=()=>{const{additionalFields:e}=(0,s.useSelect)((e=>({additionalFields:e(d.CHECKOUT_STORE_KEY).getAdditionalFields()}))),{setAdditionalFields:t}=(0,s.useDispatch)(d.CHECKOUT_STORE_KEY),i={...e};return 0===a.pt.length?null:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(n.StoreNoticesContainer,{context:u.tG.ORDER_INFORMATION}),(0,o.createElement)(p.l,{id:"additional-information",addressType:"additional-information",onChange:e=>{t(e)},values:i,fields:a.pt}))};var f=i(7723);const h={...(0,i(9017).A)({defaultTitle:(0,f.__)("Additional order information","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!1,remove:!0}}},E=(0,r.withFilteredAttributes)(h)((({title:e,description:t,children:i,className:r})=>{const{showFormStepNumbers:u}=(0,c.Oy)(),p=(0,s.useSelect)((e=>e(d.CHECKOUT_STORE_KEY).isProcessing()));return 0===a.pt.length?null:(0,o.createElement)(n.FormStep,{id:"additional-information-fields",disabled:p,className:(0,l.A)("wc-block-checkout__additional-information-fields",r),title:e,description:t,showStepNumber:u},(0,o.createElement)(m,null),i)}))}}]);