Changeset 2411558
- Timestamp:
- 11/03/2020 04:02:19 AM (5 years ago)
- Location:
- wp-simple-spreadsheet-fetcher-for-google
- Files:
-
- 10 added
- 40 edited
- 1 copied
-
tags/0.7.6 (copied) (copied from wp-simple-spreadsheet-fetcher-for-google/trunk)
-
tags/0.7.6/LICENSE (added)
-
tags/0.7.6/build/index.asset.php (modified) (1 diff)
-
tags/0.7.6/build/index.js (modified) (1 diff)
-
tags/0.7.6/readme.txt (modified) (2 diffs)
-
tags/0.7.6/screenshot-1.png (modified) (previous)
-
tags/0.7.6/screenshot-2.png (added)
-
tags/0.7.6/src/App/RestAPI/sheets/EntryPoint.php (modified) (3 diffs)
-
tags/0.7.6/src/App/Setup/ApiSettingScreen.php (modified) (1 diff)
-
tags/0.7.6/src/App/Utils/ApiManipulation.php (modified) (3 diffs)
-
tags/0.7.6/src/App/Utils/FetcherWarning.php (modified) (2 diffs)
-
tags/0.7.6/src/assets/css/editor.css (modified) (2 diffs)
-
tags/0.7.6/src/blocks/fetcher-chart/drawCharts.js (modified) (5 diffs)
-
tags/0.7.6/src/blocks/fetcher-chart/edit.js (modified) (1 diff)
-
tags/0.7.6/src/blocks/fetcher-chart/index.js (modified) (1 diff)
-
tags/0.7.6/src/blocks/fetcher/table/RenderTable.php (modified) (7 diffs)
-
tags/0.7.6/vendor/autoload.php (modified) (1 diff)
-
tags/0.7.6/vendor/composer/ClassLoader.php (modified) (2 diffs)
-
tags/0.7.6/vendor/composer/InstalledVersions.php (added)
-
tags/0.7.6/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/0.7.6/vendor/composer/autoload_real.php (modified) (4 diffs)
-
tags/0.7.6/vendor/composer/autoload_static.php (modified) (3 diffs)
-
tags/0.7.6/vendor/composer/installed.json (modified) (1 diff)
-
tags/0.7.6/vendor/composer/installed.php (added)
-
tags/0.7.6/vendor/composer/platform_check.php (added)
-
tags/0.7.6/wp-simple-spreadsheet-fetcher-for-google.php (modified) (1 diff)
-
trunk/LICENSE (added)
-
trunk/build/index.asset.php (modified) (1 diff)
-
trunk/build/index.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/screenshot-1.png (modified) (previous)
-
trunk/screenshot-2.png (added)
-
trunk/src/App/RestAPI/sheets/EntryPoint.php (modified) (3 diffs)
-
trunk/src/App/Setup/ApiSettingScreen.php (modified) (1 diff)
-
trunk/src/App/Utils/ApiManipulation.php (modified) (3 diffs)
-
trunk/src/App/Utils/FetcherWarning.php (modified) (2 diffs)
-
trunk/src/assets/css/editor.css (modified) (2 diffs)
-
trunk/src/blocks/fetcher-chart/drawCharts.js (modified) (5 diffs)
-
trunk/src/blocks/fetcher-chart/edit.js (modified) (1 diff)
-
trunk/src/blocks/fetcher-chart/index.js (modified) (1 diff)
-
trunk/src/blocks/fetcher/table/RenderTable.php (modified) (7 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (2 diffs)
-
trunk/vendor/composer/InstalledVersions.php (added)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (4 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (3 diffs)
-
trunk/vendor/composer/installed.json (modified) (1 diff)
-
trunk/vendor/composer/installed.php (added)
-
trunk/vendor/composer/platform_check.php (added)
-
trunk/wp-simple-spreadsheet-fetcher-for-google.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/build/index.asset.php
r2314572 r2411558 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' => ' d9b3a0dab64967bfa1389874ddf689b5');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' => '0ae1c9500eb7a4bcfab69b2ecd17050f'); -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/build/index.js
r2314572 r2411558 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(){e.exports=this.wp.i18n}()},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.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(3),c=n.n(a),o=n(0),l=n(15),s=n.n(l),i=n(13),p=n(6),f=n(9),u=n.n(f),m=n(10),h=n.n(m),d=n(11),b=n.n(d),g=n(12),v=n.n(g),O=n(7),j=n.n(O),w=n(1),E=n(4); var _=wp.i18n.__,y=function(e){return"fetcher"===e?[{name:"setting",title:_("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"style",title:_("Style","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-style dashicons-before dashicons-admin-customizer"}]:"fetcher-chart"===e?[{name:"setting",title:_("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"advanced",title:_("Customize","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-advanced dashicons-before dashicons-plus"}]:void 0},N=function(){return Object(i.createHigherOrderComponent)((function(e){return function(t){b()(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=j()(e);if(t()){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}(r);function r(){return u()(this,r),n.apply(this,arguments)}return h()(r,[{key:"render",value:function(){var t=this,n=this.props.name.replace(/wp2s2fg\//,"");return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.TabPanel,{className:"wssffg-sidebar-tab-panel",activeClass:"is-active",tabs:y(n),initialTabName:"setting"},(function(e){var r;return"setting"===e.name?r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.after"),null,t.props)):"style"===e.name?r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.after"),null,t.props)):"advanced"===e.name&&(r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.after"),null,t.props))),Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.before"),null,t.props),r)}))),Object(o.createElement)(e,this.props))}}]),r}(o.Component)}),"withTabbedInspector")},C=n(5),x=n.n(C),H=n(8),S=n.n(H),R=wp.components.ToggleControl,z=wp.element.useState,F=function(e){var t=e.label,n=e.helpYes,r=e.helpNo,a=e.schema,c=e.setAttributes,l=e.attributes,s=z(l[a]),i=S()(s,2),p=i[0],f=i[1];return Object(o.createElement)(R,{label:t,help:p?n:r,checked:p,onChange:function(){c(x()({},a,!p)),f(!p)}})},M=function(e){return Object(o.createElement)(F,c()({schema:"hasFixedTable"},e))},A=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M0.015 0H2.9010000000000002V2.886H0.015z"}),Object(o.createElement)("path",{d:"M0.015 8.525H2.9010000000000002V11.411000000000001H0.015z"}),Object(o.createElement)("path",{d:"M0.015 4.277H2.9010000000000002V7.163H0.015z"}),Object(o.createElement)("path",{d:"M0.015 12.858H2.9010000000000002V15.744H0.015z"}),Object(o.createElement)("path",{d:"M0.015 17.106H2.9010000000000002V19.992H0.015z"}),Object(o.createElement)("path",{d:"M8.578 0H11.463999999999999V2.886H8.578z"}),Object(o.createElement)("path",{d:"M8.578 8.525H11.463999999999999V11.411000000000001H8.578z"}),Object(o.createElement)("path",{d:"M8.578 4.277H11.463999999999999V7.163H8.578z"}),Object(o.createElement)("path",{d:"M8.578 12.858H11.463999999999999V15.744H8.578z"}),Object(o.createElement)("path",{d:"M8.578 17.106H11.463999999999999V19.992H8.578z"}),Object(o.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(o.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(o.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(o.createElement)("path",{d:"M17.12 0H20.006V2.886H17.12z"}),Object(o.createElement)("path",{d:"M17.12 8.525H20.006V11.411000000000001H17.12z"}),Object(o.createElement)("path",{d:"M17.12 4.277H20.006V7.163H17.12z"}),Object(o.createElement)("path",{d:"M17.12 12.858H20.006V15.744H17.12z"}),Object(o.createElement)("path",{d:"M17.12 17.106H20.006V19.992H17.12z"}),Object(o.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(o.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(o.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},k=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.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(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M8.557 8.542H11.443000000000001V28.546H8.557z",transform:"rotate(-90 10 18.543)"}),Object(o.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z",transform:"rotate(-90 10 10.002)"}),Object(o.createElement)("path",{d:"M8.557 -8.542H11.443000000000001V11.462000000000002H8.557z",transform:"rotate(-90 10 1.46)"}),Object(o.createElement)("path",{d:"M-0.002 12.858H2.8840000000000003V15.744H-0.002z",transform:"rotate(-90 1.441 14.301)"}),Object(o.createElement)("path",{d:"M8.523 12.858H11.408999999999999V15.744H8.523z",transform:"rotate(-90 9.966 14.301)"}),Object(o.createElement)("path",{d:"M17.104 12.858H19.99V15.744H17.104z",transform:"rotate(-90 18.548 14.301)"}),Object(o.createElement)("path",{d:"M-0.002 4.242H2.8840000000000003V7.128H-0.002z",transform:"rotate(-90 1.442 5.685)"}),Object(o.createElement)("path",{d:"M8.523 4.242H11.408999999999999V7.128H8.523z",transform:"rotate(-90 9.966 5.685)"}),Object(o.createElement)("path",{d:"M17.104 4.242H19.99V7.128H17.104z",transform:"rotate(-90 18.547 5.686)"})))},B=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M0.015 0H2.9010000000000002V20.004H0.015z"}),Object(o.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z"}),Object(o.createElement)("path",{d:"M17.098 0H19.983999999999998V20.004H17.098z"}),Object(o.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(o.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(o.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(o.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(o.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(o.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(o.createElement)(k,null):"table-empty"===t?Object(o.createElement)(A,null):"table-horizontal"===t?Object(o.createElement)(T,null):"table-vertical"===t?Object(o.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,c=e.attributes,l=e.customClassName,s=e.icon,i=void 0!==s&&s,p=L(c[n]),f=S()(p,2),u=f[0],m=f[1],h="components-icon-button components-toolbar__control",d=function(e){m(e.target.value),a(x()({},n,e.target.value))};return t=i?r.map((function(e,t){return Object(o.createElement)(E.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},Object(o.createElement)(P,{icon:e}))})):r.map((function(e,t){return Object(o.createElement)(E.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(o.createElement)(E.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,c=n.sheetId,l=n.sheetName,s=n.sheetRange;return t=a?Object(o.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(o.createElement)(Y,null,Object(o.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:c,onChange:function(e){return r({sheetId:void 0===e?"none":e})}}),Object(o.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(o.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(o.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,c=e.step,l=e.min,s=e.max,i=q(t[a]),p=S()(i,2),f=p[0],u=p[1];return l||(l=0),s||(s=100),Object(o.createElement)($,{label:r,value:void 0===f?"":f,onChange:function(e){u(e),n(x()({},a,e))},min:l,max:s,step:c,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){b()(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=j()(e);if(t()){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(e){var r;return u()(this,n),(r=t.call(this,e)).state={open:!1},r.buttonRef=ae(),r}return h()(n,[{key:"render",value:function(){var e=this,t=function(){e.setState({open:!e.state.open})};return Object(o.createElement)(re,null,Object(o.createElement)("div",{className:"components-base-control"},Object(o.createElement)("div",{className:"wssffg-button-icon-control__wrapper components-base-control__field"},Object(o.createElement)(Q,{isTertiary:!0,className:"".concat("apc-icon-btn"),onClick:t},Object(o.createElement)("span",{className:"components-base-control__label"},this.props.label)),Object(o.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(o.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,c=e.setAttributes,l=ie(r),s=S()(l,2),i=s[0],p=s[1],f=function(e,t){c(x()({},e,t))};return Object(o.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(x()({},e,t))};return Object(o.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(o.createElement)(be,null,Object(o.createElement)(ge,null,Object(o.createElement)(pe,c()({label:de("Style","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:he},e))),Object(o.createElement)(ge,null,Object(o.createElement)("span",{className:"components-base-control__label"},de("Color","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(ue,c()({schemaName:n},e))));return Object(o.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,a=e.letterSpace,l=Object(o.createElement)(Ee,null,Object(o.createElement)(_e,null,Object(o.createElement)(pe,c()({label:we("Weight","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:je},e))),Object(o.createElement)(_e,null,Object(o.createElement)(J,c()({label:we("Line Height","wp-simple-spreadsheet-fetcher-for-google"),schemaName:n,min:1,max:10,step:.1},e))),Object(o.createElement)(_e,null,Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},we("Letter Spacing","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(U,c()({schemaName:r,data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(o.createElement)(J,c()({schemaName:a,min:0,max:10,step:.1},e))));return Object(o.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),c=S()(a,2),l=c[0],s=c[1],i=function(e,t){n(x()({},e,t))};return Object(o.createElement)(xe,{controls:["left","center","right"].map((function(e){return{icon:"editor-align".concat(e),title:Ne("Align ".concat(e),"wp-simple-spreadsheet-fetcher-for-google"),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,a=e.align;return Object(o.createElement)(ze,null,Object(o.createElement)(ye,e),Object(o.createElement)(Re,{className:"wssffg-lower-layer1"},Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},Se("Size","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(U,c()({schemaName:t,initial:e.attributes[t],data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(o.createElement)(J,c()({schemaName:n,min:0,max:50,step:.1},e))),Object(o.createElement)(Re,{label:Se("Background Color","wp-simple-spreadsheet-fetcher-for-google")},Object(o.createElement)(ue,c()({schemaName:r},e))),Object(o.createElement)(Re,{label:Se("Align","wp-simple-spreadsheet-fetcher-for-google")},Object(o.createElement)(He,c()({schemaName:a,initial:e.attributes[a]},e))))},Me=wp.i18n.__,Ae=wp.components,ke=Ae.PanelBody,Te=Ae.BaseControl,Be=wp.element.Fragment;Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.setting.before","wp2s2fg/fetcher",(function(e,t){return Object(o.createElement)(Z,t)})),Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.style.before","wp2s2fg/fetcher",(function(e,t){return Object(o.createElement)(Be,null,Object(o.createElement)(ke,{title:Me("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(Te,null,Object(o.createElement)("span",{className:"components-base-control__label"},Me("Layout","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(U,c()({schemaName:"borderLayout",data:["table-full","table-horizontal","table-vertical","table-empty"],customClassName:"wssffg-advanced-button-group_align components-toolbar",icon:!0},t))),Object(o.createElement)(ve,c()({borderStyle:"borderStyle",borderColor:"borderColor"},t)),Object(o.createElement)(Te,{className:"wssffg-lower-layer1"},Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},Me("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(U,c()({schemaName:"borderUnit",data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},t))),Object(o.createElement)(J,c()({schemaName:"borderWidth",min:0,max:10,step:.1},t))),Object(o.createElement)(Te,null,Object(o.createElement)("span",{className:"components-base-control__label"},Me("Fixed Table Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(M,t))),Object(o.createElement)(ke,{title:Me("Table Header","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(o.createElement)(Fe,c()({fontUnit:"thFontUnit",fontSize:"thFontSize",fontColor:"thFontColor",fontWeight:"thFontWeight",lineHeight:"thLineHeight",letterSpaceUnit:"thLetterSpaceUnit",letterSpace:"thLetterSpace",bgColor:"thBgColor",align:"thAlign"},t))),Object(o.createElement)(ke,{title:Me("Table Body","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(o.createElement)(Fe,c()({fontUnit:"tbFontUnit",fontSize:"tbFontSize",fontColor:"tbFontColor",fontWeight:"tbFontWeight",lineHeight:"tbLineHeight",letterSpaceUnit:"tbLetterSpaceUnit",letterSpace:"tbLetterSpace",bgColor:"tbBgColor",align:"tbAlign"},t))))}));var Ve=Object(i.compose)(N())((function(e){var t=e.attributes;return Object(o.createElement)(Be,null,Object(o.createElement)(s.a,{block:"wp2s2fg/fetcher",attributes:t}))}));(0,wp.blocks.registerBlockType)("wp2s2fg/fetcher",{title:Object(r.__)("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 Pe=n(14);function Ie(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=j()(e);if(t()){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var Le=function(e){b()(n,e);var t=Ie(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes,c=a.price,l=a.after,s=a.caption,i=this.props.for_,p=["wp2s2fg/fetcher-item"],f=[p];return"edit"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:s,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(o.createElement)(w.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:c,placeholder:Object(r.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:f,allowedBlocks:p,templateLock:"all"}),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:l,placeholder:Object(r.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:s}),Object(o.createElement)(w.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",value:c})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",value:l}))):void 0}}]),n}(o.Component),Ue=function(e){b()(n,e);var t=Ie(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes.caption,c=this.props.for_,l=["wp2s2fg/fetcher-item"],s=[l];return"edit"===c?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:a,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:s,allowedBlocks:l,templateLock:"all"}))):"save"===c?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:a})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null))):void 0}}]),n}(o.Component);o.Component;var De=function(e){b()(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=j()(e);if(t()){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes,c=a.price,l=a.after,s=a.caption,i=this.props.for_,p=["wp2s2fg/fetcher-item"],f=[p];return"edit"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:s,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(o.createElement)(w.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:c,placeholder:Object(r.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:f,allowedBlocks:p,templateLock:"all"}),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:l,placeholder:Object(r.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:s}),Object(o.createElement)(w.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",value:c})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",value:l}))):void 0}}]),n}(o.Component);Object(Pe.registerBlockType)("wp2s2fg/fetcher-advanced",{title:Object(r.__)("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(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.PanelBody,null,Object(o.createElement)(E.SelectControl,{label:Object(r.__)("Select Layout","wp-simple-spreadsheet-fetcher-for-google"),value:n,options:[{label:Object(r.__)("Event Registration Simple","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-simple"},{label:Object(r.__)("Event Registration Advanced","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-advanced"}],onChange:function(e){t({layout:e})}}))),"event-registration-simple"===n&&Object(o.createElement)(Ue,{props:e,for_:"edit"}),"event-registration-advanced"===n&&Object(o.createElement)(Le,{props:e,for_:"edit"}))},save:function(e){var t=e.attributes.layout;return Object(o.createElement)(o.Fragment,null,"event-registration-simple"===t&&Object(o.createElement)(Ue,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(o.createElement)(Le,{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(o.createElement)(o.Fragment,null,"event-registration-simple"===t&&Object(o.createElement)(Ue,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(o.createElement)(De,{props:e,for_:"save"}))}}]}),Object(Pe.registerBlockType)("wp2s2fg/fetcher-item",{title:Object(r.__)("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,a=t.range,c=t.sheetId,l=t.sheetName,i=t.sheetRange;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.PanelBody,{title:Object(r.__)("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},a?Object(o.createElement)(E.TextControl,{label:Object(r.__)("Please set the cell to fetch data in A1 notation. Example : Sheets1!A1","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return n({range:void 0===e?"none":e})},initialOpen:!0}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E.TextControl,{label:Object(r.__)("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),value:c,onChange:function(e){return n({sheetId:void 0===e?"none":e})},initialOpen:!0}),Object(o.createElement)(E.TextControl,{label:Object(r.__)("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),value:l,onChange:function(e){return n({sheetName:void 0===e?"none":e})},initialOpen:!0}),Object(o.createElement)(E.TextControl,{label:Object(r.__)("Cell","wp-simple-spreadsheet-fetcher-for-google"),value:i,onChange:function(e){return n({sheetRange:void 0===e?"none":e})},initialOpen:!0})))),Object(o.createElement)(s.a,{block:"wp2s2fg/fetcher-item",attributes:t}))},save:function(){return null}});var We=n(18),Ge=n.n(We);function Xe(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze=function(e){var t="/wp-json/api-charts/v1/data-table/"+$e(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=qe(t.chartData);e.switchRowColumn&&(n=Ke(n));tt(n[0])||(n=Qe(n));var r=google.visualization.arrayToDataTable(n),a=new google.visualization.DataView(r),c=Je(n[0].length);a.setColumns(c),console.log(e);var o={width:nt("chartWidth",600,e),height:nt("chartHeight",400,e),bar:{groupWidth:"75%"},isStacked:!0};e.hideXAxisLabel&&(o=et(o,{hAxis:{textPosition:"none"}}));e.hideYAxisLabel&&(o=et(o,{legend:{position:"none"}}));new google.visualization.ColumnChart(document.getElementById("chart_div")).draw(a,o)}))}))},$e=function(e){var t=e.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);return null!==t&&(t=t[0].replace(/\/spreadsheets\/d\//,"")),t},qe=function(e){return e.map((function(e){return e.map((function(e){return Number(e)?Number(e):e}))}))},Je=function(e){return Ge()(Array(e).keys())},Ke=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},Qe=function(e){return e.map((function(e){return e.unshift(""),e}))},et=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{someting:!0};return Ye({},e,{},t)},tt=function(e){return void 0===e.find((function(e){return"string"!=typeof e}))},nt=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 rt=wp.i18n.__,at=wp.components,ct=at.PanelBody,ot=at.BaseControl,lt=at.TextControl;Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.setting.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(o.createElement)(Z,t)})),Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.advanced.before","wp2s2fg/fetcher-chart",(function(e,t){return console.log(t),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(o.Fragment,null,Object(o.createElement)(ct,{title:rt("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Switch Rows / Columns","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(F,c()({schema:"switchRowColumn"},t))),Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Hide X-Axis Label","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(F,c()({schema:"hideXAxisLabel"},t))),Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Hide Data Category Label","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(F,c()({schema:"hideYAxisLabel"},t)))),Object(o.createElement)(ct,{title:rt("Size","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(lt,{value:t.attributes.chartWidth,onChange:function(e){return t.setAttributes({chartWidth:parseInt(e,10)})},type:"number"})),Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Height","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(lt,{value:t.attributes.chartHeight,onChange:function(e){return t.setAttributes({chartHeight:parseInt(e,10)})},type:"number"}))))))}));var st=Object(i.compose)(N())((function(e){return Ze(e.attributes),Object(o.createElement)("div",{id:"chart_div"})}));Object(Pe.registerBlockType)("wp2s2fg/fetcher-chart",{title:Object(r.__)("Chart","wp-simple-spreadsheet-fetcher-for-google"),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:st})}]);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(){e.exports=this.wp.i18n}()},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.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(3),c=n.n(a),o=n(0),l=n(15),s=n.n(l),i=n(13),p=n(6),f=n(9),u=n.n(f),m=n(10),h=n.n(m),d=n(11),b=n.n(d),g=n(12),v=n.n(g),O=n(7),j=n.n(O),w=n(1),E=n(4);function _(e){var t=function(){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=j()(e);if(t){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var y=wp.i18n.__,N=function(e){return"fetcher"===e?[{name:"setting",title:y("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"style",title:y("Style","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-style dashicons-before dashicons-admin-customizer"}]:"fetcher-chart"===e?[{name:"setting",title:y("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"advanced",title:y("Customize","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-advanced dashicons-before dashicons-plus"}]:void 0},C=function(){return Object(i.createHigherOrderComponent)((function(e){return function(t){b()(r,t);var n=_(r);function r(){return u()(this,r),n.apply(this,arguments)}return h()(r,[{key:"render",value:function(){var t=this,n=this.props.name.replace(/wp2s2fg\//,"");return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.TabPanel,{className:"wssffg-sidebar-tab-panel",activeClass:"is-active",tabs:N(n),initialTabName:"setting"},(function(e){var r;return"setting"===e.name?r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.after"),null,t.props)):"style"===e.name?r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.after"),null,t.props)):"advanced"===e.name&&(r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.after"),null,t.props))),Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.before"),null,t.props),r)}))),Object(o.createElement)(e,this.props))}}]),r}(o.Component)}),"withTabbedInspector")},x=n(5),H=n.n(x),S=n(8),R=n.n(S),z=wp.components.ToggleControl,F=wp.element.useState,M=function(e){var t=e.label,n=e.helpYes,r=e.helpNo,a=e.schema,c=e.setAttributes,l=e.attributes,s=F(l[a]),i=R()(s,2),p=i[0],f=i[1];return Object(o.createElement)(z,{label:t,help:p?n:r,checked:p,onChange:function(){c(H()({},a,!p)),f(!p)}})},A=function(e){return Object(o.createElement)(M,c()({schema:"hasFixedTable"},e))},k=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M0.015 0H2.9010000000000002V2.886H0.015z"}),Object(o.createElement)("path",{d:"M0.015 8.525H2.9010000000000002V11.411000000000001H0.015z"}),Object(o.createElement)("path",{d:"M0.015 4.277H2.9010000000000002V7.163H0.015z"}),Object(o.createElement)("path",{d:"M0.015 12.858H2.9010000000000002V15.744H0.015z"}),Object(o.createElement)("path",{d:"M0.015 17.106H2.9010000000000002V19.992H0.015z"}),Object(o.createElement)("path",{d:"M8.578 0H11.463999999999999V2.886H8.578z"}),Object(o.createElement)("path",{d:"M8.578 8.525H11.463999999999999V11.411000000000001H8.578z"}),Object(o.createElement)("path",{d:"M8.578 4.277H11.463999999999999V7.163H8.578z"}),Object(o.createElement)("path",{d:"M8.578 12.858H11.463999999999999V15.744H8.578z"}),Object(o.createElement)("path",{d:"M8.578 17.106H11.463999999999999V19.992H8.578z"}),Object(o.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(o.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(o.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(o.createElement)("path",{d:"M17.12 0H20.006V2.886H17.12z"}),Object(o.createElement)("path",{d:"M17.12 8.525H20.006V11.411000000000001H17.12z"}),Object(o.createElement)("path",{d:"M17.12 4.277H20.006V7.163H17.12z"}),Object(o.createElement)("path",{d:"M17.12 12.858H20.006V15.744H17.12z"}),Object(o.createElement)("path",{d:"M17.12 17.106H20.006V19.992H17.12z"}),Object(o.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(o.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(o.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},T=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.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"})))},B=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M8.557 8.542H11.443000000000001V28.546H8.557z",transform:"rotate(-90 10 18.543)"}),Object(o.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z",transform:"rotate(-90 10 10.002)"}),Object(o.createElement)("path",{d:"M8.557 -8.542H11.443000000000001V11.462000000000002H8.557z",transform:"rotate(-90 10 1.46)"}),Object(o.createElement)("path",{d:"M-0.002 12.858H2.8840000000000003V15.744H-0.002z",transform:"rotate(-90 1.441 14.301)"}),Object(o.createElement)("path",{d:"M8.523 12.858H11.408999999999999V15.744H8.523z",transform:"rotate(-90 9.966 14.301)"}),Object(o.createElement)("path",{d:"M17.104 12.858H19.99V15.744H17.104z",transform:"rotate(-90 18.548 14.301)"}),Object(o.createElement)("path",{d:"M-0.002 4.242H2.8840000000000003V7.128H-0.002z",transform:"rotate(-90 1.442 5.685)"}),Object(o.createElement)("path",{d:"M8.523 4.242H11.408999999999999V7.128H8.523z",transform:"rotate(-90 9.966 5.685)"}),Object(o.createElement)("path",{d:"M17.104 4.242H19.99V7.128H17.104z",transform:"rotate(-90 18.547 5.686)"})))},V=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M0.015 0H2.9010000000000002V20.004H0.015z"}),Object(o.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z"}),Object(o.createElement)("path",{d:"M17.098 0H19.983999999999998V20.004H17.098z"}),Object(o.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(o.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(o.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(o.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(o.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(o.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},P=wp.i18n.__,I=function(e){var t=e.icon;return"table-full"===t?Object(o.createElement)(T,null):"table-empty"===t?Object(o.createElement)(k,null):"table-horizontal"===t?Object(o.createElement)(B,null):"table-vertical"===t?Object(o.createElement)(V,null):P("nothing is specified","wp-simple-spreadsheet-fetcher-for-google")},L=wp.i18n.__,U=wp.element.useState,D=function(e){var t,n=e.schemaName,r=e.data,a=e.setAttributes,c=e.attributes,l=e.customClassName,s=e.icon,i=void 0!==s&&s,p=U(c[n]),f=R()(p,2),u=f[0],m=f[1],h="components-icon-button components-toolbar__control",d=function(e){m(e.target.value),a(H()({},n,e.target.value))};return t=i?r.map((function(e,t){return Object(o.createElement)(E.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},Object(o.createElement)(I,{icon:e}))})):r.map((function(e,t){return Object(o.createElement)(E.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},L("".concat(e),"wp-simple-spreadsheet-fetcher-for-google"))})),Object(o.createElement)(E.ButtonGroup,{className:l},t)},W=wp.i18n.__,G=wp.components,X=G.TextControl,Y=G.PanelBody,Z=wp.element.Fragment,$=function(e){var t,n=e.attributes,r=e.setAttributes,a=n.range,c=n.sheetId,l=n.sheetName,s=n.sheetRange;return t=a?Object(o.createElement)(X,{label:W("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(o.createElement)(Z,null,Object(o.createElement)(X,{label:W("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),help:W("Ex. https://docs.google.com/spreadsh...","wp-simple-spreadsheet-fetcher-for-google"),value:c,onChange:function(e){return r({sheetId:void 0===e?"none":e})}}),Object(o.createElement)(X,{label:W("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),help:W("Ex. Sheet1","wp-simple-spreadsheet-fetcher-for-google"),value:l,onChange:function(e){return r({sheetName:void 0===e?"none":e})}}),Object(o.createElement)(X,{label:W("Cell or Range","wp-simple-spreadsheet-fetcher-for-google"),help:W("Ex. A1:D12","wp-simple-spreadsheet-fetcher-for-google"),value:s,onChange:function(e){return r({sheetRange:void 0===e?"none":e})}})),Object(o.createElement)(Y,{title:W("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},t)},q=(wp.i18n.__,wp.components.RangeControl),J=wp.element.useState,K=function(e){var t=e.attributes,n=e.setAttributes,r=e.label,a=e.schemaName,c=e.step,l=e.min,s=e.max,i=J(t[a]),p=R()(i,2),f=p[0],u=p[1];return l||(l=0),s||(s=100),Object(o.createElement)(q,{label:r,value:void 0===f?"":f,onChange:function(e){u(e),n(H()({},a,e))},min:l,max:s,step:c,allowReset:!0})};function Q(e){var t=function(){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=j()(e);if(t){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var ee=wp.components,te=ee.Button,ne=ee.Popover,re=ee.IconButton,ae=wp.element,ce=ae.Fragment,oe=ae.createRef,le=ae.Component,se=wp.i18n.__,ie=function(e){b()(n,e);var t=Q(n);function n(e){var r;return u()(this,n),(r=t.call(this,e)).state={open:!1},r.buttonRef=oe(),r}return h()(n,[{key:"render",value:function(){var e=this,t=function(){e.setState({open:!e.state.open})};return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"components-base-control"},Object(o.createElement)("div",{className:"wssffg-button-icon-control__wrapper components-base-control__field"},Object(o.createElement)(te,{isTertiary:!0,className:"".concat("apc-icon-btn"),onClick:t},Object(o.createElement)("span",{className:"components-base-control__label"},this.props.label)),Object(o.createElement)(re,{className:"".concat("apc-icon-btn"," components-button is-button is-default"),icon:"edit",label:se("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(o.createElement)(ne,{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}(le),pe=(wp.i18n.__,wp.components.SelectControl),fe=wp.element.useState,ue=function(e){var t=e.label,n=e.schemaName,r=e.initial,a=e.data,c=e.setAttributes,l=fe(r),s=R()(l,2),i=s[0],p=s[1],f=function(e,t){c(H()({},e,t))};return Object(o.createElement)(pe,{label:t,value:i,onChange:function(e){p(e),f.bind(null,n,e)()},options:a})},me=(wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor).ColorPalette,he=function(e){var t=e.schemaName,n=e.setAttributes,r=e.attributes,a=function(e,t){n(H()({},e,t))};return Object(o.createElement)(me,{value:r[t],onChange:function(e){a.bind(null,t,e)()}})},de=wp.i18n.__,be=[{value:"solid",label:de("solid","wp-simple-spreadsheet-fetcher-for-google")},{value:"double",label:de("double","wp-simple-spreadsheet-fetcher-for-google")},{value:"dotted",label:de("dotted","wp-simple-spreadsheet-fetcher-for-google")},{value:"dashed",label:de("dashed","wp-simple-spreadsheet-fetcher-for-google")},{value:"groove",label:de("groove","wp-simple-spreadsheet-fetcher-for-google")},{value:"ridge",label:de("ridge","wp-simple-spreadsheet-fetcher-for-google")},{value:"inset",label:de("inset","wp-simple-spreadsheet-fetcher-for-google")},{value:"outset",label:de("outset","wp-simple-spreadsheet-fetcher-for-google")},{value:"none",label:de("none","wp-simple-spreadsheet-fetcher-for-google")},{value:"hidden",label:de("hidden","wp-simple-spreadsheet-fetcher-for-google")}],ge=wp.i18n.__,ve=wp.element.Fragment,Oe=wp.components.BaseControl,je=function(e){var t=e.borderStyle,n=e.borderColor,r=Object(o.createElement)(ve,null,Object(o.createElement)(Oe,null,Object(o.createElement)(ue,c()({label:ge("Style","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:be},e))),Object(o.createElement)(Oe,null,Object(o.createElement)("span",{className:"components-base-control__label"},ge("Color","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(he,c()({schemaName:n},e))));return Object(o.createElement)(ie,{label:ge("Border","wp-simple-spreadsheet-fetcher-for-google"),renderComp:r,setAttributes:e.setAttributes})},we=wp.i18n.__,Ee=[{value:"100",label:we("100","wp-simple-spreadsheet-fetcher-for-google")},{value:"200",label:we("200","wp-simple-spreadsheet-fetcher-for-google")},{value:"300",label:we("300","wp-simple-spreadsheet-fetcher-for-google")},{value:"400",label:we("400","wp-simple-spreadsheet-fetcher-for-google")},{value:"500",label:we("500","wp-simple-spreadsheet-fetcher-for-google")},{value:"600",label:we("600","wp-simple-spreadsheet-fetcher-for-google")},{value:"700",label:we("700","wp-simple-spreadsheet-fetcher-for-google")},{value:"800",label:we("800","wp-simple-spreadsheet-fetcher-for-google")},{value:"900",label:we("900","wp-simple-spreadsheet-fetcher-for-google")},{value:"normal",label:we("Normal","wp-simple-spreadsheet-fetcher-for-google")},{value:"bold",label:we("Bold","wp-simple-spreadsheet-fetcher-for-google")}],_e=wp.i18n.__,ye=wp.element.Fragment,Ne=wp.components.BaseControl,Ce=function(e){var t=e.fontWeight,n=e.lineHeight,r=e.letterSpaceUnit,a=e.letterSpace,l=Object(o.createElement)(ye,null,Object(o.createElement)(Ne,null,Object(o.createElement)(ue,c()({label:_e("Weight","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:Ee},e))),Object(o.createElement)(Ne,null,Object(o.createElement)(K,c()({label:_e("Line Height","wp-simple-spreadsheet-fetcher-for-google"),schemaName:n,min:1,max:10,step:.1},e))),Object(o.createElement)(Ne,null,Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},_e("Letter Spacing","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(D,c()({schemaName:r,data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(o.createElement)(K,c()({schemaName:a,min:0,max:10,step:.1},e))));return Object(o.createElement)(ie,{label:_e("Typography","wp-simple-spreadsheet-fetcher-for-google"),renderComp:l,setAttributes:e.setAttributes})},xe=wp.i18n.__,He=wp.element.useState,Se=wp.components.Toolbar,Re=function(e){var t=e.schemaName,n=e.setAttributes,r=e.initial,a=He(r),c=R()(a,2),l=c[0],s=c[1],i=function(e,t){n(H()({},e,t))};return Object(o.createElement)(Se,{controls:["left","center","right"].map((function(e){return{icon:"editor-align".concat(e),title:xe("Align ".concat(e),"wp-simple-spreadsheet-fetcher-for-google"),isActive:l===e,onClick:function(){s(e),i.bind(null,t,e)()}}}))})},ze=wp.i18n.__,Fe=wp.components.BaseControl,Me=wp.element.Fragment,Ae=function(e){var t=e.fontUnit,n=e.fontSize,r=e.bgColor,a=e.align;return Object(o.createElement)(Me,null,Object(o.createElement)(Ce,e),Object(o.createElement)(Fe,{className:"wssffg-lower-layer1"},Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},ze("Size","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(D,c()({schemaName:t,initial:e.attributes[t],data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(o.createElement)(K,c()({schemaName:n,min:0,max:50,step:.1},e))),Object(o.createElement)(Fe,{label:ze("Background Color","wp-simple-spreadsheet-fetcher-for-google")},Object(o.createElement)(he,c()({schemaName:r},e))),Object(o.createElement)(Fe,{label:ze("Align","wp-simple-spreadsheet-fetcher-for-google")},Object(o.createElement)(Re,c()({schemaName:a,initial:e.attributes[a]},e))))},ke=wp.i18n.__,Te=wp.components,Be=Te.PanelBody,Ve=Te.BaseControl,Pe=wp.element.Fragment;Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.setting.before","wp2s2fg/fetcher",(function(e,t){return Object(o.createElement)($,t)})),Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.style.before","wp2s2fg/fetcher",(function(e,t){return Object(o.createElement)(Pe,null,Object(o.createElement)(Be,{title:ke("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(Ve,null,Object(o.createElement)("span",{className:"components-base-control__label"},ke("Layout","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(D,c()({schemaName:"borderLayout",data:["table-full","table-horizontal","table-vertical","table-empty"],customClassName:"wssffg-advanced-button-group_align components-toolbar",icon:!0},t))),Object(o.createElement)(je,c()({borderStyle:"borderStyle",borderColor:"borderColor"},t)),Object(o.createElement)(Ve,{className:"wssffg-lower-layer1"},Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},ke("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(D,c()({schemaName:"borderUnit",data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},t))),Object(o.createElement)(K,c()({schemaName:"borderWidth",min:0,max:10,step:.1},t))),Object(o.createElement)(Ve,null,Object(o.createElement)("span",{className:"components-base-control__label"},ke("Fixed Table Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(A,t))),Object(o.createElement)(Be,{title:ke("Table Header","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(o.createElement)(Ae,c()({fontUnit:"thFontUnit",fontSize:"thFontSize",fontColor:"thFontColor",fontWeight:"thFontWeight",lineHeight:"thLineHeight",letterSpaceUnit:"thLetterSpaceUnit",letterSpace:"thLetterSpace",bgColor:"thBgColor",align:"thAlign"},t))),Object(o.createElement)(Be,{title:ke("Table Body","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(o.createElement)(Ae,c()({fontUnit:"tbFontUnit",fontSize:"tbFontSize",fontColor:"tbFontColor",fontWeight:"tbFontWeight",lineHeight:"tbLineHeight",letterSpaceUnit:"tbLetterSpaceUnit",letterSpace:"tbLetterSpace",bgColor:"tbBgColor",align:"tbAlign"},t))))}));var Ie=Object(i.compose)(C())((function(e){var t=e.attributes;return Object(o.createElement)(Pe,null,Object(o.createElement)(s.a,{block:"wp2s2fg/fetcher",attributes:t}))}));(0,wp.blocks.registerBlockType)("wp2s2fg/fetcher",{title:Object(r.__)("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:Ie,save:function(){return null}});var Le=n(14);function Ue(e){var t=function(){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=j()(e);if(t){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var De=function(e){b()(n,e);var t=Ue(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes,c=a.price,l=a.after,s=a.caption,i=this.props.for_,p=["wp2s2fg/fetcher-item"],f=[p];return"edit"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:s,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(o.createElement)(w.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:c,placeholder:Object(r.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:f,allowedBlocks:p,templateLock:"all"}),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:l,placeholder:Object(r.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:s}),Object(o.createElement)(w.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",value:c})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",value:l}))):void 0}}]),n}(o.Component),We=function(e){b()(n,e);var t=Ue(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes.caption,c=this.props.for_,l=["wp2s2fg/fetcher-item"],s=[l];return"edit"===c?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:a,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:s,allowedBlocks:l,templateLock:"all"}))):"save"===c?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:a})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null))):void 0}}]),n}(o.Component);o.Component;function Ge(e){var t=function(){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=j()(e);if(t){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var Xe=function(e){b()(n,e);var t=Ge(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes,c=a.price,l=a.after,s=a.caption,i=this.props.for_,p=["wp2s2fg/fetcher-item"],f=[p];return"edit"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:s,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(o.createElement)(w.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:c,placeholder:Object(r.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:f,allowedBlocks:p,templateLock:"all"}),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:l,placeholder:Object(r.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:s}),Object(o.createElement)(w.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",value:c})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",value:l}))):void 0}}]),n}(o.Component);Object(Le.registerBlockType)("wp2s2fg/fetcher-advanced",{title:Object(r.__)("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(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.PanelBody,null,Object(o.createElement)(E.SelectControl,{label:Object(r.__)("Select Layout","wp-simple-spreadsheet-fetcher-for-google"),value:n,options:[{label:Object(r.__)("Event Registration Simple","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-simple"},{label:Object(r.__)("Event Registration Advanced","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-advanced"}],onChange:function(e){t({layout:e})}}))),"event-registration-simple"===n&&Object(o.createElement)(We,{props:e,for_:"edit"}),"event-registration-advanced"===n&&Object(o.createElement)(De,{props:e,for_:"edit"}))},save:function(e){var t=e.attributes.layout;return Object(o.createElement)(o.Fragment,null,"event-registration-simple"===t&&Object(o.createElement)(We,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(o.createElement)(De,{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(o.createElement)(o.Fragment,null,"event-registration-simple"===t&&Object(o.createElement)(We,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(o.createElement)(Xe,{props:e,for_:"save"}))}}]}),Object(Le.registerBlockType)("wp2s2fg/fetcher-item",{title:Object(r.__)("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,a=t.range,c=t.sheetId,l=t.sheetName,i=t.sheetRange;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.PanelBody,{title:Object(r.__)("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},a?Object(o.createElement)(E.TextControl,{label:Object(r.__)("Please set the cell to fetch data in A1 notation. Example : Sheets1!A1","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return n({range:void 0===e?"none":e})},initialOpen:!0}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E.TextControl,{label:Object(r.__)("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),value:c,onChange:function(e){return n({sheetId:void 0===e?"none":e})},initialOpen:!0}),Object(o.createElement)(E.TextControl,{label:Object(r.__)("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),value:l,onChange:function(e){return n({sheetName:void 0===e?"none":e})},initialOpen:!0}),Object(o.createElement)(E.TextControl,{label:Object(r.__)("Cell","wp-simple-spreadsheet-fetcher-for-google"),value:i,onChange:function(e){return n({sheetRange:void 0===e?"none":e})},initialOpen:!0})))),Object(o.createElement)(s.a,{block:"wp2s2fg/fetcher-item",attributes:t}))},save:function(){return null}});var Ye=n(18),Ze=n.n(Ye);function $e(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 qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){var t=window.wssffg_rest_url+"api-charts/v1/data-table/"+Ke(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=Qe(t.chartData);e.switchRowColumn&&(n=tt(n));at(n[0])||(n=nt(n));var r=google.visualization.arrayToDataTable(n),a=new google.visualization.DataView(r),c=et(n[0].length);a.setColumns(c);var o={width:ct("chartWidth",600,e),height:ct("chartHeight",400,e),bar:{groupWidth:"75%"},isStacked:!0};e.hideXAxisLabel&&(o=rt(o,{hAxis:{textPosition:"none"}}));e.hideYAxisLabel&&(o=rt(o,{legend:{position:"none"}}));new google.visualization.ColumnChart(document.getElementById("chart_div")).draw(a,o)}))}))},Ke=function(e){if(e){var t=e.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);return null!==t&&(t=t[0].replace(/\/spreadsheets\/d\//,"")),t}},Qe=function(e){return e.map((function(e){return e.map((function(e){return Number(e)?Number(e):e}))}))},et=function(e){return Ze()(Array(e).keys())},tt=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},nt=function(e){return e.map((function(e){return e.unshift(""),e}))},rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{someting:!0};return qe(qe({},e),t)},at=function(e){return void 0===e.find((function(e){return"string"!=typeof e}))},ct=function(e,t,n){return n.hasOwnProperty("attributes")&&n.attributes[e]?n.attributes[e]:n[e]?n[e]:t};var ot=wp.i18n.__,lt=wp.components,st=lt.PanelBody,it=lt.BaseControl,pt=lt.TextControl;Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.setting.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(o.createElement)($,t)})),Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.advanced.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(o.Fragment,null,Object(o.createElement)(st,{title:ot("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Switch Rows / Columns","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(M,c()({schema:"switchRowColumn"},t))),Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Hide X-Axis Label","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(M,c()({schema:"hideXAxisLabel"},t))),Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Hide Data Category Label","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(M,c()({schema:"hideYAxisLabel"},t)))),Object(o.createElement)(st,{title:ot("Size","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(pt,{value:t.attributes.chartWidth,onChange:function(e){return t.setAttributes({chartWidth:parseInt(e,10)})},type:"number"})),Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Height","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(pt,{value:t.attributes.chartHeight,onChange:function(e){return t.setAttributes({chartHeight:parseInt(e,10)})},type:"number"}))))))}));var ft=Object(i.compose)(C())((function(e){return Je(e.attributes),Object(o.createElement)("div",{id:"chart_div"})}));Object(Le.registerBlockType)("wp2s2fg/fetcher-chart",{title:Object(r.__)("Chart","wp-simple-spreadsheet-fetcher-for-google"),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:600},chartHeight:{type:"number",default:400}},edit:ft})}]); -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/readme.txt
r2341341 r2411558 4 4 Requires at least: 5.3 5 5 Tested up to: 5.4 6 Stable tag: 0.7. 56 Stable tag: 0.7.6 7 7 License: GPLv3 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 36 36 == Changelog == 37 38 = 0.7.6 = 39 - Fix bug, and add validation message. 37 40 38 41 = 0.7.5 = -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/App/RestAPI/sheets/EntryPoint.php
r2310942 r2411558 2 2 namespace Fetcher\App\RestAPI\Sheets; 3 3 use Fetcher\App\Utils\FetcherWarning; 4 use Fetcher\App\Utils\ApiManipulation; 4 5 5 class EntryPoint {6 class EntryPoint extends ApiManipulation { 6 7 7 8 private $service; … … 15 16 const PARAM_CHARTHEIGHT = '/(?P<chartHeight>.+)'; 16 17 17 public function __construct( $service) {18 public function __construct( $service ) { 18 19 $this->service = $service; 19 20 add_action( 'rest_api_init', [ $this, '_rest_api_init' ] ); 21 add_action( 'wp_head', [ $this, 'print_rest_url' ] ); 22 add_action( 'admin_head', [ $this, 'print_rest_url' ] ); 20 23 } 21 24 … … 27 30 'methods' => 'GET', 28 31 'callback' => [ $this, '_callback' ], 32 'permission_callback' => '__return_true', 29 33 ] 30 34 ); 31 35 } 32 36 33 public function _callback( $request) {37 public function _callback( $request ) { 34 38 35 $sheet Id= esc_html($request["sheetId"]);39 $sheetUrl = esc_html($request["sheetId"]); 36 40 $sheetName = esc_html($request["sheetName"]); 37 41 $sheetRange = esc_html($request["sheetRange"]); 38 42 $chartWidth = intval($request["chartWidth"]); 39 43 $chartHeight = intval($request["chartHeight"]); 44 $api_key = $this->get_api_key(); 40 45 $warning = ["data"=>["status"=>404,"message"=>""]]; 41 46 42 if($this->is_str_null($sheetId)){ 43 $warning["data"]["message"] = FetcherWarning::sheet_url(); 47 $result = $this->get_google_sheet_value( $api_key, $sheetUrl, $sheetName, $sheetRange, $this->service, "", 'wp2s2fg/fetcher-chart' ); 48 49 // Return error message. 50 if(!$result['status']){ 51 $warning["data"]["message"] = $result['values']; 44 52 return $warning; 45 53 } 46 54 47 if($this->is_str_null($sheetName) && $this->is_str_null($sheetRange)) { 48 $warning["data"]["message"] = FetcherWarning::sheet_name_range(); 49 return $warning; 50 51 }else{ 52 if($this->is_str_null($sheetName)){ 53 $warning["data"]["message"] = FetcherWarning::sheet_name(); 54 return $warning; 55 56 }else if($this->is_str_null($sheetRange)){ 57 $warning["data"]["message"] = FetcherWarning::sheet_range_fetcher(); 58 return $warning; 59 } 60 $range = esc_html($sheetName) . '!' . esc_html($sheetRange); 61 } 62 63 $response = $this->service->spreadsheets_values->get($sheetId, $range ); 64 $values = $response->getValues(); 65 return rest_ensure_response(["attributes" => ["chartWidth" => $chartWidth, "chartHeight" => $chartHeight],"chartData"=>$values]); 55 return rest_ensure_response( [ "attributes" => [ "chartWidth" => $chartWidth, "chartHeight" => $chartHeight ],"chartData" => $result['values']] ); 66 56 } 67 57 68 public function is_str_null($value){ 69 return $value === "null"; 58 public function print_rest_url(){ 59 60 echo '<script>', 61 'var wssffg_rest_url = "' . esc_url(get_rest_url()) . '";', 62 '</script>'; 70 63 } 71 64 } -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/App/Setup/ApiSettingScreen.php
r2314494 r2411558 7 7 class ApiSettingScreen extends ApiManipulation { 8 8 9 public function __construct() { 9 public function init() { 10 add_action( 'plugins_loaded', array($this,'load_text_domain') ); 11 add_action( 'admin_menu', array( $this, 'add_sub_menu' ) ); 12 add_action( 'admin_enqueue_scripts', array($this,'add_admin_scripts') ); 13 register_deactivation_hook( __FILE__, array( $this, 'deactivation' ) ); 14 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings' ) ); 15 } 10 16 17 public function load_text_domain() { 18 load_plugin_textdomain( 'wp-simple-spreadsheet-fetcher-for-google' ); 19 } 20 21 public function render_set_api_key() { 22 $message = '<span class="success" style="color:#28a745; font-size:1.2rem">' . __( "API Key set!", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</span >'; 23 24 return $this->render_settings_page( $message ); 25 } 26 27 public function render_api_key_not_set() { 28 $message = '<strong class="warn" style="color:#dc3545; font-size:1.2rem">' . __( "You have not entered your API key", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</strong >'; 29 30 return $this->render_settings_page( $message ); 31 } 32 33 public function render_settings_page( $message ) { 34 35 if ( $this->get_api_key() ) { 36 $api_key = $this->get_api_key(); 37 } else { 38 $api_key = ''; 39 } 40 41 $html = '<div class="api-key" >'; 42 $html .= '<h2>' . __( "Setting API key", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>'; 43 $html .= $message; 44 $html .= '<br>'; 45 $html .= '<br>'; 46 $html .= '<form id="wp2s2fg_api_spreadsheetId_form" action="' . htmlspecialchars( $_SERVER["PHP_SELF"] . '?' . $_SERVER["QUERY_STRING"] ) . '" method="POST" >'; 47 $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 />'; 48 $html .= '<br>'; 49 $html .= '<input type="submit" value="' . __( "Set Configuration Info", 'wp-simple-spreadsheet-fetcher-for-google' ) .'" />'; 50 $html .= wp_nonce_field( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' ); 51 $html .= '</form >'; 52 $html .= '<br>'; 53 $html .= '<h2>' . __( "How to use", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>'; 54 $html .= '<ul>'; 55 $html .= '<li>' . __( "1. Create the API key . For more detail . Please refer to ", 'wp-simple-spreadsheet-fetcher-for-google' ) . '<a href="https://developers.google.com/sheets/api/quickstart/js#step_1_turn_on_the" target="_blank">' . __( "https://developers.google.com/sheets/api/quickstart/js#step_1_turn_on_the", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</a></li>'; 56 $html .= '<li>' . __( "2. Save your API key from the form above.", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</li>'; 57 $html .= '<li>' . __( "3. Turn on Get shareable link . For more detail . Please refer to ", 'wp-simple-spreadsheet-fetcher-for-google' ) . '<a href="https://support.google.com/drive/answer/2494822#link_sharing" target="_blank">' . __( "https://support.google.com/drive/answer/2494822#link_sharing", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</a></li>'; 58 $html .= '<li>' . __( "4. Choose blocks at \"WP Simple Spreadsheet Fetcher for Google\" category , use side panel to indicate the cell to fetch data.", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</li>'; 59 $html .= '</ul>'; 60 $html .= '<h2>' . __( "Tutorial Video", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>'; 61 $html .= '<iframe width="560" height="315" src="https://www.youtube.com/embed/VYMFFMyRK3I" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'; 62 $html .= '</div>'; 63 return $html; 64 } 65 66 public function add_sub_menu() { 67 $custom_page = add_submenu_page( 68 '/plugins.php', 69 __( 'WP Simple Spreadsheet Fetcher for Google', 'wp-simple-spreadsheet-fetcher-for-google' ), 70 __( 'WP Simple Spreadsheet Fetcher for Google', 'wp-simple-spreadsheet-fetcher-for-google' ), 71 'edit_others_posts', 72 'wsgsf_settings', 73 array( $this, 'render_settings' ) 74 ); 75 } 76 77 public function render_settings() { 78 79 if ( ! empty( $_POST['api_key'] ) && check_admin_referer( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' ) ) { 80 $this->set_api_key( sanitize_text_field( $_POST['api_key'] ) ); 81 } 82 83 if ( ! $this->get_api_key()) { 84 echo $this->render_api_key_not_set(); 85 }else{ 86 echo $this->render_set_api_key(); 87 } 88 } 89 90 public function add_admin_scripts($hook_suffix) { 91 92 if ( 'plugins_page_wsgsf_settings' === $hook_suffix ) { 93 wp_enqueue_style( 'admin_style', plugins_url( '/css/admin.css',__FILE__ ) ); 94 } 95 } 96 97 public function add_settings( $links ) { 98 $url = admin_url( 'admin.php?page=wsgsf_settings' ); 99 $url = '<a href="' . esc_url( $url ) . '">' . __( 'Settings' ) . '</a>'; 100 array_unshift( $links, $url ); 101 return $links; 102 } 103 104 public function deactivation() { 105 $this->delete_api_key(); 106 $this->delete_spread_sheet_id(); 107 } 11 108 } 12 13 public function init() {14 add_action( 'plugins_loaded', array($this,'load_text_domain') );15 add_action( 'admin_menu', array( $this, 'add_sub_menu' ) );16 add_action( 'admin_enqueue_scripts', array($this,'add_admin_scripts') );17 register_deactivation_hook( __FILE__, array( $this, 'deactivation' ) );18 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings' ) );19 }20 21 public function load_text_domain() {22 load_plugin_textdomain( 'wp-simple-spreadsheet-fetcher-for-google' );23 }24 25 public function render_set_api_key() {26 $message = '<span class="success" style="color:#28a745; font-size:1.2rem">' . __( "API Key set!", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</span >';27 28 return $this->render_settings_page( $message );29 }30 31 public function render_api_key_not_set() {32 $message = '<strong class="warn" style="color:#dc3545; font-size:1.2rem">' . __( "You have not entered your API key", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</strong >';33 34 return $this->render_settings_page( $message );35 }36 37 public function render_settings_page( $message ) {38 39 if ( $this->get_api_key() ) {40 $api_key = $this->get_api_key();41 } else {42 $api_key = '';43 }44 45 $html = '<div class="api-key" >';46 $html .= '<h2>' . __( "Setting API key", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>';47 $html .= $message;48 $html .= '<br>';49 $html .= '<br>';50 $html .= '<form id="wp2s2fg_api_spreadsheetId_form" action="' . htmlspecialchars( $_SERVER["PHP_SELF"] . '?' . $_SERVER["QUERY_STRING"] ) . '" method="POST" >';51 $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 />';52 $html .= '<br>';53 $html .= '<input type="submit" value="' . __( "Set Configuration Info", 'wp-simple-spreadsheet-fetcher-for-google' ) .'" />';54 $html .= wp_nonce_field( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' );55 $html .= '</form >';56 $html .= '<br>';57 $html .= '<h2>' . __( "How to use", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>';58 $html .= '<ul>';59 $html .= '<li>' . __( "1. Create the API key . For more detail . Please refer to ", 'wp-simple-spreadsheet-fetcher-for-google' ) . '<a href="https://developers.google.com/sheets/api/quickstart/js#step_1_turn_on_the" target="_blank">' . __( "https://developers.google.com/sheets/api/quickstart/js#step_1_turn_on_the", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</a></li>';60 $html .= '<li>' . __( "2. Save your API key from the form above.", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</li>';61 $html .= '<li>' . __( "3. Turn on Get shareable link . For more detail . Please refer to ", 'wp-simple-spreadsheet-fetcher-for-google' ) . '<a href="https://support.google.com/drive/answer/2494822#link_sharing" target="_blank">' . __( "https://support.google.com/drive/answer/2494822#link_sharing", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</a></li>';62 $html .= '<li>' . __( "4. Choose blocks at \"WP Simple Spreadsheet Fetcher for Google\" category , use side panel to indicate the cell to fetch data.", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</li>';63 $html .= '</ul>';64 $html .= '<h2>' . __( "Tutorial Video", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>';65 $html .= '<iframe width="560" height="315" src="https://www.youtube.com/embed/VYMFFMyRK3I" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';66 $html .= '</div>';67 return $html;68 }69 70 public function add_sub_menu() {71 $custom_page = add_submenu_page(72 '/plugins.php',73 __( 'WP Simple Spreadsheet Fetcher for Google', 'wp-simple-spreadsheet-fetcher-for-google' ),74 __( 'WP Simple Spreadsheet Fetcher for Google', 'wp-simple-spreadsheet-fetcher-for-google' ),75 'edit_others_posts',76 'wsgsf_settings',77 array( $this, 'render_settings' )78 );79 }80 81 public function render_settings() {82 83 if ( ! empty( $_POST['api_key'] ) && check_admin_referer( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' ) ) {84 $this->set_api_key( sanitize_text_field( $_POST['api_key'] ) );85 }86 87 if ( ! $this->get_api_key()) {88 echo $this->render_api_key_not_set();89 }else{90 echo $this->render_set_api_key();91 }92 }93 94 public function add_admin_scripts($hook_suffix) {95 96 if ( 'plugins_page_wsgsf_settings' === $hook_suffix ) {97 wp_enqueue_style( 'admin_style', plugins_url( '/css/admin.css',__FILE__ ) );98 }99 }100 101 public function add_settings( $links ) {102 $url = admin_url( 'admin.php?page=wsgsf_settings' );103 $url = '<a href="' . esc_url( $url ) . '">' . __( 'Settings' ) . '</a>';104 array_unshift( $links, $url );105 return $links;106 }107 108 public function deactivation() {109 $this->delete_api_key();110 $this->delete_spread_sheet_id();111 }112 } -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/App/Utils/ApiManipulation.php
r2310942 r2411558 2 2 3 3 namespace Fetcher\App\Utils; 4 use Fetcher\App\Utils\FetcherWarning; 4 5 5 6 class ApiManipulation{ 6 function get_api_key() 7 { 7 8 function get_google_sheet_value($api_key, $sheetUrl, $sheetName, $sheetRange, $service, $range="", $block=""){ 9 10 // If SheetId is url, get sheetId from url. 11 if(strpos($sheetUrl,'http') !== false){ 12 //Get SheetId from URL. 13 $sheetId = $this->get_sheet_id_from_url($sheetUrl); 14 } else { 15 $sheetId = $sheetUrl; 16 } 17 18 $message = $this->is_all_api_argument_is_correct($api_key, $sheetId, $sheetName, $sheetRange, $service, $range, $block); 19 if ("success" === $message){ 20 // Get selected Sheet's value. 21 $range = esc_html($sheetName) . '!' . esc_html($sheetRange); 22 $response = $service->spreadsheets_values->get( !empty($sheetId_deprecated) ? $sheetId_deprecated : $sheetId, $range ); 23 $values = $response->getValues(); 24 $status = true; 25 } else { 26 $values = $message; 27 $status = false; 28 } 29 30 return ["status" => $status, "values" => $values]; 31 } 32 33 function is_all_api_argument_is_correct($api_key, $sheetId, $sheetName, $sheetRange, $service, $range="", $block=""){ 34 35 // Check API Key is set. 36 if ( !$api_key ) { 37 return FetcherWarning::api_key( $api_key ); 38 } 39 40 // Check SheetId is set. 41 if( !$sheetId || $this->is_str_null( $sheetId ) ){ 42 if ( ! $sheetId_deprecated = sanitize_text_field($this->get_spread_sheet_id()) ) { 43 return FetcherWarning::sheet_url(); 44 } 45 } 46 47 // Check SheetName and SheetRange are set. 48 if( !$sheetName && !$sheetRange || $this->is_str_null( $sheetName ) && $this->is_str_null( $sheetRange ) ) { 49 if ( ! $range ) { 50 return FetcherWarning::sheet_name_range(); 51 } 52 } 53 54 // Check SheetName is set. 55 if( !$sheetName || $this->is_str_null( $sheetName ) ){ 56 return FetcherWarning::sheet_name(); 57 } 58 59 // Check SheetRange is set. 60 if( !$sheetRange || $this->is_str_null( $sheetRange ) ){ 61 if($block === 'wp2s2fg/fetcher'){ 62 return FetcherWarning::sheet_range_fetcher(); 63 64 }elseif($block === 'wp2s2fg/fetcher-item'){ 65 return FetcherWarning::sheet_cell_fetcher_item(); 66 } 67 } 68 69 // Get All Sheets in the file. 70 $response = $service->spreadsheets->get(!empty($sheetId_deprecated) ? $sheetId_deprecated : $sheetId); 71 $all_sheets = $response->getSheets(); 72 73 // Check Sheet Name is existed. 74 if (!$this->is_sheet_name_exist($all_sheets, $sheetName) ) { 75 // Add Warning 76 return FetcherWarning::sheet_name_warning($sheetName); 77 } 78 79 //Check Sheet Range is correct 80 if(!$this->is_sheet_range_correct($sheetRange)){ 81 return FetcherWarning::sheet_range_is_incorrect(); 82 } 83 84 return "success"; 85 } 86 87 function get_sheet_id_from_url($sheet_url){ 88 $sheetId = preg_replace('/https\:\/\/docs\.google\.com\/spreadsheets\/d\//', '', esc_url($sheet_url)); 89 $sheetId = preg_replace('/\/.+$/', '', $sheetId); 90 return $sheetId; 91 } 92 93 function get_api_key(){ 8 94 $api_key = esc_html(get_option( 'wp2s2fg-api-key' )); 9 95 if ( $api_key ) { … … 11 97 } 12 98 } 13 99 14 100 function get_spread_sheet_id() { 15 101 $spread_sheet_id = esc_html(get_option( 'wp2s2fg-spread-sheet-id' )); … … 18 104 } 19 105 } 20 21 function set_api_key($api_key) 22 { 106 107 function set_api_key($api_key){ 23 108 update_option( 'wp2s2fg-api-key', sanitize_text_field( $api_key ) ); 24 109 } 25 110 26 111 function delete_api_key() { 27 112 delete_option( 'wp2s2fg-api-key' ); 28 113 } 29 114 30 115 function delete_spread_sheet_id() { 31 116 delete_option( 'wp2s2fg-spread-sheet-id' ); 32 117 } 118 119 function is_sheet_name_exist($sheetsList, $sheetName) { 120 foreach($sheetsList as $sheet) { 121 if($sheet->properties->title === $sheetName) { 122 return true; 123 } 124 } 125 return false; 126 } 127 128 function is_sheet_range_correct($sheetRange){ 129 130 preg_match('/^[a-zA-Z][0-9]+$/', $sheetRange, $frontMatch); 131 preg_match('/^[a-zA-Z][0-9]+:[a-zA-Z][0-9]+$/', $sheetRange, $allMatch); 132 133 if($frontMatch || $allMatch){ 134 return true; 135 }else{ 136 return false; 137 } 138 } 139 140 public function is_str_null($value){ 141 return $value === "null"; 142 } 33 143 } 34 144 -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/App/Utils/FetcherWarning.php
r2314572 r2411558 6 6 7 7 public static function api_key($api_key){ 8 9 $url = admin_url( 'admin.php?page=wsgsf_settings' ); 10 $url = '<a href="' . esc_url( $url ) . '">' . __( 'settings.' ) . '</a>'; 11 return __( 'API-KEY is not set Please set it at the ', 'wp-simple-spreadsheet-fetcher-for-google' ) . $url; 8 return __( 'API-KEY is not set Please set it from the admin. [ Plugins ] > [ WP Simple Spreadsheet Fetcher for Google ] > [ Setting API key ]', 'wp-simple-spreadsheet-fetcher-for-google' ); 12 9 } 13 10 … … 31 28 return __( 'Cell is not set. Please set it from the sidebar. Example : A1', 'wp-simple-spreadsheet-fetcher-for-google' ); 32 29 } 30 31 public static function sheet_name_warning( $sheet_name ){ 32 return __( 'Sheet Name: ','wp-simple-spreadsheet-fetcher-for-google' ) . esc_html($sheet_name) . __( ' is not existed.','wp-simple-spreadsheet-fetcher-for-google' ); 33 } 34 35 public static function sheet_range_is_incorrect(){ 36 return __( 'Sheet Range is invalid.','wp-simple-spreadsheet-fetcher-for-google' ); 37 } 33 38 } -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/assets/css/editor.css
r2310942 r2411558 36 36 .wssffg-advanced-button-group_unit .components-button { 37 37 padding: 0.4em; 38 color: # abb8c3;38 color: #1e1e1e; 39 39 text-decoration: none; 40 40 } 41 41 .wssffg-advanced-button-group_unit .components-button.is-pressed, 42 42 .wssffg-advanced-button-group_align .components-button.is-pressed { 43 color: # 333;43 color: #ffffff; 44 44 text-decoration: underline; 45 } 46 .wssffg-advanced-button-group_align .components-button { 47 padding-left: 13px; 48 padding-right: 13px; 45 49 } 46 50 .wssffg-advanced-popover-control .components-popover__content { … … 84 88 box-shadow: inset 0 -3px #0085ba !important; 85 89 } 90 .wssffg-sidebar-tab-panel .components-toolbar { 91 margin: 10px; 92 } 86 93 /*Backward Comapitbility under 5.4*/ 87 94 .components-toolbar__control.components-button:not(:disabled).is-pressed > svg { -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/blocks/fetcher-chart/drawCharts.js
r2310942 r2411558 1 1 let props = ""; 2 2 export const drawCharts = (props) => { 3 4 3 let url = 5 "/wp-json/api-charts/v1/data-table/" +4 window.wssffg_rest_url + "api-charts/v1/data-table/" + 6 5 sanitizeSheetId(props.sheetId) + 7 6 "/" + … … 19 18 }) 20 19 .then(function (jsonData) { 20 21 21 google.charts.load("current", { packages: ["corechart"] }); 22 22 google.charts.setOnLoadCallback(drawChart); … … 48 48 view.setColumns(columnNum); 49 49 50 console.log(props);51 50 //Set the property 52 51 let options = { … … 85 84 86 85 export const sanitizeSheetId = (sheetUrl) => { 86 if ( !sheetUrl ) { 87 return 88 }; 87 89 const regex = /\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/; 88 90 let sheetId = sheetUrl.match(regex); … … 132 134 export const setValidValue = (schema, defaultValue, props) => { 133 135 if (props.hasOwnProperty('attributes') && props.attributes[schema]) { 134 console.log("------1--------");135 console.log(props.attributes[schema]);136 136 return props.attributes[schema]; 137 137 } else if (props[schema]) { 138 console.log("------2--------");139 console.log(props[schema]);140 138 return props[schema]; 141 139 } else { 142 console.log("------3--------");143 console.log(props);144 console.log(props[schema]);145 console.log(defaultValue);146 140 return defaultValue; 147 141 } -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/blocks/fetcher-chart/edit.js
r2310942 r2411558 21 21 "wp2s2fg/fetcher-chart", 22 22 (empty, props) => { 23 console.log(props);24 23 return ( 25 24 <Fragment> -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/blocks/fetcher-chart/index.js
r2314572 r2411558 46 46 chartWidth: { 47 47 type: "number", 48 default: null,48 default: 600, 49 49 }, 50 50 chartHeight: { 51 51 type: "number", 52 default: null,52 default: 400, 53 53 } 54 54 }, -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/src/blocks/fetcher/table/RenderTable.php
r2310942 r2411558 4 4 require(PLUGIN_ROOT_DIR .'vendor/autoload.php'); 5 5 use Fetcher\App\Utils\ApiManipulation; 6 use Fetcher\App\Utils\FetcherWarning;7 6 use Fetcher\blocks\fetcher\table\TableDesign; 8 9 //レンダーテーブルは関数で書く。他のclassは関数内でインスタンス化して使う。10 //他のclassは普通に読み込む。11 7 12 8 class RenderTable extends ApiManipulation { 13 9 14 10 use TableDesign; 15 16 public function get_selected_value( $attributes, $service, $api_key ) {17 11 12 public function get_attributes_value( $key, $array, $default = "" ) { 13 return array_key_exists( $key, $array ) ? $array[$key] : $default; 14 } 15 16 public function get_selected_value($attributes, $service, $api_key) { 18 17 $block = $attributes['block']; 18 $className = $attributes['className']; 19 19 $sheetId = $attributes['sheetId']; 20 20 $sheetName = $attributes['sheetName']; … … 22 22 //This attributes is deprecated since v0.2.8. 23 23 $range = $attributes['range']; 24 $className = $attributes['className'];25 24 26 if ( !$api_key ) { 27 return FetcherWarning::api_key($api_key); 28 } 29 30 if(!$sheetId){ 31 if ( ! $sheetId_deprecated = sanitize_text_field($this->get_spread_sheet_id()) ) { 32 return FetcherWarning::sheet_url(); 33 } 34 }else{ 35 $sheetId = preg_replace('/https\:\/\/docs\.google\.com\/spreadsheets\/d\//', '', esc_url($sheetId)); 36 $sheetId = preg_replace('/\/.+$/', '', $sheetId); 37 } 38 39 if(!$sheetName && !$sheetRange) { 40 if ( ! $range ) { 41 return FetcherWarning::sheet_name_range(); 42 } 43 }else{ 44 45 if(!$sheetName){ 46 return FetcherWarning::sheet_name(); 47 48 }else if(!$sheetRange){ 49 50 if($block === 'wp2s2fg/fetcher'){ 51 return FetcherWarning::sheet_range_fetcher(); 52 53 }elseif($block === 'wp2s2fg/fetcher-item'){ 54 return FetcherWarning::sheet_cell_fetcher_item(); 55 56 } 57 } 58 $range = esc_html($sheetName) . '!' . esc_html($sheetRange); 25 $result = $this->get_google_sheet_value($api_key, $sheetId, $sheetName, $sheetRange, $service, $range, $block); 26 $values = ''; 27 if($result['status']){ 28 $values = $result['values']; 29 } else { 30 // return Error message. 31 return $result["values"]; 59 32 } 60 33 61 $response = $service->spreadsheets_values->get( !empty($sheetId_deprecated) ? $sheetId_deprecated : $sheetId, $range ); 62 $values = $response->getValues(); 63 64 $hasFixedTable = $attributes['hasFixedTable']; 34 $hasFixedTable = $this->get_attributes_value( 'hasFixedTable', $attributes, false ); 65 35 66 36 $border_style = array( 67 'borderStyle' =>$attributes['borderStyle'],68 'borderColor' =>$attributes['borderColor'],69 'brderWidth' =>$attributes['borderWidth'],70 'borderUnit' =>$attributes['borderUnit'],71 'borderLayout' =>$attributes['borderLayout'],37 'borderStyle' => $this->get_attributes_value( 'borderStyle', $attributes, 'solid' ), 38 'borderColor' => $this->get_attributes_value( 'borderColor', $attributes, '#ccc' ), 39 'brderWidth' => $this->get_attributes_value( 'borderWidth', $attributes, 1 ), 40 'borderUnit' => $this->get_attributes_value( 'borderUnit', $attributes, 'px' ), 41 'borderLayout' => $this->get_attributes_value( 'borderLayout', $attributes, 'table-full' ), 72 42 ); 73 43 74 44 $th_style = array( 75 'fontSize' => $attributes['thFontSize'],76 'fontColor' => $attributes['thFontColor'],77 'fontUnit' => $attributes['thFontUnit'],78 'lineHeight' =>$attributes['thLineHeight'],79 'letterSpace' =>$attributes['thLetterSpace'],80 'thLetterSpaceUnit' =>$attributes['thLetterSpaceUnit'],81 'fontWeight' =>$attributes['thFontWeight'],82 'bgColor' =>$attributes['thBgColor'],83 'align' =>$attributes['thAlign'],45 'fontSize' => $this->get_attributes_value( 'thFontSize', $attributes, 16 ), 46 'fontColor' => $this->get_attributes_value( 'thFontColor', $attributes, 'inherit' ), 47 'fontUnit' => $this->get_attributes_value( 'thFontUnit', $attributes, 'px' ), 48 'lineHeight' => $this->get_attributes_value( 'thLineHeight', $attributes, 1 ), 49 'letterSpace' => $this->get_attributes_value( 'thLetterSpace', $attributes, 1 ), 50 'thLetterSpaceUnit' => $this->get_attributes_value( 'thLetterSpaceUnit', $attributes, 'px' ), 51 'fontWeight' => $this->get_attributes_value( 'thFontWeight', $attributes, 'normal' ), 52 'bgColor' => $this->get_attributes_value( 'thBgColor', $attributes, '#fff' ), 53 'align' => $this->get_attributes_value( 'thBgColor', $attributes, '#left' ), 84 54 ); 85 55 86 56 $tb_style = array( 87 'fontSize' => $attributes['tbFontSize'],88 'fontColor' => $attributes['tbFontColor'],89 'fontUnit' => $attributes['tbFontUnit'],90 'lineHeight' =>$attributes['tbLineHeight'],91 'letterSpace' =>$attributes['tbLetterSpace'],92 'thLetterSpaceUnit' =>$attributes['tbLetterSpaceUnit'],93 'fontWeight' =>$attributes['tbFontWeight'],94 'bgColor' =>$attributes['tbBgColor'],95 'align' =>$attributes['tbAlign'],57 'fontSize' => $this->get_attributes_value( 'tbFontSize', $attributes, 16 ), 58 'fontColor' => $this->get_attributes_value( 'tbFontColor', $attributes, 'inherit' ), 59 'fontUnit' => $this->get_attributes_value( 'tbFontUnit', $attributes, 'px' ), 60 'lineHeight' => $this->get_attributes_value( 'tbLineHeight', $attributes, 1 ), 61 'letterSpace' => $this->get_attributes_value( 'tbLetterSpace', $attributes, 1 ), 62 'thLetterSpaceUnit' => $this->get_attributes_value( 'tbLetterSpaceUnit', $attributes, 'px' ), 63 'fontWeight' => $this->get_attributes_value( 'tbFontWeight', $attributes, 'normal' ), 64 'bgColor' => $this->get_attributes_value( 'tbBgColor', $attributes, '#fff' ), 65 'align' => $this->get_attributes_value( 'tbAlign', $attributes, 'left' ), 96 66 ); 97 67 … … 100 70 $data .= __( 'No data found.', 'wp-simple-spreadsheet-fetcher-for-google' ); 101 71 } else { 102 72 103 73 if($block === 'wp2s2fg/fetcher') { 104 74 105 75 $lastIndex = count($values) -1; 106 76 107 77 foreach ( $values as $row ) { 108 78 109 79 $data_h = '<td class="' . $this->createClass("td") . " " . $this->hasFixedTableClass($hasFixedTable) . '" style="' . $this->create_inline_border_style($border_style) . '">'; 110 80 $data_f = '</td>'; 111 81 $data_container_h = ''; 112 82 $data_container_f = ''; 113 83 114 84 if(count($values) >= 3){ 115 85 … … 135 105 $data_h = $result["data_h"]; 136 106 $data_f = $result["data_f"]; 137 } 107 } 138 108 }elseif(count($values) >= 2){ 139 109 … … 157 127 } 158 128 } 159 129 160 130 $data .= $data_container_h .'<tr class="' . $this->createClass("tr") .'">'; 161 131 for ( $i = 0; $i < count( $row ); $i ++ ) { … … 163 133 } 164 134 $data .= $data_container_f . '</tr>'; 165 135 166 136 } 167 137 168 138 $div_h = '<div class="wp2s2fg_fetcher_table_container ' . esc_attr($className) .'">'; 169 139 $div_f = '</div>'; … … 171 141 $table_f = '</table>'; 172 142 $data = $div_h . $table_h . $data . $table_f . $div_f; 173 143 174 144 }elseif($block === 'wp2s2fg/fetcher-item'){ 175 145 $data = '<p class="wp2s2fg_fetcher-advanced_number">' . esc_html( $values[0][0] ) . '</p>'; -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/vendor/autoload.php
r2341341 r2411558 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 207840328bf380ffc1efa061afad9507::getLoader();7 return ComposerAutoloaderInitaedc2a8037ca0d2139f3d7e24a5c2561::getLoader(); -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/vendor/composer/ClassLoader.php
r2224332 r2411558 38 38 * @author Fabien Potencier <[email protected]> 39 39 * @author Jordi Boggiano <[email protected]> 40 * @see http ://www.php-fig.org/psr/psr-0/41 * @see http ://www.php-fig.org/psr/psr-4/40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 42 42 */ 43 43 class ClassLoader … … 61 61 { 62 62 if (!empty($this->prefixesPsr0)) { 63 return call_user_func_array('array_merge', $this->prefixesPsr0);63 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 64 64 } 65 65 -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/vendor/composer/autoload_classmap.php
r2224332 r2411558 7 7 8 8 return array( 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 9 10 'Google_Service_Exception' => $vendorDir . '/google/apiclient/src/Google/Service/Exception.php', 10 11 'Google_Service_Resource' => $vendorDir . '/google/apiclient/src/Google/Service/Resource.php', -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/vendor/composer/autoload_real.php
r2341341 r2411558 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 207840328bf380ffc1efa061afad95075 class ComposerAutoloaderInitaedc2a8037ca0d2139f3d7e24a5c2561 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit207840328bf380ffc1efa061afad9507', 'loadClassLoader'), true, true); 25 require __DIR__ . '/platform_check.php'; 26 27 spl_autoload_register(array('ComposerAutoloaderInitaedc2a8037ca0d2139f3d7e24a5c2561', 'loadClassLoader'), true, true); 26 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 207840328bf380ffc1efa061afad9507', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitaedc2a8037ca0d2139f3d7e24a5c2561', 'loadClassLoader')); 28 30 29 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 30 32 if ($useStaticLoader) { 31 require _once__DIR__ . '/autoload_static.php';33 require __DIR__ . '/autoload_static.php'; 32 34 33 call_user_func(\Composer\Autoload\ComposerStaticInit 207840328bf380ffc1efa061afad9507::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::getInitializer($loader)); 34 36 } else { 35 37 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 54 53 55 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 207840328bf380ffc1efa061afad9507::$files;56 $includeFiles = Composer\Autoload\ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$files; 55 57 } else { 56 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 59 } 58 60 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 207840328bf380ffc1efa061afad9507($fileIdentifier, $file);61 composerRequireaedc2a8037ca0d2139f3d7e24a5c2561($fileIdentifier, $file); 60 62 } 61 63 … … 64 66 } 65 67 66 function composerRequire 207840328bf380ffc1efa061afad9507($fileIdentifier, $file)68 function composerRequireaedc2a8037ca0d2139f3d7e24a5c2561($fileIdentifier, $file) 67 69 { 68 70 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/vendor/composer/autoload_static.php
r2341341 r2411558 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 207840328bf380ffc1efa061afad95077 class ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561 8 8 { 9 9 public static $files = array ( … … 106 106 107 107 public static $classMap = array ( 108 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 108 109 'Google_Service_Exception' => __DIR__ . '/..' . '/google/apiclient/src/Google/Service/Exception.php', 109 110 'Google_Service_Resource' => __DIR__ . '/..' . '/google/apiclient/src/Google/Service/Resource.php', … … 113 114 { 114 115 return \Closure::bind(function () use ($loader) { 115 $loader->prefixLengthsPsr4 = ComposerStaticInit 207840328bf380ffc1efa061afad9507::$prefixLengthsPsr4;116 $loader->prefixDirsPsr4 = ComposerStaticInit 207840328bf380ffc1efa061afad9507::$prefixDirsPsr4;117 $loader->prefixesPsr0 = ComposerStaticInit 207840328bf380ffc1efa061afad9507::$prefixesPsr0;118 $loader->classMap = ComposerStaticInit 207840328bf380ffc1efa061afad9507::$classMap;116 $loader->prefixLengthsPsr4 = ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$prefixLengthsPsr4; 117 $loader->prefixDirsPsr4 = ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$prefixDirsPsr4; 118 $loader->prefixesPsr0 = ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$prefixesPsr0; 119 $loader->classMap = ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$classMap; 119 120 120 121 }, null, ClassLoader::class); -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/vendor/composer/installed.json
r2224332 r2411558 1 [ 2 { 3 "name": "firebase/php-jwt", 4 "version": "v5.0.0", 5 "version_normalized": "5.0.0.0", 6 "source": { 7 "type": "git", 8 "url": "https://github.com/firebase/php-jwt.git", 9 "reference": "9984a4d3a32ae7673d6971ea00bae9d0a1abba0e" 10 }, 11 "dist": { 12 "type": "zip", 13 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/9984a4d3a32ae7673d6971ea00bae9d0a1abba0e", 14 "reference": "9984a4d3a32ae7673d6971ea00bae9d0a1abba0e", 15 "shasum": "" 16 }, 17 "require": { 18 "php": ">=5.3.0" 19 }, 20 "require-dev": { 21 "phpunit/phpunit": " 4.8.35" 22 }, 23 "time": "2017-06-27T22:17:23+00:00", 24 "type": "library", 25 "installation-source": "dist", 26 "autoload": { 27 "psr-4": { 28 "Firebase\\JWT\\": "src" 29 } 30 }, 31 "notification-url": "https://packagist.org/downloads/", 32 "license": [ 33 "BSD-3-Clause" 34 ], 35 "authors": [ 36 { 37 "name": "Neuman Vong", 38 "role": "Developer", 39 "email": "[email protected]" 40 }, 41 { 42 "name": "Anant Narayanan", 43 "role": "Developer", 44 "email": "[email protected]" 45 } 46 ], 47 "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", 48 "homepage": "https://github.com/firebase/php-jwt" 49 }, 50 { 51 "name": "google/apiclient", 52 "version": "v2.2.3", 53 "version_normalized": "2.2.3.0", 54 "source": { 55 "type": "git", 56 "url": "https://github.com/googleapis/google-api-php-client.git", 57 "reference": "4bfd3edc21cceaf45fc216a4196e1993cf7a89eb" 58 }, 59 "dist": { 60 "type": "zip", 61 "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/4bfd3edc21cceaf45fc216a4196e1993cf7a89eb", 62 "reference": "4bfd3edc21cceaf45fc216a4196e1993cf7a89eb", 63 "shasum": "" 64 }, 65 "require": { 66 "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", 67 "google/apiclient-services": "~0.13", 68 "google/auth": "^1.0", 69 "guzzlehttp/guzzle": "~5.3.1||~6.0", 70 "guzzlehttp/psr7": "^1.2", 71 "monolog/monolog": "^1.17", 72 "php": ">=5.4", 73 "phpseclib/phpseclib": "~0.3.10||~2.0" 74 }, 75 "require-dev": { 76 "cache/filesystem-adapter": "^0.3.2", 77 "phpunit/phpunit": "~4.8.36", 78 "squizlabs/php_codesniffer": "~2.3", 79 "symfony/css-selector": "~2.1", 80 "symfony/dom-crawler": "~2.1" 81 }, 82 "suggest": { 83 "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" 84 }, 85 "time": "2019-05-21T18:06:55+00:00", 86 "type": "library", 87 "extra": { 88 "branch-alias": { 89 "dev-master": "2.x-dev" 90 } 91 }, 92 "installation-source": "dist", 93 "autoload": { 94 "psr-0": { 95 "Google_": "src/" 96 }, 97 "classmap": [ 98 "src/Google/Service/" 99 ] 100 }, 101 "notification-url": "https://packagist.org/downloads/", 102 "license": [ 103 "Apache-2.0" 104 ], 105 "description": "Client library for Google APIs", 106 "homepage": "http://developers.google.com/api-client-library/php", 107 "keywords": [ 108 "google" 109 ] 110 }, 111 { 112 "name": "google/apiclient-services", 113 "version": "v0.106", 114 "version_normalized": "0.106.0.0", 115 "source": { 116 "type": "git", 117 "url": "https://github.com/googleapis/google-api-php-client-services.git", 118 "reference": "27c47201c7ac9e2863e20a55bcd96802426233fd" 119 }, 120 "dist": { 121 "type": "zip", 122 "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/27c47201c7ac9e2863e20a55bcd96802426233fd", 123 "reference": "27c47201c7ac9e2863e20a55bcd96802426233fd", 124 "shasum": "" 125 }, 126 "require": { 127 "php": ">=5.4" 128 }, 129 "require-dev": { 130 "phpunit/phpunit": "~4.8" 131 }, 132 "time": "2019-07-28T00:23:12+00:00", 133 "type": "library", 134 "installation-source": "dist", 135 "autoload": { 136 "psr-0": { 137 "Google_Service_": "src" 138 } 139 }, 140 "notification-url": "https://packagist.org/downloads/", 141 "license": [ 142 "Apache-2.0" 143 ], 144 "description": "Client library for Google APIs", 145 "homepage": "http://developers.google.com/api-client-library/php", 146 "keywords": [ 147 "google" 148 ] 149 }, 150 { 151 "name": "google/auth", 152 "version": "v1.5.1", 153 "version_normalized": "1.5.1.0", 154 "source": { 155 "type": "git", 156 "url": "https://github.com/googleapis/google-auth-library-php.git", 157 "reference": "0f75e20e7392e863f5550ed2c2d3d50af21710fb" 158 }, 159 "dist": { 160 "type": "zip", 161 "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/0f75e20e7392e863f5550ed2c2d3d50af21710fb", 162 "reference": "0f75e20e7392e863f5550ed2c2d3d50af21710fb", 163 "shasum": "" 164 }, 165 "require": { 166 "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", 167 "guzzlehttp/guzzle": "~5.3.1|~6.0", 168 "guzzlehttp/psr7": "^1.2", 169 "php": ">=5.4", 170 "psr/cache": "^1.0", 171 "psr/http-message": "^1.0" 172 }, 173 "require-dev": { 174 "friendsofphp/php-cs-fixer": "^1.11", 175 "guzzlehttp/promises": "0.1.1|^1.3", 176 "phpseclib/phpseclib": "^2", 177 "phpunit/phpunit": "^4.8.36|^5.7", 178 "sebastian/comparator": ">=1.2.3" 179 }, 180 "suggest": { 181 "phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings. Please require version ^2." 182 }, 183 "time": "2019-04-16T18:48:28+00:00", 184 "type": "library", 185 "installation-source": "dist", 186 "autoload": { 187 "psr-4": { 188 "Google\\Auth\\": "src" 189 } 190 }, 191 "notification-url": "https://packagist.org/downloads/", 192 "license": [ 193 "Apache-2.0" 194 ], 195 "description": "Google Auth Library for PHP", 196 "homepage": "http://github.com/google/google-auth-library-php", 197 "keywords": [ 198 "Authentication", 199 "google", 200 "oauth2" 201 ] 202 }, 203 { 204 "name": "guzzlehttp/guzzle", 205 "version": "6.3.3", 206 "version_normalized": "6.3.3.0", 207 "source": { 208 "type": "git", 209 "url": "https://github.com/guzzle/guzzle.git", 210 "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba" 211 }, 212 "dist": { 213 "type": "zip", 214 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba", 215 "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba", 216 "shasum": "" 217 }, 218 "require": { 219 "guzzlehttp/promises": "^1.0", 220 "guzzlehttp/psr7": "^1.4", 221 "php": ">=5.5" 222 }, 223 "require-dev": { 224 "ext-curl": "*", 225 "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", 226 "psr/log": "^1.0" 227 }, 228 "suggest": { 229 "psr/log": "Required for using the Log middleware" 230 }, 231 "time": "2018-04-22T15:46:56+00:00", 232 "type": "library", 233 "extra": { 234 "branch-alias": { 235 "dev-master": "6.3-dev" 236 } 237 }, 238 "installation-source": "dist", 239 "autoload": { 240 "files": [ 241 "src/functions_include.php" 242 ], 243 "psr-4": { 244 "GuzzleHttp\\": "src/" 245 } 246 }, 247 "notification-url": "https://packagist.org/downloads/", 248 "license": [ 249 "MIT" 250 ], 251 "authors": [ 252 { 253 "name": "Michael Dowling", 254 "email": "[email protected]", 255 "homepage": "https://github.com/mtdowling" 256 } 257 ], 258 "description": "Guzzle is a PHP HTTP client library", 259 "homepage": "http://guzzlephp.org/", 260 "keywords": [ 261 "client", 262 "curl", 263 "framework", 264 "http", 265 "http client", 266 "rest", 267 "web service" 268 ] 269 }, 270 { 271 "name": "guzzlehttp/promises", 272 "version": "v1.3.1", 273 "version_normalized": "1.3.1.0", 274 "source": { 275 "type": "git", 276 "url": "https://github.com/guzzle/promises.git", 277 "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" 278 }, 279 "dist": { 280 "type": "zip", 281 "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", 282 "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", 283 "shasum": "" 284 }, 285 "require": { 286 "php": ">=5.5.0" 287 }, 288 "require-dev": { 289 "phpunit/phpunit": "^4.0" 290 }, 291 "time": "2016-12-20T10:07:11+00:00", 292 "type": "library", 293 "extra": { 294 "branch-alias": { 295 "dev-master": "1.4-dev" 296 } 297 }, 298 "installation-source": "dist", 299 "autoload": { 300 "psr-4": { 301 "GuzzleHttp\\Promise\\": "src/" 302 }, 303 "files": [ 304 "src/functions_include.php" 305 ] 306 }, 307 "notification-url": "https://packagist.org/downloads/", 308 "license": [ 309 "MIT" 310 ], 311 "authors": [ 312 { 313 "name": "Michael Dowling", 314 "email": "[email protected]", 315 "homepage": "https://github.com/mtdowling" 316 } 317 ], 318 "description": "Guzzle promises library", 319 "keywords": [ 320 "promise" 321 ] 322 }, 323 { 324 "name": "guzzlehttp/psr7", 325 "version": "1.6.1", 326 "version_normalized": "1.6.1.0", 327 "source": { 328 "type": "git", 329 "url": "https://github.com/guzzle/psr7.git", 330 "reference": "239400de7a173fe9901b9ac7c06497751f00727a" 331 }, 332 "dist": { 333 "type": "zip", 334 "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a", 335 "reference": "239400de7a173fe9901b9ac7c06497751f00727a", 336 "shasum": "" 337 }, 338 "require": { 339 "php": ">=5.4.0", 340 "psr/http-message": "~1.0", 341 "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" 342 }, 343 "provide": { 344 "psr/http-message-implementation": "1.0" 345 }, 346 "require-dev": { 347 "ext-zlib": "*", 348 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" 349 }, 350 "suggest": { 351 "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" 352 }, 353 "time": "2019-07-01T23:21:34+00:00", 354 "type": "library", 355 "extra": { 356 "branch-alias": { 357 "dev-master": "1.6-dev" 358 } 359 }, 360 "installation-source": "dist", 361 "autoload": { 362 "psr-4": { 363 "GuzzleHttp\\Psr7\\": "src/" 364 }, 365 "files": [ 366 "src/functions_include.php" 367 ] 368 }, 369 "notification-url": "https://packagist.org/downloads/", 370 "license": [ 371 "MIT" 372 ], 373 "authors": [ 374 { 375 "name": "Michael Dowling", 376 "email": "[email protected]", 377 "homepage": "https://github.com/mtdowling" 378 }, 379 { 380 "name": "Tobias Schultze", 381 "homepage": "https://github.com/Tobion" 382 } 383 ], 384 "description": "PSR-7 message implementation that also provides common utility methods", 385 "keywords": [ 386 "http", 387 "message", 388 "psr-7", 389 "request", 390 "response", 391 "stream", 392 "uri", 393 "url" 394 ] 395 }, 396 { 397 "name": "monolog/monolog", 398 "version": "1.24.0", 399 "version_normalized": "1.24.0.0", 400 "source": { 401 "type": "git", 402 "url": "https://github.com/Seldaek/monolog.git", 403 "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266" 404 }, 405 "dist": { 406 "type": "zip", 407 "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", 408 "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", 409 "shasum": "" 410 }, 411 "require": { 412 "php": ">=5.3.0", 413 "psr/log": "~1.0" 414 }, 415 "provide": { 416 "psr/log-implementation": "1.0.0" 417 }, 418 "require-dev": { 419 "aws/aws-sdk-php": "^2.4.9 || ^3.0", 420 "doctrine/couchdb": "~1.0@dev", 421 "graylog2/gelf-php": "~1.0", 422 "jakub-onderka/php-parallel-lint": "0.9", 423 "php-amqplib/php-amqplib": "~2.4", 424 "php-console/php-console": "^3.1.3", 425 "phpunit/phpunit": "~4.5", 426 "phpunit/phpunit-mock-objects": "2.3.0", 427 "ruflin/elastica": ">=0.90 <3.0", 428 "sentry/sentry": "^0.13", 429 "swiftmailer/swiftmailer": "^5.3|^6.0" 430 }, 431 "suggest": { 432 "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", 433 "doctrine/couchdb": "Allow sending log messages to a CouchDB server", 434 "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", 435 "ext-mongo": "Allow sending log messages to a MongoDB server", 436 "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", 437 "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", 438 "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", 439 "php-console/php-console": "Allow sending log messages to Google Chrome", 440 "rollbar/rollbar": "Allow sending log messages to Rollbar", 441 "ruflin/elastica": "Allow sending log messages to an Elastic Search server", 442 "sentry/sentry": "Allow sending log messages to a Sentry server" 443 }, 444 "time": "2018-11-05T09:00:11+00:00", 445 "type": "library", 446 "extra": { 447 "branch-alias": { 448 "dev-master": "2.0.x-dev" 449 } 450 }, 451 "installation-source": "dist", 452 "autoload": { 453 "psr-4": { 454 "Monolog\\": "src/Monolog" 455 } 456 }, 457 "notification-url": "https://packagist.org/downloads/", 458 "license": [ 459 "MIT" 460 ], 461 "authors": [ 462 { 463 "name": "Jordi Boggiano", 464 "email": "[email protected]", 465 "homepage": "http://seld.be" 466 } 467 ], 468 "description": "Sends your logs to files, sockets, inboxes, databases and various web services", 469 "homepage": "http://github.com/Seldaek/monolog", 470 "keywords": [ 471 "log", 472 "logging", 473 "psr-3" 474 ] 475 }, 476 { 477 "name": "phpseclib/phpseclib", 478 "version": "2.0.21", 479 "version_normalized": "2.0.21.0", 480 "source": { 481 "type": "git", 482 "url": "https://github.com/phpseclib/phpseclib.git", 483 "reference": "9f1287e68b3f283339a9f98f67515dd619e5bf9d" 484 }, 485 "dist": { 486 "type": "zip", 487 "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/9f1287e68b3f283339a9f98f67515dd619e5bf9d", 488 "reference": "9f1287e68b3f283339a9f98f67515dd619e5bf9d", 489 "shasum": "" 490 }, 491 "require": { 492 "php": ">=5.3.3" 493 }, 494 "require-dev": { 495 "phing/phing": "~2.7", 496 "phpunit/phpunit": "^4.8.35|^5.7|^6.0", 497 "sami/sami": "~2.0", 498 "squizlabs/php_codesniffer": "~2.0" 499 }, 500 "suggest": { 501 "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", 502 "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", 503 "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", 504 "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." 505 }, 506 "time": "2019-07-12T12:53:49+00:00", 507 "type": "library", 508 "installation-source": "dist", 509 "autoload": { 510 "files": [ 511 "phpseclib/bootstrap.php" 512 ], 513 "psr-4": { 514 "phpseclib\\": "phpseclib/" 515 } 516 }, 517 "notification-url": "https://packagist.org/downloads/", 518 "license": [ 519 "MIT" 520 ], 521 "authors": [ 522 { 523 "name": "Jim Wigginton", 524 "email": "[email protected]", 525 "role": "Lead Developer" 526 }, 527 { 528 "name": "Patrick Monnerat", 529 "email": "[email protected]", 530 "role": "Developer" 531 }, 532 { 533 "name": "Andreas Fischer", 534 "email": "[email protected]", 535 "role": "Developer" 536 }, 537 { 538 "name": "Hans-Jürgen Petrich", 539 "email": "[email protected]", 540 "role": "Developer" 541 }, 542 { 543 "name": "Graham Campbell", 544 "email": "[email protected]", 545 "role": "Developer" 546 } 547 ], 548 "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", 549 "homepage": "http://phpseclib.sourceforge.net", 550 "keywords": [ 551 "BigInteger", 552 "aes", 553 "asn.1", 554 "asn1", 555 "blowfish", 556 "crypto", 557 "cryptography", 558 "encryption", 559 "rsa", 560 "security", 561 "sftp", 562 "signature", 563 "signing", 564 "ssh", 565 "twofish", 566 "x.509", 567 "x509" 568 ] 569 }, 570 { 571 "name": "psr/cache", 572 "version": "1.0.1", 573 "version_normalized": "1.0.1.0", 574 "source": { 575 "type": "git", 576 "url": "https://github.com/php-fig/cache.git", 577 "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" 578 }, 579 "dist": { 580 "type": "zip", 581 "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", 582 "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", 583 "shasum": "" 584 }, 585 "require": { 586 "php": ">=5.3.0" 587 }, 588 "time": "2016-08-06T20:24:11+00:00", 589 "type": "library", 590 "extra": { 591 "branch-alias": { 592 "dev-master": "1.0.x-dev" 593 } 594 }, 595 "installation-source": "dist", 596 "autoload": { 597 "psr-4": { 598 "Psr\\Cache\\": "src/" 599 } 600 }, 601 "notification-url": "https://packagist.org/downloads/", 602 "license": [ 603 "MIT" 604 ], 605 "authors": [ 606 { 607 "name": "PHP-FIG", 608 "homepage": "http://www.php-fig.org/" 609 } 610 ], 611 "description": "Common interface for caching libraries", 612 "keywords": [ 613 "cache", 614 "psr", 615 "psr-6" 616 ] 617 }, 618 { 619 "name": "psr/http-message", 620 "version": "1.0.1", 621 "version_normalized": "1.0.1.0", 622 "source": { 623 "type": "git", 624 "url": "https://github.com/php-fig/http-message.git", 625 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" 626 }, 627 "dist": { 628 "type": "zip", 629 "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", 630 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", 631 "shasum": "" 632 }, 633 "require": { 634 "php": ">=5.3.0" 635 }, 636 "time": "2016-08-06T14:39:51+00:00", 637 "type": "library", 638 "extra": { 639 "branch-alias": { 640 "dev-master": "1.0.x-dev" 641 } 642 }, 643 "installation-source": "dist", 644 "autoload": { 645 "psr-4": { 646 "Psr\\Http\\Message\\": "src/" 647 } 648 }, 649 "notification-url": "https://packagist.org/downloads/", 650 "license": [ 651 "MIT" 652 ], 653 "authors": [ 654 { 655 "name": "PHP-FIG", 656 "homepage": "http://www.php-fig.org/" 657 } 658 ], 659 "description": "Common interface for HTTP messages", 660 "homepage": "https://github.com/php-fig/http-message", 661 "keywords": [ 662 "http", 663 "http-message", 664 "psr", 665 "psr-7", 666 "request", 667 "response" 668 ] 669 }, 670 { 671 "name": "psr/log", 672 "version": "1.1.0", 673 "version_normalized": "1.1.0.0", 674 "source": { 675 "type": "git", 676 "url": "https://github.com/php-fig/log.git", 677 "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" 678 }, 679 "dist": { 680 "type": "zip", 681 "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", 682 "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", 683 "shasum": "" 684 }, 685 "require": { 686 "php": ">=5.3.0" 687 }, 688 "time": "2018-11-20T15:27:04+00:00", 689 "type": "library", 690 "extra": { 691 "branch-alias": { 692 "dev-master": "1.0.x-dev" 693 } 694 }, 695 "installation-source": "dist", 696 "autoload": { 697 "psr-4": { 698 "Psr\\Log\\": "Psr/Log/" 699 } 700 }, 701 "notification-url": "https://packagist.org/downloads/", 702 "license": [ 703 "MIT" 704 ], 705 "authors": [ 706 { 707 "name": "PHP-FIG", 708 "homepage": "http://www.php-fig.org/" 709 } 710 ], 711 "description": "Common interface for logging libraries", 712 "homepage": "https://github.com/php-fig/log", 713 "keywords": [ 714 "log", 715 "psr", 716 "psr-3" 717 ] 718 }, 719 { 720 "name": "ralouphie/getallheaders", 721 "version": "3.0.3", 722 "version_normalized": "3.0.3.0", 723 "source": { 724 "type": "git", 725 "url": "https://github.com/ralouphie/getallheaders.git", 726 "reference": "120b605dfeb996808c31b6477290a714d356e822" 727 }, 728 "dist": { 729 "type": "zip", 730 "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", 731 "reference": "120b605dfeb996808c31b6477290a714d356e822", 732 "shasum": "" 733 }, 734 "require": { 735 "php": ">=5.6" 736 }, 737 "require-dev": { 738 "php-coveralls/php-coveralls": "^2.1", 739 "phpunit/phpunit": "^5 || ^6.5" 740 }, 741 "time": "2019-03-08T08:55:37+00:00", 742 "type": "library", 743 "installation-source": "dist", 744 "autoload": { 745 "files": [ 746 "src/getallheaders.php" 747 ] 748 }, 749 "notification-url": "https://packagist.org/downloads/", 750 "license": [ 751 "MIT" 752 ], 753 "authors": [ 754 { 755 "name": "Ralph Khattar", 756 "email": "[email protected]" 757 } 758 ], 759 "description": "A polyfill for getallheaders." 760 } 761 ] 1 { 2 "packages": [ 3 { 4 "name": "firebase/php-jwt", 5 "version": "v5.0.0", 6 "version_normalized": "5.0.0.0", 7 "source": { 8 "type": "git", 9 "url": "https://github.com/firebase/php-jwt.git", 10 "reference": "9984a4d3a32ae7673d6971ea00bae9d0a1abba0e" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/9984a4d3a32ae7673d6971ea00bae9d0a1abba0e", 15 "reference": "9984a4d3a32ae7673d6971ea00bae9d0a1abba0e", 16 "shasum": "" 17 }, 18 "require": { 19 "php": ">=5.3.0" 20 }, 21 "require-dev": { 22 "phpunit/phpunit": " 4.8.35" 23 }, 24 "time": "2017-06-27T22:17:23+00:00", 25 "type": "library", 26 "installation-source": "dist", 27 "autoload": { 28 "psr-4": { 29 "Firebase\\JWT\\": "src" 30 } 31 }, 32 "notification-url": "https://packagist.org/downloads/", 33 "license": [ 34 "BSD-3-Clause" 35 ], 36 "authors": [ 37 { 38 "name": "Neuman Vong", 39 "role": "Developer", 40 "email": "[email protected]" 41 }, 42 { 43 "name": "Anant Narayanan", 44 "role": "Developer", 45 "email": "[email protected]" 46 } 47 ], 48 "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", 49 "homepage": "https://github.com/firebase/php-jwt", 50 "install-path": "../firebase/php-jwt" 51 }, 52 { 53 "name": "google/apiclient", 54 "version": "v2.2.3", 55 "version_normalized": "2.2.3.0", 56 "source": { 57 "type": "git", 58 "url": "https://github.com/googleapis/google-api-php-client.git", 59 "reference": "4bfd3edc21cceaf45fc216a4196e1993cf7a89eb" 60 }, 61 "dist": { 62 "type": "zip", 63 "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/4bfd3edc21cceaf45fc216a4196e1993cf7a89eb", 64 "reference": "4bfd3edc21cceaf45fc216a4196e1993cf7a89eb", 65 "shasum": "" 66 }, 67 "require": { 68 "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", 69 "google/apiclient-services": "~0.13", 70 "google/auth": "^1.0", 71 "guzzlehttp/guzzle": "~5.3.1||~6.0", 72 "guzzlehttp/psr7": "^1.2", 73 "monolog/monolog": "^1.17", 74 "php": ">=5.4", 75 "phpseclib/phpseclib": "~0.3.10||~2.0" 76 }, 77 "require-dev": { 78 "cache/filesystem-adapter": "^0.3.2", 79 "phpunit/phpunit": "~4.8.36", 80 "squizlabs/php_codesniffer": "~2.3", 81 "symfony/css-selector": "~2.1", 82 "symfony/dom-crawler": "~2.1" 83 }, 84 "suggest": { 85 "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" 86 }, 87 "time": "2019-05-21T18:06:55+00:00", 88 "type": "library", 89 "extra": { 90 "branch-alias": { 91 "dev-master": "2.x-dev" 92 } 93 }, 94 "installation-source": "dist", 95 "autoload": { 96 "psr-0": { 97 "Google_": "src/" 98 }, 99 "classmap": [ 100 "src/Google/Service/" 101 ] 102 }, 103 "notification-url": "https://packagist.org/downloads/", 104 "license": [ 105 "Apache-2.0" 106 ], 107 "description": "Client library for Google APIs", 108 "homepage": "http://developers.google.com/api-client-library/php", 109 "keywords": [ 110 "google" 111 ], 112 "install-path": "../google/apiclient" 113 }, 114 { 115 "name": "google/apiclient-services", 116 "version": "v0.106", 117 "version_normalized": "0.106.0.0", 118 "source": { 119 "type": "git", 120 "url": "https://github.com/googleapis/google-api-php-client-services.git", 121 "reference": "27c47201c7ac9e2863e20a55bcd96802426233fd" 122 }, 123 "dist": { 124 "type": "zip", 125 "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/27c47201c7ac9e2863e20a55bcd96802426233fd", 126 "reference": "27c47201c7ac9e2863e20a55bcd96802426233fd", 127 "shasum": "" 128 }, 129 "require": { 130 "php": ">=5.4" 131 }, 132 "require-dev": { 133 "phpunit/phpunit": "~4.8" 134 }, 135 "time": "2019-07-28T00:23:12+00:00", 136 "type": "library", 137 "installation-source": "dist", 138 "autoload": { 139 "psr-0": { 140 "Google_Service_": "src" 141 } 142 }, 143 "notification-url": "https://packagist.org/downloads/", 144 "license": [ 145 "Apache-2.0" 146 ], 147 "description": "Client library for Google APIs", 148 "homepage": "http://developers.google.com/api-client-library/php", 149 "keywords": [ 150 "google" 151 ], 152 "install-path": "../google/apiclient-services" 153 }, 154 { 155 "name": "google/auth", 156 "version": "v1.5.1", 157 "version_normalized": "1.5.1.0", 158 "source": { 159 "type": "git", 160 "url": "https://github.com/googleapis/google-auth-library-php.git", 161 "reference": "0f75e20e7392e863f5550ed2c2d3d50af21710fb" 162 }, 163 "dist": { 164 "type": "zip", 165 "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/0f75e20e7392e863f5550ed2c2d3d50af21710fb", 166 "reference": "0f75e20e7392e863f5550ed2c2d3d50af21710fb", 167 "shasum": "" 168 }, 169 "require": { 170 "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", 171 "guzzlehttp/guzzle": "~5.3.1|~6.0", 172 "guzzlehttp/psr7": "^1.2", 173 "php": ">=5.4", 174 "psr/cache": "^1.0", 175 "psr/http-message": "^1.0" 176 }, 177 "require-dev": { 178 "friendsofphp/php-cs-fixer": "^1.11", 179 "guzzlehttp/promises": "0.1.1|^1.3", 180 "phpseclib/phpseclib": "^2", 181 "phpunit/phpunit": "^4.8.36|^5.7", 182 "sebastian/comparator": ">=1.2.3" 183 }, 184 "suggest": { 185 "phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings. Please require version ^2." 186 }, 187 "time": "2019-04-16T18:48:28+00:00", 188 "type": "library", 189 "installation-source": "dist", 190 "autoload": { 191 "psr-4": { 192 "Google\\Auth\\": "src" 193 } 194 }, 195 "notification-url": "https://packagist.org/downloads/", 196 "license": [ 197 "Apache-2.0" 198 ], 199 "description": "Google Auth Library for PHP", 200 "homepage": "http://github.com/google/google-auth-library-php", 201 "keywords": [ 202 "Authentication", 203 "google", 204 "oauth2" 205 ], 206 "install-path": "../google/auth" 207 }, 208 { 209 "name": "guzzlehttp/guzzle", 210 "version": "6.3.3", 211 "version_normalized": "6.3.3.0", 212 "source": { 213 "type": "git", 214 "url": "https://github.com/guzzle/guzzle.git", 215 "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba" 216 }, 217 "dist": { 218 "type": "zip", 219 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba", 220 "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba", 221 "shasum": "" 222 }, 223 "require": { 224 "guzzlehttp/promises": "^1.0", 225 "guzzlehttp/psr7": "^1.4", 226 "php": ">=5.5" 227 }, 228 "require-dev": { 229 "ext-curl": "*", 230 "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", 231 "psr/log": "^1.0" 232 }, 233 "suggest": { 234 "psr/log": "Required for using the Log middleware" 235 }, 236 "time": "2018-04-22T15:46:56+00:00", 237 "type": "library", 238 "extra": { 239 "branch-alias": { 240 "dev-master": "6.3-dev" 241 } 242 }, 243 "installation-source": "dist", 244 "autoload": { 245 "files": [ 246 "src/functions_include.php" 247 ], 248 "psr-4": { 249 "GuzzleHttp\\": "src/" 250 } 251 }, 252 "notification-url": "https://packagist.org/downloads/", 253 "license": [ 254 "MIT" 255 ], 256 "authors": [ 257 { 258 "name": "Michael Dowling", 259 "email": "[email protected]", 260 "homepage": "https://github.com/mtdowling" 261 } 262 ], 263 "description": "Guzzle is a PHP HTTP client library", 264 "homepage": "http://guzzlephp.org/", 265 "keywords": [ 266 "client", 267 "curl", 268 "framework", 269 "http", 270 "http client", 271 "rest", 272 "web service" 273 ], 274 "install-path": "../guzzlehttp/guzzle" 275 }, 276 { 277 "name": "guzzlehttp/promises", 278 "version": "v1.3.1", 279 "version_normalized": "1.3.1.0", 280 "source": { 281 "type": "git", 282 "url": "https://github.com/guzzle/promises.git", 283 "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" 284 }, 285 "dist": { 286 "type": "zip", 287 "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", 288 "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", 289 "shasum": "" 290 }, 291 "require": { 292 "php": ">=5.5.0" 293 }, 294 "require-dev": { 295 "phpunit/phpunit": "^4.0" 296 }, 297 "time": "2016-12-20T10:07:11+00:00", 298 "type": "library", 299 "extra": { 300 "branch-alias": { 301 "dev-master": "1.4-dev" 302 } 303 }, 304 "installation-source": "dist", 305 "autoload": { 306 "psr-4": { 307 "GuzzleHttp\\Promise\\": "src/" 308 }, 309 "files": [ 310 "src/functions_include.php" 311 ] 312 }, 313 "notification-url": "https://packagist.org/downloads/", 314 "license": [ 315 "MIT" 316 ], 317 "authors": [ 318 { 319 "name": "Michael Dowling", 320 "email": "[email protected]", 321 "homepage": "https://github.com/mtdowling" 322 } 323 ], 324 "description": "Guzzle promises library", 325 "keywords": [ 326 "promise" 327 ], 328 "install-path": "../guzzlehttp/promises" 329 }, 330 { 331 "name": "guzzlehttp/psr7", 332 "version": "1.6.1", 333 "version_normalized": "1.6.1.0", 334 "source": { 335 "type": "git", 336 "url": "https://github.com/guzzle/psr7.git", 337 "reference": "239400de7a173fe9901b9ac7c06497751f00727a" 338 }, 339 "dist": { 340 "type": "zip", 341 "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a", 342 "reference": "239400de7a173fe9901b9ac7c06497751f00727a", 343 "shasum": "" 344 }, 345 "require": { 346 "php": ">=5.4.0", 347 "psr/http-message": "~1.0", 348 "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" 349 }, 350 "provide": { 351 "psr/http-message-implementation": "1.0" 352 }, 353 "require-dev": { 354 "ext-zlib": "*", 355 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" 356 }, 357 "suggest": { 358 "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" 359 }, 360 "time": "2019-07-01T23:21:34+00:00", 361 "type": "library", 362 "extra": { 363 "branch-alias": { 364 "dev-master": "1.6-dev" 365 } 366 }, 367 "installation-source": "dist", 368 "autoload": { 369 "psr-4": { 370 "GuzzleHttp\\Psr7\\": "src/" 371 }, 372 "files": [ 373 "src/functions_include.php" 374 ] 375 }, 376 "notification-url": "https://packagist.org/downloads/", 377 "license": [ 378 "MIT" 379 ], 380 "authors": [ 381 { 382 "name": "Michael Dowling", 383 "email": "[email protected]", 384 "homepage": "https://github.com/mtdowling" 385 }, 386 { 387 "name": "Tobias Schultze", 388 "homepage": "https://github.com/Tobion" 389 } 390 ], 391 "description": "PSR-7 message implementation that also provides common utility methods", 392 "keywords": [ 393 "http", 394 "message", 395 "psr-7", 396 "request", 397 "response", 398 "stream", 399 "uri", 400 "url" 401 ], 402 "install-path": "../guzzlehttp/psr7" 403 }, 404 { 405 "name": "monolog/monolog", 406 "version": "1.24.0", 407 "version_normalized": "1.24.0.0", 408 "source": { 409 "type": "git", 410 "url": "https://github.com/Seldaek/monolog.git", 411 "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266" 412 }, 413 "dist": { 414 "type": "zip", 415 "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", 416 "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", 417 "shasum": "" 418 }, 419 "require": { 420 "php": ">=5.3.0", 421 "psr/log": "~1.0" 422 }, 423 "provide": { 424 "psr/log-implementation": "1.0.0" 425 }, 426 "require-dev": { 427 "aws/aws-sdk-php": "^2.4.9 || ^3.0", 428 "doctrine/couchdb": "~1.0@dev", 429 "graylog2/gelf-php": "~1.0", 430 "jakub-onderka/php-parallel-lint": "0.9", 431 "php-amqplib/php-amqplib": "~2.4", 432 "php-console/php-console": "^3.1.3", 433 "phpunit/phpunit": "~4.5", 434 "phpunit/phpunit-mock-objects": "2.3.0", 435 "ruflin/elastica": ">=0.90 <3.0", 436 "sentry/sentry": "^0.13", 437 "swiftmailer/swiftmailer": "^5.3|^6.0" 438 }, 439 "suggest": { 440 "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", 441 "doctrine/couchdb": "Allow sending log messages to a CouchDB server", 442 "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", 443 "ext-mongo": "Allow sending log messages to a MongoDB server", 444 "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", 445 "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", 446 "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", 447 "php-console/php-console": "Allow sending log messages to Google Chrome", 448 "rollbar/rollbar": "Allow sending log messages to Rollbar", 449 "ruflin/elastica": "Allow sending log messages to an Elastic Search server", 450 "sentry/sentry": "Allow sending log messages to a Sentry server" 451 }, 452 "time": "2018-11-05T09:00:11+00:00", 453 "type": "library", 454 "extra": { 455 "branch-alias": { 456 "dev-master": "2.0.x-dev" 457 } 458 }, 459 "installation-source": "dist", 460 "autoload": { 461 "psr-4": { 462 "Monolog\\": "src/Monolog" 463 } 464 }, 465 "notification-url": "https://packagist.org/downloads/", 466 "license": [ 467 "MIT" 468 ], 469 "authors": [ 470 { 471 "name": "Jordi Boggiano", 472 "email": "[email protected]", 473 "homepage": "http://seld.be" 474 } 475 ], 476 "description": "Sends your logs to files, sockets, inboxes, databases and various web services", 477 "homepage": "http://github.com/Seldaek/monolog", 478 "keywords": [ 479 "log", 480 "logging", 481 "psr-3" 482 ], 483 "install-path": "../monolog/monolog" 484 }, 485 { 486 "name": "phpseclib/phpseclib", 487 "version": "2.0.21", 488 "version_normalized": "2.0.21.0", 489 "source": { 490 "type": "git", 491 "url": "https://github.com/phpseclib/phpseclib.git", 492 "reference": "9f1287e68b3f283339a9f98f67515dd619e5bf9d" 493 }, 494 "dist": { 495 "type": "zip", 496 "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/9f1287e68b3f283339a9f98f67515dd619e5bf9d", 497 "reference": "9f1287e68b3f283339a9f98f67515dd619e5bf9d", 498 "shasum": "" 499 }, 500 "require": { 501 "php": ">=5.3.3" 502 }, 503 "require-dev": { 504 "phing/phing": "~2.7", 505 "phpunit/phpunit": "^4.8.35|^5.7|^6.0", 506 "sami/sami": "~2.0", 507 "squizlabs/php_codesniffer": "~2.0" 508 }, 509 "suggest": { 510 "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", 511 "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", 512 "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", 513 "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." 514 }, 515 "time": "2019-07-12T12:53:49+00:00", 516 "type": "library", 517 "installation-source": "dist", 518 "autoload": { 519 "files": [ 520 "phpseclib/bootstrap.php" 521 ], 522 "psr-4": { 523 "phpseclib\\": "phpseclib/" 524 } 525 }, 526 "notification-url": "https://packagist.org/downloads/", 527 "license": [ 528 "MIT" 529 ], 530 "authors": [ 531 { 532 "name": "Jim Wigginton", 533 "email": "[email protected]", 534 "role": "Lead Developer" 535 }, 536 { 537 "name": "Patrick Monnerat", 538 "email": "[email protected]", 539 "role": "Developer" 540 }, 541 { 542 "name": "Andreas Fischer", 543 "email": "[email protected]", 544 "role": "Developer" 545 }, 546 { 547 "name": "Hans-Jürgen Petrich", 548 "email": "[email protected]", 549 "role": "Developer" 550 }, 551 { 552 "name": "Graham Campbell", 553 "email": "[email protected]", 554 "role": "Developer" 555 } 556 ], 557 "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", 558 "homepage": "http://phpseclib.sourceforge.net", 559 "keywords": [ 560 "BigInteger", 561 "aes", 562 "asn.1", 563 "asn1", 564 "blowfish", 565 "crypto", 566 "cryptography", 567 "encryption", 568 "rsa", 569 "security", 570 "sftp", 571 "signature", 572 "signing", 573 "ssh", 574 "twofish", 575 "x.509", 576 "x509" 577 ], 578 "install-path": "../phpseclib/phpseclib" 579 }, 580 { 581 "name": "psr/cache", 582 "version": "1.0.1", 583 "version_normalized": "1.0.1.0", 584 "source": { 585 "type": "git", 586 "url": "https://github.com/php-fig/cache.git", 587 "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" 588 }, 589 "dist": { 590 "type": "zip", 591 "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", 592 "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", 593 "shasum": "" 594 }, 595 "require": { 596 "php": ">=5.3.0" 597 }, 598 "time": "2016-08-06T20:24:11+00:00", 599 "type": "library", 600 "extra": { 601 "branch-alias": { 602 "dev-master": "1.0.x-dev" 603 } 604 }, 605 "installation-source": "dist", 606 "autoload": { 607 "psr-4": { 608 "Psr\\Cache\\": "src/" 609 } 610 }, 611 "notification-url": "https://packagist.org/downloads/", 612 "license": [ 613 "MIT" 614 ], 615 "authors": [ 616 { 617 "name": "PHP-FIG", 618 "homepage": "http://www.php-fig.org/" 619 } 620 ], 621 "description": "Common interface for caching libraries", 622 "keywords": [ 623 "cache", 624 "psr", 625 "psr-6" 626 ], 627 "install-path": "../psr/cache" 628 }, 629 { 630 "name": "psr/http-message", 631 "version": "1.0.1", 632 "version_normalized": "1.0.1.0", 633 "source": { 634 "type": "git", 635 "url": "https://github.com/php-fig/http-message.git", 636 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" 637 }, 638 "dist": { 639 "type": "zip", 640 "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", 641 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", 642 "shasum": "" 643 }, 644 "require": { 645 "php": ">=5.3.0" 646 }, 647 "time": "2016-08-06T14:39:51+00:00", 648 "type": "library", 649 "extra": { 650 "branch-alias": { 651 "dev-master": "1.0.x-dev" 652 } 653 }, 654 "installation-source": "dist", 655 "autoload": { 656 "psr-4": { 657 "Psr\\Http\\Message\\": "src/" 658 } 659 }, 660 "notification-url": "https://packagist.org/downloads/", 661 "license": [ 662 "MIT" 663 ], 664 "authors": [ 665 { 666 "name": "PHP-FIG", 667 "homepage": "http://www.php-fig.org/" 668 } 669 ], 670 "description": "Common interface for HTTP messages", 671 "homepage": "https://github.com/php-fig/http-message", 672 "keywords": [ 673 "http", 674 "http-message", 675 "psr", 676 "psr-7", 677 "request", 678 "response" 679 ], 680 "install-path": "../psr/http-message" 681 }, 682 { 683 "name": "psr/log", 684 "version": "1.1.0", 685 "version_normalized": "1.1.0.0", 686 "source": { 687 "type": "git", 688 "url": "https://github.com/php-fig/log.git", 689 "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" 690 }, 691 "dist": { 692 "type": "zip", 693 "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", 694 "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", 695 "shasum": "" 696 }, 697 "require": { 698 "php": ">=5.3.0" 699 }, 700 "time": "2018-11-20T15:27:04+00:00", 701 "type": "library", 702 "extra": { 703 "branch-alias": { 704 "dev-master": "1.0.x-dev" 705 } 706 }, 707 "installation-source": "dist", 708 "autoload": { 709 "psr-4": { 710 "Psr\\Log\\": "Psr/Log/" 711 } 712 }, 713 "notification-url": "https://packagist.org/downloads/", 714 "license": [ 715 "MIT" 716 ], 717 "authors": [ 718 { 719 "name": "PHP-FIG", 720 "homepage": "http://www.php-fig.org/" 721 } 722 ], 723 "description": "Common interface for logging libraries", 724 "homepage": "https://github.com/php-fig/log", 725 "keywords": [ 726 "log", 727 "psr", 728 "psr-3" 729 ], 730 "install-path": "../psr/log" 731 }, 732 { 733 "name": "ralouphie/getallheaders", 734 "version": "3.0.3", 735 "version_normalized": "3.0.3.0", 736 "source": { 737 "type": "git", 738 "url": "https://github.com/ralouphie/getallheaders.git", 739 "reference": "120b605dfeb996808c31b6477290a714d356e822" 740 }, 741 "dist": { 742 "type": "zip", 743 "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", 744 "reference": "120b605dfeb996808c31b6477290a714d356e822", 745 "shasum": "" 746 }, 747 "require": { 748 "php": ">=5.6" 749 }, 750 "require-dev": { 751 "php-coveralls/php-coveralls": "^2.1", 752 "phpunit/phpunit": "^5 || ^6.5" 753 }, 754 "time": "2019-03-08T08:55:37+00:00", 755 "type": "library", 756 "installation-source": "dist", 757 "autoload": { 758 "files": [ 759 "src/getallheaders.php" 760 ] 761 }, 762 "notification-url": "https://packagist.org/downloads/", 763 "license": [ 764 "MIT" 765 ], 766 "authors": [ 767 { 768 "name": "Ralph Khattar", 769 "email": "[email protected]" 770 } 771 ], 772 "description": "A polyfill for getallheaders.", 773 "install-path": "../ralouphie/getallheaders" 774 } 775 ], 776 "dev": true 777 } -
wp-simple-spreadsheet-fetcher-for-google/tags/0.7.6/wp-simple-spreadsheet-fetcher-for-google.php
r2341341 r2411558 8 8 * Text Domain: wp-simple-spreadsheet-fetcher-for-google 9 9 * Domain Path: /languages 10 * Version: 0.7. 510 * Version: 0.7.6 11 11 * 12 12 * @package Wp_Simple_Spreadsheet_Fetcher_for_Google 13 * @version 0.7. 513 * @version 0.7.6 14 14 */ 15 15 -
wp-simple-spreadsheet-fetcher-for-google/trunk/build/index.asset.php
r2314572 r2411558 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' => ' d9b3a0dab64967bfa1389874ddf689b5');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' => '0ae1c9500eb7a4bcfab69b2ecd17050f'); -
wp-simple-spreadsheet-fetcher-for-google/trunk/build/index.js
r2314572 r2411558 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(){e.exports=this.wp.i18n}()},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.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(3),c=n.n(a),o=n(0),l=n(15),s=n.n(l),i=n(13),p=n(6),f=n(9),u=n.n(f),m=n(10),h=n.n(m),d=n(11),b=n.n(d),g=n(12),v=n.n(g),O=n(7),j=n.n(O),w=n(1),E=n(4); var _=wp.i18n.__,y=function(e){return"fetcher"===e?[{name:"setting",title:_("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"style",title:_("Style","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-style dashicons-before dashicons-admin-customizer"}]:"fetcher-chart"===e?[{name:"setting",title:_("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"advanced",title:_("Customize","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-advanced dashicons-before dashicons-plus"}]:void 0},N=function(){return Object(i.createHigherOrderComponent)((function(e){return function(t){b()(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=j()(e);if(t()){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}(r);function r(){return u()(this,r),n.apply(this,arguments)}return h()(r,[{key:"render",value:function(){var t=this,n=this.props.name.replace(/wp2s2fg\//,"");return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.TabPanel,{className:"wssffg-sidebar-tab-panel",activeClass:"is-active",tabs:y(n),initialTabName:"setting"},(function(e){var r;return"setting"===e.name?r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.after"),null,t.props)):"style"===e.name?r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.after"),null,t.props)):"advanced"===e.name&&(r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.after"),null,t.props))),Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.before"),null,t.props),r)}))),Object(o.createElement)(e,this.props))}}]),r}(o.Component)}),"withTabbedInspector")},C=n(5),x=n.n(C),H=n(8),S=n.n(H),R=wp.components.ToggleControl,z=wp.element.useState,F=function(e){var t=e.label,n=e.helpYes,r=e.helpNo,a=e.schema,c=e.setAttributes,l=e.attributes,s=z(l[a]),i=S()(s,2),p=i[0],f=i[1];return Object(o.createElement)(R,{label:t,help:p?n:r,checked:p,onChange:function(){c(x()({},a,!p)),f(!p)}})},M=function(e){return Object(o.createElement)(F,c()({schema:"hasFixedTable"},e))},A=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M0.015 0H2.9010000000000002V2.886H0.015z"}),Object(o.createElement)("path",{d:"M0.015 8.525H2.9010000000000002V11.411000000000001H0.015z"}),Object(o.createElement)("path",{d:"M0.015 4.277H2.9010000000000002V7.163H0.015z"}),Object(o.createElement)("path",{d:"M0.015 12.858H2.9010000000000002V15.744H0.015z"}),Object(o.createElement)("path",{d:"M0.015 17.106H2.9010000000000002V19.992H0.015z"}),Object(o.createElement)("path",{d:"M8.578 0H11.463999999999999V2.886H8.578z"}),Object(o.createElement)("path",{d:"M8.578 8.525H11.463999999999999V11.411000000000001H8.578z"}),Object(o.createElement)("path",{d:"M8.578 4.277H11.463999999999999V7.163H8.578z"}),Object(o.createElement)("path",{d:"M8.578 12.858H11.463999999999999V15.744H8.578z"}),Object(o.createElement)("path",{d:"M8.578 17.106H11.463999999999999V19.992H8.578z"}),Object(o.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(o.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(o.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(o.createElement)("path",{d:"M17.12 0H20.006V2.886H17.12z"}),Object(o.createElement)("path",{d:"M17.12 8.525H20.006V11.411000000000001H17.12z"}),Object(o.createElement)("path",{d:"M17.12 4.277H20.006V7.163H17.12z"}),Object(o.createElement)("path",{d:"M17.12 12.858H20.006V15.744H17.12z"}),Object(o.createElement)("path",{d:"M17.12 17.106H20.006V19.992H17.12z"}),Object(o.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(o.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(o.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},k=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.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(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M8.557 8.542H11.443000000000001V28.546H8.557z",transform:"rotate(-90 10 18.543)"}),Object(o.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z",transform:"rotate(-90 10 10.002)"}),Object(o.createElement)("path",{d:"M8.557 -8.542H11.443000000000001V11.462000000000002H8.557z",transform:"rotate(-90 10 1.46)"}),Object(o.createElement)("path",{d:"M-0.002 12.858H2.8840000000000003V15.744H-0.002z",transform:"rotate(-90 1.441 14.301)"}),Object(o.createElement)("path",{d:"M8.523 12.858H11.408999999999999V15.744H8.523z",transform:"rotate(-90 9.966 14.301)"}),Object(o.createElement)("path",{d:"M17.104 12.858H19.99V15.744H17.104z",transform:"rotate(-90 18.548 14.301)"}),Object(o.createElement)("path",{d:"M-0.002 4.242H2.8840000000000003V7.128H-0.002z",transform:"rotate(-90 1.442 5.685)"}),Object(o.createElement)("path",{d:"M8.523 4.242H11.408999999999999V7.128H8.523z",transform:"rotate(-90 9.966 5.685)"}),Object(o.createElement)("path",{d:"M17.104 4.242H19.99V7.128H17.104z",transform:"rotate(-90 18.547 5.686)"})))},B=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M0.015 0H2.9010000000000002V20.004H0.015z"}),Object(o.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z"}),Object(o.createElement)("path",{d:"M17.098 0H19.983999999999998V20.004H17.098z"}),Object(o.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(o.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(o.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(o.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(o.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(o.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(o.createElement)(k,null):"table-empty"===t?Object(o.createElement)(A,null):"table-horizontal"===t?Object(o.createElement)(T,null):"table-vertical"===t?Object(o.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,c=e.attributes,l=e.customClassName,s=e.icon,i=void 0!==s&&s,p=L(c[n]),f=S()(p,2),u=f[0],m=f[1],h="components-icon-button components-toolbar__control",d=function(e){m(e.target.value),a(x()({},n,e.target.value))};return t=i?r.map((function(e,t){return Object(o.createElement)(E.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},Object(o.createElement)(P,{icon:e}))})):r.map((function(e,t){return Object(o.createElement)(E.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(o.createElement)(E.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,c=n.sheetId,l=n.sheetName,s=n.sheetRange;return t=a?Object(o.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(o.createElement)(Y,null,Object(o.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:c,onChange:function(e){return r({sheetId:void 0===e?"none":e})}}),Object(o.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(o.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(o.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,c=e.step,l=e.min,s=e.max,i=q(t[a]),p=S()(i,2),f=p[0],u=p[1];return l||(l=0),s||(s=100),Object(o.createElement)($,{label:r,value:void 0===f?"":f,onChange:function(e){u(e),n(x()({},a,e))},min:l,max:s,step:c,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){b()(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=j()(e);if(t()){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(e){var r;return u()(this,n),(r=t.call(this,e)).state={open:!1},r.buttonRef=ae(),r}return h()(n,[{key:"render",value:function(){var e=this,t=function(){e.setState({open:!e.state.open})};return Object(o.createElement)(re,null,Object(o.createElement)("div",{className:"components-base-control"},Object(o.createElement)("div",{className:"wssffg-button-icon-control__wrapper components-base-control__field"},Object(o.createElement)(Q,{isTertiary:!0,className:"".concat("apc-icon-btn"),onClick:t},Object(o.createElement)("span",{className:"components-base-control__label"},this.props.label)),Object(o.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(o.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,c=e.setAttributes,l=ie(r),s=S()(l,2),i=s[0],p=s[1],f=function(e,t){c(x()({},e,t))};return Object(o.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(x()({},e,t))};return Object(o.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(o.createElement)(be,null,Object(o.createElement)(ge,null,Object(o.createElement)(pe,c()({label:de("Style","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:he},e))),Object(o.createElement)(ge,null,Object(o.createElement)("span",{className:"components-base-control__label"},de("Color","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(ue,c()({schemaName:n},e))));return Object(o.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,a=e.letterSpace,l=Object(o.createElement)(Ee,null,Object(o.createElement)(_e,null,Object(o.createElement)(pe,c()({label:we("Weight","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:je},e))),Object(o.createElement)(_e,null,Object(o.createElement)(J,c()({label:we("Line Height","wp-simple-spreadsheet-fetcher-for-google"),schemaName:n,min:1,max:10,step:.1},e))),Object(o.createElement)(_e,null,Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},we("Letter Spacing","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(U,c()({schemaName:r,data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(o.createElement)(J,c()({schemaName:a,min:0,max:10,step:.1},e))));return Object(o.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),c=S()(a,2),l=c[0],s=c[1],i=function(e,t){n(x()({},e,t))};return Object(o.createElement)(xe,{controls:["left","center","right"].map((function(e){return{icon:"editor-align".concat(e),title:Ne("Align ".concat(e),"wp-simple-spreadsheet-fetcher-for-google"),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,a=e.align;return Object(o.createElement)(ze,null,Object(o.createElement)(ye,e),Object(o.createElement)(Re,{className:"wssffg-lower-layer1"},Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},Se("Size","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(U,c()({schemaName:t,initial:e.attributes[t],data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(o.createElement)(J,c()({schemaName:n,min:0,max:50,step:.1},e))),Object(o.createElement)(Re,{label:Se("Background Color","wp-simple-spreadsheet-fetcher-for-google")},Object(o.createElement)(ue,c()({schemaName:r},e))),Object(o.createElement)(Re,{label:Se("Align","wp-simple-spreadsheet-fetcher-for-google")},Object(o.createElement)(He,c()({schemaName:a,initial:e.attributes[a]},e))))},Me=wp.i18n.__,Ae=wp.components,ke=Ae.PanelBody,Te=Ae.BaseControl,Be=wp.element.Fragment;Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.setting.before","wp2s2fg/fetcher",(function(e,t){return Object(o.createElement)(Z,t)})),Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.style.before","wp2s2fg/fetcher",(function(e,t){return Object(o.createElement)(Be,null,Object(o.createElement)(ke,{title:Me("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(Te,null,Object(o.createElement)("span",{className:"components-base-control__label"},Me("Layout","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(U,c()({schemaName:"borderLayout",data:["table-full","table-horizontal","table-vertical","table-empty"],customClassName:"wssffg-advanced-button-group_align components-toolbar",icon:!0},t))),Object(o.createElement)(ve,c()({borderStyle:"borderStyle",borderColor:"borderColor"},t)),Object(o.createElement)(Te,{className:"wssffg-lower-layer1"},Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},Me("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(U,c()({schemaName:"borderUnit",data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},t))),Object(o.createElement)(J,c()({schemaName:"borderWidth",min:0,max:10,step:.1},t))),Object(o.createElement)(Te,null,Object(o.createElement)("span",{className:"components-base-control__label"},Me("Fixed Table Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(M,t))),Object(o.createElement)(ke,{title:Me("Table Header","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(o.createElement)(Fe,c()({fontUnit:"thFontUnit",fontSize:"thFontSize",fontColor:"thFontColor",fontWeight:"thFontWeight",lineHeight:"thLineHeight",letterSpaceUnit:"thLetterSpaceUnit",letterSpace:"thLetterSpace",bgColor:"thBgColor",align:"thAlign"},t))),Object(o.createElement)(ke,{title:Me("Table Body","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(o.createElement)(Fe,c()({fontUnit:"tbFontUnit",fontSize:"tbFontSize",fontColor:"tbFontColor",fontWeight:"tbFontWeight",lineHeight:"tbLineHeight",letterSpaceUnit:"tbLetterSpaceUnit",letterSpace:"tbLetterSpace",bgColor:"tbBgColor",align:"tbAlign"},t))))}));var Ve=Object(i.compose)(N())((function(e){var t=e.attributes;return Object(o.createElement)(Be,null,Object(o.createElement)(s.a,{block:"wp2s2fg/fetcher",attributes:t}))}));(0,wp.blocks.registerBlockType)("wp2s2fg/fetcher",{title:Object(r.__)("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 Pe=n(14);function Ie(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=j()(e);if(t()){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var Le=function(e){b()(n,e);var t=Ie(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes,c=a.price,l=a.after,s=a.caption,i=this.props.for_,p=["wp2s2fg/fetcher-item"],f=[p];return"edit"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:s,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(o.createElement)(w.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:c,placeholder:Object(r.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:f,allowedBlocks:p,templateLock:"all"}),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:l,placeholder:Object(r.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:s}),Object(o.createElement)(w.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",value:c})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",value:l}))):void 0}}]),n}(o.Component),Ue=function(e){b()(n,e);var t=Ie(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes.caption,c=this.props.for_,l=["wp2s2fg/fetcher-item"],s=[l];return"edit"===c?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:a,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:s,allowedBlocks:l,templateLock:"all"}))):"save"===c?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:a})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null))):void 0}}]),n}(o.Component);o.Component;var De=function(e){b()(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=j()(e);if(t()){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes,c=a.price,l=a.after,s=a.caption,i=this.props.for_,p=["wp2s2fg/fetcher-item"],f=[p];return"edit"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:s,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(o.createElement)(w.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:c,placeholder:Object(r.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:f,allowedBlocks:p,templateLock:"all"}),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:l,placeholder:Object(r.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:s}),Object(o.createElement)(w.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",value:c})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",value:l}))):void 0}}]),n}(o.Component);Object(Pe.registerBlockType)("wp2s2fg/fetcher-advanced",{title:Object(r.__)("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(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.PanelBody,null,Object(o.createElement)(E.SelectControl,{label:Object(r.__)("Select Layout","wp-simple-spreadsheet-fetcher-for-google"),value:n,options:[{label:Object(r.__)("Event Registration Simple","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-simple"},{label:Object(r.__)("Event Registration Advanced","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-advanced"}],onChange:function(e){t({layout:e})}}))),"event-registration-simple"===n&&Object(o.createElement)(Ue,{props:e,for_:"edit"}),"event-registration-advanced"===n&&Object(o.createElement)(Le,{props:e,for_:"edit"}))},save:function(e){var t=e.attributes.layout;return Object(o.createElement)(o.Fragment,null,"event-registration-simple"===t&&Object(o.createElement)(Ue,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(o.createElement)(Le,{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(o.createElement)(o.Fragment,null,"event-registration-simple"===t&&Object(o.createElement)(Ue,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(o.createElement)(De,{props:e,for_:"save"}))}}]}),Object(Pe.registerBlockType)("wp2s2fg/fetcher-item",{title:Object(r.__)("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,a=t.range,c=t.sheetId,l=t.sheetName,i=t.sheetRange;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.PanelBody,{title:Object(r.__)("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},a?Object(o.createElement)(E.TextControl,{label:Object(r.__)("Please set the cell to fetch data in A1 notation. Example : Sheets1!A1","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return n({range:void 0===e?"none":e})},initialOpen:!0}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E.TextControl,{label:Object(r.__)("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),value:c,onChange:function(e){return n({sheetId:void 0===e?"none":e})},initialOpen:!0}),Object(o.createElement)(E.TextControl,{label:Object(r.__)("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),value:l,onChange:function(e){return n({sheetName:void 0===e?"none":e})},initialOpen:!0}),Object(o.createElement)(E.TextControl,{label:Object(r.__)("Cell","wp-simple-spreadsheet-fetcher-for-google"),value:i,onChange:function(e){return n({sheetRange:void 0===e?"none":e})},initialOpen:!0})))),Object(o.createElement)(s.a,{block:"wp2s2fg/fetcher-item",attributes:t}))},save:function(){return null}});var We=n(18),Ge=n.n(We);function Xe(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze=function(e){var t="/wp-json/api-charts/v1/data-table/"+$e(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=qe(t.chartData);e.switchRowColumn&&(n=Ke(n));tt(n[0])||(n=Qe(n));var r=google.visualization.arrayToDataTable(n),a=new google.visualization.DataView(r),c=Je(n[0].length);a.setColumns(c),console.log(e);var o={width:nt("chartWidth",600,e),height:nt("chartHeight",400,e),bar:{groupWidth:"75%"},isStacked:!0};e.hideXAxisLabel&&(o=et(o,{hAxis:{textPosition:"none"}}));e.hideYAxisLabel&&(o=et(o,{legend:{position:"none"}}));new google.visualization.ColumnChart(document.getElementById("chart_div")).draw(a,o)}))}))},$e=function(e){var t=e.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);return null!==t&&(t=t[0].replace(/\/spreadsheets\/d\//,"")),t},qe=function(e){return e.map((function(e){return e.map((function(e){return Number(e)?Number(e):e}))}))},Je=function(e){return Ge()(Array(e).keys())},Ke=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},Qe=function(e){return e.map((function(e){return e.unshift(""),e}))},et=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{someting:!0};return Ye({},e,{},t)},tt=function(e){return void 0===e.find((function(e){return"string"!=typeof e}))},nt=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 rt=wp.i18n.__,at=wp.components,ct=at.PanelBody,ot=at.BaseControl,lt=at.TextControl;Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.setting.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(o.createElement)(Z,t)})),Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.advanced.before","wp2s2fg/fetcher-chart",(function(e,t){return console.log(t),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(o.Fragment,null,Object(o.createElement)(ct,{title:rt("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Switch Rows / Columns","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(F,c()({schema:"switchRowColumn"},t))),Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Hide X-Axis Label","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(F,c()({schema:"hideXAxisLabel"},t))),Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Hide Data Category Label","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(F,c()({schema:"hideYAxisLabel"},t)))),Object(o.createElement)(ct,{title:rt("Size","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(lt,{value:t.attributes.chartWidth,onChange:function(e){return t.setAttributes({chartWidth:parseInt(e,10)})},type:"number"})),Object(o.createElement)(ot,null,Object(o.createElement)("span",{className:"components-base-control__label"},rt("Height","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(lt,{value:t.attributes.chartHeight,onChange:function(e){return t.setAttributes({chartHeight:parseInt(e,10)})},type:"number"}))))))}));var st=Object(i.compose)(N())((function(e){return Ze(e.attributes),Object(o.createElement)("div",{id:"chart_div"})}));Object(Pe.registerBlockType)("wp2s2fg/fetcher-chart",{title:Object(r.__)("Chart","wp-simple-spreadsheet-fetcher-for-google"),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:st})}]);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(){e.exports=this.wp.i18n}()},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.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(3),c=n.n(a),o=n(0),l=n(15),s=n.n(l),i=n(13),p=n(6),f=n(9),u=n.n(f),m=n(10),h=n.n(m),d=n(11),b=n.n(d),g=n(12),v=n.n(g),O=n(7),j=n.n(O),w=n(1),E=n(4);function _(e){var t=function(){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=j()(e);if(t){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var y=wp.i18n.__,N=function(e){return"fetcher"===e?[{name:"setting",title:y("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"style",title:y("Style","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-style dashicons-before dashicons-admin-customizer"}]:"fetcher-chart"===e?[{name:"setting",title:y("Setting","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-setting dashicons-before dashicons-admin-tools"},{name:"advanced",title:y("Customize","wp-simple-spreadsheet-fetcher-for-google"),className:"tab-advanced dashicons-before dashicons-plus"}]:void 0},C=function(){return Object(i.createHigherOrderComponent)((function(e){return function(t){b()(r,t);var n=_(r);function r(){return u()(this,r),n.apply(this,arguments)}return h()(r,[{key:"render",value:function(){var t=this,n=this.props.name.replace(/wp2s2fg\//,"");return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.TabPanel,{className:"wssffg-sidebar-tab-panel",activeClass:"is-active",tabs:N(n),initialTabName:"setting"},(function(e){var r;return"setting"===e.name?r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.setting.after"),null,t.props)):"style"===e.name?r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.style.after"),null,t.props)):"advanced"===e.name&&(r=Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.before"),null,t.props),Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.advanced.after"),null,t.props))),Object(o.createElement)(o.Fragment,null,Object(p.applyFilters)("wp-simple-spreadsheet-fetcher-for-google.".concat(n,".edit.inspector.before"),null,t.props),r)}))),Object(o.createElement)(e,this.props))}}]),r}(o.Component)}),"withTabbedInspector")},x=n(5),H=n.n(x),S=n(8),R=n.n(S),z=wp.components.ToggleControl,F=wp.element.useState,M=function(e){var t=e.label,n=e.helpYes,r=e.helpNo,a=e.schema,c=e.setAttributes,l=e.attributes,s=F(l[a]),i=R()(s,2),p=i[0],f=i[1];return Object(o.createElement)(z,{label:t,help:p?n:r,checked:p,onChange:function(){c(H()({},a,!p)),f(!p)}})},A=function(e){return Object(o.createElement)(M,c()({schema:"hasFixedTable"},e))},k=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M0.015 0H2.9010000000000002V2.886H0.015z"}),Object(o.createElement)("path",{d:"M0.015 8.525H2.9010000000000002V11.411000000000001H0.015z"}),Object(o.createElement)("path",{d:"M0.015 4.277H2.9010000000000002V7.163H0.015z"}),Object(o.createElement)("path",{d:"M0.015 12.858H2.9010000000000002V15.744H0.015z"}),Object(o.createElement)("path",{d:"M0.015 17.106H2.9010000000000002V19.992H0.015z"}),Object(o.createElement)("path",{d:"M8.578 0H11.463999999999999V2.886H8.578z"}),Object(o.createElement)("path",{d:"M8.578 8.525H11.463999999999999V11.411000000000001H8.578z"}),Object(o.createElement)("path",{d:"M8.578 4.277H11.463999999999999V7.163H8.578z"}),Object(o.createElement)("path",{d:"M8.578 12.858H11.463999999999999V15.744H8.578z"}),Object(o.createElement)("path",{d:"M8.578 17.106H11.463999999999999V19.992H8.578z"}),Object(o.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(o.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(o.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(o.createElement)("path",{d:"M17.12 0H20.006V2.886H17.12z"}),Object(o.createElement)("path",{d:"M17.12 8.525H20.006V11.411000000000001H17.12z"}),Object(o.createElement)("path",{d:"M17.12 4.277H20.006V7.163H17.12z"}),Object(o.createElement)("path",{d:"M17.12 12.858H20.006V15.744H17.12z"}),Object(o.createElement)("path",{d:"M17.12 17.106H20.006V19.992H17.12z"}),Object(o.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(o.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(o.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},T=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{isolation:"isolate"},width:"20",height:"20",viewBox:"0 0 20 20"},Object(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.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"})))},B=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M8.557 8.542H11.443000000000001V28.546H8.557z",transform:"rotate(-90 10 18.543)"}),Object(o.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z",transform:"rotate(-90 10 10.002)"}),Object(o.createElement)("path",{d:"M8.557 -8.542H11.443000000000001V11.462000000000002H8.557z",transform:"rotate(-90 10 1.46)"}),Object(o.createElement)("path",{d:"M-0.002 12.858H2.8840000000000003V15.744H-0.002z",transform:"rotate(-90 1.441 14.301)"}),Object(o.createElement)("path",{d:"M8.523 12.858H11.408999999999999V15.744H8.523z",transform:"rotate(-90 9.966 14.301)"}),Object(o.createElement)("path",{d:"M17.104 12.858H19.99V15.744H17.104z",transform:"rotate(-90 18.548 14.301)"}),Object(o.createElement)("path",{d:"M-0.002 4.242H2.8840000000000003V7.128H-0.002z",transform:"rotate(-90 1.442 5.685)"}),Object(o.createElement)("path",{d:"M8.523 4.242H11.408999999999999V7.128H8.523z",transform:"rotate(-90 9.966 5.685)"}),Object(o.createElement)("path",{d:"M17.104 4.242H19.99V7.128H17.104z",transform:"rotate(-90 18.547 5.686)"})))},V=function(){return Object(o.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(o.createElement)("defs",null,Object(o.createElement)("clipPath",{id:"a"},Object(o.createElement)("path",{d:"M0 0H20V20H0z"}))),Object(o.createElement)("g",null,Object(o.createElement)("path",{d:"M0.015 0H2.9010000000000002V20.004H0.015z"}),Object(o.createElement)("path",{d:"M8.557 0H11.443000000000001V20.004H8.557z"}),Object(o.createElement)("path",{d:"M17.098 0H19.983999999999998V20.004H17.098z"}),Object(o.createElement)("path",{d:"M4.258 0H7.144V2.886H4.258z"}),Object(o.createElement)("path",{d:"M4.258 8.525H7.144V11.411000000000001H4.258z"}),Object(o.createElement)("path",{d:"M4.258 17.106H7.144V19.992H4.258z"}),Object(o.createElement)("path",{d:"M12.873 0H15.759V2.886H12.873z"}),Object(o.createElement)("path",{d:"M12.873 8.525H15.759V11.411000000000001H12.873z"}),Object(o.createElement)("path",{d:"M12.873 17.106H15.759V19.992H12.873z"})))},P=wp.i18n.__,I=function(e){var t=e.icon;return"table-full"===t?Object(o.createElement)(T,null):"table-empty"===t?Object(o.createElement)(k,null):"table-horizontal"===t?Object(o.createElement)(B,null):"table-vertical"===t?Object(o.createElement)(V,null):P("nothing is specified","wp-simple-spreadsheet-fetcher-for-google")},L=wp.i18n.__,U=wp.element.useState,D=function(e){var t,n=e.schemaName,r=e.data,a=e.setAttributes,c=e.attributes,l=e.customClassName,s=e.icon,i=void 0!==s&&s,p=U(c[n]),f=R()(p,2),u=f[0],m=f[1],h="components-icon-button components-toolbar__control",d=function(e){m(e.target.value),a(H()({},n,e.target.value))};return t=i?r.map((function(e,t){return Object(o.createElement)(E.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},Object(o.createElement)(I,{icon:e}))})):r.map((function(e,t){return Object(o.createElement)(E.Button,{onClick:d,value:e,className:u===e?"".concat(h," is-pressed"):"".concat(h),key:t},L("".concat(e),"wp-simple-spreadsheet-fetcher-for-google"))})),Object(o.createElement)(E.ButtonGroup,{className:l},t)},W=wp.i18n.__,G=wp.components,X=G.TextControl,Y=G.PanelBody,Z=wp.element.Fragment,$=function(e){var t,n=e.attributes,r=e.setAttributes,a=n.range,c=n.sheetId,l=n.sheetName,s=n.sheetRange;return t=a?Object(o.createElement)(X,{label:W("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(o.createElement)(Z,null,Object(o.createElement)(X,{label:W("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),help:W("Ex. https://docs.google.com/spreadsh...","wp-simple-spreadsheet-fetcher-for-google"),value:c,onChange:function(e){return r({sheetId:void 0===e?"none":e})}}),Object(o.createElement)(X,{label:W("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),help:W("Ex. Sheet1","wp-simple-spreadsheet-fetcher-for-google"),value:l,onChange:function(e){return r({sheetName:void 0===e?"none":e})}}),Object(o.createElement)(X,{label:W("Cell or Range","wp-simple-spreadsheet-fetcher-for-google"),help:W("Ex. A1:D12","wp-simple-spreadsheet-fetcher-for-google"),value:s,onChange:function(e){return r({sheetRange:void 0===e?"none":e})}})),Object(o.createElement)(Y,{title:W("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},t)},q=(wp.i18n.__,wp.components.RangeControl),J=wp.element.useState,K=function(e){var t=e.attributes,n=e.setAttributes,r=e.label,a=e.schemaName,c=e.step,l=e.min,s=e.max,i=J(t[a]),p=R()(i,2),f=p[0],u=p[1];return l||(l=0),s||(s=100),Object(o.createElement)(q,{label:r,value:void 0===f?"":f,onChange:function(e){u(e),n(H()({},a,e))},min:l,max:s,step:c,allowReset:!0})};function Q(e){var t=function(){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=j()(e);if(t){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var ee=wp.components,te=ee.Button,ne=ee.Popover,re=ee.IconButton,ae=wp.element,ce=ae.Fragment,oe=ae.createRef,le=ae.Component,se=wp.i18n.__,ie=function(e){b()(n,e);var t=Q(n);function n(e){var r;return u()(this,n),(r=t.call(this,e)).state={open:!1},r.buttonRef=oe(),r}return h()(n,[{key:"render",value:function(){var e=this,t=function(){e.setState({open:!e.state.open})};return Object(o.createElement)(ce,null,Object(o.createElement)("div",{className:"components-base-control"},Object(o.createElement)("div",{className:"wssffg-button-icon-control__wrapper components-base-control__field"},Object(o.createElement)(te,{isTertiary:!0,className:"".concat("apc-icon-btn"),onClick:t},Object(o.createElement)("span",{className:"components-base-control__label"},this.props.label)),Object(o.createElement)(re,{className:"".concat("apc-icon-btn"," components-button is-button is-default"),icon:"edit",label:se("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(o.createElement)(ne,{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}(le),pe=(wp.i18n.__,wp.components.SelectControl),fe=wp.element.useState,ue=function(e){var t=e.label,n=e.schemaName,r=e.initial,a=e.data,c=e.setAttributes,l=fe(r),s=R()(l,2),i=s[0],p=s[1],f=function(e,t){c(H()({},e,t))};return Object(o.createElement)(pe,{label:t,value:i,onChange:function(e){p(e),f.bind(null,n,e)()},options:a})},me=(wp.blockEditor&&wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor).ColorPalette,he=function(e){var t=e.schemaName,n=e.setAttributes,r=e.attributes,a=function(e,t){n(H()({},e,t))};return Object(o.createElement)(me,{value:r[t],onChange:function(e){a.bind(null,t,e)()}})},de=wp.i18n.__,be=[{value:"solid",label:de("solid","wp-simple-spreadsheet-fetcher-for-google")},{value:"double",label:de("double","wp-simple-spreadsheet-fetcher-for-google")},{value:"dotted",label:de("dotted","wp-simple-spreadsheet-fetcher-for-google")},{value:"dashed",label:de("dashed","wp-simple-spreadsheet-fetcher-for-google")},{value:"groove",label:de("groove","wp-simple-spreadsheet-fetcher-for-google")},{value:"ridge",label:de("ridge","wp-simple-spreadsheet-fetcher-for-google")},{value:"inset",label:de("inset","wp-simple-spreadsheet-fetcher-for-google")},{value:"outset",label:de("outset","wp-simple-spreadsheet-fetcher-for-google")},{value:"none",label:de("none","wp-simple-spreadsheet-fetcher-for-google")},{value:"hidden",label:de("hidden","wp-simple-spreadsheet-fetcher-for-google")}],ge=wp.i18n.__,ve=wp.element.Fragment,Oe=wp.components.BaseControl,je=function(e){var t=e.borderStyle,n=e.borderColor,r=Object(o.createElement)(ve,null,Object(o.createElement)(Oe,null,Object(o.createElement)(ue,c()({label:ge("Style","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:be},e))),Object(o.createElement)(Oe,null,Object(o.createElement)("span",{className:"components-base-control__label"},ge("Color","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(he,c()({schemaName:n},e))));return Object(o.createElement)(ie,{label:ge("Border","wp-simple-spreadsheet-fetcher-for-google"),renderComp:r,setAttributes:e.setAttributes})},we=wp.i18n.__,Ee=[{value:"100",label:we("100","wp-simple-spreadsheet-fetcher-for-google")},{value:"200",label:we("200","wp-simple-spreadsheet-fetcher-for-google")},{value:"300",label:we("300","wp-simple-spreadsheet-fetcher-for-google")},{value:"400",label:we("400","wp-simple-spreadsheet-fetcher-for-google")},{value:"500",label:we("500","wp-simple-spreadsheet-fetcher-for-google")},{value:"600",label:we("600","wp-simple-spreadsheet-fetcher-for-google")},{value:"700",label:we("700","wp-simple-spreadsheet-fetcher-for-google")},{value:"800",label:we("800","wp-simple-spreadsheet-fetcher-for-google")},{value:"900",label:we("900","wp-simple-spreadsheet-fetcher-for-google")},{value:"normal",label:we("Normal","wp-simple-spreadsheet-fetcher-for-google")},{value:"bold",label:we("Bold","wp-simple-spreadsheet-fetcher-for-google")}],_e=wp.i18n.__,ye=wp.element.Fragment,Ne=wp.components.BaseControl,Ce=function(e){var t=e.fontWeight,n=e.lineHeight,r=e.letterSpaceUnit,a=e.letterSpace,l=Object(o.createElement)(ye,null,Object(o.createElement)(Ne,null,Object(o.createElement)(ue,c()({label:_e("Weight","wp-simple-spreadsheet-fetcher-for-google"),schemaName:t,initial:e.attributes[t],data:Ee},e))),Object(o.createElement)(Ne,null,Object(o.createElement)(K,c()({label:_e("Line Height","wp-simple-spreadsheet-fetcher-for-google"),schemaName:n,min:1,max:10,step:.1},e))),Object(o.createElement)(Ne,null,Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},_e("Letter Spacing","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(D,c()({schemaName:r,data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(o.createElement)(K,c()({schemaName:a,min:0,max:10,step:.1},e))));return Object(o.createElement)(ie,{label:_e("Typography","wp-simple-spreadsheet-fetcher-for-google"),renderComp:l,setAttributes:e.setAttributes})},xe=wp.i18n.__,He=wp.element.useState,Se=wp.components.Toolbar,Re=function(e){var t=e.schemaName,n=e.setAttributes,r=e.initial,a=He(r),c=R()(a,2),l=c[0],s=c[1],i=function(e,t){n(H()({},e,t))};return Object(o.createElement)(Se,{controls:["left","center","right"].map((function(e){return{icon:"editor-align".concat(e),title:xe("Align ".concat(e),"wp-simple-spreadsheet-fetcher-for-google"),isActive:l===e,onClick:function(){s(e),i.bind(null,t,e)()}}}))})},ze=wp.i18n.__,Fe=wp.components.BaseControl,Me=wp.element.Fragment,Ae=function(e){var t=e.fontUnit,n=e.fontSize,r=e.bgColor,a=e.align;return Object(o.createElement)(Me,null,Object(o.createElement)(Ce,e),Object(o.createElement)(Fe,{className:"wssffg-lower-layer1"},Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},ze("Size","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(D,c()({schemaName:t,initial:e.attributes[t],data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},e))),Object(o.createElement)(K,c()({schemaName:n,min:0,max:50,step:.1},e))),Object(o.createElement)(Fe,{label:ze("Background Color","wp-simple-spreadsheet-fetcher-for-google")},Object(o.createElement)(he,c()({schemaName:r},e))),Object(o.createElement)(Fe,{label:ze("Align","wp-simple-spreadsheet-fetcher-for-google")},Object(o.createElement)(Re,c()({schemaName:a,initial:e.attributes[a]},e))))},ke=wp.i18n.__,Te=wp.components,Be=Te.PanelBody,Ve=Te.BaseControl,Pe=wp.element.Fragment;Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.setting.before","wp2s2fg/fetcher",(function(e,t){return Object(o.createElement)($,t)})),Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher.edit.inspector.style.before","wp2s2fg/fetcher",(function(e,t){return Object(o.createElement)(Pe,null,Object(o.createElement)(Be,{title:ke("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(Ve,null,Object(o.createElement)("span",{className:"components-base-control__label"},ke("Layout","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(D,c()({schemaName:"borderLayout",data:["table-full","table-horizontal","table-vertical","table-empty"],customClassName:"wssffg-advanced-button-group_align components-toolbar",icon:!0},t))),Object(o.createElement)(je,c()({borderStyle:"borderStyle",borderColor:"borderColor"},t)),Object(o.createElement)(Ve,{className:"wssffg-lower-layer1"},Object(o.createElement)("div",{className:"components-base-control_outer"},Object(o.createElement)("span",{className:"components-base-control__label"},ke("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(D,c()({schemaName:"borderUnit",data:["px","em","rem"],customClassName:"wssffg-advanced-button-group_unit"},t))),Object(o.createElement)(K,c()({schemaName:"borderWidth",min:0,max:10,step:.1},t))),Object(o.createElement)(Ve,null,Object(o.createElement)("span",{className:"components-base-control__label"},ke("Fixed Table Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(A,t))),Object(o.createElement)(Be,{title:ke("Table Header","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(o.createElement)(Ae,c()({fontUnit:"thFontUnit",fontSize:"thFontSize",fontColor:"thFontColor",fontWeight:"thFontWeight",lineHeight:"thLineHeight",letterSpaceUnit:"thLetterSpaceUnit",letterSpace:"thLetterSpace",bgColor:"thBgColor",align:"thAlign"},t))),Object(o.createElement)(Be,{title:ke("Table Body","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!1},Object(o.createElement)(Ae,c()({fontUnit:"tbFontUnit",fontSize:"tbFontSize",fontColor:"tbFontColor",fontWeight:"tbFontWeight",lineHeight:"tbLineHeight",letterSpaceUnit:"tbLetterSpaceUnit",letterSpace:"tbLetterSpace",bgColor:"tbBgColor",align:"tbAlign"},t))))}));var Ie=Object(i.compose)(C())((function(e){var t=e.attributes;return Object(o.createElement)(Pe,null,Object(o.createElement)(s.a,{block:"wp2s2fg/fetcher",attributes:t}))}));(0,wp.blocks.registerBlockType)("wp2s2fg/fetcher",{title:Object(r.__)("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:Ie,save:function(){return null}});var Le=n(14);function Ue(e){var t=function(){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=j()(e);if(t){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var De=function(e){b()(n,e);var t=Ue(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes,c=a.price,l=a.after,s=a.caption,i=this.props.for_,p=["wp2s2fg/fetcher-item"],f=[p];return"edit"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:s,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(o.createElement)(w.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:c,placeholder:Object(r.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:f,allowedBlocks:p,templateLock:"all"}),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:l,placeholder:Object(r.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:s}),Object(o.createElement)(w.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_price",value:c})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText.Content,{tagName:"span",className:"wp2s2fg_fetcher-advanced_number_after",value:l}))):void 0}}]),n}(o.Component),We=function(e){b()(n,e);var t=Ue(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes.caption,c=this.props.for_,l=["wp2s2fg/fetcher-item"],s=[l];return"edit"===c?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:a,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:s,allowedBlocks:l,templateLock:"all"}))):"save"===c?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-simple")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:a})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null))):void 0}}]),n}(o.Component);o.Component;function Ge(e){var t=function(){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=j()(e);if(t){var a=j()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var Xe=function(e){b()(n,e);var t=Ge(n);function n(){return u()(this,n),t.apply(this,arguments)}return h()(n,[{key:"render",value:function(){var e=this.props.props,t=e.setAttributes,n=e.className,a=e.attributes,c=a.price,l=a.after,s=a.caption,i=this.props.for_,p=["wp2s2fg/fetcher-item"],f=[p];return"edit"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",onChange:function(e){return t({caption:e})},value:s,placeholder:Object(r.__)("General Participant","wp-simple-spreadsheet-fetcher-for-google")}),Object(o.createElement)(w.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",onChange:function(e){return t({price:e})},value:c,placeholder:Object(r.__)("Free","wp-simple-spreadsheet-fetcher-for-google")})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks,{template:f,allowedBlocks:p,templateLock:"all"}),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",onChange:function(e){return t({after:e})},value:l,placeholder:Object(r.__)("100","wp-simple-spreadsheet-fetcher-for-google")}))):"save"===i?Object(o.createElement)("div",{className:"".concat(n," wp2s2fg_fetcher-advanced_container wp2s2fg_fetcher-advanced_event-advance")},Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_description"},Object(o.createElement)(w.RichText.Content,{tagName:"h4",className:"wp2s2fg_fetcher-advanced_caption",value:s}),Object(o.createElement)(w.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_price",value:c})),Object(o.createElement)("div",{className:"wp2s2fg_fetcher-advanced_number_container"},Object(o.createElement)(w.InnerBlocks.Content,null),Object(o.createElement)("span",{className:"wp2s2fg_fetcher-advanced_number_line"},"/"),Object(o.createElement)(w.RichText.Content,{tagName:"p",className:"wp2s2fg_fetcher-advanced_number_after",value:l}))):void 0}}]),n}(o.Component);Object(Le.registerBlockType)("wp2s2fg/fetcher-advanced",{title:Object(r.__)("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(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.PanelBody,null,Object(o.createElement)(E.SelectControl,{label:Object(r.__)("Select Layout","wp-simple-spreadsheet-fetcher-for-google"),value:n,options:[{label:Object(r.__)("Event Registration Simple","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-simple"},{label:Object(r.__)("Event Registration Advanced","wp-simple-spreadsheet-fetcher-for-google"),value:"event-registration-advanced"}],onChange:function(e){t({layout:e})}}))),"event-registration-simple"===n&&Object(o.createElement)(We,{props:e,for_:"edit"}),"event-registration-advanced"===n&&Object(o.createElement)(De,{props:e,for_:"edit"}))},save:function(e){var t=e.attributes.layout;return Object(o.createElement)(o.Fragment,null,"event-registration-simple"===t&&Object(o.createElement)(We,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(o.createElement)(De,{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(o.createElement)(o.Fragment,null,"event-registration-simple"===t&&Object(o.createElement)(We,{props:e,for_:"save"}),"event-registration-advanced"===t&&Object(o.createElement)(Xe,{props:e,for_:"save"}))}}]}),Object(Le.registerBlockType)("wp2s2fg/fetcher-item",{title:Object(r.__)("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,a=t.range,c=t.sheetId,l=t.sheetName,i=t.sheetRange;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(E.PanelBody,{title:Object(r.__)("Fetch Data Setting","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},a?Object(o.createElement)(E.TextControl,{label:Object(r.__)("Please set the cell to fetch data in A1 notation. Example : Sheets1!A1","wp-simple-spreadsheet-fetcher-for-google"),value:a,onChange:function(e){return n({range:void 0===e?"none":e})},initialOpen:!0}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(E.TextControl,{label:Object(r.__)("Sheet URL","wp-simple-spreadsheet-fetcher-for-google"),value:c,onChange:function(e){return n({sheetId:void 0===e?"none":e})},initialOpen:!0}),Object(o.createElement)(E.TextControl,{label:Object(r.__)("Sheet Name","wp-simple-spreadsheet-fetcher-for-google"),value:l,onChange:function(e){return n({sheetName:void 0===e?"none":e})},initialOpen:!0}),Object(o.createElement)(E.TextControl,{label:Object(r.__)("Cell","wp-simple-spreadsheet-fetcher-for-google"),value:i,onChange:function(e){return n({sheetRange:void 0===e?"none":e})},initialOpen:!0})))),Object(o.createElement)(s.a,{block:"wp2s2fg/fetcher-item",attributes:t}))},save:function(){return null}});var Ye=n(18),Ze=n.n(Ye);function $e(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 qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){H()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){var t=window.wssffg_rest_url+"api-charts/v1/data-table/"+Ke(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=Qe(t.chartData);e.switchRowColumn&&(n=tt(n));at(n[0])||(n=nt(n));var r=google.visualization.arrayToDataTable(n),a=new google.visualization.DataView(r),c=et(n[0].length);a.setColumns(c);var o={width:ct("chartWidth",600,e),height:ct("chartHeight",400,e),bar:{groupWidth:"75%"},isStacked:!0};e.hideXAxisLabel&&(o=rt(o,{hAxis:{textPosition:"none"}}));e.hideYAxisLabel&&(o=rt(o,{legend:{position:"none"}}));new google.visualization.ColumnChart(document.getElementById("chart_div")).draw(a,o)}))}))},Ke=function(e){if(e){var t=e.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);return null!==t&&(t=t[0].replace(/\/spreadsheets\/d\//,"")),t}},Qe=function(e){return e.map((function(e){return e.map((function(e){return Number(e)?Number(e):e}))}))},et=function(e){return Ze()(Array(e).keys())},tt=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},nt=function(e){return e.map((function(e){return e.unshift(""),e}))},rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{someting:!0};return qe(qe({},e),t)},at=function(e){return void 0===e.find((function(e){return"string"!=typeof e}))},ct=function(e,t,n){return n.hasOwnProperty("attributes")&&n.attributes[e]?n.attributes[e]:n[e]?n[e]:t};var ot=wp.i18n.__,lt=wp.components,st=lt.PanelBody,it=lt.BaseControl,pt=lt.TextControl;Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.setting.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(o.createElement)($,t)})),Object(p.addFilter)("wp-simple-spreadsheet-fetcher-for-google.fetcher-chart.edit.inspector.advanced.before","wp2s2fg/fetcher-chart",(function(e,t){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(w.InspectorControls,null,Object(o.createElement)(o.Fragment,null,Object(o.createElement)(st,{title:ot("General","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Switch Rows / Columns","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(M,c()({schema:"switchRowColumn"},t))),Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Hide X-Axis Label","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(M,c()({schema:"hideXAxisLabel"},t))),Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Hide Data Category Label","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(M,c()({schema:"hideYAxisLabel"},t)))),Object(o.createElement)(st,{title:ot("Size","wp-simple-spreadsheet-fetcher-for-google"),initialOpen:!0},Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Width","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(pt,{value:t.attributes.chartWidth,onChange:function(e){return t.setAttributes({chartWidth:parseInt(e,10)})},type:"number"})),Object(o.createElement)(it,null,Object(o.createElement)("span",{className:"components-base-control__label"},ot("Height","wp-simple-spreadsheet-fetcher-for-google")),Object(o.createElement)(pt,{value:t.attributes.chartHeight,onChange:function(e){return t.setAttributes({chartHeight:parseInt(e,10)})},type:"number"}))))))}));var ft=Object(i.compose)(C())((function(e){return Je(e.attributes),Object(o.createElement)("div",{id:"chart_div"})}));Object(Le.registerBlockType)("wp2s2fg/fetcher-chart",{title:Object(r.__)("Chart","wp-simple-spreadsheet-fetcher-for-google"),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:600},chartHeight:{type:"number",default:400}},edit:ft})}]); -
wp-simple-spreadsheet-fetcher-for-google/trunk/readme.txt
r2341341 r2411558 4 4 Requires at least: 5.3 5 5 Tested up to: 5.4 6 Stable tag: 0.7. 56 Stable tag: 0.7.6 7 7 License: GPLv3 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 36 36 == Changelog == 37 38 = 0.7.6 = 39 - Fix bug, and add validation message. 37 40 38 41 = 0.7.5 = -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/App/RestAPI/sheets/EntryPoint.php
r2310942 r2411558 2 2 namespace Fetcher\App\RestAPI\Sheets; 3 3 use Fetcher\App\Utils\FetcherWarning; 4 use Fetcher\App\Utils\ApiManipulation; 4 5 5 class EntryPoint {6 class EntryPoint extends ApiManipulation { 6 7 7 8 private $service; … … 15 16 const PARAM_CHARTHEIGHT = '/(?P<chartHeight>.+)'; 16 17 17 public function __construct( $service) {18 public function __construct( $service ) { 18 19 $this->service = $service; 19 20 add_action( 'rest_api_init', [ $this, '_rest_api_init' ] ); 21 add_action( 'wp_head', [ $this, 'print_rest_url' ] ); 22 add_action( 'admin_head', [ $this, 'print_rest_url' ] ); 20 23 } 21 24 … … 27 30 'methods' => 'GET', 28 31 'callback' => [ $this, '_callback' ], 32 'permission_callback' => '__return_true', 29 33 ] 30 34 ); 31 35 } 32 36 33 public function _callback( $request) {37 public function _callback( $request ) { 34 38 35 $sheet Id= esc_html($request["sheetId"]);39 $sheetUrl = esc_html($request["sheetId"]); 36 40 $sheetName = esc_html($request["sheetName"]); 37 41 $sheetRange = esc_html($request["sheetRange"]); 38 42 $chartWidth = intval($request["chartWidth"]); 39 43 $chartHeight = intval($request["chartHeight"]); 44 $api_key = $this->get_api_key(); 40 45 $warning = ["data"=>["status"=>404,"message"=>""]]; 41 46 42 if($this->is_str_null($sheetId)){ 43 $warning["data"]["message"] = FetcherWarning::sheet_url(); 47 $result = $this->get_google_sheet_value( $api_key, $sheetUrl, $sheetName, $sheetRange, $this->service, "", 'wp2s2fg/fetcher-chart' ); 48 49 // Return error message. 50 if(!$result['status']){ 51 $warning["data"]["message"] = $result['values']; 44 52 return $warning; 45 53 } 46 54 47 if($this->is_str_null($sheetName) && $this->is_str_null($sheetRange)) { 48 $warning["data"]["message"] = FetcherWarning::sheet_name_range(); 49 return $warning; 50 51 }else{ 52 if($this->is_str_null($sheetName)){ 53 $warning["data"]["message"] = FetcherWarning::sheet_name(); 54 return $warning; 55 56 }else if($this->is_str_null($sheetRange)){ 57 $warning["data"]["message"] = FetcherWarning::sheet_range_fetcher(); 58 return $warning; 59 } 60 $range = esc_html($sheetName) . '!' . esc_html($sheetRange); 61 } 62 63 $response = $this->service->spreadsheets_values->get($sheetId, $range ); 64 $values = $response->getValues(); 65 return rest_ensure_response(["attributes" => ["chartWidth" => $chartWidth, "chartHeight" => $chartHeight],"chartData"=>$values]); 55 return rest_ensure_response( [ "attributes" => [ "chartWidth" => $chartWidth, "chartHeight" => $chartHeight ],"chartData" => $result['values']] ); 66 56 } 67 57 68 public function is_str_null($value){ 69 return $value === "null"; 58 public function print_rest_url(){ 59 60 echo '<script>', 61 'var wssffg_rest_url = "' . esc_url(get_rest_url()) . '";', 62 '</script>'; 70 63 } 71 64 } -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/App/Setup/ApiSettingScreen.php
r2314494 r2411558 7 7 class ApiSettingScreen extends ApiManipulation { 8 8 9 public function __construct() { 9 public function init() { 10 add_action( 'plugins_loaded', array($this,'load_text_domain') ); 11 add_action( 'admin_menu', array( $this, 'add_sub_menu' ) ); 12 add_action( 'admin_enqueue_scripts', array($this,'add_admin_scripts') ); 13 register_deactivation_hook( __FILE__, array( $this, 'deactivation' ) ); 14 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings' ) ); 15 } 10 16 17 public function load_text_domain() { 18 load_plugin_textdomain( 'wp-simple-spreadsheet-fetcher-for-google' ); 19 } 20 21 public function render_set_api_key() { 22 $message = '<span class="success" style="color:#28a745; font-size:1.2rem">' . __( "API Key set!", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</span >'; 23 24 return $this->render_settings_page( $message ); 25 } 26 27 public function render_api_key_not_set() { 28 $message = '<strong class="warn" style="color:#dc3545; font-size:1.2rem">' . __( "You have not entered your API key", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</strong >'; 29 30 return $this->render_settings_page( $message ); 31 } 32 33 public function render_settings_page( $message ) { 34 35 if ( $this->get_api_key() ) { 36 $api_key = $this->get_api_key(); 37 } else { 38 $api_key = ''; 39 } 40 41 $html = '<div class="api-key" >'; 42 $html .= '<h2>' . __( "Setting API key", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>'; 43 $html .= $message; 44 $html .= '<br>'; 45 $html .= '<br>'; 46 $html .= '<form id="wp2s2fg_api_spreadsheetId_form" action="' . htmlspecialchars( $_SERVER["PHP_SELF"] . '?' . $_SERVER["QUERY_STRING"] ) . '" method="POST" >'; 47 $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 />'; 48 $html .= '<br>'; 49 $html .= '<input type="submit" value="' . __( "Set Configuration Info", 'wp-simple-spreadsheet-fetcher-for-google' ) .'" />'; 50 $html .= wp_nonce_field( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' ); 51 $html .= '</form >'; 52 $html .= '<br>'; 53 $html .= '<h2>' . __( "How to use", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>'; 54 $html .= '<ul>'; 55 $html .= '<li>' . __( "1. Create the API key . For more detail . Please refer to ", 'wp-simple-spreadsheet-fetcher-for-google' ) . '<a href="https://developers.google.com/sheets/api/quickstart/js#step_1_turn_on_the" target="_blank">' . __( "https://developers.google.com/sheets/api/quickstart/js#step_1_turn_on_the", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</a></li>'; 56 $html .= '<li>' . __( "2. Save your API key from the form above.", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</li>'; 57 $html .= '<li>' . __( "3. Turn on Get shareable link . For more detail . Please refer to ", 'wp-simple-spreadsheet-fetcher-for-google' ) . '<a href="https://support.google.com/drive/answer/2494822#link_sharing" target="_blank">' . __( "https://support.google.com/drive/answer/2494822#link_sharing", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</a></li>'; 58 $html .= '<li>' . __( "4. Choose blocks at \"WP Simple Spreadsheet Fetcher for Google\" category , use side panel to indicate the cell to fetch data.", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</li>'; 59 $html .= '</ul>'; 60 $html .= '<h2>' . __( "Tutorial Video", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>'; 61 $html .= '<iframe width="560" height="315" src="https://www.youtube.com/embed/VYMFFMyRK3I" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'; 62 $html .= '</div>'; 63 return $html; 64 } 65 66 public function add_sub_menu() { 67 $custom_page = add_submenu_page( 68 '/plugins.php', 69 __( 'WP Simple Spreadsheet Fetcher for Google', 'wp-simple-spreadsheet-fetcher-for-google' ), 70 __( 'WP Simple Spreadsheet Fetcher for Google', 'wp-simple-spreadsheet-fetcher-for-google' ), 71 'edit_others_posts', 72 'wsgsf_settings', 73 array( $this, 'render_settings' ) 74 ); 75 } 76 77 public function render_settings() { 78 79 if ( ! empty( $_POST['api_key'] ) && check_admin_referer( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' ) ) { 80 $this->set_api_key( sanitize_text_field( $_POST['api_key'] ) ); 81 } 82 83 if ( ! $this->get_api_key()) { 84 echo $this->render_api_key_not_set(); 85 }else{ 86 echo $this->render_set_api_key(); 87 } 88 } 89 90 public function add_admin_scripts($hook_suffix) { 91 92 if ( 'plugins_page_wsgsf_settings' === $hook_suffix ) { 93 wp_enqueue_style( 'admin_style', plugins_url( '/css/admin.css',__FILE__ ) ); 94 } 95 } 96 97 public function add_settings( $links ) { 98 $url = admin_url( 'admin.php?page=wsgsf_settings' ); 99 $url = '<a href="' . esc_url( $url ) . '">' . __( 'Settings' ) . '</a>'; 100 array_unshift( $links, $url ); 101 return $links; 102 } 103 104 public function deactivation() { 105 $this->delete_api_key(); 106 $this->delete_spread_sheet_id(); 107 } 11 108 } 12 13 public function init() {14 add_action( 'plugins_loaded', array($this,'load_text_domain') );15 add_action( 'admin_menu', array( $this, 'add_sub_menu' ) );16 add_action( 'admin_enqueue_scripts', array($this,'add_admin_scripts') );17 register_deactivation_hook( __FILE__, array( $this, 'deactivation' ) );18 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings' ) );19 }20 21 public function load_text_domain() {22 load_plugin_textdomain( 'wp-simple-spreadsheet-fetcher-for-google' );23 }24 25 public function render_set_api_key() {26 $message = '<span class="success" style="color:#28a745; font-size:1.2rem">' . __( "API Key set!", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</span >';27 28 return $this->render_settings_page( $message );29 }30 31 public function render_api_key_not_set() {32 $message = '<strong class="warn" style="color:#dc3545; font-size:1.2rem">' . __( "You have not entered your API key", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</strong >';33 34 return $this->render_settings_page( $message );35 }36 37 public function render_settings_page( $message ) {38 39 if ( $this->get_api_key() ) {40 $api_key = $this->get_api_key();41 } else {42 $api_key = '';43 }44 45 $html = '<div class="api-key" >';46 $html .= '<h2>' . __( "Setting API key", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>';47 $html .= $message;48 $html .= '<br>';49 $html .= '<br>';50 $html .= '<form id="wp2s2fg_api_spreadsheetId_form" action="' . htmlspecialchars( $_SERVER["PHP_SELF"] . '?' . $_SERVER["QUERY_STRING"] ) . '" method="POST" >';51 $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 />';52 $html .= '<br>';53 $html .= '<input type="submit" value="' . __( "Set Configuration Info", 'wp-simple-spreadsheet-fetcher-for-google' ) .'" />';54 $html .= wp_nonce_field( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' );55 $html .= '</form >';56 $html .= '<br>';57 $html .= '<h2>' . __( "How to use", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>';58 $html .= '<ul>';59 $html .= '<li>' . __( "1. Create the API key . For more detail . Please refer to ", 'wp-simple-spreadsheet-fetcher-for-google' ) . '<a href="https://developers.google.com/sheets/api/quickstart/js#step_1_turn_on_the" target="_blank">' . __( "https://developers.google.com/sheets/api/quickstart/js#step_1_turn_on_the", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</a></li>';60 $html .= '<li>' . __( "2. Save your API key from the form above.", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</li>';61 $html .= '<li>' . __( "3. Turn on Get shareable link . For more detail . Please refer to ", 'wp-simple-spreadsheet-fetcher-for-google' ) . '<a href="https://support.google.com/drive/answer/2494822#link_sharing" target="_blank">' . __( "https://support.google.com/drive/answer/2494822#link_sharing", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</a></li>';62 $html .= '<li>' . __( "4. Choose blocks at \"WP Simple Spreadsheet Fetcher for Google\" category , use side panel to indicate the cell to fetch data.", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</li>';63 $html .= '</ul>';64 $html .= '<h2>' . __( "Tutorial Video", 'wp-simple-spreadsheet-fetcher-for-google' ) . '</h2>';65 $html .= '<iframe width="560" height="315" src="https://www.youtube.com/embed/VYMFFMyRK3I" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';66 $html .= '</div>';67 return $html;68 }69 70 public function add_sub_menu() {71 $custom_page = add_submenu_page(72 '/plugins.php',73 __( 'WP Simple Spreadsheet Fetcher for Google', 'wp-simple-spreadsheet-fetcher-for-google' ),74 __( 'WP Simple Spreadsheet Fetcher for Google', 'wp-simple-spreadsheet-fetcher-for-google' ),75 'edit_others_posts',76 'wsgsf_settings',77 array( $this, 'render_settings' )78 );79 }80 81 public function render_settings() {82 83 if ( ! empty( $_POST['api_key'] ) && check_admin_referer( wp_create_nonce( __FILE__ ), 'wp-simple-spreadsheet-fetcher-for-google-nonce' ) ) {84 $this->set_api_key( sanitize_text_field( $_POST['api_key'] ) );85 }86 87 if ( ! $this->get_api_key()) {88 echo $this->render_api_key_not_set();89 }else{90 echo $this->render_set_api_key();91 }92 }93 94 public function add_admin_scripts($hook_suffix) {95 96 if ( 'plugins_page_wsgsf_settings' === $hook_suffix ) {97 wp_enqueue_style( 'admin_style', plugins_url( '/css/admin.css',__FILE__ ) );98 }99 }100 101 public function add_settings( $links ) {102 $url = admin_url( 'admin.php?page=wsgsf_settings' );103 $url = '<a href="' . esc_url( $url ) . '">' . __( 'Settings' ) . '</a>';104 array_unshift( $links, $url );105 return $links;106 }107 108 public function deactivation() {109 $this->delete_api_key();110 $this->delete_spread_sheet_id();111 }112 } -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/App/Utils/ApiManipulation.php
r2310942 r2411558 2 2 3 3 namespace Fetcher\App\Utils; 4 use Fetcher\App\Utils\FetcherWarning; 4 5 5 6 class ApiManipulation{ 6 function get_api_key() 7 { 7 8 function get_google_sheet_value($api_key, $sheetUrl, $sheetName, $sheetRange, $service, $range="", $block=""){ 9 10 // If SheetId is url, get sheetId from url. 11 if(strpos($sheetUrl,'http') !== false){ 12 //Get SheetId from URL. 13 $sheetId = $this->get_sheet_id_from_url($sheetUrl); 14 } else { 15 $sheetId = $sheetUrl; 16 } 17 18 $message = $this->is_all_api_argument_is_correct($api_key, $sheetId, $sheetName, $sheetRange, $service, $range, $block); 19 if ("success" === $message){ 20 // Get selected Sheet's value. 21 $range = esc_html($sheetName) . '!' . esc_html($sheetRange); 22 $response = $service->spreadsheets_values->get( !empty($sheetId_deprecated) ? $sheetId_deprecated : $sheetId, $range ); 23 $values = $response->getValues(); 24 $status = true; 25 } else { 26 $values = $message; 27 $status = false; 28 } 29 30 return ["status" => $status, "values" => $values]; 31 } 32 33 function is_all_api_argument_is_correct($api_key, $sheetId, $sheetName, $sheetRange, $service, $range="", $block=""){ 34 35 // Check API Key is set. 36 if ( !$api_key ) { 37 return FetcherWarning::api_key( $api_key ); 38 } 39 40 // Check SheetId is set. 41 if( !$sheetId || $this->is_str_null( $sheetId ) ){ 42 if ( ! $sheetId_deprecated = sanitize_text_field($this->get_spread_sheet_id()) ) { 43 return FetcherWarning::sheet_url(); 44 } 45 } 46 47 // Check SheetName and SheetRange are set. 48 if( !$sheetName && !$sheetRange || $this->is_str_null( $sheetName ) && $this->is_str_null( $sheetRange ) ) { 49 if ( ! $range ) { 50 return FetcherWarning::sheet_name_range(); 51 } 52 } 53 54 // Check SheetName is set. 55 if( !$sheetName || $this->is_str_null( $sheetName ) ){ 56 return FetcherWarning::sheet_name(); 57 } 58 59 // Check SheetRange is set. 60 if( !$sheetRange || $this->is_str_null( $sheetRange ) ){ 61 if($block === 'wp2s2fg/fetcher'){ 62 return FetcherWarning::sheet_range_fetcher(); 63 64 }elseif($block === 'wp2s2fg/fetcher-item'){ 65 return FetcherWarning::sheet_cell_fetcher_item(); 66 } 67 } 68 69 // Get All Sheets in the file. 70 $response = $service->spreadsheets->get(!empty($sheetId_deprecated) ? $sheetId_deprecated : $sheetId); 71 $all_sheets = $response->getSheets(); 72 73 // Check Sheet Name is existed. 74 if (!$this->is_sheet_name_exist($all_sheets, $sheetName) ) { 75 // Add Warning 76 return FetcherWarning::sheet_name_warning($sheetName); 77 } 78 79 //Check Sheet Range is correct 80 if(!$this->is_sheet_range_correct($sheetRange)){ 81 return FetcherWarning::sheet_range_is_incorrect(); 82 } 83 84 return "success"; 85 } 86 87 function get_sheet_id_from_url($sheet_url){ 88 $sheetId = preg_replace('/https\:\/\/docs\.google\.com\/spreadsheets\/d\//', '', esc_url($sheet_url)); 89 $sheetId = preg_replace('/\/.+$/', '', $sheetId); 90 return $sheetId; 91 } 92 93 function get_api_key(){ 8 94 $api_key = esc_html(get_option( 'wp2s2fg-api-key' )); 9 95 if ( $api_key ) { … … 11 97 } 12 98 } 13 99 14 100 function get_spread_sheet_id() { 15 101 $spread_sheet_id = esc_html(get_option( 'wp2s2fg-spread-sheet-id' )); … … 18 104 } 19 105 } 20 21 function set_api_key($api_key) 22 { 106 107 function set_api_key($api_key){ 23 108 update_option( 'wp2s2fg-api-key', sanitize_text_field( $api_key ) ); 24 109 } 25 110 26 111 function delete_api_key() { 27 112 delete_option( 'wp2s2fg-api-key' ); 28 113 } 29 114 30 115 function delete_spread_sheet_id() { 31 116 delete_option( 'wp2s2fg-spread-sheet-id' ); 32 117 } 118 119 function is_sheet_name_exist($sheetsList, $sheetName) { 120 foreach($sheetsList as $sheet) { 121 if($sheet->properties->title === $sheetName) { 122 return true; 123 } 124 } 125 return false; 126 } 127 128 function is_sheet_range_correct($sheetRange){ 129 130 preg_match('/^[a-zA-Z][0-9]+$/', $sheetRange, $frontMatch); 131 preg_match('/^[a-zA-Z][0-9]+:[a-zA-Z][0-9]+$/', $sheetRange, $allMatch); 132 133 if($frontMatch || $allMatch){ 134 return true; 135 }else{ 136 return false; 137 } 138 } 139 140 public function is_str_null($value){ 141 return $value === "null"; 142 } 33 143 } 34 144 -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/App/Utils/FetcherWarning.php
r2314572 r2411558 6 6 7 7 public static function api_key($api_key){ 8 9 $url = admin_url( 'admin.php?page=wsgsf_settings' ); 10 $url = '<a href="' . esc_url( $url ) . '">' . __( 'settings.' ) . '</a>'; 11 return __( 'API-KEY is not set Please set it at the ', 'wp-simple-spreadsheet-fetcher-for-google' ) . $url; 8 return __( 'API-KEY is not set Please set it from the admin. [ Plugins ] > [ WP Simple Spreadsheet Fetcher for Google ] > [ Setting API key ]', 'wp-simple-spreadsheet-fetcher-for-google' ); 12 9 } 13 10 … … 31 28 return __( 'Cell is not set. Please set it from the sidebar. Example : A1', 'wp-simple-spreadsheet-fetcher-for-google' ); 32 29 } 30 31 public static function sheet_name_warning( $sheet_name ){ 32 return __( 'Sheet Name: ','wp-simple-spreadsheet-fetcher-for-google' ) . esc_html($sheet_name) . __( ' is not existed.','wp-simple-spreadsheet-fetcher-for-google' ); 33 } 34 35 public static function sheet_range_is_incorrect(){ 36 return __( 'Sheet Range is invalid.','wp-simple-spreadsheet-fetcher-for-google' ); 37 } 33 38 } -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/assets/css/editor.css
r2310942 r2411558 36 36 .wssffg-advanced-button-group_unit .components-button { 37 37 padding: 0.4em; 38 color: # abb8c3;38 color: #1e1e1e; 39 39 text-decoration: none; 40 40 } 41 41 .wssffg-advanced-button-group_unit .components-button.is-pressed, 42 42 .wssffg-advanced-button-group_align .components-button.is-pressed { 43 color: # 333;43 color: #ffffff; 44 44 text-decoration: underline; 45 } 46 .wssffg-advanced-button-group_align .components-button { 47 padding-left: 13px; 48 padding-right: 13px; 45 49 } 46 50 .wssffg-advanced-popover-control .components-popover__content { … … 84 88 box-shadow: inset 0 -3px #0085ba !important; 85 89 } 90 .wssffg-sidebar-tab-panel .components-toolbar { 91 margin: 10px; 92 } 86 93 /*Backward Comapitbility under 5.4*/ 87 94 .components-toolbar__control.components-button:not(:disabled).is-pressed > svg { -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/blocks/fetcher-chart/drawCharts.js
r2310942 r2411558 1 1 let props = ""; 2 2 export const drawCharts = (props) => { 3 4 3 let url = 5 "/wp-json/api-charts/v1/data-table/" +4 window.wssffg_rest_url + "api-charts/v1/data-table/" + 6 5 sanitizeSheetId(props.sheetId) + 7 6 "/" + … … 19 18 }) 20 19 .then(function (jsonData) { 20 21 21 google.charts.load("current", { packages: ["corechart"] }); 22 22 google.charts.setOnLoadCallback(drawChart); … … 48 48 view.setColumns(columnNum); 49 49 50 console.log(props);51 50 //Set the property 52 51 let options = { … … 85 84 86 85 export const sanitizeSheetId = (sheetUrl) => { 86 if ( !sheetUrl ) { 87 return 88 }; 87 89 const regex = /\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/; 88 90 let sheetId = sheetUrl.match(regex); … … 132 134 export const setValidValue = (schema, defaultValue, props) => { 133 135 if (props.hasOwnProperty('attributes') && props.attributes[schema]) { 134 console.log("------1--------");135 console.log(props.attributes[schema]);136 136 return props.attributes[schema]; 137 137 } else if (props[schema]) { 138 console.log("------2--------");139 console.log(props[schema]);140 138 return props[schema]; 141 139 } else { 142 console.log("------3--------");143 console.log(props);144 console.log(props[schema]);145 console.log(defaultValue);146 140 return defaultValue; 147 141 } -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/blocks/fetcher-chart/edit.js
r2310942 r2411558 21 21 "wp2s2fg/fetcher-chart", 22 22 (empty, props) => { 23 console.log(props);24 23 return ( 25 24 <Fragment> -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/blocks/fetcher-chart/index.js
r2314572 r2411558 46 46 chartWidth: { 47 47 type: "number", 48 default: null,48 default: 600, 49 49 }, 50 50 chartHeight: { 51 51 type: "number", 52 default: null,52 default: 400, 53 53 } 54 54 }, -
wp-simple-spreadsheet-fetcher-for-google/trunk/src/blocks/fetcher/table/RenderTable.php
r2310942 r2411558 4 4 require(PLUGIN_ROOT_DIR .'vendor/autoload.php'); 5 5 use Fetcher\App\Utils\ApiManipulation; 6 use Fetcher\App\Utils\FetcherWarning;7 6 use Fetcher\blocks\fetcher\table\TableDesign; 8 9 //レンダーテーブルは関数で書く。他のclassは関数内でインスタンス化して使う。10 //他のclassは普通に読み込む。11 7 12 8 class RenderTable extends ApiManipulation { 13 9 14 10 use TableDesign; 15 16 public function get_selected_value( $attributes, $service, $api_key ) {17 11 12 public function get_attributes_value( $key, $array, $default = "" ) { 13 return array_key_exists( $key, $array ) ? $array[$key] : $default; 14 } 15 16 public function get_selected_value($attributes, $service, $api_key) { 18 17 $block = $attributes['block']; 18 $className = $attributes['className']; 19 19 $sheetId = $attributes['sheetId']; 20 20 $sheetName = $attributes['sheetName']; … … 22 22 //This attributes is deprecated since v0.2.8. 23 23 $range = $attributes['range']; 24 $className = $attributes['className'];25 24 26 if ( !$api_key ) { 27 return FetcherWarning::api_key($api_key); 28 } 29 30 if(!$sheetId){ 31 if ( ! $sheetId_deprecated = sanitize_text_field($this->get_spread_sheet_id()) ) { 32 return FetcherWarning::sheet_url(); 33 } 34 }else{ 35 $sheetId = preg_replace('/https\:\/\/docs\.google\.com\/spreadsheets\/d\//', '', esc_url($sheetId)); 36 $sheetId = preg_replace('/\/.+$/', '', $sheetId); 37 } 38 39 if(!$sheetName && !$sheetRange) { 40 if ( ! $range ) { 41 return FetcherWarning::sheet_name_range(); 42 } 43 }else{ 44 45 if(!$sheetName){ 46 return FetcherWarning::sheet_name(); 47 48 }else if(!$sheetRange){ 49 50 if($block === 'wp2s2fg/fetcher'){ 51 return FetcherWarning::sheet_range_fetcher(); 52 53 }elseif($block === 'wp2s2fg/fetcher-item'){ 54 return FetcherWarning::sheet_cell_fetcher_item(); 55 56 } 57 } 58 $range = esc_html($sheetName) . '!' . esc_html($sheetRange); 25 $result = $this->get_google_sheet_value($api_key, $sheetId, $sheetName, $sheetRange, $service, $range, $block); 26 $values = ''; 27 if($result['status']){ 28 $values = $result['values']; 29 } else { 30 // return Error message. 31 return $result["values"]; 59 32 } 60 33 61 $response = $service->spreadsheets_values->get( !empty($sheetId_deprecated) ? $sheetId_deprecated : $sheetId, $range ); 62 $values = $response->getValues(); 63 64 $hasFixedTable = $attributes['hasFixedTable']; 34 $hasFixedTable = $this->get_attributes_value( 'hasFixedTable', $attributes, false ); 65 35 66 36 $border_style = array( 67 'borderStyle' =>$attributes['borderStyle'],68 'borderColor' =>$attributes['borderColor'],69 'brderWidth' =>$attributes['borderWidth'],70 'borderUnit' =>$attributes['borderUnit'],71 'borderLayout' =>$attributes['borderLayout'],37 'borderStyle' => $this->get_attributes_value( 'borderStyle', $attributes, 'solid' ), 38 'borderColor' => $this->get_attributes_value( 'borderColor', $attributes, '#ccc' ), 39 'brderWidth' => $this->get_attributes_value( 'borderWidth', $attributes, 1 ), 40 'borderUnit' => $this->get_attributes_value( 'borderUnit', $attributes, 'px' ), 41 'borderLayout' => $this->get_attributes_value( 'borderLayout', $attributes, 'table-full' ), 72 42 ); 73 43 74 44 $th_style = array( 75 'fontSize' => $attributes['thFontSize'],76 'fontColor' => $attributes['thFontColor'],77 'fontUnit' => $attributes['thFontUnit'],78 'lineHeight' =>$attributes['thLineHeight'],79 'letterSpace' =>$attributes['thLetterSpace'],80 'thLetterSpaceUnit' =>$attributes['thLetterSpaceUnit'],81 'fontWeight' =>$attributes['thFontWeight'],82 'bgColor' =>$attributes['thBgColor'],83 'align' =>$attributes['thAlign'],45 'fontSize' => $this->get_attributes_value( 'thFontSize', $attributes, 16 ), 46 'fontColor' => $this->get_attributes_value( 'thFontColor', $attributes, 'inherit' ), 47 'fontUnit' => $this->get_attributes_value( 'thFontUnit', $attributes, 'px' ), 48 'lineHeight' => $this->get_attributes_value( 'thLineHeight', $attributes, 1 ), 49 'letterSpace' => $this->get_attributes_value( 'thLetterSpace', $attributes, 1 ), 50 'thLetterSpaceUnit' => $this->get_attributes_value( 'thLetterSpaceUnit', $attributes, 'px' ), 51 'fontWeight' => $this->get_attributes_value( 'thFontWeight', $attributes, 'normal' ), 52 'bgColor' => $this->get_attributes_value( 'thBgColor', $attributes, '#fff' ), 53 'align' => $this->get_attributes_value( 'thBgColor', $attributes, '#left' ), 84 54 ); 85 55 86 56 $tb_style = array( 87 'fontSize' => $attributes['tbFontSize'],88 'fontColor' => $attributes['tbFontColor'],89 'fontUnit' => $attributes['tbFontUnit'],90 'lineHeight' =>$attributes['tbLineHeight'],91 'letterSpace' =>$attributes['tbLetterSpace'],92 'thLetterSpaceUnit' =>$attributes['tbLetterSpaceUnit'],93 'fontWeight' =>$attributes['tbFontWeight'],94 'bgColor' =>$attributes['tbBgColor'],95 'align' =>$attributes['tbAlign'],57 'fontSize' => $this->get_attributes_value( 'tbFontSize', $attributes, 16 ), 58 'fontColor' => $this->get_attributes_value( 'tbFontColor', $attributes, 'inherit' ), 59 'fontUnit' => $this->get_attributes_value( 'tbFontUnit', $attributes, 'px' ), 60 'lineHeight' => $this->get_attributes_value( 'tbLineHeight', $attributes, 1 ), 61 'letterSpace' => $this->get_attributes_value( 'tbLetterSpace', $attributes, 1 ), 62 'thLetterSpaceUnit' => $this->get_attributes_value( 'tbLetterSpaceUnit', $attributes, 'px' ), 63 'fontWeight' => $this->get_attributes_value( 'tbFontWeight', $attributes, 'normal' ), 64 'bgColor' => $this->get_attributes_value( 'tbBgColor', $attributes, '#fff' ), 65 'align' => $this->get_attributes_value( 'tbAlign', $attributes, 'left' ), 96 66 ); 97 67 … … 100 70 $data .= __( 'No data found.', 'wp-simple-spreadsheet-fetcher-for-google' ); 101 71 } else { 102 72 103 73 if($block === 'wp2s2fg/fetcher') { 104 74 105 75 $lastIndex = count($values) -1; 106 76 107 77 foreach ( $values as $row ) { 108 78 109 79 $data_h = '<td class="' . $this->createClass("td") . " " . $this->hasFixedTableClass($hasFixedTable) . '" style="' . $this->create_inline_border_style($border_style) . '">'; 110 80 $data_f = '</td>'; 111 81 $data_container_h = ''; 112 82 $data_container_f = ''; 113 83 114 84 if(count($values) >= 3){ 115 85 … … 135 105 $data_h = $result["data_h"]; 136 106 $data_f = $result["data_f"]; 137 } 107 } 138 108 }elseif(count($values) >= 2){ 139 109 … … 157 127 } 158 128 } 159 129 160 130 $data .= $data_container_h .'<tr class="' . $this->createClass("tr") .'">'; 161 131 for ( $i = 0; $i < count( $row ); $i ++ ) { … … 163 133 } 164 134 $data .= $data_container_f . '</tr>'; 165 135 166 136 } 167 137 168 138 $div_h = '<div class="wp2s2fg_fetcher_table_container ' . esc_attr($className) .'">'; 169 139 $div_f = '</div>'; … … 171 141 $table_f = '</table>'; 172 142 $data = $div_h . $table_h . $data . $table_f . $div_f; 173 143 174 144 }elseif($block === 'wp2s2fg/fetcher-item'){ 175 145 $data = '<p class="wp2s2fg_fetcher-advanced_number">' . esc_html( $values[0][0] ) . '</p>'; -
wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/autoload.php
r2341341 r2411558 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 207840328bf380ffc1efa061afad9507::getLoader();7 return ComposerAutoloaderInitaedc2a8037ca0d2139f3d7e24a5c2561::getLoader(); -
wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/composer/ClassLoader.php
r2224332 r2411558 38 38 * @author Fabien Potencier <[email protected]> 39 39 * @author Jordi Boggiano <[email protected]> 40 * @see http ://www.php-fig.org/psr/psr-0/41 * @see http ://www.php-fig.org/psr/psr-4/40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 42 42 */ 43 43 class ClassLoader … … 61 61 { 62 62 if (!empty($this->prefixesPsr0)) { 63 return call_user_func_array('array_merge', $this->prefixesPsr0);63 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 64 64 } 65 65 -
wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/composer/autoload_classmap.php
r2224332 r2411558 7 7 8 8 return array( 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 9 10 'Google_Service_Exception' => $vendorDir . '/google/apiclient/src/Google/Service/Exception.php', 10 11 'Google_Service_Resource' => $vendorDir . '/google/apiclient/src/Google/Service/Resource.php', -
wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/composer/autoload_real.php
r2341341 r2411558 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 207840328bf380ffc1efa061afad95075 class ComposerAutoloaderInitaedc2a8037ca0d2139f3d7e24a5c2561 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit207840328bf380ffc1efa061afad9507', 'loadClassLoader'), true, true); 25 require __DIR__ . '/platform_check.php'; 26 27 spl_autoload_register(array('ComposerAutoloaderInitaedc2a8037ca0d2139f3d7e24a5c2561', 'loadClassLoader'), true, true); 26 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 207840328bf380ffc1efa061afad9507', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitaedc2a8037ca0d2139f3d7e24a5c2561', 'loadClassLoader')); 28 30 29 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 30 32 if ($useStaticLoader) { 31 require _once__DIR__ . '/autoload_static.php';33 require __DIR__ . '/autoload_static.php'; 32 34 33 call_user_func(\Composer\Autoload\ComposerStaticInit 207840328bf380ffc1efa061afad9507::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::getInitializer($loader)); 34 36 } else { 35 37 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 54 53 55 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 207840328bf380ffc1efa061afad9507::$files;56 $includeFiles = Composer\Autoload\ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$files; 55 57 } else { 56 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 59 } 58 60 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 207840328bf380ffc1efa061afad9507($fileIdentifier, $file);61 composerRequireaedc2a8037ca0d2139f3d7e24a5c2561($fileIdentifier, $file); 60 62 } 61 63 … … 64 66 } 65 67 66 function composerRequire 207840328bf380ffc1efa061afad9507($fileIdentifier, $file)68 function composerRequireaedc2a8037ca0d2139f3d7e24a5c2561($fileIdentifier, $file) 67 69 { 68 70 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/composer/autoload_static.php
r2341341 r2411558 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 207840328bf380ffc1efa061afad95077 class ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561 8 8 { 9 9 public static $files = array ( … … 106 106 107 107 public static $classMap = array ( 108 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 108 109 'Google_Service_Exception' => __DIR__ . '/..' . '/google/apiclient/src/Google/Service/Exception.php', 109 110 'Google_Service_Resource' => __DIR__ . '/..' . '/google/apiclient/src/Google/Service/Resource.php', … … 113 114 { 114 115 return \Closure::bind(function () use ($loader) { 115 $loader->prefixLengthsPsr4 = ComposerStaticInit 207840328bf380ffc1efa061afad9507::$prefixLengthsPsr4;116 $loader->prefixDirsPsr4 = ComposerStaticInit 207840328bf380ffc1efa061afad9507::$prefixDirsPsr4;117 $loader->prefixesPsr0 = ComposerStaticInit 207840328bf380ffc1efa061afad9507::$prefixesPsr0;118 $loader->classMap = ComposerStaticInit 207840328bf380ffc1efa061afad9507::$classMap;116 $loader->prefixLengthsPsr4 = ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$prefixLengthsPsr4; 117 $loader->prefixDirsPsr4 = ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$prefixDirsPsr4; 118 $loader->prefixesPsr0 = ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$prefixesPsr0; 119 $loader->classMap = ComposerStaticInitaedc2a8037ca0d2139f3d7e24a5c2561::$classMap; 119 120 120 121 }, null, ClassLoader::class); -
wp-simple-spreadsheet-fetcher-for-google/trunk/vendor/composer/installed.json
r2224332 r2411558 1 [ 2 { 3 "name": "firebase/php-jwt", 4 "version": "v5.0.0", 5 "version_normalized": "5.0.0.0", 6 "source": { 7 "type": "git", 8 "url": "https://github.com/firebase/php-jwt.git", 9 "reference": "9984a4d3a32ae7673d6971ea00bae9d0a1abba0e" 10 }, 11 "dist": { 12 "type": "zip", 13 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/9984a4d3a32ae7673d6971ea00bae9d0a1abba0e", 14 "reference": "9984a4d3a32ae7673d6971ea00bae9d0a1abba0e", 15 "shasum": "" 16 }, 17 "require": { 18 "php": ">=5.3.0" 19 }, 20 "require-dev": { 21 "phpunit/phpunit": " 4.8.35" 22 }, 23 "time": "2017-06-27T22:17:23+00:00", 24 "type": "library", 25 "installation-source": "dist", 26 "autoload": { 27 "psr-4": { 28 "Firebase\\JWT\\": "src" 29 } 30 }, 31 "notification-url": "https://packagist.org/downloads/", 32 "license": [ 33 "BSD-3-Clause" 34 ], 35 "authors": [ 36 { 37 "name": "Neuman Vong", 38 "role": "Developer", 39 "email": "[email protected]" 40 }, 41 { 42 "name": "Anant Narayanan", 43 "role": "Developer", 44 "email": "[email protected]" 45 } 46 ], 47 "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", 48 "homepage": "https://github.com/firebase/php-jwt" 49 }, 50 { 51 "name": "google/apiclient", 52 "version": "v2.2.3", 53 "version_normalized": "2.2.3.0", 54 "source": { 55 "type": "git", 56 "url": "https://github.com/googleapis/google-api-php-client.git", 57 "reference": "4bfd3edc21cceaf45fc216a4196e1993cf7a89eb" 58 }, 59 "dist": { 60 "type": "zip", 61 "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/4bfd3edc21cceaf45fc216a4196e1993cf7a89eb", 62 "reference": "4bfd3edc21cceaf45fc216a4196e1993cf7a89eb", 63 "shasum": "" 64 }, 65 "require": { 66 "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", 67 "google/apiclient-services": "~0.13", 68 "google/auth": "^1.0", 69 "guzzlehttp/guzzle": "~5.3.1||~6.0", 70 "guzzlehttp/psr7": "^1.2", 71 "monolog/monolog": "^1.17", 72 "php": ">=5.4", 73 "phpseclib/phpseclib": "~0.3.10||~2.0" 74 }, 75 "require-dev": { 76 "cache/filesystem-adapter": "^0.3.2", 77 "phpunit/phpunit": "~4.8.36", 78 "squizlabs/php_codesniffer": "~2.3", 79 "symfony/css-selector": "~2.1", 80 "symfony/dom-crawler": "~2.1" 81 }, 82 "suggest": { 83 "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" 84 }, 85 "time": "2019-05-21T18:06:55+00:00", 86 "type": "library", 87 "extra": { 88 "branch-alias": { 89 "dev-master": "2.x-dev" 90 } 91 }, 92 "installation-source": "dist", 93 "autoload": { 94 "psr-0": { 95 "Google_": "src/" 96 }, 97 "classmap": [ 98 "src/Google/Service/" 99 ] 100 }, 101 "notification-url": "https://packagist.org/downloads/", 102 "license": [ 103 "Apache-2.0" 104 ], 105 "description": "Client library for Google APIs", 106 "homepage": "http://developers.google.com/api-client-library/php", 107 "keywords": [ 108 "google" 109 ] 110 }, 111 { 112 "name": "google/apiclient-services", 113 "version": "v0.106", 114 "version_normalized": "0.106.0.0", 115 "source": { 116 "type": "git", 117 "url": "https://github.com/googleapis/google-api-php-client-services.git", 118 "reference": "27c47201c7ac9e2863e20a55bcd96802426233fd" 119 }, 120 "dist": { 121 "type": "zip", 122 "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/27c47201c7ac9e2863e20a55bcd96802426233fd", 123 "reference": "27c47201c7ac9e2863e20a55bcd96802426233fd", 124 "shasum": "" 125 }, 126 "require": { 127 "php": ">=5.4" 128 }, 129 "require-dev": { 130 "phpunit/phpunit": "~4.8" 131 }, 132 "time": "2019-07-28T00:23:12+00:00", 133 "type": "library", 134 "installation-source": "dist", 135 "autoload": { 136 "psr-0": { 137 "Google_Service_": "src" 138 } 139 }, 140 "notification-url": "https://packagist.org/downloads/", 141 "license": [ 142 "Apache-2.0" 143 ], 144 "description": "Client library for Google APIs", 145 "homepage": "http://developers.google.com/api-client-library/php", 146 "keywords": [ 147 "google" 148 ] 149 }, 150 { 151 "name": "google/auth", 152 "version": "v1.5.1", 153 "version_normalized": "1.5.1.0", 154 "source": { 155 "type": "git", 156 "url": "https://github.com/googleapis/google-auth-library-php.git", 157 "reference": "0f75e20e7392e863f5550ed2c2d3d50af21710fb" 158 }, 159 "dist": { 160 "type": "zip", 161 "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/0f75e20e7392e863f5550ed2c2d3d50af21710fb", 162 "reference": "0f75e20e7392e863f5550ed2c2d3d50af21710fb", 163 "shasum": "" 164 }, 165 "require": { 166 "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", 167 "guzzlehttp/guzzle": "~5.3.1|~6.0", 168 "guzzlehttp/psr7": "^1.2", 169 "php": ">=5.4", 170 "psr/cache": "^1.0", 171 "psr/http-message": "^1.0" 172 }, 173 "require-dev": { 174 "friendsofphp/php-cs-fixer": "^1.11", 175 "guzzlehttp/promises": "0.1.1|^1.3", 176 "phpseclib/phpseclib": "^2", 177 "phpunit/phpunit": "^4.8.36|^5.7", 178 "sebastian/comparator": ">=1.2.3" 179 }, 180 "suggest": { 181 "phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings. Please require version ^2." 182 }, 183 "time": "2019-04-16T18:48:28+00:00", 184 "type": "library", 185 "installation-source": "dist", 186 "autoload": { 187 "psr-4": { 188 "Google\\Auth\\": "src" 189 } 190 }, 191 "notification-url": "https://packagist.org/downloads/", 192 "license": [ 193 "Apache-2.0" 194 ], 195 "description": "Google Auth Library for PHP", 196 "homepage": "http://github.com/google/google-auth-library-php", 197 "keywords": [ 198 "Authentication", 199 "google", 200 "oauth2" 201 ] 202 }, 203 { 204 "name": "guzzlehttp/guzzle", 205 "version": "6.3.3", 206 "version_normalized": "6.3.3.0", 207 "source": { 208 "type": "git", 209 "url": "https://github.com/guzzle/guzzle.git", 210 "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba" 211 }, 212 "dist": { 213 "type": "zip", 214 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba", 215 "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba", 216 "shasum": "" 217 }, 218 "require": { 219 "guzzlehttp/promises": "^1.0", 220 "guzzlehttp/psr7": "^1.4", 221 "php": ">=5.5" 222 }, 223 "require-dev": { 224 "ext-curl": "*", 225 "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", 226 "psr/log": "^1.0" 227 }, 228 "suggest": { 229 "psr/log": "Required for using the Log middleware" 230 }, 231 "time": "2018-04-22T15:46:56+00:00", 232 "type": "library", 233 "extra": { 234 "branch-alias": { 235 "dev-master": "6.3-dev" 236 } 237 }, 238 "installation-source": "dist", 239 "autoload": { 240 "files": [ 241 "src/functions_include.php" 242 ], 243 "psr-4": { 244 "GuzzleHttp\\": "src/" 245 } 246 }, 247 "notification-url": "https://packagist.org/downloads/", 248 "license": [ 249 "MIT" 250 ], 251 "authors": [ 252 { 253 "name": "Michael Dowling", 254 "email": "[email protected]", 255 "homepage": "https://github.com/mtdowling" 256 } 257 ], 258 "description": "Guzzle is a PHP HTTP client library", 259 "homepage": "http://guzzlephp.org/", 260 "keywords": [ 261 "client", 262 "curl", 263 "framework", 264 "http", 265 "http client", 266 "rest", 267 "web service" 268 ] 269 }, 270 { 271 "name": "guzzlehttp/promises", 272 "version": "v1.3.1", 273 "version_normalized": "1.3.1.0", 274 "source": { 275 "type": "git", 276 "url": "https://github.com/guzzle/promises.git", 277 "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" 278 }, 279 "dist": { 280 "type": "zip", 281 "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", 282 "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", 283 "shasum": "" 284 }, 285 "require": { 286 "php": ">=5.5.0" 287 }, 288 "require-dev": { 289 "phpunit/phpunit": "^4.0" 290 }, 291 "time": "2016-12-20T10:07:11+00:00", 292 "type": "library", 293 "extra": { 294 "branch-alias": { 295 "dev-master": "1.4-dev" 296 } 297 }, 298 "installation-source": "dist", 299 "autoload": { 300 "psr-4": { 301 "GuzzleHttp\\Promise\\": "src/" 302 }, 303 "files": [ 304 "src/functions_include.php" 305 ] 306 }, 307 "notification-url": "https://packagist.org/downloads/", 308 "license": [ 309 "MIT" 310 ], 311 "authors": [ 312 { 313 "name": "Michael Dowling", 314 "email": "[email protected]", 315 "homepage": "https://github.com/mtdowling" 316 } 317 ], 318 "description": "Guzzle promises library", 319 "keywords": [ 320 "promise" 321 ] 322 }, 323 { 324 "name": "guzzlehttp/psr7", 325 "version": "1.6.1", 326 "version_normalized": "1.6.1.0", 327 "source": { 328 "type": "git", 329 "url": "https://github.com/guzzle/psr7.git", 330 "reference": "239400de7a173fe9901b9ac7c06497751f00727a" 331 }, 332 "dist": { 333 "type": "zip", 334 "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a", 335 "reference": "239400de7a173fe9901b9ac7c06497751f00727a", 336 "shasum": "" 337 }, 338 "require": { 339 "php": ">=5.4.0", 340 "psr/http-message": "~1.0", 341 "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" 342 }, 343 "provide": { 344 "psr/http-message-implementation": "1.0" 345 }, 346 "require-dev": { 347 "ext-zlib": "*", 348 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" 349 }, 350 "suggest": { 351 "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" 352 }, 353 "time": "2019-07-01T23:21:34+00:00", 354 "type": "library", 355 "extra": { 356 "branch-alias": { 357 "dev-master": "1.6-dev" 358 } 359 }, 360 "installation-source": "dist", 361 "autoload": { 362 "psr-4": { 363 "GuzzleHttp\\Psr7\\": "src/" 364 }, 365 "files": [ 366 "src/functions_include.php" 367 ] 368 }, 369 "notification-url": "https://packagist.org/downloads/", 370 "license": [ 371 "MIT" 372 ], 373 "authors": [ 374 { 375 "name": "Michael Dowling", 376 "email": "[email protected]", 377 "homepage": "https://github.com/mtdowling" 378 }, 379 { 380 "name": "Tobias Schultze", 381 "homepage": "https://github.com/Tobion" 382 } 383 ], 384 "description": "PSR-7 message implementation that also provides common utility methods", 385 "keywords": [ 386 "http", 387 "message", 388 "psr-7", 389 "request", 390 "response", 391 "stream", 392 "uri", 393 "url" 394 ] 395 }, 396 { 397 "name": "monolog/monolog", 398 "version": "1.24.0", 399 "version_normalized": "1.24.0.0", 400 "source": { 401 "type": "git", 402 "url": "https://github.com/Seldaek/monolog.git", 403 "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266" 404 }, 405 "dist": { 406 "type": "zip", 407 "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", 408 "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", 409 "shasum": "" 410 }, 411 "require": { 412 "php": ">=5.3.0", 413 "psr/log": "~1.0" 414 }, 415 "provide": { 416 "psr/log-implementation": "1.0.0" 417 }, 418 "require-dev": { 419 "aws/aws-sdk-php": "^2.4.9 || ^3.0", 420 "doctrine/couchdb": "~1.0@dev", 421 "graylog2/gelf-php": "~1.0", 422 "jakub-onderka/php-parallel-lint": "0.9", 423 "php-amqplib/php-amqplib": "~2.4", 424 "php-console/php-console": "^3.1.3", 425 "phpunit/phpunit": "~4.5", 426 "phpunit/phpunit-mock-objects": "2.3.0", 427 "ruflin/elastica": ">=0.90 <3.0", 428 "sentry/sentry": "^0.13", 429 "swiftmailer/swiftmailer": "^5.3|^6.0" 430 }, 431 "suggest": { 432 "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", 433 "doctrine/couchdb": "Allow sending log messages to a CouchDB server", 434 "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", 435 "ext-mongo": "Allow sending log messages to a MongoDB server", 436 "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", 437 "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", 438 "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", 439 "php-console/php-console": "Allow sending log messages to Google Chrome", 440 "rollbar/rollbar": "Allow sending log messages to Rollbar", 441 "ruflin/elastica": "Allow sending log messages to an Elastic Search server", 442 "sentry/sentry": "Allow sending log messages to a Sentry server" 443 }, 444 "time": "2018-11-05T09:00:11+00:00", 445 "type": "library", 446 "extra": { 447 "branch-alias": { 448 "dev-master": "2.0.x-dev" 449 } 450 }, 451 "installation-source": "dist", 452 "autoload": { 453 "psr-4": { 454 "Monolog\\": "src/Monolog" 455 } 456 }, 457 "notification-url": "https://packagist.org/downloads/", 458 "license": [ 459 "MIT" 460 ], 461 "authors": [ 462 { 463 "name": "Jordi Boggiano", 464 "email": "[email protected]", 465 "homepage": "http://seld.be" 466 } 467 ], 468 "description": "Sends your logs to files, sockets, inboxes, databases and various web services", 469 "homepage": "http://github.com/Seldaek/monolog", 470 "keywords": [ 471 "log", 472 "logging", 473 "psr-3" 474 ] 475 }, 476 { 477 "name": "phpseclib/phpseclib", 478 "version": "2.0.21", 479 "version_normalized": "2.0.21.0", 480 "source": { 481 "type": "git", 482 "url": "https://github.com/phpseclib/phpseclib.git", 483 "reference": "9f1287e68b3f283339a9f98f67515dd619e5bf9d" 484 }, 485 "dist": { 486 "type": "zip", 487 "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/9f1287e68b3f283339a9f98f67515dd619e5bf9d", 488 "reference": "9f1287e68b3f283339a9f98f67515dd619e5bf9d", 489 "shasum": "" 490 }, 491 "require": { 492 "php": ">=5.3.3" 493 }, 494 "require-dev": { 495 "phing/phing": "~2.7", 496 "phpunit/phpunit": "^4.8.35|^5.7|^6.0", 497 "sami/sami": "~2.0", 498 "squizlabs/php_codesniffer": "~2.0" 499 }, 500 "suggest": { 501 "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", 502 "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", 503 "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", 504 "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." 505 }, 506 "time": "2019-07-12T12:53:49+00:00", 507 "type": "library", 508 "installation-source": "dist", 509 "autoload": { 510 "files": [ 511 "phpseclib/bootstrap.php" 512 ], 513 "psr-4": { 514 "phpseclib\\": "phpseclib/" 515 } 516 }, 517 "notification-url": "https://packagist.org/downloads/", 518 "license": [ 519 "MIT" 520 ], 521 "authors": [ 522 { 523 "name": "Jim Wigginton", 524 "email": "[email protected]", 525 "role": "Lead Developer" 526 }, 527 { 528 "name": "Patrick Monnerat", 529 "email": "[email protected]", 530 "role": "Developer" 531 }, 532 { 533 "name": "Andreas Fischer", 534 "email": "[email protected]", 535 "role": "Developer" 536 }, 537 { 538 "name": "Hans-Jürgen Petrich", 539 "email": "[email protected]", 540 "role": "Developer" 541 }, 542 { 543 "name": "Graham Campbell", 544 "email": "[email protected]", 545 "role": "Developer" 546 } 547 ], 548 "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", 549 "homepage": "http://phpseclib.sourceforge.net", 550 "keywords": [ 551 "BigInteger", 552 "aes", 553 "asn.1", 554 "asn1", 555 "blowfish", 556 "crypto", 557 "cryptography", 558 "encryption", 559 "rsa", 560 "security", 561 "sftp", 562 "signature", 563 "signing", 564 "ssh", 565 "twofish", 566 "x.509", 567 "x509" 568 ] 569 }, 570 { 571 "name": "psr/cache", 572 "version": "1.0.1", 573 "version_normalized": "1.0.1.0", 574 "source": { 575 "type": "git", 576 "url": "https://github.com/php-fig/cache.git", 577 "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" 578 }, 579 "dist": { 580 "type": "zip", 581 "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", 582 "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", 583 "shasum": "" 584 }, 585 "require": { 586 "php": ">=5.3.0" 587 }, 588 "time": "2016-08-06T20:24:11+00:00", 589 "type": "library", 590 "extra": { 591 "branch-alias": { 592 "dev-master": "1.0.x-dev" 593 } 594 }, 595 "installation-source": "dist", 596 "autoload": { 597 "psr-4": { 598 "Psr\\Cache\\": "src/" 599 } 600 }, 601 "notification-url": "https://packagist.org/downloads/", 602 "license": [ 603 "MIT" 604 ], 605 "authors": [ 606 { 607 "name": "PHP-FIG", 608 "homepage": "http://www.php-fig.org/" 609 } 610 ], 611 "description": "Common interface for caching libraries", 612 "keywords": [ 613 "cache", 614 "psr", 615 "psr-6" 616 ] 617 }, 618 { 619 "name": "psr/http-message", 620 "version": "1.0.1", 621 "version_normalized": "1.0.1.0", 622 "source": { 623 "type": "git", 624 "url": "https://github.com/php-fig/http-message.git", 625 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" 626 }, 627 "dist": { 628 "type": "zip", 629 "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", 630 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", 631 "shasum": "" 632 }, 633 "require": { 634 "php": ">=5.3.0" 635 }, 636 "time": "2016-08-06T14:39:51+00:00", 637 "type": "library", 638 "extra": { 639 "branch-alias": { 640 "dev-master": "1.0.x-dev" 641 } 642 }, 643 "installation-source": "dist", 644 "autoload": { 645 "psr-4": { 646 "Psr\\Http\\Message\\": "src/" 647 } 648 }, 649 "notification-url": "https://packagist.org/downloads/", 650 "license": [ 651 "MIT" 652 ], 653 "authors": [ 654 { 655 "name": "PHP-FIG", 656 "homepage": "http://www.php-fig.org/" 657 } 658 ], 659 "description": "Common interface for HTTP messages", 660 "homepage": "https://github.com/php-fig/http-message", 661 "keywords": [ 662 "http", 663 "http-message", 664 "psr", 665 "psr-7", 666 "request", 667 "response" 668 ] 669 }, 670 { 671 "name": "psr/log", 672 "version": "1.1.0", 673 "version_normalized": "1.1.0.0", 674 "source": { 675 "type": "git", 676 "url": "https://github.com/php-fig/log.git", 677 "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" 678 }, 679 "dist": { 680 "type": "zip", 681 "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", 682 "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", 683 "shasum": "" 684 }, 685 "require": { 686 "php": ">=5.3.0" 687 }, 688 "time": "2018-11-20T15:27:04+00:00", 689 "type": "library", 690 "extra": { 691 "branch-alias": { 692 "dev-master": "1.0.x-dev" 693 } 694 }, 695 "installation-source": "dist", 696 "autoload": { 697 "psr-4": { 698 "Psr\\Log\\": "Psr/Log/" 699 } 700 }, 701 "notification-url": "https://packagist.org/downloads/", 702 "license": [ 703 "MIT" 704 ], 705 "authors": [ 706 { 707 "name": "PHP-FIG", 708 "homepage": "http://www.php-fig.org/" 709 } 710 ], 711 "description": "Common interface for logging libraries", 712 "homepage": "https://github.com/php-fig/log", 713 "keywords": [ 714 "log", 715 "psr", 716 "psr-3" 717 ] 718 }, 719 { 720 "name": "ralouphie/getallheaders", 721 "version": "3.0.3", 722 "version_normalized": "3.0.3.0", 723 "source": { 724 "type": "git", 725 "url": "https://github.com/ralouphie/getallheaders.git", 726 "reference": "120b605dfeb996808c31b6477290a714d356e822" 727 }, 728 "dist": { 729 "type": "zip", 730 "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", 731 "reference": "120b605dfeb996808c31b6477290a714d356e822", 732 "shasum": "" 733 }, 734 "require": { 735 "php": ">=5.6" 736 }, 737 "require-dev": { 738 "php-coveralls/php-coveralls": "^2.1", 739 "phpunit/phpunit": "^5 || ^6.5" 740 }, 741 "time": "2019-03-08T08:55:37+00:00", 742 "type": "library", 743 "installation-source": "dist", 744 "autoload": { 745 "files": [ 746 "src/getallheaders.php" 747 ] 748 }, 749 "notification-url": "https://packagist.org/downloads/", 750 "license": [ 751 "MIT" 752 ], 753 "authors": [ 754 { 755 "name": "Ralph Khattar", 756 "email": "[email protected]" 757 } 758 ], 759 "description": "A polyfill for getallheaders." 760 } 761 ] 1 { 2 "packages": [ 3 { 4 "name": "firebase/php-jwt", 5 "version": "v5.0.0", 6 "version_normalized": "5.0.0.0", 7 "source": { 8 "type": "git", 9 "url": "https://github.com/firebase/php-jwt.git", 10 "reference": "9984a4d3a32ae7673d6971ea00bae9d0a1abba0e" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/9984a4d3a32ae7673d6971ea00bae9d0a1abba0e", 15 "reference": "9984a4d3a32ae7673d6971ea00bae9d0a1abba0e", 16 "shasum": "" 17 }, 18 "require": { 19 "php": ">=5.3.0" 20 }, 21 "require-dev": { 22 "phpunit/phpunit": " 4.8.35" 23 }, 24 "time": "2017-06-27T22:17:23+00:00", 25 "type": "library", 26 "installation-source": "dist", 27 "autoload": { 28 "psr-4": { 29 "Firebase\\JWT\\": "src" 30 } 31 }, 32 "notification-url": "https://packagist.org/downloads/", 33 "license": [ 34 "BSD-3-Clause" 35 ], 36 "authors": [ 37 { 38 "name": "Neuman Vong", 39 "role": "Developer", 40 "email": "[email protected]" 41 }, 42 { 43 "name": "Anant Narayanan", 44 "role": "Developer", 45 "email": "[email protected]" 46 } 47 ], 48 "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", 49 "homepage": "https://github.com/firebase/php-jwt", 50 "install-path": "../firebase/php-jwt" 51 }, 52 { 53 "name": "google/apiclient", 54 "version": "v2.2.3", 55 "version_normalized": "2.2.3.0", 56 "source": { 57 "type": "git", 58 "url": "https://github.com/googleapis/google-api-php-client.git", 59 "reference": "4bfd3edc21cceaf45fc216a4196e1993cf7a89eb" 60 }, 61 "dist": { 62 "type": "zip", 63 "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/4bfd3edc21cceaf45fc216a4196e1993cf7a89eb", 64 "reference": "4bfd3edc21cceaf45fc216a4196e1993cf7a89eb", 65 "shasum": "" 66 }, 67 "require": { 68 "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", 69 "google/apiclient-services": "~0.13", 70 "google/auth": "^1.0", 71 "guzzlehttp/guzzle": "~5.3.1||~6.0", 72 "guzzlehttp/psr7": "^1.2", 73 "monolog/monolog": "^1.17", 74 "php": ">=5.4", 75 "phpseclib/phpseclib": "~0.3.10||~2.0" 76 }, 77 "require-dev": { 78 "cache/filesystem-adapter": "^0.3.2", 79 "phpunit/phpunit": "~4.8.36", 80 "squizlabs/php_codesniffer": "~2.3", 81 "symfony/css-selector": "~2.1", 82 "symfony/dom-crawler": "~2.1" 83 }, 84 "suggest": { 85 "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)" 86 }, 87 "time": "2019-05-21T18:06:55+00:00", 88 "type": "library", 89 "extra": { 90 "branch-alias": { 91 "dev-master": "2.x-dev" 92 } 93 }, 94 "installation-source": "dist", 95 "autoload": { 96 "psr-0": { 97 "Google_": "src/" 98 }, 99 "classmap": [ 100 "src/Google/Service/" 101 ] 102 }, 103 "notification-url": "https://packagist.org/downloads/", 104 "license": [ 105 "Apache-2.0" 106 ], 107 "description": "Client library for Google APIs", 108 "homepage": "http://developers.google.com/api-client-library/php", 109 "keywords": [ 110 "google" 111 ], 112 "install-path": "../google/apiclient" 113 }, 114 { 115 "name": "google/apiclient-services", 116 "version": "v0.106", 117 "version_normalized": "0.106.0.0", 118 "source": { 119 "type": "git", 120 "url": "https://github.com/googleapis/google-api-php-client-services.git", 121 "reference": "27c47201c7ac9e2863e20a55bcd96802426233fd" 122 }, 123 "dist": { 124 "type": "zip", 125 "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/27c47201c7ac9e2863e20a55bcd96802426233fd", 126 "reference": "27c47201c7ac9e2863e20a55bcd96802426233fd", 127 "shasum": "" 128 }, 129 "require": { 130 "php": ">=5.4" 131 }, 132 "require-dev": { 133 "phpunit/phpunit": "~4.8" 134 }, 135 "time": "2019-07-28T00:23:12+00:00", 136 "type": "library", 137 "installation-source": "dist", 138 "autoload": { 139 "psr-0": { 140 "Google_Service_": "src" 141 } 142 }, 143 "notification-url": "https://packagist.org/downloads/", 144 "license": [ 145 "Apache-2.0" 146 ], 147 "description": "Client library for Google APIs", 148 "homepage": "http://developers.google.com/api-client-library/php", 149 "keywords": [ 150 "google" 151 ], 152 "install-path": "../google/apiclient-services" 153 }, 154 { 155 "name": "google/auth", 156 "version": "v1.5.1", 157 "version_normalized": "1.5.1.0", 158 "source": { 159 "type": "git", 160 "url": "https://github.com/googleapis/google-auth-library-php.git", 161 "reference": "0f75e20e7392e863f5550ed2c2d3d50af21710fb" 162 }, 163 "dist": { 164 "type": "zip", 165 "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/0f75e20e7392e863f5550ed2c2d3d50af21710fb", 166 "reference": "0f75e20e7392e863f5550ed2c2d3d50af21710fb", 167 "shasum": "" 168 }, 169 "require": { 170 "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", 171 "guzzlehttp/guzzle": "~5.3.1|~6.0", 172 "guzzlehttp/psr7": "^1.2", 173 "php": ">=5.4", 174 "psr/cache": "^1.0", 175 "psr/http-message": "^1.0" 176 }, 177 "require-dev": { 178 "friendsofphp/php-cs-fixer": "^1.11", 179 "guzzlehttp/promises": "0.1.1|^1.3", 180 "phpseclib/phpseclib": "^2", 181 "phpunit/phpunit": "^4.8.36|^5.7", 182 "sebastian/comparator": ">=1.2.3" 183 }, 184 "suggest": { 185 "phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings. Please require version ^2." 186 }, 187 "time": "2019-04-16T18:48:28+00:00", 188 "type": "library", 189 "installation-source": "dist", 190 "autoload": { 191 "psr-4": { 192 "Google\\Auth\\": "src" 193 } 194 }, 195 "notification-url": "https://packagist.org/downloads/", 196 "license": [ 197 "Apache-2.0" 198 ], 199 "description": "Google Auth Library for PHP", 200 "homepage": "http://github.com/google/google-auth-library-php", 201 "keywords": [ 202 "Authentication", 203 "google", 204 "oauth2" 205 ], 206 "install-path": "../google/auth" 207 }, 208 { 209 "name": "guzzlehttp/guzzle", 210 "version": "6.3.3", 211 "version_normalized": "6.3.3.0", 212 "source": { 213 "type": "git", 214 "url": "https://github.com/guzzle/guzzle.git", 215 "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba" 216 }, 217 "dist": { 218 "type": "zip", 219 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba", 220 "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba", 221 "shasum": "" 222 }, 223 "require": { 224 "guzzlehttp/promises": "^1.0", 225 "guzzlehttp/psr7": "^1.4", 226 "php": ">=5.5" 227 }, 228 "require-dev": { 229 "ext-curl": "*", 230 "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", 231 "psr/log": "^1.0" 232 }, 233 "suggest": { 234 "psr/log": "Required for using the Log middleware" 235 }, 236 "time": "2018-04-22T15:46:56+00:00", 237 "type": "library", 238 "extra": { 239 "branch-alias": { 240 "dev-master": "6.3-dev" 241 } 242 }, 243 "installation-source": "dist", 244 "autoload": { 245 "files": [ 246 "src/functions_include.php" 247 ], 248 "psr-4": { 249 "GuzzleHttp\\": "src/" 250 } 251 }, 252 "notification-url": "https://packagist.org/downloads/", 253 "license": [ 254 "MIT" 255 ], 256 "authors": [ 257 { 258 "name": "Michael Dowling", 259 "email": "[email protected]", 260 "homepage": "https://github.com/mtdowling" 261 } 262 ], 263 "description": "Guzzle is a PHP HTTP client library", 264 "homepage": "http://guzzlephp.org/", 265 "keywords": [ 266 "client", 267 "curl", 268 "framework", 269 "http", 270 "http client", 271 "rest", 272 "web service" 273 ], 274 "install-path": "../guzzlehttp/guzzle" 275 }, 276 { 277 "name": "guzzlehttp/promises", 278 "version": "v1.3.1", 279 "version_normalized": "1.3.1.0", 280 "source": { 281 "type": "git", 282 "url": "https://github.com/guzzle/promises.git", 283 "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" 284 }, 285 "dist": { 286 "type": "zip", 287 "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", 288 "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", 289 "shasum": "" 290 }, 291 "require": { 292 "php": ">=5.5.0" 293 }, 294 "require-dev": { 295 "phpunit/phpunit": "^4.0" 296 }, 297 "time": "2016-12-20T10:07:11+00:00", 298 "type": "library", 299 "extra": { 300 "branch-alias": { 301 "dev-master": "1.4-dev" 302 } 303 }, 304 "installation-source": "dist", 305 "autoload": { 306 "psr-4": { 307 "GuzzleHttp\\Promise\\": "src/" 308 }, 309 "files": [ 310 "src/functions_include.php" 311 ] 312 }, 313 "notification-url": "https://packagist.org/downloads/", 314 "license": [ 315 "MIT" 316 ], 317 "authors": [ 318 { 319 "name": "Michael Dowling", 320 "email": "[email protected]", 321 "homepage": "https://github.com/mtdowling" 322 } 323 ], 324 "description": "Guzzle promises library", 325 "keywords": [ 326 "promise" 327 ], 328 "install-path": "../guzzlehttp/promises" 329 }, 330 { 331 "name": "guzzlehttp/psr7", 332 "version": "1.6.1", 333 "version_normalized": "1.6.1.0", 334 "source": { 335 "type": "git", 336 "url": "https://github.com/guzzle/psr7.git", 337 "reference": "239400de7a173fe9901b9ac7c06497751f00727a" 338 }, 339 "dist": { 340 "type": "zip", 341 "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a", 342 "reference": "239400de7a173fe9901b9ac7c06497751f00727a", 343 "shasum": "" 344 }, 345 "require": { 346 "php": ">=5.4.0", 347 "psr/http-message": "~1.0", 348 "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" 349 }, 350 "provide": { 351 "psr/http-message-implementation": "1.0" 352 }, 353 "require-dev": { 354 "ext-zlib": "*", 355 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" 356 }, 357 "suggest": { 358 "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" 359 }, 360 "time": "2019-07-01T23:21:34+00:00", 361 "type": "library", 362 "extra": { 363 "branch-alias": { 364 "dev-master": "1.6-dev" 365 } 366 }, 367 "installation-source": "dist", 368 "autoload": { 369 "psr-4": { 370 "GuzzleHttp\\Psr7\\": "src/" 371 }, 372 "files": [ 373 "src/functions_include.php" 374 ] 375 }, 376 "notification-url": "https://packagist.org/downloads/", 377 "license": [ 378 "MIT" 379 ], 380 "authors": [ 381 { 382 "name": "Michael Dowling", 383 "email": "[email protected]", 384 "homepage": "https://github.com/mtdowling" 385 }, 386 { 387 "name": "Tobias Schultze", 388 "homepage": "https://github.com/Tobion" 389 } 390 ], 391 "description": "PSR-7 message implementation that also provides common utility methods", 392 "keywords": [ 393 "http", 394 "message", 395 "psr-7", 396 "request", 397 "response", 398 "stream", 399 "uri", 400 "url" 401 ], 402 "install-path": "../guzzlehttp/psr7" 403 }, 404 { 405 "name": "monolog/monolog", 406 "version": "1.24.0", 407 "version_normalized": "1.24.0.0", 408 "source": { 409 "type": "git", 410 "url": "https://github.com/Seldaek/monolog.git", 411 "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266" 412 }, 413 "dist": { 414 "type": "zip", 415 "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", 416 "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", 417 "shasum": "" 418 }, 419 "require": { 420 "php": ">=5.3.0", 421 "psr/log": "~1.0" 422 }, 423 "provide": { 424 "psr/log-implementation": "1.0.0" 425 }, 426 "require-dev": { 427 "aws/aws-sdk-php": "^2.4.9 || ^3.0", 428 "doctrine/couchdb": "~1.0@dev", 429 "graylog2/gelf-php": "~1.0", 430 "jakub-onderka/php-parallel-lint": "0.9", 431 "php-amqplib/php-amqplib": "~2.4", 432 "php-console/php-console": "^3.1.3", 433 "phpunit/phpunit": "~4.5", 434 "phpunit/phpunit-mock-objects": "2.3.0", 435 "ruflin/elastica": ">=0.90 <3.0", 436 "sentry/sentry": "^0.13", 437 "swiftmailer/swiftmailer": "^5.3|^6.0" 438 }, 439 "suggest": { 440 "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", 441 "doctrine/couchdb": "Allow sending log messages to a CouchDB server", 442 "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", 443 "ext-mongo": "Allow sending log messages to a MongoDB server", 444 "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", 445 "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", 446 "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", 447 "php-console/php-console": "Allow sending log messages to Google Chrome", 448 "rollbar/rollbar": "Allow sending log messages to Rollbar", 449 "ruflin/elastica": "Allow sending log messages to an Elastic Search server", 450 "sentry/sentry": "Allow sending log messages to a Sentry server" 451 }, 452 "time": "2018-11-05T09:00:11+00:00", 453 "type": "library", 454 "extra": { 455 "branch-alias": { 456 "dev-master": "2.0.x-dev" 457 } 458 }, 459 "installation-source": "dist", 460 "autoload": { 461 "psr-4": { 462 "Monolog\\": "src/Monolog" 463 } 464 }, 465 "notification-url": "https://packagist.org/downloads/", 466 "license": [ 467 "MIT" 468 ], 469 "authors": [ 470 { 471 "name": "Jordi Boggiano", 472 "email": "[email protected]", 473 "homepage": "http://seld.be" 474 } 475 ], 476 "description": "Sends your logs to files, sockets, inboxes, databases and various web services", 477 "homepage": "http://github.com/Seldaek/monolog", 478 "keywords": [ 479 "log", 480 "logging", 481 "psr-3" 482 ], 483 "install-path": "../monolog/monolog" 484 }, 485 { 486 "name": "phpseclib/phpseclib", 487 "version": "2.0.21", 488 "version_normalized": "2.0.21.0", 489 "source": { 490 "type": "git", 491 "url": "https://github.com/phpseclib/phpseclib.git", 492 "reference": "9f1287e68b3f283339a9f98f67515dd619e5bf9d" 493 }, 494 "dist": { 495 "type": "zip", 496 "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/9f1287e68b3f283339a9f98f67515dd619e5bf9d", 497 "reference": "9f1287e68b3f283339a9f98f67515dd619e5bf9d", 498 "shasum": "" 499 }, 500 "require": { 501 "php": ">=5.3.3" 502 }, 503 "require-dev": { 504 "phing/phing": "~2.7", 505 "phpunit/phpunit": "^4.8.35|^5.7|^6.0", 506 "sami/sami": "~2.0", 507 "squizlabs/php_codesniffer": "~2.0" 508 }, 509 "suggest": { 510 "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", 511 "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", 512 "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", 513 "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." 514 }, 515 "time": "2019-07-12T12:53:49+00:00", 516 "type": "library", 517 "installation-source": "dist", 518 "autoload": { 519 "files": [ 520 "phpseclib/bootstrap.php" 521 ], 522 "psr-4": { 523 "phpseclib\\": "phpseclib/" 524 } 525 }, 526 "notification-url": "https://packagist.org/downloads/", 527 "license": [ 528 "MIT" 529 ], 530 "authors": [ 531 { 532 "name": "Jim Wigginton", 533 "email": "[email protected]", 534 "role": "Lead Developer" 535 }, 536 { 537 "name": "Patrick Monnerat", 538 "email": "[email protected]", 539 "role": "Developer" 540 }, 541 { 542 "name": "Andreas Fischer", 543 "email": "[email protected]", 544 "role": "Developer" 545 }, 546 { 547 "name": "Hans-Jürgen Petrich", 548 "email": "[email protected]", 549 "role": "Developer" 550 }, 551 { 552 "name": "Graham Campbell", 553 "email": "[email protected]", 554 "role": "Developer" 555 } 556 ], 557 "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", 558 "homepage": "http://phpseclib.sourceforge.net", 559 "keywords": [ 560 "BigInteger", 561 "aes", 562 "asn.1", 563 "asn1", 564 "blowfish", 565 "crypto", 566 "cryptography", 567 "encryption", 568 "rsa", 569 "security", 570 "sftp", 571 "signature", 572 "signing", 573 "ssh", 574 "twofish", 575 "x.509", 576 "x509" 577 ], 578 "install-path": "../phpseclib/phpseclib" 579 }, 580 { 581 "name": "psr/cache", 582 "version": "1.0.1", 583 "version_normalized": "1.0.1.0", 584 "source": { 585 "type": "git", 586 "url": "https://github.com/php-fig/cache.git", 587 "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" 588 }, 589 "dist": { 590 "type": "zip", 591 "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", 592 "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", 593 "shasum": "" 594 }, 595 "require": { 596 "php": ">=5.3.0" 597 }, 598 "time": "2016-08-06T20:24:11+00:00", 599 "type": "library", 600 "extra": { 601 "branch-alias": { 602 "dev-master": "1.0.x-dev" 603 } 604 }, 605 "installation-source": "dist", 606 "autoload": { 607 "psr-4": { 608 "Psr\\Cache\\": "src/" 609 } 610 }, 611 "notification-url": "https://packagist.org/downloads/", 612 "license": [ 613 "MIT" 614 ], 615 "authors": [ 616 { 617 "name": "PHP-FIG", 618 "homepage": "http://www.php-fig.org/" 619 } 620 ], 621 "description": "Common interface for caching libraries", 622 "keywords": [ 623 "cache", 624 "psr", 625 "psr-6" 626 ], 627 "install-path": "../psr/cache" 628 }, 629 { 630 "name": "psr/http-message", 631 "version": "1.0.1", 632 "version_normalized": "1.0.1.0", 633 "source": { 634 "type": "git", 635 "url": "https://github.com/php-fig/http-message.git", 636 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" 637 }, 638 "dist": { 639 "type": "zip", 640 "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", 641 "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", 642 "shasum": "" 643 }, 644 "require": { 645 "php": ">=5.3.0" 646 }, 647 "time": "2016-08-06T14:39:51+00:00", 648 "type": "library", 649 "extra": { 650 "branch-alias": { 651 "dev-master": "1.0.x-dev" 652 } 653 }, 654 "installation-source": "dist", 655 "autoload": { 656 "psr-4": { 657 "Psr\\Http\\Message\\": "src/" 658 } 659 }, 660 "notification-url": "https://packagist.org/downloads/", 661 "license": [ 662 "MIT" 663 ], 664 "authors": [ 665 { 666 "name": "PHP-FIG", 667 "homepage": "http://www.php-fig.org/" 668 } 669 ], 670 "description": "Common interface for HTTP messages", 671 "homepage": "https://github.com/php-fig/http-message", 672 "keywords": [ 673 "http", 674 "http-message", 675 "psr", 676 "psr-7", 677 "request", 678 "response" 679 ], 680 "install-path": "../psr/http-message" 681 }, 682 { 683 "name": "psr/log", 684 "version": "1.1.0", 685 "version_normalized": "1.1.0.0", 686 "source": { 687 "type": "git", 688 "url": "https://github.com/php-fig/log.git", 689 "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" 690 }, 691 "dist": { 692 "type": "zip", 693 "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", 694 "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", 695 "shasum": "" 696 }, 697 "require": { 698 "php": ">=5.3.0" 699 }, 700 "time": "2018-11-20T15:27:04+00:00", 701 "type": "library", 702 "extra": { 703 "branch-alias": { 704 "dev-master": "1.0.x-dev" 705 } 706 }, 707 "installation-source": "dist", 708 "autoload": { 709 "psr-4": { 710 "Psr\\Log\\": "Psr/Log/" 711 } 712 }, 713 "notification-url": "https://packagist.org/downloads/", 714 "license": [ 715 "MIT" 716 ], 717 "authors": [ 718 { 719 "name": "PHP-FIG", 720 "homepage": "http://www.php-fig.org/" 721 } 722 ], 723 "description": "Common interface for logging libraries", 724 "homepage": "https://github.com/php-fig/log", 725 "keywords": [ 726 "log", 727 "psr", 728 "psr-3" 729 ], 730 "install-path": "../psr/log" 731 }, 732 { 733 "name": "ralouphie/getallheaders", 734 "version": "3.0.3", 735 "version_normalized": "3.0.3.0", 736 "source": { 737 "type": "git", 738 "url": "https://github.com/ralouphie/getallheaders.git", 739 "reference": "120b605dfeb996808c31b6477290a714d356e822" 740 }, 741 "dist": { 742 "type": "zip", 743 "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", 744 "reference": "120b605dfeb996808c31b6477290a714d356e822", 745 "shasum": "" 746 }, 747 "require": { 748 "php": ">=5.6" 749 }, 750 "require-dev": { 751 "php-coveralls/php-coveralls": "^2.1", 752 "phpunit/phpunit": "^5 || ^6.5" 753 }, 754 "time": "2019-03-08T08:55:37+00:00", 755 "type": "library", 756 "installation-source": "dist", 757 "autoload": { 758 "files": [ 759 "src/getallheaders.php" 760 ] 761 }, 762 "notification-url": "https://packagist.org/downloads/", 763 "license": [ 764 "MIT" 765 ], 766 "authors": [ 767 { 768 "name": "Ralph Khattar", 769 "email": "[email protected]" 770 } 771 ], 772 "description": "A polyfill for getallheaders.", 773 "install-path": "../ralouphie/getallheaders" 774 } 775 ], 776 "dev": true 777 } -
wp-simple-spreadsheet-fetcher-for-google/trunk/wp-simple-spreadsheet-fetcher-for-google.php
r2341341 r2411558 8 8 * Text Domain: wp-simple-spreadsheet-fetcher-for-google 9 9 * Domain Path: /languages 10 * Version: 0.7. 510 * Version: 0.7.6 11 11 * 12 12 * @package Wp_Simple_Spreadsheet_Fetcher_for_Google 13 * @version 0.7. 513 * @version 0.7.6 14 14 */ 15 15
Note: See TracChangeset
for help on using the changeset viewer.