(()=>{"use strict";var e,t={541:()=>{const e=window.React,t=window.wp.blocks,o=window.wp.element,n=(0,o.forwardRef)((function({icon:e,size:t=24,...n},l){return(0,o.cloneElement)(e,{width:t,height:t,...n,ref:l})})),l=window.wp.primitives,c=(0,e.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(l.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),a=window.wp.i18n,r=window.wp.blockEditor,s=window.wp.components,p=window.wc.blocksCheckout,i=window.wc.wcSettings,{defaultText:u,enabledProviders:w}=(0,i.getSetting)("vp-woo-pont-picker_data","");console.log(w);const v=JSON.parse('{"apiVersion":2,"name":"vp-woo-pont/pont-picker-block","version":"2.0.0","title":"Pont Picker Block","category":"woocommerce","description":"Adds a pont picker field to the checkout form.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-pickup-options-block"],"textdomain":"vp-woo-pont","editorStyle":"file:../../../build/style-pont-picker-block.css","attributes":{"lock":{"type":"object","default":{"move":true,"remove":true}}}}');(0,t.registerBlockType)(v,{icon:{src:(0,e.createElement)(n,{icon:c})},edit:({attributes:t,setAttributes:n})=>{const{text:l,selectButton:c,changeButton:i,showIcons:v}=t,m=(0,r.useBlockProps)(),[d,b]=(0,o.useState)(!0);return(0,e.createElement)("div",{...m},(0,e.createElement)(r.InspectorControls,{key:"setting"},(0,e.createElement)(s.PanelBody,{title:(0,a.__)("Settings","vp-woo-pont")},(0,e.createElement)(s.PanelRow,null,(0,e.createElement)("fieldset",null,(0,e.createElement)(s.TextControl,{label:(0,a.__)("Select button","vp-woo-pont"),value:c,onChange:e=>n({selectButton:e}),help:(0,a.__)("Button label to select a pickup point","vp-woo-pont")}))),(0,e.createElement)(s.PanelRow,null,(0,e.createElement)("fieldset",null,(0,e.createElement)(s.TextControl,{label:(0,a.__)("Modify button","vp-woo-pont"),value:i,onChange:e=>n({changeButton:e}),help:(0,a.__)("Button label to change selected pickup point","vp-woo-pont")}))),(0,e.createElement)(s.PanelRow,null,(0,e.createElement)(s.ToggleControl,{label:(0,a.__)("Show provider icons","vp-woo-pont"),onChange:()=>n({showIcons:!v}),checked:v})))),(0,e.createElement)("div",{className:"vp-woo-pont-block"},(0,e.createElement)("div",{className:"vp-woo-pont-block-box"},(0,e.createElement)("div",{className:"vp-woo-pont-block-select"},(0,e.createElement)("p",{className:"vp-woo-pont-block-select-title"},(0,e.createElement)(r.PlainText,{className:"",value:l||u,onChange:e=>n({text:e}),style:{backgroundColor:"transparent"}})),v&&(0,e.createElement)("div",{className:"vp-woo-pont-block-select-icons"},w&&w.map((t=>(0,e.createElement)("i",{key:t,className:`vp-woo-pont-provider-icon-${t}`}))))),(0,e.createElement)(p.Button,{className:"vp-woo-pont-block-select-button"},c))))},save:()=>(0,e.createElement)("div",{...r.useBlockProps.save()}),attributes:{...v.attributes,text:{type:"string",default:"Select a pickup point"},selectButton:{type:"string",default:"Select pickup point"},changeButton:{type:"string",default:"Modify"},showIcons:{type:"boolean",default:!0}}})}},o={};function n(e){var l=o[e];if(void 0!==l)return l.exports;var c=o[e]={exports:{}};return t[e](c,c.exports,n),c.exports}n.m=t,e=[],n.O=(t,o,l,c)=>{if(!o){var a=1/0;for(i=0;i<e.length;i++){for(var[o,l,c]=e[i],r=!0,s=0;s<o.length;s++)(!1&c||a>=c)&&Object.keys(n.O).every((e=>n.O[e](o[s])))?o.splice(s--,1):(r=!1,c<a&&(a=c));if(r){e.splice(i--,1);var p=l();void 0!==p&&(t=p)}}return t}c=c||0;for(var i=e.length;i>0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[o,l,c]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={313:0,686:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var l,c,[a,r,s]=o,p=0;if(a.some((t=>0!==e[t]))){for(l in r)n.o(r,l)&&(n.m[l]=r[l]);if(s)var i=s(n)}for(t&&t(o);p<a.length;p++)c=a[p],n.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return n.O(i)},o=globalThis.webpackChunkvp_woo_pont_block=globalThis.webpackChunkvp_woo_pont_block||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var l=n.O(void 0,[686],(()=>n(541)));l=n.O(l)})();