(function(blocks,components,i18n,element){var __=wp.i18n.__;var el=wp.element.createElement;var registerBlockType=wp.blocks.registerBlockType;function savedObject(selected_table){var savedObject=[];jQuery(arprice_list_for_gutenberg).each(function(i){var arp_id=arprice_list_for_gutenberg[i].id;var arp_label=arprice_list_for_gutenberg[i].label;var options={value:arp_id,};if(selected_table==arp_id){options.selected='selected'}savedObject[i]=el('option',options,arp_label)});return savedObject}const arpricelogo=el('svg',{width:20,height:20,viewBox:'-3.5 -1 24 24',style:{fill:'#4f61e1'}},el('path',{d:"m10.005,22.007l0,-1.985l7.008,0l0,1.985l-7.008,0zm5.001,-8.005l1.994,0l0,6.01l-1.993,0l0,-6.01l-0.001,0zm-2.35,5.014l-8.294,0c-0.745,0 -1.349,-0.547 -1.349,-1.222l0,-13.568c0,-0.674 0.604,-1.221 1.349,-1.221l8.293,0c0.745,0 1.35,0.547 1.35,1.221l0,13.568c0,0.675 -0.604,1.222 -1.349,1.222zm-0.647,-14.006l-7,0l0,12l7,0l0,-12zm-1.009,3.999l-4.978,0l0,-2l4.978,0l0,2zm0,3.004l-4.978,0l0,-2.016l4.978,0l0,2.016zm0,2.998l-4.978,0l0,-2.01l4.978,0l0,2.01zm-8.993,-7.006l-2.004,0l0,-5.992l-0.003,0l0,-2.013l7.008,0l0,2.013l-5,0l0,5.992l-0.001,0z"}));registerBlockType('arprice/pricing-table-block',{title:__('ARPrice'),icon:arpricelogo,category:'common',keywords:[__('Pricing'),__('Table'),__('ARPrice')],attributes:{pricingTable:{type:'string',default:''}},edit:function(props){function onChangeContent(newContent){props.setAttributes({'pricingTable':newContent.target.value})}var element=el('div',{className:'wp-block-arprice-pricing-table-block'},'Select ARPrice Table',el('span',{},' '),el('select',{className:'wp-block-arprice-pricing-table-listing',onChange:onChangeContent},el('option',{value:''},__('Please select pricing table')),[savedObject(props.attributes.pricingTable)],));return element},save:function(props){var element="[ARPrice id="+props.attributes.pricingTable+"]";return element}})})(window.wp.blocks,window.wp.components,window.wp.i18n,window.wp.element)