Plugin Directory

Changeset 2314494

Timestamp:
05/29/2020 01:57:47 PM (4 years ago)
Author:
naoki0h
Message:

Update to version 0.7.2 from GitHub

Location:
wp-simple-spreadsheet-fetcher-for-google
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/build/index.asset.php

    r2310942 r2314494  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-server-side-render'), 'version' => 'b03e4648e8cce8ff0dd635e6cff637ca');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-server-side-render'), 'version' => '');
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/build/index.js

    r2310942 r2314494  
    1 !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(22),a=n(23),c=n(16),o=n(24);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(19);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(20),a=n(21);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.serverSideRender}()},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(25),a=n(26),c=n(16),o=n(27);e.exports=function(e){return r(e)||a(e)||c(e)||o()}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),c=n(0),o=n(15),l=n.n(o),s=n(13),i=n(6),p=n(9),f=n.n(p),u=n(10),m=n.n(u),h=n(11),d=n.n(h),b=n(12),g=n.n(b),v=n(7),O=n.n(v),j=n(1),w=n(4);var E=wp.i18n.__,_=function(e){return"fetcher"===e?[{name:"setting",title:E("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"style",title:E("Style","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-style dashicons-before dashicons-admin-customizer"}]:"fetcher-chart"===e?[{name:"setting",title:E("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"advanced",title:E("Customize","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-advanced dashicons-before dashicons-plus"}]:void 0},y=function(){return Object(s.createHigherOrderComponent)((function(e){return function(t){d()(r,t);var n=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(r);function r(){return f()(this,r),n.apply(this,arguments)}return m()(r,[{key:"render",value:function(){var t=this,n=this.props.name.replace(/wp2s2fg\//,"");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.TabPanel,{className:"wssffg-sidebar-tab-panel",activeClass:"is-active",tabs:_(n),initialTabName:"setting"},(function(e){var r;return"setting"===e.name?r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.after"),null,t.props)):"style"===e.name?r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.after"),null,t.props)):"advanced"===e.name&&(r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.after"),null,t.props))),Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.before"),null,t.props),r)}))),Object(c.createElement)(e,this.props))}}]),r}(c.Component)}),"withTabbedInspector")},N=n(5),C=n.n(N),x=n(8),H=n.n(x),S=wp.components.ToggleControl,R=wp.element.useState,z=function(e){var t=e.label,n=e.helpYes,r=e.helpNo,a=e.schema,o=e.setAttributes,l=e.attributes,s=R(l[a]),i=H()(s,2),p=i[0],f=i[1];return Object(c.createElement)(S,{label:t,help:p?n:r,checked:p,onChange:function(){o(C()({},a,!p)),f(!p)}})},F=n(3),M=function(e){return Object(c.createElement)(z,a()({schema:"hasFixedTable"},e))},k=function(){return Object(c.createElement)("svg",{"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"a"},Object(c.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(c.createElement)("g",null,Object(c.createElement)("path",{d:"M0.015 0H2.9010000000000002V2.886H0.015z"}),Object(c.createElement)("path",{d:"M0.015 8.525H2.9010000000000002V11.411000000000001H0.015z"}),Object(c.createElement)("path",{d:"M0.015 4.277H2.9010000000000002V7.163H0.015z"}),Object(c.createElement)("path",{d:"M0.015 12.858H2.9010000000000002V15.744H0.015z"}),Object(c.createElement)("path",{d:"M0.015 17.106H2.9010000000000002V19.992H0.015z"}),Object(c.createElement)("path",{d:"M8.578 0H11.463999999999999V2.886H8.578z"}),Object(c.createElement)("path",{d:"M8.578 8.525H11.463999999999999V11.411000000000001H8.578z"}),Object(c.createElement)("path",{d:"M8.578 4.277H11.463999999999999V7.163H8.578z"}),Object(c.createElement)("path",{d:"M8.578 12.858H11.463999999999999V15.744H8.578z"}),Object(c.createElement)("path",{d:"M8.578 17.106H11.463999999999999V19.992H8.578z"}),Object(c.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(c.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(c.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(c.createElement)("path",{d:"M17.12 0H20.006V2.886H17.12z"}),Object(c.createElement)("path",{d:"M17.12 8.525H20.006V11.411000000000001H17.12z"}),Object(c.createElement)("path",{d:"M17.12 4.277H20.006V7.163H17.12z"}),Object(c.createElement)("path",{d:"M17.12 12.858H20.006V15.744H17.12z"}),Object(c.createElement)("path",{d:"M17.12 17.106H20.006V19.992H17.12z"}),Object(c.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(c.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(c.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},A=function(){return Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"a"},Object(c.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(c.createElement)("g",null,Object(c.createElement)("path",{fillRule:"evenodd",d:"M11.419 11.15v5.672l5.7.031.015-5.719-5.715.016zm0-8.414v5.672l5.7.031.015-5.719-5.715.016zm-8.511 0v5.672l5.7.031.015-5.719-5.715.016zM.066.036V19.9l19.943.108.054-20.026L.066.036zM2.908 11.15v5.672l5.7.031.015-5.719-5.715.016z"})))},T=function(){return Object(c.createElement)("svg",{"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"a"},Object(c.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(c.createElement)("g",null,Object(c.createElement)("path",{d:"M8.557 8.542H11.443000000000001V28.546H8.557z",transform:"rotate(-90 10 18.543)"}),Object(c.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z",transform:"rotate(-90 10 10.002)"}),Object(c.createElement)("path",{d:"M8.557 -8.542H11.443000000000001V11.462000000000002H8.557z",transform:"rotate(-90 10 1.46)"}),Object(c.createElement)("path",{d:"M-0.002 12.858H2.8840000000000003V15.744H-0.002z",transform:"rotate(-90 1.441 14.301)"}),Object(c.createElement)("path",{d:"M8.523 12.858H11.408999999999999V15.744H8.523z",transform:"rotate(-90 9.966 14.301)"}),Object(c.createElement)("path",{d:"M17.104 12.858H19.99V15.744H17.104z",transform:"rotate(-90 18.548 14.301)"}),Object(c.createElement)("path",{d:"M-0.002 4.242H2.8840000000000003V7.128H-0.002z",transform:"rotate(-90 1.442 5.685)"}),Object(c.createElement)("path",{d:"M8.523 4.242H11.408999999999999V7.128H8.523z",transform:"rotate(-90 9.966 5.685)"}),Object(c.createElement)("path",{d:"M17.104 4.242H19.99V7.128H17.104z",transform:"rotate(-90 18.547 5.686)"})))},B=function(){return Object(c.createElement)("svg",{"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"a"},Object(c.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(c.createElement)("g",null,Object(c.createElement)("path",{d:"M0.015 0H2.9010000000000002V20.004H0.015z"}),Object(c.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z"}),Object(c.createElement)("path",{d:"M17.098 0H19.983999999999998V20.004H17.098z"}),Object(c.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(c.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(c.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(c.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(c.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(c.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},V=wp.i18n.__,P=function(e){var t=e.icon;return"table-full"===t?Object(c.createElement)(A,null):"table-empty"===t?Object(c.createElement)(k,null):"table-horizontal"===t?Object(c.createElement)(T,null):"table-vertical"===t?Object(c.createElement)(B,null):V("nothing is specified","wp-simple-spreadsheet-fetcher-for-google")},I=wp.i18n.__,L=wp.element.useState,U=function(e){var t,n=e.schemaName,r=e.data,a=e.setAttributes,o=e.attributes,l=e.customClassName,s=e.icon,i=void 0!==s&&s,p=L(o[n]),f=H()(p,2),u=f[0],m=f[1],h="components-icon-button components-toolbar__control",d=function(e){m(e.target.value),a(C()({},n,e.target.value))};return t=i?r.map((function(e,t){return Object(c.createElement)(w.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},Object(c.createElement)(P,{icon:e}))})):r.map((function(e,t){return Object(c.createElement)(w.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},I("".concat(e),"wp-simple-spreadsheet-fetcher-for-google"))})),Object(c.createElement)(w.ButtonGroup,{className:l},t)},D=wp.i18n.__,W=wp.components,G=W.TextControl,X=W.PanelBody,Y=wp.element.Fragment,Z=function(e){var t,n=e.attributes,r=e.setAttributes,a=n.range,o=n.sheetId,l=n.sheetName,s=n.sheetRange;return t=a?Object(c.createElement)(G,{label:D("Please set the cell or range to fetch data in A1 notation. Example : Sheets1!A1:E","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return r({range:void 0===e?"none":e})}}):Object(c.createElement)(Y,null,Object(c.createElement)(G,{label:D("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),help:D("Ex. https://docs.google.com/spreadsh...","wp-simple-spreadsheet-fetcher-for-google"),value:o,onChange:function(e){return r({sheetId:void 0===e?"none":e})}}),Object(c.createElement)(G,{label:D("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),help:D("Ex. Sheet1","wp-simple-spreadsheet-fetcher-for-google"),value:l,onChange:function(e){return r({sheetName:void 0===e?"none":e})}}),Object(c.createElement)(G,{label:D("Cell or Range","wp-simple-spreadsheet-fetcher-for-google"),help:D("Ex. A1:D12","wp-simple-spreadsheet-fetcher-for-google"),value:s,onChange:function(e){return r({sheetRange:void 0===e?"none":e})}})),Object(c.createElement)(X,{title:D("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},t)},$=(wp.i18n.__,wp.components.RangeControl),q=wp.element.useState,J=function(e){var t=e.attributes,n=e.setAttributes,r=e.label,a=e.schemaName,o=e.step,l=e.min,s=e.max,i=q(t[a]),p=H()(i,2),f=p[0],u=p[1];return l||(l=0),s||(s=100),Object(c.createElement)($,{label:r,value:void 0===f?"":f,onChange:function(e){u(e),n(C()({},a,e))},min:l,max:s,step:o,allowReset:!0})};var K=wp.components,Q=K.Button,ee=K.Popover,te=K.IconButton,ne=wp.element,re=ne.Fragment,ae=ne.createRef,ce=ne.Component,oe=wp.i18n.__,le=function(e){d()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(e){var r;return f()(this,n),(r=t.call(this,e)).state={open:!1},r.buttonRef=ae(),r}return m()(n,[{key:"render",value:function(){var e=this,t=function(){e.setState({open:!e.state.open})};return Object(c.createElement)(re,null,Object(c.createElement)("div",{className:"components-base-control"},Object(c.createElement)("div",{className:"wssffg-button-icon-control__wrapper components-base-control__field"},Object(c.createElement)(Q,{isTertiary:!0,className:"".concat("apc-icon-btn"),onClick:t},Object(c.createElement)("span",{className:"components-base-control__label"},this.props.label)),Object(c.createElement)(te,{className:"".concat("apc-icon-btn"," components-button is-button is-default"),icon:"edit",label:oe("More","wp-simple-spreadsheet-fetcher-for-google"),onClick:t,id:"wssffg-button-icon-control__edit",ref:this.buttonRef}),this.state.open&&this.buttonRef.current&&Object(c.createElement)(ee,{anchorRect:this.buttonRef.current.getBoundingClientRect(),children:this.props.renderComp,onFocusOutside:function(t){t.relatedTarget&&!t.relatedTarget.closest(".".concat("apc-icon-btn"))&&t.relatedTarget!==e.buttonRef.current&&e.setState({open:!1})},focusOnMount:"container",className:"wssffg-advanced-popover-control"}))))}}]),n}(ce),se=(wp.i18n.__,wp.components.SelectControl),ie=wp.element.useState,pe=function(e){var t=e.label,n=e.schemaName,r=e.initial,a=e.data,o=e.setAttributes,l=ie(r),s=H()(l,2),i=s[0],p=s[1],f=function(e,t){o(C()({},e,t))};return Object(c.createElement)(se,{label:t,value:i,onChange:function(e){p(e),f.bind(null,n,e)()},options:a})},fe=(wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor).ColorPalette,ue=function(e){var t=e.schemaName,n=e.setAttributes,r=e.attributes,a=function(e,t){n(C()({},e,t))};return Object(c.createElement)(fe,{value:r[t],onChange:function(e){a.bind(null,t,e)()}})},me=wp.i18n.__,he=[{value:"solid",label:me("solid","wp-simple-spreadsheet-fetcher-for-google")},{value:"double",label:me("double","wp-simple-spreadsheet-fetcher-for-google")},{value:"dotted",label:me("dotted","wp-simple-spreadsheet-fetcher-for-google")},{value:"dashed",label:me("dashed","wp-simple-spreadsheet-fetcher-for-google")},{value:"groove",label:me("groove","wp-simple-spreadsheet-fetcher-for-google")},{value:"ridge",label:me("ridge","wp-simple-spreadsheet-fetcher-for-google")},{value:"inset",label:me("inset","wp-simple-spreadsheet-fetcher-for-google")},{value:"outset",label:me("outset","wp-simple-spreadsheet-fetcher-for-google")},{value:"none",label:me("none","wp-simple-spreadsheet-fetcher-for-google")},{value:"hidden",label:me("hidden","wp-simple-spreadsheet-fetcher-for-google")}],de=wp.i18n.__,be=wp.element.Fragment,ge=wp.components.BaseControl,ve=function(e){var t=e.borderStyle,n=e.borderColor,r=Object(c.createElement)(be,null,Object(c.createElement)(ge,null,Object(c.createElement)(pe,a()({label:de("Style","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:he},e))),Object(c.createElement)(ge,null,Object(c.createElement)("span",{className:"components-base-control__label"},de("Color","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(ue,a()({schemaName:n},e))));return Object(c.createElement)(le,{label:de("Border","wp-simple-spreadsheet-fetcher-for-google"),renderComp:r,setAttributes:e.setAttributes})},Oe=wp.i18n.__,je=[{value:"100",label:Oe("100","wp-simple-spreadsheet-fetcher-for-google")},{value:"200",label:Oe("200","wp-simple-spreadsheet-fetcher-for-google")},{value:"300",label:Oe("300","wp-simple-spreadsheet-fetcher-for-google")},{value:"400",label:Oe("400","wp-simple-spreadsheet-fetcher-for-google")},{value:"500",label:Oe("500","wp-simple-spreadsheet-fetcher-for-google")},{value:"600",label:Oe("600","wp-simple-spreadsheet-fetcher-for-google")},{value:"700",label:Oe("700","wp-simple-spreadsheet-fetcher-for-google")},{value:"800",label:Oe("800","wp-simple-spreadsheet-fetcher-for-google")},{value:"900",label:Oe("900","wp-simple-spreadsheet-fetcher-for-google")},{value:"normal",label:Oe("Normal","wp-simple-spreadsheet-fetcher-for-google")},{value:"bold",label:Oe("Bold","wp-simple-spreadsheet-fetcher-for-google")}],we=wp.i18n.__,Ee=wp.element.Fragment,_e=wp.components.BaseControl,ye=function(e){var t=e.fontWeight,n=e.lineHeight,r=e.letterSpaceUnit,o=e.letterSpace,l=Object(c.createElement)(Ee,null,Object(c.createElement)(_e,null,Object(c.createElement)(pe,a()({label:we("Weight","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:je},e))),Object(c.createElement)(_e,null,Object(c.createElement)(J,a()({label:we("Line Height","wp-simple-spreadsheet-fetcher-for-google"),schemaName:n,min:1,max:10,step:.1},e))),Object(c.createElement)(_e,null,Object(c.createElement)("div",{className:"components-base-control_outer"},Object(c.createElement)("span",{className:"components-base-control__label"},we("Letter Spacing","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(U,a()({schemaName:r,data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(c.createElement)(J,a()({schemaName:o,min:0,max:10,step:.1},e))));return Object(c.createElement)(le,{label:we("Typography","wp-simple-spreadsheet-fetcher-for-google"),renderComp:l,setAttributes:e.setAttributes})},Ne=wp.i18n.__,Ce=wp.element.useState,xe=wp.components.Toolbar,He=function(e){var t=e.schemaName,n=e.setAttributes,r=e.initial,a=Ce(r),o=H()(a,2),l=o[0],s=o[1],i=function(e,t){n(C()({},e,t))};return Object(c.createElement)(xe,{controls:["left","center","right"].map((function(e){return{icon:"editor-align".concat(e),title:Ne("Align ".concat(e),"vk-blocks"),isActive:l===e,onClick:function(){s(e),i.bind(null,t,e)()}}}))})},Se=wp.i18n.__,Re=wp.components.BaseControl,ze=wp.element.Fragment,Fe=function(e){var t=e.fontUnit,n=e.fontSize,r=e.bgColor,o=e.align;return Object(c.createElement)(ze,null,Object(c.createElement)(ye,e),Object(c.createElement)(Re,{className:"wssffg-lower-layer1"},Object(c.createElement)("div",{className:"components-base-control_outer"},Object(c.createElement)("span",{className:"components-base-control__label"},Se("Size","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(U,a()({schemaName:t,initial:e.attributes[t],data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(c.createElement)(J,a()({schemaName:n,min:0,max:50,step:.1},e))),Object(c.createElement)(Re,{label:Se("Background Color","wp-simple-spreadsheet-fetcher-for-google")},Object(c.createElement)(ue,a()({schemaName:r},e))),Object(c.createElement)(Re,{label:Se("Align","wp-simple-spreadsheet-fetcher-for-google")},Object(c.createElement)(He,a()({schemaName:o,initial:e.attributes[o]},e))))},Me=wp.i18n.__,ke=wp.components,Ae=ke.PanelBody,Te=ke.BaseControl,Be=wp.element.Fragment;Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.setting.before","wp2s2fg/fetcher",(function(e,t){return Object(c.createElement)(Z,t)})),Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.style.before","wp2s2fg/fetcher",(function(e,t){return Object(c.createElement)(Be,null,Object(c.createElement)(Ae,{title:Me("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(Te,null,Object(c.createElement)("span",{className:"components-base-control__label"},Me("Layout","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(U,a()({schemaName:"borderLayout",data:["table-full","table-horizontal","table-vertical","table-empty"],customClassName:"wssffg-advanced-button-group_align components-toolbar",icon:!0},t))),Object(c.createElement)(ve,a()({borderStyle:"borderStyle",borderColor:"borderColor"},t)),Object(c.createElement)(Te,{className:"wssffg-lower-layer1"},Object(c.createElement)("div",{className:"components-base-control_outer"},Object(c.createElement)("span",{className:"components-base-control__label"},Me("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(U,a()({schemaName:"borderUnit",data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},t))),Object(c.createElement)(J,a()({schemaName:"borderWidth",min:0,max:10,step:.1},t))),Object(c.createElement)(Te,null,Object(c.createElement)("span",{className:"components-base-control__label"},Me("Fixed Table Width","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(M,t))),Object(c.createElement)(Ae,{title:Me("Table Header","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(c.createElement)(Fe,a()({fontUnit:"thFontUnit",fontSize:"thFontSize",fontColor:"thFontColor",fontWeight:"thFontWeight",lineHeight:"thLineHeight",letterSpaceUnit:"thLetterSpaceUnit",letterSpace:"thLetterSpace",bgColor:"thBgColor",align:"thAlign"},t))),Object(c.createElement)(Ae,{title:Me("Table Body","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(c.createElement)(Fe,a()({fontUnit:"tbFontUnit",fontSize:"tbFontSize",fontColor:"tbFontColor",fontWeight:"tbFontWeight",lineHeight:"tbLineHeight",letterSpaceUnit:"tbLetterSpaceUnit",letterSpace:"tbLetterSpace",bgColor:"tbBgColor",align:"tbAlign"},t))))}));var Ve=Object(s.compose)(y())((function(e){var t=e.attributes;return Object(c.createElement)(Be,null,Object(c.createElement)(l.a,{block:"wp2s2fg/fetcher",attributes:t}))})),Pe=wp.i18n.__;(0,wp.blocks.registerBlockType)("wp2s2fg/fetcher",{title:Pe("Table","wp-simple-spreadsheet-fetcher-for-google"),icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1},attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},range:{type:"string",default:""},hasFixedTable:{type:"boolean",default:!1},thFontSize:{type:"number",default:16},thFontUnit:{type:"string",default:"px"},thLineHeight:{type:"number",default:1},thLetterSpace:{type:"number",default:1},thLetterSpaceUnit:{type:"string",default:"px"},thFontWeight:{type:"string",default:"normal"},thFontColor:{type:"string",default:"inherit"},thBgColor:{type:"string",default:"#fff"},thAlign:{type:"string",default:"left"},tbFontSize:{type:"number",default:16},tbFontUnit:{type:"string",default:"px"},tbLineHeight:{type:"number",default:1},tbLetterSpace:{type:"number",default:1},tbLetterSpaceUnit:{type:"string",default:"px"},tbFontWeight:{type:"string",default:"normal"},tbFontColor:{type:"string",default:"inherit"},tbBgColor:{type:"string",default:"#fff"},tbAlign:{type:"string",default:"left"},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#ccc"},borderWidth:{type:"number",default:1},borderUnit:{type:"string",default:"px"},borderLayout:{type:"string",default:"table-full"},isPanelBodyOpen:{type:"string",default:"general"}},edit:Ve,save:function(){return null}});var Ie=n(14);function Le(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var Ue=function(e){d()(n,e);var t=Le(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes,a=r.price,o=r.after,l=r.caption,s=this.props.for_,i=["wp2s2fg/fetcher-item"],p=[i];return"edit"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:l,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(c.createElement)(j.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:a,placeholder:Object(F.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:p,allowedBlocks:i,templateLock:"all"}),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:o,placeholder:Object(F.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:l}),Object(c.createElement)(j.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",value:a})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",value:o}))):void 0}}]),n}(c.Component),De=function(e){d()(n,e);var t=Le(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes.caption,a=this.props.for_,o=["wp2s2fg/fetcher-item"],l=[o];return"edit"===a?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:r,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:l,allowedBlocks:o,templateLock:"all"}))):"save"===a?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:r})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null))):void 0}}]),n}(c.Component);c.Component;var We=function(e){d()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes,a=r.price,o=r.after,l=r.caption,s=this.props.for_,i=["wp2s2fg/fetcher-item"],p=[i];return"edit"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:l,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(c.createElement)(j.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:a,placeholder:Object(F.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:p,allowedBlocks:i,templateLock:"all"}),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:o,placeholder:Object(F.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:l}),Object(c.createElement)(j.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",value:a})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",value:o}))):void 0}}]),n}(c.Component);Object(Ie.registerBlockType)("wp2s2fg/fetcher-advanced",{title:Object(F.__)("Advanced (Deprecated in next update)","wp-simple-spreadsheet-fetcher-for-google"),icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1},attributes:{className:{type:"string",default:""},caption:{source:"html",selector:"h4.wp2s2fg_fetcher-advanced_caption"},price:{source:"html",selector:"span.wp2s2fg_fetcher-advanced_price"},after:{source:"html",selector:"span.wp2s2fg_fetcher-advanced_number_after"},layout:{type:"string",default:"event-registration-simple"}},edit:function(e){var t=e.setAttributes,n=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.PanelBody,null,Object(c.createElement)(w.SelectControl,{label:Object(F.__)("Select Layout","wp-simple-spreadsheet-fetcher-for-google"),value:n,options:[{label:Object(F.__)("Event Registration Simple","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-simple"},{label:Object(F.__)("Event Registration Advanced","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-advanced"}],onChange:function(e){t({layout:e})}}))),"event-registration-simple"===n&&Object(c.createElement)(De,{props:e,for_:"edit"}),"event-registration-advanced"===n&&Object(c.createElement)(Ue,{props:e,for_:"edit"}))},save:function(e){var t=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,"event-registration-simple"===t&&Object(c.createElement)(De,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(c.createElement)(Ue,{props:e,for_:"save"}))},deprecated:[{attributes:{className:{type:"string",default:""},caption:{source:"html",selector:"h4.wp2s2fg_fetcher-advanced_caption"},price:{source:"html",selector:"p.wp2s2fg_fetcher-advanced_price"},after:{source:"html",selector:"p.wp2s2fg_fetcher-advanced_number_after"},layout:{type:"string",default:"event-registration-simple"}},save:function(e){var t=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,"event-registration-simple"===t&&Object(c.createElement)(De,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(c.createElement)(We,{props:e,for_:"save"}))}}]}),Object(Ie.registerBlockType)("wp2s2fg/fetcher-item",{title:Object(F.__)("Fetcher Item","wp-simple-spreadsheet-fetcher-for-google"),parent:[["wp2s2fg/fetcher"],["wp2s2fg/fetcher-advanced"]],icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1,inserter:!1},attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},range:{type:"string",default:""}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.range,a=t.sheetId,o=t.sheetName,s=t.sheetRange;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.PanelBody,{title:Object(F.__)("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},r?Object(c.createElement)(w.TextControl,{label:Object(F.__)("Please set the cell to fetch data in A1 notation. Example : Sheets1!A1","wp-simple-spreadsheet-fetcher-for-google"),value:r,onChange:function(e){return n({range:void 0===e?"none":e})},initialOpen:!0}):Object(c.createElement)(c.Fragment,null,Object(c.createElement)(w.TextControl,{label:Object(F.__)("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return n({sheetId:void 0===e?"none":e})},initialOpen:!0}),Object(c.createElement)(w.TextControl,{label:Object(F.__)("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),value:o,onChange:function(e){return n({sheetName:void 0===e?"none":e})},initialOpen:!0}),Object(c.createElement)(w.TextControl,{label:Object(F.__)("Cell","wp-simple-spreadsheet-fetcher-for-google"),value:s,onChange:function(e){return n({sheetRange:void 0===e?"none":e})},initialOpen:!0})))),Object(c.createElement)(l.a,{block:"wp2s2fg/fetcher-item",attributes:t}))},save:function(){return null}});var Ge=n(18),Xe=n.n(Ge);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){C()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $e=function(e){var t="/wp-json/api-charts/v1/data-table/"+qe(e.sheetId)+"/"+(encodeURI(e.sheetName)||null)+"/"+(encodeURI(e.sheetRange)||null)+"/"+encodeURI(e.chartWidth)+"/"+encodeURI(e.chartHeight);fetch(t).then((function(e){return e.json()})).then((function(t){google.charts.load("current",{packages:["corechart"]}),google.charts.setOnLoadCallback((function(){if(t.data&&404==t.data.status)return void(document.getElementById("chart_div").textContent=t.data.message);var n=Je(t.chartData);e.switchRowColumn&&(n=Qe(n));nt(n[0])||(n=et(n));var r=google.visualization.arrayToDataTable(n),a=new google.visualization.DataView(r),c=Ke(n[0].length);a.setColumns(c),console.log(e);var o={width:rt("chartWidth",600,e),height:rt("chartHeight",400,e),bar:{groupWidth:"75%"},isStacked:!0};e.hideXAxisLabel&&(o=tt(o,{hAxis:{textPosition:"none"}}));e.hideYAxisLabel&&(o=tt(o,{legend:{position:"none"}}));new google.visualization.ColumnChart(document.getElementById("chart_div")).draw(a,o)}))}))},qe=function(e){var t=e.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);return null!==t&&(t=t[0].replace(/\/spreadsheets\/d\//,"")),t},Je=function(e){return e.map((function(e){return e.map((function(e){return Number(e)?Number(e):e}))}))},Ke=function(e){return Xe()(Array(e).keys())},Qe=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},et=function(e){return e.map((function(e){return e.unshift(""),e}))},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{someting:!0};return Ze({},e,{},t)},nt=function(e){return void 0===e.find((function(e){return"string"!=typeof e}))},rt=function(e,t,n){return n.hasOwnProperty("attributes")&&n.attributes[e]?(console.log("------1--------"),console.log(n.attributes[e]),n.attributes[e]):n[e]?(console.log("------2--------"),console.log(n[e]),n[e]):(console.log("------3--------"),console.log(n),console.log(n[e]),console.log(t),t)};var at=wp.i18n.__,ct=wp.components,ot=ct.PanelBody,lt=ct.BaseControl,st=ct.TextControl;Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.setting.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(c.createElement)(Z,t)})),Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.advanced.before","wp2s2fg/fetcher-chart",(function(e,t){return console.log(t),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(c.Fragment,null,Object(c.createElement)(ot,{title:at("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Switch Rows / Columns","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"switchRowColumn"},t))),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Hide X-Axis Label","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"hideXAxisLabel"},t))),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Hide Data Category Label","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"hideYAxisLabel"},t)))),Object(c.createElement)(ot,{title:at("Size","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(st,{value:t.attributes.chartWidth,onChange:function(e){return t.setAttributes({chartWidth:parseInt(e,10)})},type:"number"})),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Height","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(st,{value:t.attributes.chartHeight,onChange:function(e){return t.setAttributes({chartHeight:parseInt(e,10)})},type:"number"}))))))}));var it=Object(s.compose)(y())((function(e){return $e(e.attributes),Object(c.createElement)("div",{id:"chart_div"})}));Object(Ie.registerBlockType)("wp2s2fg/fetcher-chart",{title:"Chart",icon:"smiley",category:"wp2s2fg-blocks-cat",attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},switchRowColumn:{type:"boolean",default:!1},hideXAxisLabel:{type:"boolean",default:!1},hideYAxisLabel:{type:"boolean",default:!1},chartType:{type:"string",default:"column"},chartOptions:{type:"string",default:"{}"},chartWidth:{type:"number",default:null},chartHeight:{type:"number",default:null}},edit:it})}]);
     1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(22),a=n(23),c=n(16),o=n(24);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(19);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(20),a=n(21);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.serverSideRender}()},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(25),a=n(26),c=n(16),o=n(27);e.exports=function(e){return r(e)||a(e)||c(e)||o()}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),c=n(0),o=n(15),l=n.n(o),s=n(13),i=n(6),p=n(9),f=n.n(p),u=n(10),m=n.n(u),h=n(11),d=n.n(h),b=n(12),g=n.n(b),v=n(7),O=n.n(v),j=n(1),w=n(4);var E=wp.i18n.__,_=function(e){return"fetcher"===e?[{name:"setting",title:E("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"style",title:E("Style","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-style dashicons-before dashicons-admin-customizer"}]:"fetcher-chart"===e?[{name:"setting",title:E("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"advanced",title:E("Customize","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-advanced dashicons-before dashicons-plus"}]:void 0},y=function(){return Object(s.createHigherOrderComponent)((function(e){return function(t){d()(r,t);var n=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(r);function r(){return f()(this,r),n.apply(this,arguments)}return m()(r,[{key:"render",value:function(){var t=this,n=this.props.name.replace(/wp2s2fg\//,"");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.TabPanel,{className:"wssffg-sidebar-tab-panel",activeClass:"is-active",tabs:_(n),initialTabName:"setting"},(function(e){var r;return"setting"===e.name?r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.after"),null,t.props)):"style"===e.name?r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.after"),null,t.props)):"advanced"===e.name&&(r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.after"),null,t.props))),Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.before"),null,t.props),r)}))),Object(c.createElement)(e,this.props))}}]),r}(c.Component)}),"withTabbedInspector")},N=n(5),C=n.n(N),x=n(8),H=n.n(x),S=wp.components.ToggleControl,R=wp.element.useState,z=function(e){var t=e.label,n=e.helpYes,r=e.helpNo,a=e.schema,o=e.setAttributes,l=e.attributes,s=R(l[a]),i=H()(s,2),p=i[0],f=i[1];return Object(c.createElement)(S,{label:t,help:p?n:r,checked:p,onChange:function(){o(C()({},a,!p)),f(!p)}})},F=n(3),M=function(e){return Object(c.createElement)(z,a()({schema:"hasFixedTable"},e))},e,{title:Me("Table Body","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(c.createElement)(Fe,a()({fontUnit:"tbFontUnit",fontSize:"tbFontSize",fontColor:"tbFontColor",fontWeight:"tbFontWeight",lineHeight:"tbLineHeight",letterSpaceUnit:"tbLetterSpaceUnit",letterSpace:"tbLetterSpace",bgColor:"tbBgColor",align:"tbAlign"},t))))}));var Ve=Object(s.compose)(y())((function(e){var t=e.attributes;return Object(c.createElement)(Be,null,Object(c.createElement)(l.a,{block:"wp2s2fg/fetcher",attributes:t}))})),Pe=wp.i18n.__;(0,wp.blocks.registerBlockType)("wp2s2fg/fetcher",{title:Pe("Table","wp-simple-spreadsheet-fetcher-for-google"),icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1},attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},range:{type:"string",default:""},hasFixedTable:{type:"boolean",default:!1},thFontSize:{type:"number",default:16},thFontUnit:{type:"string",default:"px"},thLineHeight:{type:"number",default:1},thLetterSpace:{type:"number",default:1},thLetterSpaceUnit:{type:"string",default:"px"},thFontWeight:{type:"string",default:"normal"},thFontColor:{type:"string",default:"inherit"},thBgColor:{type:"string",default:"#fff"},thAlign:{type:"string",default:"left"},tbFontSize:{type:"number",default:16},tbFontUnit:{type:"string",default:"px"},tbLineHeight:{type:"number",default:1},tbLetterSpace:{type:"number",default:1},tbLetterSpaceUnit:{type:"string",default:"px"},tbFontWeight:{type:"string",default:"normal"},tbFontColor:{type:"string",default:"inherit"},tbBgColor:{type:"string",default:"#fff"},tbAlign:{type:"string",default:"left"},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#ccc"},borderWidth:{type:"number",default:1},borderUnit:{type:"string",default:"px"},borderLayout:{type:"string",default:"table-full"},isPanelBodyOpen:{type:"string",default:"general"}},edit:Ve,save:function(){return null}});var Ie=n(14);function Le(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var Ue=function(e){d()(n,e);var t=Le(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes,a=r.price,o=r.after,l=r.caption,s=this.props.for_,i=["wp2s2fg/fetcher-item"],p=[i];return"edit"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:l,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(c.createElement)(j.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:a,placeholder:Object(F.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:p,allowedBlocks:i,templateLock:"all"}),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:o,placeholder:Object(F.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:l}),Object(c.createElement)(j.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",value:a})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",value:o}))):void 0}}]),n}(c.Component),De=function(e){d()(n,e);var t=Le(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes.caption,a=this.props.for_,o=["wp2s2fg/fetcher-item"],l=[o];return"edit"===a?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:r,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:l,allowedBlocks:o,templateLock:"all"}))):"save"===a?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:r})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null))):void 0}}]),n}(c.Component);c.Component;var We=function(e){d()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes,a=r.price,o=r.after,l=r.caption,s=this.props.for_,i=["wp2s2fg/fetcher-item"],p=[i];return"edit"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:l,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(c.createElement)(j.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:a,placeholder:Object(F.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:p,allowedBlocks:i,templateLock:"all"}),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:o,placeholder:Object(F.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:l}),Object(c.createElement)(j.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",value:a})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",value:o}))):void 0}}]),n}(c.Component);Object(Ie.registerBlockType)("wp2s2fg/fetcher-advanced",{title:Object(F.__)("Advanced (Deprecated in next update)","wp-simple-spreadsheet-fetcher-for-google"),icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1},attributes:{className:{type:"string",default:""},caption:{source:"html",selector:"h4.wp2s2fg_fetcher-advanced_caption"},price:{source:"html",selector:"span.wp2s2fg_fetcher-advanced_price"},after:{source:"html",selector:"span.wp2s2fg_fetcher-advanced_number_after"},layout:{type:"string",default:"event-registration-simple"}},edit:function(e){var t=e.setAttributes,n=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.PanelBody,null,Object(c.createElement)(w.SelectControl,{label:Object(F.__)("Select Layout","wp-simple-spreadsheet-fetcher-for-google"),value:n,options:[{label:Object(F.__)("Event Registration Simple","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-simple"},{label:Object(F.__)("Event Registration Advanced","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-advanced"}],onChange:function(e){t({layout:e})}}))),"event-registration-simple"===n&&Object(c.createElement)(De,{props:e,for_:"edit"}),"event-registration-advanced"===n&&Object(c.createElement)(Ue,{props:e,for_:"edit"}))},save:function(e){var t=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,"event-registration-simple"===t&&Object(c.createElement)(De,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(c.createElement)(Ue,{props:e,for_:"save"}))},deprecated:[{attributes:{className:{type:"string",default:""},caption:{source:"html",selector:"h4.wp2s2fg_fetcher-advanced_caption"},price:{source:"html",selector:"p.wp2s2fg_fetcher-advanced_price"},after:{source:"html",selector:"p.wp2s2fg_fetcher-advanced_number_after"},layout:{type:"string",default:"event-registration-simple"}},save:function(e){var t=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,"event-registration-simple"===t&&Object(c.createElement)(De,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(c.createElement)(We,{props:e,for_:"save"}))}}]}),Object(Ie.registerBlockType)("wp2s2fg/fetcher-item",{title:Object(F.__)("Fetcher Item","wp-simple-spreadsheet-fetcher-for-google"),parent:[["wp2s2fg/fetcher"],["wp2s2fg/fetcher-advanced"]],icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1,inserter:!1},attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},range:{type:"string",default:""}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.range,a=t.sheetId,o=t.sheetName,s=t.sheetRange;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.PanelBody,{title:Object(F.__)("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},r?Object(c.createElement)(w.TextControl,{label:Object(F.__)("Please set the cell to fetch data in A1 notation. Example : Sheets1!A1","wp-simple-spreadsheet-fetcher-for-google"),value:r,onChange:function(e){return n({range:void 0===e?"none":e})},initialOpen:!0}):Object(c.createElement)(c.Fragment,null,Object(c.createElement)(w.TextControl,{label:Object(F.__)("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return n({sheetId:void 0===e?"none":e})},initialOpen:!0}),Object(c.createElement)(w.TextControl,{label:Object(F.__)("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),value:o,onChange:function(e){return n({sheetName:void 0===e?"none":e})},initialOpen:!0}),Object(c.createElement)(w.TextControl,{label:Object(F.__)("Cell","wp-simple-spreadsheet-fetcher-for-google"),value:s,onChange:function(e){return n({sheetRange:void 0===e?"none":e})},initialOpen:!0})))),Object(c.createElement)(l.a,{block:"wp2s2fg/fetcher-item",attributes:t}))},save:function(){return null}});var Ge=n(18),Xe=n.n(Ge);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){C()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $e=function(e){var t="/wp-json/api-charts/v1/data-table/"+qe(e.sheetId)+"/"+(encodeURI(e.sheetName)||null)+"/"+(encodeURI(e.sheetRange)||null)+"/"+encodeURI(e.chartWidth)+"/"+encodeURI(e.chartHeight);fetch(t).then((function(e){return e.json()})).then((function(t){google.charts.load("current",{packages:["corechart"]}),google.charts.setOnLoadCallback((function(){if(t.data&&404==t.data.status)return void(document.getElementById("chart_div").textContent=t.data.message);var n=Je(t.chartData);e.switchRowColumn&&(n=Qe(n));nt(n[0])||(n=et(n));var r=google.visualization.arrayToDataTable(n),a=new google.visualization.DataView(r),c=Ke(n[0].length);a.setColumns(c),console.log(e);var o={width:rt("chartWidth",600,e),height:rt("chartHeight",400,e),bar:{groupWidth:"75%"},isStacked:!0};e.hideXAxisLabel&&(o=tt(o,{hAxis:{textPosition:"none"}}));e.hideYAxisLabel&&(o=tt(o,{legend:{position:"none"}}));new google.visualization.ColumnChart(document.getElementById("chart_div")).draw(a,o)}))}))},qe=function(e){var t=e.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);return null!==t&&(t=t[0].replace(/\/spreadsheets\/d\//,"")),t},Je=function(e){return e.map((function(e){return e.map((function(e){return Number(e)?Number(e):e}))}))},Ke=function(e){return Xe()(Array(e).keys())},Qe=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},et=function(e){return e.map((function(e){return e.unshift(""),e}))},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{someting:!0};return Ze({},e,{},t)},nt=function(e){return void 0===e.find((function(e){return"string"!=typeof e}))},rt=function(e,t,n){return n.hasOwnProperty("attributes")&&n.attributes[e]?(console.log("------1--------"),console.log(n.attributes[e]),n.attributes[e]):n[e]?(console.log("------2--------"),console.log(n[e]),n[e]):(console.log("------3--------"),console.log(n),console.log(n[e]),console.log(t),t)};var at=wp.i18n.__,ct=wp.components,ot=ct.PanelBody,lt=ct.BaseControl,st=ct.TextControl;Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.setting.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(c.createElement)(Z,t)})),Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.advanced.before","wp2s2fg/fetcher-chart",(function(e,t){return console.log(t),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(c.Fragment,null,Object(c.createElement)(ot,{title:at("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Switch Rows / Columns","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"switchRowColumn"},t))),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Hide X-Axis Label","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"hideXAxisLabel"},t))),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Hide Data Category Label","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"hideYAxisLabel"},t)))),Object(c.createElement)(ot,{title:at("Size","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(st,{value:t.attributes.chartWidth,onChange:function(e){return t.setAttributes({chartWidth:parseInt(e,10)})},type:"number"})),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Height","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(st,{value:t.attributes.chartHeight,onChange:function(e){return t.setAttributes({chartHeight:parseInt(e,10)})},type:"number"}))))))}));var it=Object(s.compose)(y())((function(e){return $e(e.attributes),Object(c.createElement)("div",{id:"chart_div"})}));Object(Ie.registerBlockType)("wp2s2fg/fetcher-chart",{title:"Chart",icon:"smiley",category:"wp2s2fg-blocks-cat",attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},switchRowColumn:{type:"boolean",default:!1},hideXAxisLabel:{type:"boolean",default:!1},hideYAxisLabel:{type:"boolean",default:!1},chartType:{type:"string",default:"column"},chartOptions:{type:"string",default:"{}"},chartWidth:{type:"number",default:null},chartHeight:{type:"number",default:null}},edit:it})}]);
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/readme.txt

    r2313223 r2314494  
    44Requires at least: 5.3
    55Tested up to: 5.4
    6 Stable tag: 0.7.1
     6Stable tag: 0.7.
    77License: GPLv3 or later
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3434
    3535== Changelog ==
     36
     37
     38
    3639
    3740= 0.7.1 =
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/src/App/Setup/ApiSettingScreen.php

    r2310942 r2314494  
    5151    $html .= '<div class="wp2s2fg_api_spreadsheetId_form_label">' . __( "API Key : ", 'wp-simple-spreadsheet-fetcher-for-google' ) .'</div><input type="text" name="api_key" placeholder="API-Key" value="' . esc_html( $api_key ) . '" required />';
    5252    $html .= '<br>';
    53     $html .= '<input type="submit" value="Set Configuration Info" />';
     53    $html .= '<input type="submit" value="" />';
    5454    $html .= wp_nonce_field( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' );
    5555    $html .= '</form >';
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/src/components/advanced-align-control/index.js

    r2310942 r2314494  
    1414        return {
    1515            icon: `editor-align${align}`,
    16             title: __(`Align ${align}`, "vk-blocks"),
     16            title: __(`Align ${align}`, ""),
    1717            isActive: activeControl === align,
    1818            onClick: () => {
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/vendor/autoload.php

    r2313223 r2314494  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitebbf8183a56dce1bb0f610fc466949f0::getLoader();
     7return ComposerAutoloaderInite::getLoader();
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/vendor/composer/autoload_real.php

    r2313223 r2314494  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitebbf8183a56dce1bb0f610fc466949f0
     5class ComposerAutoloaderInite
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitebbf8183a56dce1bb0f610fc466949f0', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInite', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInitebbf8183a56dce1bb0f610fc466949f0', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInite', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInite::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInite::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequireebbf8183a56dce1bb0f610fc466949f0($fileIdentifier, $file);
     59            composerRequiree($fileIdentifier, $file);
    6060        }
    6161
     
    6464}
    6565
    66 function composerRequireebbf8183a56dce1bb0f610fc466949f0($fileIdentifier, $file)
     66function composerRequiree($fileIdentifier, $file)
    6767{
    6868    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/vendor/composer/autoload_static.php

    r2313223 r2314494  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0
     7class ComposerStaticInite
    88{
    99    public static $files = array (
     
    113113    {
    114114        return \Closure::bind(function () use ($loader) {
    115             $loader->prefixLengthsPsr4 = ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$prefixLengthsPsr4;
    116             $loader->prefixDirsPsr4 = ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$prefixDirsPsr4;
    117             $loader->prefixesPsr0 = ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$prefixesPsr0;
    118             $loader->classMap = ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$classMap;
     115            $loader->prefixLengthsPsr4 = ComposerStaticInite::$prefixLengthsPsr4;
     116            $loader->prefixDirsPsr4 = ComposerStaticInite::$prefixDirsPsr4;
     117            $loader->prefixesPsr0 = ComposerStaticInite::$prefixesPsr0;
     118            $loader->classMap = ComposerStaticInite::$classMap;
    119119
    120120        }, null, ClassLoader::class);
  • wp-simple-spreadsheet-fetcher-for-google/tags/0.7.2/wp-simple-spreadsheet-fetcher-for-google.php

    r2313223 r2314494  
    88 * Text Domain:     wp-simple-spreadsheet-fetcher-for-google
    99 * Domain Path:     /languages
    10  * Version: 0.7.1
     10 * Version: 0.7.
    1111 *
    1212 * @package         Wp_Simple_Spreadsheet_Fetcher_for_Google
    13  * @version 0.7.1
     13 * @version 0.7.
    1414 */
    1515
  • wp-simple-spreadsheet-fetcher-for-google/trunk/build/index.asset.php

    r2310942 r2314494  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-server-side-render'), 'version' => 'b03e4648e8cce8ff0dd635e6cff637ca');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-server-side-render'), 'version' => '');
  • wp-simple-spreadsheet-fetcher-for-google/trunk/build/index.js

    r2310942 r2314494  
    1 !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(22),a=n(23),c=n(16),o=n(24);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(19);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(20),a=n(21);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.serverSideRender}()},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(25),a=n(26),c=n(16),o=n(27);e.exports=function(e){return r(e)||a(e)||c(e)||o()}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),c=n(0),o=n(15),l=n.n(o),s=n(13),i=n(6),p=n(9),f=n.n(p),u=n(10),m=n.n(u),h=n(11),d=n.n(h),b=n(12),g=n.n(b),v=n(7),O=n.n(v),j=n(1),w=n(4);var E=wp.i18n.__,_=function(e){return"fetcher"===e?[{name:"setting",title:E("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"style",title:E("Style","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-style dashicons-before dashicons-admin-customizer"}]:"fetcher-chart"===e?[{name:"setting",title:E("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"advanced",title:E("Customize","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-advanced dashicons-before dashicons-plus"}]:void 0},y=function(){return Object(s.createHigherOrderComponent)((function(e){return function(t){d()(r,t);var n=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(r);function r(){return f()(this,r),n.apply(this,arguments)}return m()(r,[{key:"render",value:function(){var t=this,n=this.props.name.replace(/wp2s2fg\//,"");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.TabPanel,{className:"wssffg-sidebar-tab-panel",activeClass:"is-active",tabs:_(n),initialTabName:"setting"},(function(e){var r;return"setting"===e.name?r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.after"),null,t.props)):"style"===e.name?r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.after"),null,t.props)):"advanced"===e.name&&(r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.after"),null,t.props))),Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.before"),null,t.props),r)}))),Object(c.createElement)(e,this.props))}}]),r}(c.Component)}),"withTabbedInspector")},N=n(5),C=n.n(N),x=n(8),H=n.n(x),S=wp.components.ToggleControl,R=wp.element.useState,z=function(e){var t=e.label,n=e.helpYes,r=e.helpNo,a=e.schema,o=e.setAttributes,l=e.attributes,s=R(l[a]),i=H()(s,2),p=i[0],f=i[1];return Object(c.createElement)(S,{label:t,help:p?n:r,checked:p,onChange:function(){o(C()({},a,!p)),f(!p)}})},F=n(3),M=function(e){return Object(c.createElement)(z,a()({schema:"hasFixedTable"},e))},k=function(){return Object(c.createElement)("svg",{"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"a"},Object(c.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(c.createElement)("g",null,Object(c.createElement)("path",{d:"M0.015 0H2.9010000000000002V2.886H0.015z"}),Object(c.createElement)("path",{d:"M0.015 8.525H2.9010000000000002V11.411000000000001H0.015z"}),Object(c.createElement)("path",{d:"M0.015 4.277H2.9010000000000002V7.163H0.015z"}),Object(c.createElement)("path",{d:"M0.015 12.858H2.9010000000000002V15.744H0.015z"}),Object(c.createElement)("path",{d:"M0.015 17.106H2.9010000000000002V19.992H0.015z"}),Object(c.createElement)("path",{d:"M8.578 0H11.463999999999999V2.886H8.578z"}),Object(c.createElement)("path",{d:"M8.578 8.525H11.463999999999999V11.411000000000001H8.578z"}),Object(c.createElement)("path",{d:"M8.578 4.277H11.463999999999999V7.163H8.578z"}),Object(c.createElement)("path",{d:"M8.578 12.858H11.463999999999999V15.744H8.578z"}),Object(c.createElement)("path",{d:"M8.578 17.106H11.463999999999999V19.992H8.578z"}),Object(c.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(c.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(c.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(c.createElement)("path",{d:"M17.12 0H20.006V2.886H17.12z"}),Object(c.createElement)("path",{d:"M17.12 8.525H20.006V11.411000000000001H17.12z"}),Object(c.createElement)("path",{d:"M17.12 4.277H20.006V7.163H17.12z"}),Object(c.createElement)("path",{d:"M17.12 12.858H20.006V15.744H17.12z"}),Object(c.createElement)("path",{d:"M17.12 17.106H20.006V19.992H17.12z"}),Object(c.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(c.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(c.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},A=function(){return Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"a"},Object(c.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(c.createElement)("g",null,Object(c.createElement)("path",{fillRule:"evenodd",d:"M11.419 11.15v5.672l5.7.031.015-5.719-5.715.016zm0-8.414v5.672l5.7.031.015-5.719-5.715.016zm-8.511 0v5.672l5.7.031.015-5.719-5.715.016zM.066.036V19.9l19.943.108.054-20.026L.066.036zM2.908 11.15v5.672l5.7.031.015-5.719-5.715.016z"})))},T=function(){return Object(c.createElement)("svg",{"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"a"},Object(c.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(c.createElement)("g",null,Object(c.createElement)("path",{d:"M8.557 8.542H11.443000000000001V28.546H8.557z",transform:"rotate(-90 10 18.543)"}),Object(c.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z",transform:"rotate(-90 10 10.002)"}),Object(c.createElement)("path",{d:"M8.557 -8.542H11.443000000000001V11.462000000000002H8.557z",transform:"rotate(-90 10 1.46)"}),Object(c.createElement)("path",{d:"M-0.002 12.858H2.8840000000000003V15.744H-0.002z",transform:"rotate(-90 1.441 14.301)"}),Object(c.createElement)("path",{d:"M8.523 12.858H11.408999999999999V15.744H8.523z",transform:"rotate(-90 9.966 14.301)"}),Object(c.createElement)("path",{d:"M17.104 12.858H19.99V15.744H17.104z",transform:"rotate(-90 18.548 14.301)"}),Object(c.createElement)("path",{d:"M-0.002 4.242H2.8840000000000003V7.128H-0.002z",transform:"rotate(-90 1.442 5.685)"}),Object(c.createElement)("path",{d:"M8.523 4.242H11.408999999999999V7.128H8.523z",transform:"rotate(-90 9.966 5.685)"}),Object(c.createElement)("path",{d:"M17.104 4.242H19.99V7.128H17.104z",transform:"rotate(-90 18.547 5.686)"})))},B=function(){return Object(c.createElement)("svg",{"aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"a"},Object(c.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(c.createElement)("g",null,Object(c.createElement)("path",{d:"M0.015 0H2.9010000000000002V20.004H0.015z"}),Object(c.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z"}),Object(c.createElement)("path",{d:"M17.098 0H19.983999999999998V20.004H17.098z"}),Object(c.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(c.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(c.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(c.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(c.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(c.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},V=wp.i18n.__,P=function(e){var t=e.icon;return"table-full"===t?Object(c.createElement)(A,null):"table-empty"===t?Object(c.createElement)(k,null):"table-horizontal"===t?Object(c.createElement)(T,null):"table-vertical"===t?Object(c.createElement)(B,null):V("nothing is specified","wp-simple-spreadsheet-fetcher-for-google")},I=wp.i18n.__,L=wp.element.useState,U=function(e){var t,n=e.schemaName,r=e.data,a=e.setAttributes,o=e.attributes,l=e.customClassName,s=e.icon,i=void 0!==s&&s,p=L(o[n]),f=H()(p,2),u=f[0],m=f[1],h="components-icon-button components-toolbar__control",d=function(e){m(e.target.value),a(C()({},n,e.target.value))};return t=i?r.map((function(e,t){return Object(c.createElement)(w.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},Object(c.createElement)(P,{icon:e}))})):r.map((function(e,t){return Object(c.createElement)(w.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},I("".concat(e),"wp-simple-spreadsheet-fetcher-for-google"))})),Object(c.createElement)(w.ButtonGroup,{className:l},t)},D=wp.i18n.__,W=wp.components,G=W.TextControl,X=W.PanelBody,Y=wp.element.Fragment,Z=function(e){var t,n=e.attributes,r=e.setAttributes,a=n.range,o=n.sheetId,l=n.sheetName,s=n.sheetRange;return t=a?Object(c.createElement)(G,{label:D("Please set the cell or range to fetch data in A1 notation. Example : Sheets1!A1:E","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return r({range:void 0===e?"none":e})}}):Object(c.createElement)(Y,null,Object(c.createElement)(G,{label:D("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),help:D("Ex. https://docs.google.com/spreadsh...","wp-simple-spreadsheet-fetcher-for-google"),value:o,onChange:function(e){return r({sheetId:void 0===e?"none":e})}}),Object(c.createElement)(G,{label:D("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),help:D("Ex. Sheet1","wp-simple-spreadsheet-fetcher-for-google"),value:l,onChange:function(e){return r({sheetName:void 0===e?"none":e})}}),Object(c.createElement)(G,{label:D("Cell or Range","wp-simple-spreadsheet-fetcher-for-google"),help:D("Ex. A1:D12","wp-simple-spreadsheet-fetcher-for-google"),value:s,onChange:function(e){return r({sheetRange:void 0===e?"none":e})}})),Object(c.createElement)(X,{title:D("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},t)},$=(wp.i18n.__,wp.components.RangeControl),q=wp.element.useState,J=function(e){var t=e.attributes,n=e.setAttributes,r=e.label,a=e.schemaName,o=e.step,l=e.min,s=e.max,i=q(t[a]),p=H()(i,2),f=p[0],u=p[1];return l||(l=0),s||(s=100),Object(c.createElement)($,{label:r,value:void 0===f?"":f,onChange:function(e){u(e),n(C()({},a,e))},min:l,max:s,step:o,allowReset:!0})};var K=wp.components,Q=K.Button,ee=K.Popover,te=K.IconButton,ne=wp.element,re=ne.Fragment,ae=ne.createRef,ce=ne.Component,oe=wp.i18n.__,le=function(e){d()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(e){var r;return f()(this,n),(r=t.call(this,e)).state={open:!1},r.buttonRef=ae(),r}return m()(n,[{key:"render",value:function(){var e=this,t=function(){e.setState({open:!e.state.open})};return Object(c.createElement)(re,null,Object(c.createElement)("div",{className:"components-base-control"},Object(c.createElement)("div",{className:"wssffg-button-icon-control__wrapper components-base-control__field"},Object(c.createElement)(Q,{isTertiary:!0,className:"".concat("apc-icon-btn"),onClick:t},Object(c.createElement)("span",{className:"components-base-control__label"},this.props.label)),Object(c.createElement)(te,{className:"".concat("apc-icon-btn"," components-button is-button is-default"),icon:"edit",label:oe("More","wp-simple-spreadsheet-fetcher-for-google"),onClick:t,id:"wssffg-button-icon-control__edit",ref:this.buttonRef}),this.state.open&&this.buttonRef.current&&Object(c.createElement)(ee,{anchorRect:this.buttonRef.current.getBoundingClientRect(),children:this.props.renderComp,onFocusOutside:function(t){t.relatedTarget&&!t.relatedTarget.closest(".".concat("apc-icon-btn"))&&t.relatedTarget!==e.buttonRef.current&&e.setState({open:!1})},focusOnMount:"container",className:"wssffg-advanced-popover-control"}))))}}]),n}(ce),se=(wp.i18n.__,wp.components.SelectControl),ie=wp.element.useState,pe=function(e){var t=e.label,n=e.schemaName,r=e.initial,a=e.data,o=e.setAttributes,l=ie(r),s=H()(l,2),i=s[0],p=s[1],f=function(e,t){o(C()({},e,t))};return Object(c.createElement)(se,{label:t,value:i,onChange:function(e){p(e),f.bind(null,n,e)()},options:a})},fe=(wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor).ColorPalette,ue=function(e){var t=e.schemaName,n=e.setAttributes,r=e.attributes,a=function(e,t){n(C()({},e,t))};return Object(c.createElement)(fe,{value:r[t],onChange:function(e){a.bind(null,t,e)()}})},me=wp.i18n.__,he=[{value:"solid",label:me("solid","wp-simple-spreadsheet-fetcher-for-google")},{value:"double",label:me("double","wp-simple-spreadsheet-fetcher-for-google")},{value:"dotted",label:me("dotted","wp-simple-spreadsheet-fetcher-for-google")},{value:"dashed",label:me("dashed","wp-simple-spreadsheet-fetcher-for-google")},{value:"groove",label:me("groove","wp-simple-spreadsheet-fetcher-for-google")},{value:"ridge",label:me("ridge","wp-simple-spreadsheet-fetcher-for-google")},{value:"inset",label:me("inset","wp-simple-spreadsheet-fetcher-for-google")},{value:"outset",label:me("outset","wp-simple-spreadsheet-fetcher-for-google")},{value:"none",label:me("none","wp-simple-spreadsheet-fetcher-for-google")},{value:"hidden",label:me("hidden","wp-simple-spreadsheet-fetcher-for-google")}],de=wp.i18n.__,be=wp.element.Fragment,ge=wp.components.BaseControl,ve=function(e){var t=e.borderStyle,n=e.borderColor,r=Object(c.createElement)(be,null,Object(c.createElement)(ge,null,Object(c.createElement)(pe,a()({label:de("Style","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:he},e))),Object(c.createElement)(ge,null,Object(c.createElement)("span",{className:"components-base-control__label"},de("Color","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(ue,a()({schemaName:n},e))));return Object(c.createElement)(le,{label:de("Border","wp-simple-spreadsheet-fetcher-for-google"),renderComp:r,setAttributes:e.setAttributes})},Oe=wp.i18n.__,je=[{value:"100",label:Oe("100","wp-simple-spreadsheet-fetcher-for-google")},{value:"200",label:Oe("200","wp-simple-spreadsheet-fetcher-for-google")},{value:"300",label:Oe("300","wp-simple-spreadsheet-fetcher-for-google")},{value:"400",label:Oe("400","wp-simple-spreadsheet-fetcher-for-google")},{value:"500",label:Oe("500","wp-simple-spreadsheet-fetcher-for-google")},{value:"600",label:Oe("600","wp-simple-spreadsheet-fetcher-for-google")},{value:"700",label:Oe("700","wp-simple-spreadsheet-fetcher-for-google")},{value:"800",label:Oe("800","wp-simple-spreadsheet-fetcher-for-google")},{value:"900",label:Oe("900","wp-simple-spreadsheet-fetcher-for-google")},{value:"normal",label:Oe("Normal","wp-simple-spreadsheet-fetcher-for-google")},{value:"bold",label:Oe("Bold","wp-simple-spreadsheet-fetcher-for-google")}],we=wp.i18n.__,Ee=wp.element.Fragment,_e=wp.components.BaseControl,ye=function(e){var t=e.fontWeight,n=e.lineHeight,r=e.letterSpaceUnit,o=e.letterSpace,l=Object(c.createElement)(Ee,null,Object(c.createElement)(_e,null,Object(c.createElement)(pe,a()({label:we("Weight","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:je},e))),Object(c.createElement)(_e,null,Object(c.createElement)(J,a()({label:we("Line Height","wp-simple-spreadsheet-fetcher-for-google"),schemaName:n,min:1,max:10,step:.1},e))),Object(c.createElement)(_e,null,Object(c.createElement)("div",{className:"components-base-control_outer"},Object(c.createElement)("span",{className:"components-base-control__label"},we("Letter Spacing","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(U,a()({schemaName:r,data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(c.createElement)(J,a()({schemaName:o,min:0,max:10,step:.1},e))));return Object(c.createElement)(le,{label:we("Typography","wp-simple-spreadsheet-fetcher-for-google"),renderComp:l,setAttributes:e.setAttributes})},Ne=wp.i18n.__,Ce=wp.element.useState,xe=wp.components.Toolbar,He=function(e){var t=e.schemaName,n=e.setAttributes,r=e.initial,a=Ce(r),o=H()(a,2),l=o[0],s=o[1],i=function(e,t){n(C()({},e,t))};return Object(c.createElement)(xe,{controls:["left","center","right"].map((function(e){return{icon:"editor-align".concat(e),title:Ne("Align ".concat(e),"vk-blocks"),isActive:l===e,onClick:function(){s(e),i.bind(null,t,e)()}}}))})},Se=wp.i18n.__,Re=wp.components.BaseControl,ze=wp.element.Fragment,Fe=function(e){var t=e.fontUnit,n=e.fontSize,r=e.bgColor,o=e.align;return Object(c.createElement)(ze,null,Object(c.createElement)(ye,e),Object(c.createElement)(Re,{className:"wssffg-lower-layer1"},Object(c.createElement)("div",{className:"components-base-control_outer"},Object(c.createElement)("span",{className:"components-base-control__label"},Se("Size","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(U,a()({schemaName:t,initial:e.attributes[t],data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(c.createElement)(J,a()({schemaName:n,min:0,max:50,step:.1},e))),Object(c.createElement)(Re,{label:Se("Background Color","wp-simple-spreadsheet-fetcher-for-google")},Object(c.createElement)(ue,a()({schemaName:r},e))),Object(c.createElement)(Re,{label:Se("Align","wp-simple-spreadsheet-fetcher-for-google")},Object(c.createElement)(He,a()({schemaName:o,initial:e.attributes[o]},e))))},Me=wp.i18n.__,ke=wp.components,Ae=ke.PanelBody,Te=ke.BaseControl,Be=wp.element.Fragment;Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.setting.before","wp2s2fg/fetcher",(function(e,t){return Object(c.createElement)(Z,t)})),Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.style.before","wp2s2fg/fetcher",(function(e,t){return Object(c.createElement)(Be,null,Object(c.createElement)(Ae,{title:Me("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(Te,null,Object(c.createElement)("span",{className:"components-base-control__label"},Me("Layout","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(U,a()({schemaName:"borderLayout",data:["table-full","table-horizontal","table-vertical","table-empty"],customClassName:"wssffg-advanced-button-group_align components-toolbar",icon:!0},t))),Object(c.createElement)(ve,a()({borderStyle:"borderStyle",borderColor:"borderColor"},t)),Object(c.createElement)(Te,{className:"wssffg-lower-layer1"},Object(c.createElement)("div",{className:"components-base-control_outer"},Object(c.createElement)("span",{className:"components-base-control__label"},Me("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(U,a()({schemaName:"borderUnit",data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},t))),Object(c.createElement)(J,a()({schemaName:"borderWidth",min:0,max:10,step:.1},t))),Object(c.createElement)(Te,null,Object(c.createElement)("span",{className:"components-base-control__label"},Me("Fixed Table Width","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(M,t))),Object(c.createElement)(Ae,{title:Me("Table Header","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(c.createElement)(Fe,a()({fontUnit:"thFontUnit",fontSize:"thFontSize",fontColor:"thFontColor",fontWeight:"thFontWeight",lineHeight:"thLineHeight",letterSpaceUnit:"thLetterSpaceUnit",letterSpace:"thLetterSpace",bgColor:"thBgColor",align:"thAlign"},t))),Object(c.createElement)(Ae,{title:Me("Table Body","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(c.createElement)(Fe,a()({fontUnit:"tbFontUnit",fontSize:"tbFontSize",fontColor:"tbFontColor",fontWeight:"tbFontWeight",lineHeight:"tbLineHeight",letterSpaceUnit:"tbLetterSpaceUnit",letterSpace:"tbLetterSpace",bgColor:"tbBgColor",align:"tbAlign"},t))))}));var Ve=Object(s.compose)(y())((function(e){var t=e.attributes;return Object(c.createElement)(Be,null,Object(c.createElement)(l.a,{block:"wp2s2fg/fetcher",attributes:t}))})),Pe=wp.i18n.__;(0,wp.blocks.registerBlockType)("wp2s2fg/fetcher",{title:Pe("Table","wp-simple-spreadsheet-fetcher-for-google"),icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1},attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},range:{type:"string",default:""},hasFixedTable:{type:"boolean",default:!1},thFontSize:{type:"number",default:16},thFontUnit:{type:"string",default:"px"},thLineHeight:{type:"number",default:1},thLetterSpace:{type:"number",default:1},thLetterSpaceUnit:{type:"string",default:"px"},thFontWeight:{type:"string",default:"normal"},thFontColor:{type:"string",default:"inherit"},thBgColor:{type:"string",default:"#fff"},thAlign:{type:"string",default:"left"},tbFontSize:{type:"number",default:16},tbFontUnit:{type:"string",default:"px"},tbLineHeight:{type:"number",default:1},tbLetterSpace:{type:"number",default:1},tbLetterSpaceUnit:{type:"string",default:"px"},tbFontWeight:{type:"string",default:"normal"},tbFontColor:{type:"string",default:"inherit"},tbBgColor:{type:"string",default:"#fff"},tbAlign:{type:"string",default:"left"},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#ccc"},borderWidth:{type:"number",default:1},borderUnit:{type:"string",default:"px"},borderLayout:{type:"string",default:"table-full"},isPanelBodyOpen:{type:"string",default:"general"}},edit:Ve,save:function(){return null}});var Ie=n(14);function Le(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var Ue=function(e){d()(n,e);var t=Le(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes,a=r.price,o=r.after,l=r.caption,s=this.props.for_,i=["wp2s2fg/fetcher-item"],p=[i];return"edit"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:l,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(c.createElement)(j.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:a,placeholder:Object(F.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:p,allowedBlocks:i,templateLock:"all"}),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:o,placeholder:Object(F.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:l}),Object(c.createElement)(j.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",value:a})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",value:o}))):void 0}}]),n}(c.Component),De=function(e){d()(n,e);var t=Le(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes.caption,a=this.props.for_,o=["wp2s2fg/fetcher-item"],l=[o];return"edit"===a?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:r,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:l,allowedBlocks:o,templateLock:"all"}))):"save"===a?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:r})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null))):void 0}}]),n}(c.Component);c.Component;var We=function(e){d()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes,a=r.price,o=r.after,l=r.caption,s=this.props.for_,i=["wp2s2fg/fetcher-item"],p=[i];return"edit"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:l,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(c.createElement)(j.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:a,placeholder:Object(F.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:p,allowedBlocks:i,templateLock:"all"}),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:o,placeholder:Object(F.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:l}),Object(c.createElement)(j.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",value:a})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",value:o}))):void 0}}]),n}(c.Component);Object(Ie.registerBlockType)("wp2s2fg/fetcher-advanced",{title:Object(F.__)("Advanced (Deprecated in next update)","wp-simple-spreadsheet-fetcher-for-google"),icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1},attributes:{className:{type:"string",default:""},caption:{source:"html",selector:"h4.wp2s2fg_fetcher-advanced_caption"},price:{source:"html",selector:"span.wp2s2fg_fetcher-advanced_price"},after:{source:"html",selector:"span.wp2s2fg_fetcher-advanced_number_after"},layout:{type:"string",default:"event-registration-simple"}},edit:function(e){var t=e.setAttributes,n=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.PanelBody,null,Object(c.createElement)(w.SelectControl,{label:Object(F.__)("Select Layout","wp-simple-spreadsheet-fetcher-for-google"),value:n,options:[{label:Object(F.__)("Event Registration Simple","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-simple"},{label:Object(F.__)("Event Registration Advanced","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-advanced"}],onChange:function(e){t({layout:e})}}))),"event-registration-simple"===n&&Object(c.createElement)(De,{props:e,for_:"edit"}),"event-registration-advanced"===n&&Object(c.createElement)(Ue,{props:e,for_:"edit"}))},save:function(e){var t=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,"event-registration-simple"===t&&Object(c.createElement)(De,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(c.createElement)(Ue,{props:e,for_:"save"}))},deprecated:[{attributes:{className:{type:"string",default:""},caption:{source:"html",selector:"h4.wp2s2fg_fetcher-advanced_caption"},price:{source:"html",selector:"p.wp2s2fg_fetcher-advanced_price"},after:{source:"html",selector:"p.wp2s2fg_fetcher-advanced_number_after"},layout:{type:"string",default:"event-registration-simple"}},save:function(e){var t=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,"event-registration-simple"===t&&Object(c.createElement)(De,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(c.createElement)(We,{props:e,for_:"save"}))}}]}),Object(Ie.registerBlockType)("wp2s2fg/fetcher-item",{title:Object(F.__)("Fetcher Item","wp-simple-spreadsheet-fetcher-for-google"),parent:[["wp2s2fg/fetcher"],["wp2s2fg/fetcher-advanced"]],icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1,inserter:!1},attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},range:{type:"string",default:""}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.range,a=t.sheetId,o=t.sheetName,s=t.sheetRange;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.PanelBody,{title:Object(F.__)("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},r?Object(c.createElement)(w.TextControl,{label:Object(F.__)("Please set the cell to fetch data in A1 notation. Example : Sheets1!A1","wp-simple-spreadsheet-fetcher-for-google"),value:r,onChange:function(e){return n({range:void 0===e?"none":e})},initialOpen:!0}):Object(c.createElement)(c.Fragment,null,Object(c.createElement)(w.TextControl,{label:Object(F.__)("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return n({sheetId:void 0===e?"none":e})},initialOpen:!0}),Object(c.createElement)(w.TextControl,{label:Object(F.__)("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),value:o,onChange:function(e){return n({sheetName:void 0===e?"none":e})},initialOpen:!0}),Object(c.createElement)(w.TextControl,{label:Object(F.__)("Cell","wp-simple-spreadsheet-fetcher-for-google"),value:s,onChange:function(e){return n({sheetRange:void 0===e?"none":e})},initialOpen:!0})))),Object(c.createElement)(l.a,{block:"wp2s2fg/fetcher-item",attributes:t}))},save:function(){return null}});var Ge=n(18),Xe=n.n(Ge);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){C()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $e=function(e){var t="/wp-json/api-charts/v1/data-table/"+qe(e.sheetId)+"/"+(encodeURI(e.sheetName)||null)+"/"+(encodeURI(e.sheetRange)||null)+"/"+encodeURI(e.chartWidth)+"/"+encodeURI(e.chartHeight);fetch(t).then((function(e){return e.json()})).then((function(t){google.charts.load("current",{packages:["corechart"]}),google.charts.setOnLoadCallback((function(){if(t.data&&404==t.data.status)return void(document.getElementById("chart_div").textContent=t.data.message);var n=Je(t.chartData);e.switchRowColumn&&(n=Qe(n));nt(n[0])||(n=et(n));var r=google.visualization.arrayToDataTable(n),a=new google.visualization.DataView(r),c=Ke(n[0].length);a.setColumns(c),console.log(e);var o={width:rt("chartWidth",600,e),height:rt("chartHeight",400,e),bar:{groupWidth:"75%"},isStacked:!0};e.hideXAxisLabel&&(o=tt(o,{hAxis:{textPosition:"none"}}));e.hideYAxisLabel&&(o=tt(o,{legend:{position:"none"}}));new google.visualization.ColumnChart(document.getElementById("chart_div")).draw(a,o)}))}))},qe=function(e){var t=e.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);return null!==t&&(t=t[0].replace(/\/spreadsheets\/d\//,"")),t},Je=function(e){return e.map((function(e){return e.map((function(e){return Number(e)?Number(e):e}))}))},Ke=function(e){return Xe()(Array(e).keys())},Qe=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},et=function(e){return e.map((function(e){return e.unshift(""),e}))},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{someting:!0};return Ze({},e,{},t)},nt=function(e){return void 0===e.find((function(e){return"string"!=typeof e}))},rt=function(e,t,n){return n.hasOwnProperty("attributes")&&n.attributes[e]?(console.log("------1--------"),console.log(n.attributes[e]),n.attributes[e]):n[e]?(console.log("------2--------"),console.log(n[e]),n[e]):(console.log("------3--------"),console.log(n),console.log(n[e]),console.log(t),t)};var at=wp.i18n.__,ct=wp.components,ot=ct.PanelBody,lt=ct.BaseControl,st=ct.TextControl;Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.setting.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(c.createElement)(Z,t)})),Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.advanced.before","wp2s2fg/fetcher-chart",(function(e,t){return console.log(t),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(c.Fragment,null,Object(c.createElement)(ot,{title:at("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Switch Rows / Columns","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"switchRowColumn"},t))),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Hide X-Axis Label","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"hideXAxisLabel"},t))),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Hide Data Category Label","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"hideYAxisLabel"},t)))),Object(c.createElement)(ot,{title:at("Size","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(st,{value:t.attributes.chartWidth,onChange:function(e){return t.setAttributes({chartWidth:parseInt(e,10)})},type:"number"})),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Height","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(st,{value:t.attributes.chartHeight,onChange:function(e){return t.setAttributes({chartHeight:parseInt(e,10)})},type:"number"}))))))}));var it=Object(s.compose)(y())((function(e){return $e(e.attributes),Object(c.createElement)("div",{id:"chart_div"})}));Object(Ie.registerBlockType)("wp2s2fg/fetcher-chart",{title:"Chart",icon:"smiley",category:"wp2s2fg-blocks-cat",attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},switchRowColumn:{type:"boolean",default:!1},hideXAxisLabel:{type:"boolean",default:!1},hideYAxisLabel:{type:"boolean",default:!1},chartType:{type:"string",default:"column"},chartOptions:{type:"string",default:"{}"},chartWidth:{type:"number",default:null},chartHeight:{type:"number",default:null}},edit:it})}]);
     1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=28)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(22),a=n(23),c=n(16),o=n(24);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(19);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(20),a=n(21);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.serverSideRender}()},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(25),a=n(26),c=n(16),o=n(27);e.exports=function(e){return r(e)||a(e)||c(e)||o()}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),c=n(0),o=n(15),l=n.n(o),s=n(13),i=n(6),p=n(9),f=n.n(p),u=n(10),m=n.n(u),h=n(11),d=n.n(h),b=n(12),g=n.n(b),v=n(7),O=n.n(v),j=n(1),w=n(4);var E=wp.i18n.__,_=function(e){return"fetcher"===e?[{name:"setting",title:E("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"style",title:E("Style","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-style dashicons-before dashicons-admin-customizer"}]:"fetcher-chart"===e?[{name:"setting",title:E("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"advanced",title:E("Customize","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-advanced dashicons-before dashicons-plus"}]:void 0},y=function(){return Object(s.createHigherOrderComponent)((function(e){return function(t){d()(r,t);var n=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(r);function r(){return f()(this,r),n.apply(this,arguments)}return m()(r,[{key:"render",value:function(){var t=this,n=this.props.name.replace(/wp2s2fg\//,"");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.TabPanel,{className:"wssffg-sidebar-tab-panel",activeClass:"is-active",tabs:_(n),initialTabName:"setting"},(function(e){var r;return"setting"===e.name?r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.after"),null,t.props)):"style"===e.name?r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.after"),null,t.props)):"advanced"===e.name&&(r=Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.before"),null,t.props),Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.after"),null,t.props))),Object(c.createElement)(c.Fragment,null,Object(i.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.before"),null,t.props),r)}))),Object(c.createElement)(e,this.props))}}]),r}(c.Component)}),"withTabbedInspector")},N=n(5),C=n.n(N),x=n(8),H=n.n(x),S=wp.components.ToggleControl,R=wp.element.useState,z=function(e){var t=e.label,n=e.helpYes,r=e.helpNo,a=e.schema,o=e.setAttributes,l=e.attributes,s=R(l[a]),i=H()(s,2),p=i[0],f=i[1];return Object(c.createElement)(S,{label:t,help:p?n:r,checked:p,onChange:function(){o(C()({},a,!p)),f(!p)}})},F=n(3),M=function(e){return Object(c.createElement)(z,a()({schema:"hasFixedTable"},e))},e,{title:Me("Table Body","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(c.createElement)(Fe,a()({fontUnit:"tbFontUnit",fontSize:"tbFontSize",fontColor:"tbFontColor",fontWeight:"tbFontWeight",lineHeight:"tbLineHeight",letterSpaceUnit:"tbLetterSpaceUnit",letterSpace:"tbLetterSpace",bgColor:"tbBgColor",align:"tbAlign"},t))))}));var Ve=Object(s.compose)(y())((function(e){var t=e.attributes;return Object(c.createElement)(Be,null,Object(c.createElement)(l.a,{block:"wp2s2fg/fetcher",attributes:t}))})),Pe=wp.i18n.__;(0,wp.blocks.registerBlockType)("wp2s2fg/fetcher",{title:Pe("Table","wp-simple-spreadsheet-fetcher-for-google"),icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1},attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},range:{type:"string",default:""},hasFixedTable:{type:"boolean",default:!1},thFontSize:{type:"number",default:16},thFontUnit:{type:"string",default:"px"},thLineHeight:{type:"number",default:1},thLetterSpace:{type:"number",default:1},thLetterSpaceUnit:{type:"string",default:"px"},thFontWeight:{type:"string",default:"normal"},thFontColor:{type:"string",default:"inherit"},thBgColor:{type:"string",default:"#fff"},thAlign:{type:"string",default:"left"},tbFontSize:{type:"number",default:16},tbFontUnit:{type:"string",default:"px"},tbLineHeight:{type:"number",default:1},tbLetterSpace:{type:"number",default:1},tbLetterSpaceUnit:{type:"string",default:"px"},tbFontWeight:{type:"string",default:"normal"},tbFontColor:{type:"string",default:"inherit"},tbBgColor:{type:"string",default:"#fff"},tbAlign:{type:"string",default:"left"},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#ccc"},borderWidth:{type:"number",default:1},borderUnit:{type:"string",default:"px"},borderLayout:{type:"string",default:"table-full"},isPanelBodyOpen:{type:"string",default:"general"}},edit:Ve,save:function(){return null}});var Ie=n(14);function Le(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var Ue=function(e){d()(n,e);var t=Le(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes,a=r.price,o=r.after,l=r.caption,s=this.props.for_,i=["wp2s2fg/fetcher-item"],p=[i];return"edit"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:l,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(c.createElement)(j.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:a,placeholder:Object(F.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:p,allowedBlocks:i,templateLock:"all"}),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:o,placeholder:Object(F.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:l}),Object(c.createElement)(j.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",value:a})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",value:o}))):void 0}}]),n}(c.Component),De=function(e){d()(n,e);var t=Le(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes.caption,a=this.props.for_,o=["wp2s2fg/fetcher-item"],l=[o];return"edit"===a?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:r,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:l,allowedBlocks:o,templateLock:"all"}))):"save"===a?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:r})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null))):void 0}}]),n}(c.Component);c.Component;var We=function(e){d()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){return f()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,r=e.attributes,a=r.price,o=r.after,l=r.caption,s=this.props.for_,i=["wp2s2fg/fetcher-item"],p=[i];return"edit"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:l,placeholder:Object(F.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(c.createElement)(j.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:a,placeholder:Object(F.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks,{template:p,allowedBlocks:i,templateLock:"all"}),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:o,placeholder:Object(F.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===s?Object(c.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(c.createElement)(j.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:l}),Object(c.createElement)(j.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",value:a})),Object(c.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(c.createElement)(j.InnerBlocks.Content,null),Object(c.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(c.createElement)(j.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",value:o}))):void 0}}]),n}(c.Component);Object(Ie.registerBlockType)("wp2s2fg/fetcher-advanced",{title:Object(F.__)("Advanced (Deprecated in next update)","wp-simple-spreadsheet-fetcher-for-google"),icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1},attributes:{className:{type:"string",default:""},caption:{source:"html",selector:"h4.wp2s2fg_fetcher-advanced_caption"},price:{source:"html",selector:"span.wp2s2fg_fetcher-advanced_price"},after:{source:"html",selector:"span.wp2s2fg_fetcher-advanced_number_after"},layout:{type:"string",default:"event-registration-simple"}},edit:function(e){var t=e.setAttributes,n=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.PanelBody,null,Object(c.createElement)(w.SelectControl,{label:Object(F.__)("Select Layout","wp-simple-spreadsheet-fetcher-for-google"),value:n,options:[{label:Object(F.__)("Event Registration Simple","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-simple"},{label:Object(F.__)("Event Registration Advanced","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-advanced"}],onChange:function(e){t({layout:e})}}))),"event-registration-simple"===n&&Object(c.createElement)(De,{props:e,for_:"edit"}),"event-registration-advanced"===n&&Object(c.createElement)(Ue,{props:e,for_:"edit"}))},save:function(e){var t=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,"event-registration-simple"===t&&Object(c.createElement)(De,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(c.createElement)(Ue,{props:e,for_:"save"}))},deprecated:[{attributes:{className:{type:"string",default:""},caption:{source:"html",selector:"h4.wp2s2fg_fetcher-advanced_caption"},price:{source:"html",selector:"p.wp2s2fg_fetcher-advanced_price"},after:{source:"html",selector:"p.wp2s2fg_fetcher-advanced_number_after"},layout:{type:"string",default:"event-registration-simple"}},save:function(e){var t=e.attributes.layout;return Object(c.createElement)(c.Fragment,null,"event-registration-simple"===t&&Object(c.createElement)(De,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(c.createElement)(We,{props:e,for_:"save"}))}}]}),Object(Ie.registerBlockType)("wp2s2fg/fetcher-item",{title:Object(F.__)("Fetcher Item","wp-simple-spreadsheet-fetcher-for-google"),parent:[["wp2s2fg/fetcher"],["wp2s2fg/fetcher-advanced"]],icon:"smiley",category:"wp2s2fg-blocks-cat",supports:{className:!0,html:!1,inserter:!1},attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},range:{type:"string",default:""}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.range,a=t.sheetId,o=t.sheetName,s=t.sheetRange;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(w.PanelBody,{title:Object(F.__)("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},r?Object(c.createElement)(w.TextControl,{label:Object(F.__)("Please set the cell to fetch data in A1 notation. Example : Sheets1!A1","wp-simple-spreadsheet-fetcher-for-google"),value:r,onChange:function(e){return n({range:void 0===e?"none":e})},initialOpen:!0}):Object(c.createElement)(c.Fragment,null,Object(c.createElement)(w.TextControl,{label:Object(F.__)("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return n({sheetId:void 0===e?"none":e})},initialOpen:!0}),Object(c.createElement)(w.TextControl,{label:Object(F.__)("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),value:o,onChange:function(e){return n({sheetName:void 0===e?"none":e})},initialOpen:!0}),Object(c.createElement)(w.TextControl,{label:Object(F.__)("Cell","wp-simple-spreadsheet-fetcher-for-google"),value:s,onChange:function(e){return n({sheetRange:void 0===e?"none":e})},initialOpen:!0})))),Object(c.createElement)(l.a,{block:"wp2s2fg/fetcher-item",attributes:t}))},save:function(){return null}});var Ge=n(18),Xe=n.n(Ge);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){C()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $e=function(e){var t="/wp-json/api-charts/v1/data-table/"+qe(e.sheetId)+"/"+(encodeURI(e.sheetName)||null)+"/"+(encodeURI(e.sheetRange)||null)+"/"+encodeURI(e.chartWidth)+"/"+encodeURI(e.chartHeight);fetch(t).then((function(e){return e.json()})).then((function(t){google.charts.load("current",{packages:["corechart"]}),google.charts.setOnLoadCallback((function(){if(t.data&&404==t.data.status)return void(document.getElementById("chart_div").textContent=t.data.message);var n=Je(t.chartData);e.switchRowColumn&&(n=Qe(n));nt(n[0])||(n=et(n));var r=google.visualization.arrayToDataTable(n),a=new google.visualization.DataView(r),c=Ke(n[0].length);a.setColumns(c),console.log(e);var o={width:rt("chartWidth",600,e),height:rt("chartHeight",400,e),bar:{groupWidth:"75%"},isStacked:!0};e.hideXAxisLabel&&(o=tt(o,{hAxis:{textPosition:"none"}}));e.hideYAxisLabel&&(o=tt(o,{legend:{position:"none"}}));new google.visualization.ColumnChart(document.getElementById("chart_div")).draw(a,o)}))}))},qe=function(e){var t=e.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);return null!==t&&(t=t[0].replace(/\/spreadsheets\/d\//,"")),t},Je=function(e){return e.map((function(e){return e.map((function(e){return Number(e)?Number(e):e}))}))},Ke=function(e){return Xe()(Array(e).keys())},Qe=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},et=function(e){return e.map((function(e){return e.unshift(""),e}))},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{someting:!0};return Ze({},e,{},t)},nt=function(e){return void 0===e.find((function(e){return"string"!=typeof e}))},rt=function(e,t,n){return n.hasOwnProperty("attributes")&&n.attributes[e]?(console.log("------1--------"),console.log(n.attributes[e]),n.attributes[e]):n[e]?(console.log("------2--------"),console.log(n[e]),n[e]):(console.log("------3--------"),console.log(n),console.log(n[e]),console.log(t),t)};var at=wp.i18n.__,ct=wp.components,ot=ct.PanelBody,lt=ct.BaseControl,st=ct.TextControl;Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.setting.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(c.createElement)(Z,t)})),Object(i.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.advanced.before","wp2s2fg/fetcher-chart",(function(e,t){return console.log(t),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.InspectorControls,null,Object(c.createElement)(c.Fragment,null,Object(c.createElement)(ot,{title:at("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Switch Rows / Columns","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"switchRowColumn"},t))),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Hide X-Axis Label","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"hideXAxisLabel"},t))),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Hide Data Category Label","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(z,a()({schema:"hideYAxisLabel"},t)))),Object(c.createElement)(ot,{title:at("Size","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(st,{value:t.attributes.chartWidth,onChange:function(e){return t.setAttributes({chartWidth:parseInt(e,10)})},type:"number"})),Object(c.createElement)(lt,null,Object(c.createElement)("span",{className:"components-base-control__label"},at("Height","wp-simple-spreadsheet-fetcher-for-google")),Object(c.createElement)(st,{value:t.attributes.chartHeight,onChange:function(e){return t.setAttributes({chartHeight:parseInt(e,10)})},type:"number"}))))))}));var it=Object(s.compose)(y())((function(e){return $e(e.attributes),Object(c.createElement)("div",{id:"chart_div"})}));Object(Ie.registerBlockType)("wp2s2fg/fetcher-chart",{title:"Chart",icon:"smiley",category:"wp2s2fg-blocks-cat",attributes:{className:{type:"string",default:""},sheetId:{type:"string",default:""},sheetName:{type:"string",default:""},sheetRange:{type:"string",default:""},switchRowColumn:{type:"boolean",default:!1},hideXAxisLabel:{type:"boolean",default:!1},hideYAxisLabel:{type:"boolean",default:!1},chartType:{type:"string",default:"column"},chartOptions:{type:"string",default:"{}"},chartWidth:{type:"number",default:null},chartHeight:{type:"number",default:null}},edit:it})}]);
  • wp-simple-spreadsheet-fetcher-for-google/trunk/readme.txt

    r2313223 r2314494  
    44Requires at least: 5.3
    55Tested up to: 5.4
    6 Stable tag: 0.7.1
     6Stable tag: 0.7.
    77License: GPLv3 or later
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3434
    3535== Changelog ==
     36
     37
     38
    3639
    3740= 0.7.1 =
  • wp-simple-spreadsheet-fetcher-for-google/trunk/src/App/Setup/ApiSettingScreen.php

    r2310942 r2314494  
    5151    $html .= '<div class="wp2s2fg_api_spreadsheetId_form_label">' . __( "API Key : ", 'wp-simple-spreadsheet-fetcher-for-google' ) .'</div><input type="text" name="api_key" placeholder="API-Key" value="' . esc_html( $api_key ) . '" required />';
    5252    $html .= '<br>';
    53     $html .= '<input type="submit" value="Set Configuration Info" />';
     53    $html .= '<input type="submit" value="" />';
    5454    $html .= wp_nonce_field( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' );
    5555    $html .= '</form >';
  • wp-simple-spreadsheet-fetcher-for-google/trunk/src/components/advanced-align-control/index.js

    r2310942 r2314494  
    1414        return {
    1515            icon: `editor-align${align}`,
    16             title: __(`Align ${align}`, "vk-blocks"),
     16            title: __(`Align ${align}`, ""),
    1717            isActive: activeControl === align,
    1818            onClick: () => {
  • wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/autoload.php

    r2313223 r2314494  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitebbf8183a56dce1bb0f610fc466949f0::getLoader();
     7return ComposerAutoloaderInite::getLoader();
  • wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/composer/autoload_real.php

    r2313223 r2314494  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitebbf8183a56dce1bb0f610fc466949f0
     5class ComposerAutoloaderInite
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitebbf8183a56dce1bb0f610fc466949f0', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInite', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInitebbf8183a56dce1bb0f610fc466949f0', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInite', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInite::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInite::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequireebbf8183a56dce1bb0f610fc466949f0($fileIdentifier, $file);
     59            composerRequiree($fileIdentifier, $file);
    6060        }
    6161
     
    6464}
    6565
    66 function composerRequireebbf8183a56dce1bb0f610fc466949f0($fileIdentifier, $file)
     66function composerRequiree($fileIdentifier, $file)
    6767{
    6868    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/composer/autoload_static.php

    r2313223 r2314494  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0
     7class ComposerStaticInite
    88{
    99    public static $files = array (
     
    113113    {
    114114        return \Closure::bind(function () use ($loader) {
    115             $loader->prefixLengthsPsr4 = ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$prefixLengthsPsr4;
    116             $loader->prefixDirsPsr4 = ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$prefixDirsPsr4;
    117             $loader->prefixesPsr0 = ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$prefixesPsr0;
    118             $loader->classMap = ComposerStaticInitebbf8183a56dce1bb0f610fc466949f0::$classMap;
     115            $loader->prefixLengthsPsr4 = ComposerStaticInite::$prefixLengthsPsr4;
     116            $loader->prefixDirsPsr4 = ComposerStaticInite::$prefixDirsPsr4;
     117            $loader->prefixesPsr0 = ComposerStaticInite::$prefixesPsr0;
     118            $loader->classMap = ComposerStaticInite::$classMap;
    119119
    120120        }, null, ClassLoader::class);
  • wp-simple-spreadsheet-fetcher-for-google/trunk/wp-simple-spreadsheet-fetcher-for-google.php

    r2313223 r2314494  
    88 * Text Domain:     wp-simple-spreadsheet-fetcher-for-google
    99 * Domain Path:     /languages
    10  * Version: 0.7.1
     10 * Version: 0.7.
    1111 *
    1212 * @package         Wp_Simple_Spreadsheet_Fetcher_for_Google
    13  * @version 0.7.1
     13 * @version 0.7.
    1414 */
    1515
Note: See TracChangeset for help on using the changeset viewer.