Plugin Directory

Changeset 2888124


Ignore:
Timestamp:
03/28/2023 07:52:42 AM (3 years ago)
Author:
likecoin
Message:
  • Version 3.0.6
Location:
likecoin
Files:
163 added
7 edited

Legend:

Unmodified
Added
Removed
  • likecoin/trunk/admin/restful.php

    r2840245 r2888124  
    167167            register_rest_route(
    168168                'likecoin/v1',
     169                '/posts/(?P<id>\d+)/button/settings',
     170                array(
     171                    'methods'             => 'GET',
     172                    'callback'            => 'likecoin_rest_get_button_settings',
     173                    'args'                => array(
     174                        'id' => array(
     175                            'validate_callback' => 'likecoin_is_numeric',
     176                        ),
     177                    ),
     178                    'permission_callback' => 'likecoin_get_current_user_edit_post_permission',
     179                )
     180            );
     181            register_rest_route(
     182                'likecoin/v1',
     183                '/posts/(?P<id>\d+)/button/settings',
     184                array(
     185                    'methods'             => 'POST',
     186                    'callback'            => 'likecoin_rest_update_button_settings',
     187                    'args'                => array(
     188                        'id' => array(
     189                            'validate_callback' => 'likecoin_is_numeric',
     190                        ),
     191                    ),
     192                    'permission_callback' => 'likecoin_get_current_user_edit_post_permission',
     193                )
     194            );
     195            register_rest_route(
     196                'likecoin/v1',
    169197                '/posts/(?P<id>\d+)/iscn/refresh',
    170198                array(
  • likecoin/trunk/admin/view/restful.php

    r2832968 r2888124  
    269269
    270270/**
     271 * Get likecoin button settings for a post
     272 *
     273 * @param WP_REST_Request $request Full data about the request.
     274 * @return WP_Error|WP_REST_Response
     275 */
     276function likecoin_rest_get_button_settings( $request ) {
     277    $post_id = $request['id'];
     278    $post    = get_post( $post_id );
     279    if ( ! isset( $post ) ) {
     280        return new WP_Error( 'post_not_found', __( 'Post was not found', LC_PLUGIN_SLUG ), array( 'status' => 404 ) );
     281    }
     282    $data = likecoin_get_meta_box_button_params( $post, true );
     283    return new WP_REST_Response( $data, 200 );
     284}
     285
     286/**
     287 * Update likecoin button settings for a post
     288 *
     289 * @param WP_REST_Request $request Full data about the request.
     290 * @return WP_Error|WP_REST_Response
     291 */
     292function likecoin_rest_update_button_settings( $request ) {
     293    $post_id = $request['id'];
     294    $post    = get_post( $post_id );
     295    if ( ! isset( $post ) ) {
     296        return new WP_Error( 'post_not_found', __( 'Post was not found', LC_PLUGIN_SLUG ), array( 'status' => 404 ) );
     297    }
     298    $params = $request->get_json_params();
     299    if ( isset( $params['is_widget_enabled'] ) ) {
     300        $option = get_post_meta( $post_id, LC_OPTION_WIDGET_OPTION, true );
     301        if ( ! isset( $option ) || ! is_array( $option ) ) {
     302            $option = array();
     303        }
     304        $option[ LC_OPTION_WIDGET_POSITION ] = $params['is_widget_enabled'];
     305        update_post_meta( $post_id, LC_OPTION_WIDGET_OPTION, $option );
     306    }
     307    return new WP_REST_Response( $params, 200 );
     308}
     309
     310
     311
     312/**
    271313 * Add refresh publish status endpoint
    272314 *
  • likecoin/trunk/assets/js/sidebar/index.asset.php

    r2866440 r2888124  
    11<?php return array(
    2     'dependencies' => array( 'react', 'wp-api-fetch', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-wordcount' ),
    3     'version'      => 'cdcb2fbacc74ecfac97e2a83ca81cecd',
     2    'dependencies' => array( 'react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-wordcount' ),
     3    'version'      => '206a6c9e61cdacf2942e23bfdeaa4eda',
    44);
  • likecoin/trunk/assets/js/sidebar/index.js

    r2866440 r2888124  
    1 !function(){var e={669:function(e,t,n){e.exports=n(609)},448:function(e,t,n){"use strict";var r=n(867),a=n(26),s=n(372),i=n(327),o=n(97),c=n(109),l=n(985),u=n(61);e.exports=function(e){return new Promise((function(t,n){var d=e.data,m=e.headers,p=e.responseType;r.isFormData(d)&&delete m["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(h+":"+v)}var E=o(e.baseURL,e.url);function g(){if(f){var r="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,s={data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};a(t,n,s),f=null}}if(f.open(e.method.toUpperCase(),i(E,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||l(E))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in f&&r.forEach(m,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete m[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),p&&"json"!==p&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),d||(d=null),f.send(d)}))}},609:function(e,t,n){"use strict";var r=n(867),a=n(849),s=n(321),i=n(185);function o(e){var t=new s(e),n=a(s.prototype.request,t);return r.extend(n,s.prototype,t),r.extend(n,t),n}var c=o(n(655));c.Axios=s,c.create=function(e){return o(i(c.defaults,e))},c.Cancel=n(263),c.CancelToken=n(972),c.isCancel=n(502),c.all=function(e){return Promise.all(e)},c.spread=n(713),c.isAxiosError=n(268),e.exports=c,e.exports.default=c},263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:function(e,t,n){"use strict";var r=n(263);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,n){"use strict";var r=n(867),a=n(327),s=n(782),i=n(572),o=n(185),c=n(875),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new s,response:new s}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=o(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var a,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!r){var u=[i,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(s),a=Promise.resolve(e);u.length;)a=a.then(u.shift(),u.shift());return a}for(var d=e;n.length;){var m=n.shift(),p=n.shift();try{d=m(d)}catch(e){p(e);break}}try{a=i(d)}catch(e){return Promise.reject(e)}for(;s.length;)a=a.then(s.shift(),s.shift());return a},u.prototype.getUri=function(e){return e=o(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(o(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(o(r||{},{method:e,url:t,data:n}))}})),e.exports=u},782:function(e,t,n){"use strict";var r=n(867);function a(){this.handlers=[]}a.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},97:function(e,t,n){"use strict";var r=n(793),a=n(303);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},61:function(e,t,n){"use strict";var r=n(481);e.exports=function(e,t,n,a,s){var i=new Error(e);return r(i,t,n,a,s)}},572:function(e,t,n){"use strict";var r=n(867),a=n(527),s=n(502),i=n(655);function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return o(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return o(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return s(t)||(o(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:function(e){"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},185:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={},a=["url","method","data"],s=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=c(void 0,e[a])):n[a]=c(e[a],t[a])}r.forEach(a,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(s,l),r.forEach(i,(function(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=c(void 0,e[a])):n[a]=c(void 0,t[a])})),r.forEach(o,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=a.concat(s).concat(i).concat(o),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},26:function(e,t,n){"use strict";var r=n(61);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:function(e,t,n){"use strict";var r=n(867),a=n(655);e.exports=function(e,t,n){var s=this||a;return r.forEach(n,(function(n){e=n.call(s,e,t)})),e}},655:function(e,t,n){"use strict";var r=n(867),a=n(16),s=n(481),i={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(448)),c),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(o(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||a&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw s(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l},849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},327:function(e,t,n){"use strict";var r=n(867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(r.isURLSearchParams(t))s=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(a(t)+"="+a(e))})))})),s=i.join("&")}if(s){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}},303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:function(e,t,n){"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,s,i){var o=[];o.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),r.isString(a)&&o.push("path="+a),r.isString(s)&&o.push("domain="+s),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:function(e,t,n){"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:function(e,t,n){"use strict";var r=n(867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,s,i={};return e?(r.forEach(e.split("\n"),(function(e){if(s=e.indexOf(":"),t=r.trim(e.substr(0,s)).toLowerCase(),n=r.trim(e.substr(s+1)),t){if(i[t]&&a.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:function(e,t,n){"use strict";var r=n(593),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={},i=r.version.split(".");function o(e,t){for(var n=t?t.split("."):i,r=e.split("."),a=0;a<3;a++){if(n[a]>r[a])return!0;if(n[a]<r[a])return!1}return!1}a.transitional=function(e,t,n){var a=t&&o(t);function i(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(i(r," has been removed in "+t));return a&&!s[r]&&(s[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={isOlderVersion:o,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),a=r.length;a-- >0;){var s=r[a],i=t[s];if(i){var o=e[s],c=void 0===o||i(o,s,e);if(!0!==c)throw new TypeError("option "+s+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+s)}},validators:a}},867:function(e,t,n){"use strict";var r=n(849),a=Object.prototype.toString;function s(e){return"[object Array]"===a.call(e)}function i(e){return void 0===e}function o(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isPlainObject:c,isUndefined:i,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:l,isStream:function(e){return o(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):s(n)?t[r]=n.slice():t[r]=n}for(var r=0,a=arguments.length;r<a;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,a){e[a]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},593:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_from":"axios@0.21.4"}')}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.plugins,r=window.React,a=window.wp.data,s=window.wp.editPost,i=window.wp.i18n,o=function(t){return(0,e.createElement)("div",{onClick:t.onClick,style:t.paddingLeft?{paddingLeft:t.paddingLeft}:{}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 30 30"},(0,e.createElement)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},(0,e.createElement)("g",{fill:t.color,transform:"translate(0 1)"},(0,e.createElement)("path",{d:"M13.4,9.7l0.9-9c0.1-0.9,1.3-0.9,1.4,0l0.9,9c0.2,2,1.8,3.6,3.7,3.7l9,0.9c0.9,0.1,0.9,1.3,0,1.4l-9,0.9 c-2,0.2-3.6,1.8-3.7,3.7l-0.9,9c-0.1,0.9-1.3,0.9-1.4,0l-0.9-9c-0.2-2-1.8-3.6-3.7-3.7l-9-0.9c-0.9-0.1-0.9-1.3,0-1.4l9-0.9 C11.7,13.2,13.2,11.7,13.4,9.7z"})))))},c=function(t){return(0,e.createElement)("div",{className:"SideBarStatusRowTitle"},(0,e.createElement)("p",{style:{marginBottom:"0px"}}," ",t.title," "))},l=function(t){return(0,e.createElement)("div",{className:"sidebarStatusTitleOuterDiv"},(0,e.createElement)(c,{title:t.title}),t.status&&(0,e.createElement)("div",{className:"SideBarStatusRowDetails"}," ",t.link&&(0,e.createElement)("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"longLink"},t.status)," ",!t.link&&t.status))},u=function(t){return(0,e.createElement)(l,{title:(0,i.__)("State","likecoin"),status:(0,e.createElement)("div",{className:"flexBoxRow"},!t.isCurrentPostPublished&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"greyDot"})," ",(0,e.createElement)("div",{className:"postStatusDiv"},`${(0,i.__)("Not Ready","likecoin")}`)),t.isCurrentPostPublished&&!t.ISCNId&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"redDot"})," ",(0,e.createElement)("div",{className:"postStatusDiv"},`${(0,i.__)("Ready","likecoin")}`)),t.isCurrentPostPublished&&t.ISCNId&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"greenDot"})," ",(0,e.createElement)("div",{className:"postStatusDiv"},`${(0,i.__)("Published","likecoin")}`)))})},d=function(t){const[n,l]=(0,r.useState)(!1),[d,m]=(0,r.useState)(!1),[p,f]=(0,r.useState)(!0),[h,v]=(0,r.useState)(!0),E=(0,a.useSelect)((e=>e("core/editor").isCurrentPostPublished())),g=(0,a.useSelect)((e=>e("core/editor").getEditedPostAttribute("modified_gmt")));return(0,r.useEffect)((()=>{f(!!(E&&t.ISCNTimestamp&&Date.parse(`${g}Z`)>t.ISCNTimestamp))}),[E,g,t.ISCNTimestamp]),(0,r.useEffect)((()=>v(!!t.ISCNId)),[t.ISCNId]),(0,r.useEffect)((()=>{l(!E&&t.mattersDraftId),m(E&&t.mattersArticleId)}),[E,t]),(0,e.createElement)(s.PluginDocumentSettingPanel,{name:"depub-panel",title:(0,i.__)("Web3Press","likecoin"),className:"depub-panel",icon:(0,e.createElement)(o,{color:"#9B9B9B",paddingLeft:"10px"})},(0,e.createElement)("div",{className:"postStatusInfoPanelOuterDiv"},(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)("div",{className:"divOuterHolderStatusInfoPanel"},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(u,{isCurrentPostPublished:E,ISCNId:t.ISCNId}),n&&(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)(c,{title:(0,i.__)("Distribution","likecoin")}),(0,e.createElement)("div",null,(0,e.createElement)("a",{rel:"noopener noreferrer",target:"_blank",className:"icon",href:`https://matters.news/me/drafts/${t.mattersDraftId}`},"Matters"))),d&&(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)(c,{title:(0,i.__)("Distribution","likecoin")}),(0,e.createElement)("div",null,(0,e.createElement)("a",{rel:"noopener noreferrer",target:"_blank",className:"icon",href:`https://matters.news/@${t.mattersId}/${t.mattersArticleSlug}-${t.mattersPublishedArticleHash}`},"Matters"))),(0,e.createElement)("div",{className:"postStatusInfoRowOuterDiv"},!E&&(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",style:{minWidth:"0",width:"100%"},onClick:e=>{e.preventDefault(),document.getElementsByClassName("editor-post-publish-button__button")[0].click()}},(0,i.__)("Publish your post first","likecoin")),E&&!t.ISCNId&&(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",width:"100%"}},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextSmallBtn",onClick:t.handleRegisterISCN},(0,i.__)("Publish","likecoin")),(0,e.createElement)("button",{className:"whiteBackgroundBlueTextSmallBtn",onClick:e=>{e.preventDefault(),document.querySelector('[aria-label="Web3Press"]').click()}},(0,i.__)("Details","likecoin"))),p&&(0,e.createElement)("button",{className:"blueBackgroundWhiteTextSmallBtn",onClick:t.handleRegisterISCN},(0,i.__)("Update","likecoin")),h&&(0,e.createElement)("button",{className:"blueBackgroundWhiteTextSmallBtn",onClick:t.handleNFTAction},t.NFTClassId?(0,i.__)("View NFT","likecoin"):(0,i.__)("Mint NFT","likecoin"))))))))},m=window.wp.wordcount,p=n(669),f=n.n(p),h=window.wp.apiFetch,v=n.n(h);const{postId:E,likecoHost:g}=window.wpApiSettings,S="likecoin/iscn_info_store",I=`/likecoin/v1/posts/${E}/iscn/arweave/upload`,N=`/likecoin/v1/posts/${E}/iscn/arweave`,w=`/likecoin/v1/posts/${E}/iscn/metadata`,C=`/likecoin/v1/posts/${E}/iscn/metadata`,_=`https://api.${g}/likernft/mint?iscn_id=`,b={DBArticleTitle:"",DBAuthorDescription:"",DBDescription:"",DBAuthor:"",DBArticleURL:"",DBArticleTags:[],DBISCNId:"",DBArweaveId:"",DBLicense:"",DBISCNVersion:0,DBISCNTimestamp:0,DBNFTClassId:"",DBMattersIPFSHash:"",DBMattersPublishedArticleHash:"",DBMattersDraftId:"",DBMattersArticleId:"",DBMattersId:"",DBMattersArticleSlug:""},T={getISCNInfo:()=>({type:"GET_ISCN_INFO"}),setISCNInfo:e=>({type:"SET_ISCN_INFO",data:e}),setISCNLicense:e=>({type:"SET_ISCN_LICENSE",license:e}),getNFTInfo:e=>({type:"GET_NFT_INFO",iscnId:e}),setNFTInfo:e=>({type:"SET_NFT_INFO",data:e}),setHTTPErrors:e=>({type:"SET_ERROR_MESSAGE",errorMsg:e}),*fetchISCNRegisterData(){const e=yield{type:"GET_ISCN_REGISTER_DATA"};if(!e)throw new Error("NO_ISCN_REGISTER_DATA_RETURNED");return e},*postArweaveInfoData(e){const t=yield{type:"POST_ARWEAVE_INFO_DATA",data:e};if(!t)throw new Error("NO_ARWEAVE_INFO_RETURNED");yield{type:"UPDATE_ARWEAVE_UPLOAD_AND_IPFS_GLOBAL_STATE",data:{arweaveId:t.arweave_id,ipfsHash:t.ipfs_hash}}},*postISCNInfoData(e){const t=yield{type:"POST_ISCN_INFO_DATA",data:e};if(!t)throw new Error("NO_ISCN_INFO_RETURNED");const{iscn_id:n,iscnVersion:r,iscnTimestamp:a}=t;yield{type:"UPDATE_ISCN_ID_GLOBAL_STATE",data:{iscnId:n,iscnTimestamp:a,iscnVersion:r}}}},D={reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ISCN_INFO":return{...e,DBISCNId:t.data.iscnId,DBISCNVersion:t.data.iscnVersion,DBISCNTimestamp:t.data.iscnTimestamp,DBLicense:t.data.license,DBNFTClassId:t.data.nftClassId,DBArticleTitle:t.data.title,DBAuthorDescription:t.data.authorDescription,DBDescription:t.data.description,DBAuthor:t.data.author,DBArticleURL:t.data.url,DBArticleTags:t.data.tags,DBArweaveId:t.data.arweaveId,DBMattersIPFSHash:t.data.mattersIPFSHash,DBMattersPublishedArticleHash:t.data.mattersPublishedArticleHash,DBMattersArticleId:t.data.mattersArticleId,DBMattersId:t.data.mattersId,DBMattersArticleSlug:t.data.mattersArticleSlug};case"SET_NFT_INFO":return{...e,DBNFTClassId:t.data.classId};case"SET_ISCN_LICENSE":return{...e,DBLicense:t.license};case"UPDATE_ARWEAVE_UPLOAD_AND_IPFS_GLOBAL_STATE":{const{arweaveId:n}=t.data;return{...e,DBArweaveId:n}}case"UPDATE_ISCN_ID_GLOBAL_STATE":return{...e,DBISCNId:t.data.iscnId,DBISCNVersion:t.data.iscnVersion,DBISCNTimestamp:1e3*t.data.iscnTimestamp};default:return e}},controls:{GET_ISCN_INFO:()=>v()({path:w}),GET_NFT_INFO:e=>f().get(`${_}${encodeURIComponent(e.iscnId)}`),GET_ISCN_REGISTER_DATA:()=>v()({path:I}),POST_ARWEAVE_INFO_DATA:e=>v()({method:"POST",path:N,data:{arweaveIPFSHash:e.data.ipfsHash,arweaveId:e.data.arweaveId}}),POST_ISCN_INFO_DATA:e=>v()({method:"POST",path:C,data:{iscnHash:e.data.iscnHash,iscnId:e.data.iscnId,iscnVersion:e.data.iscnVersion,iscnTimestamp:e.data.timestamp,iscnData:{license:e.data.license}}})},selectors:{selectISCNInfo:e=>e,selectNFTInfo:e=>e,getLicense:e=>e.DBLicense},resolvers:{*selectISCNInfo(){try{const e=yield T.getISCNInfo(),{iscnId:t,iscnVersion:n,iscnTimestamp:r,iscnData:a={},title:s,authorDescription:i,description:o,author:c,url:l,tags:u,arweaveId:d,arweaveIPFSHash:m,mattersIPFSHash:p,mattersPublishedArticleHash:f,mattersArticleId:h,mattersId:v,mattersArticleSlug:E}=e;return T.setISCNInfo({...a,iscnId:t,iscnVersion:n,iscnTimestamp:1e3*r,title:s,authorDescription:i,description:o,author:c,url:l,tags:u,arweaveId:d,arweaveIPFSHash:m,mattersIPFSHash:p,mattersPublishedArticleHash:f,mattersArticleId:h,mattersId:v,mattersArticleSlug:E})}catch(e){return T.setHTTPErrors(e.message)}},*selectNFTInfo(e){if(!e)return{};try{const t=yield T.getNFTInfo(e),{classId:n,currentPrice:r}=t.data;return T.setNFTInfo({classId:n,currentPrice:r})}catch(e){return console.error(e),{}}}},actions:T};!function(e,t){if(a.createReduxStore){const n=(0,a.createReduxStore)(e,t);return(0,a.register)(n),n}(0,a.registerStore)(e,t)}(S,D);var y=function(){return(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 4C7.94772 4 7.5 4.44772 7.5 5C7.5 5.55228 7.94772 6 8.5 6H9V14H8.5C7.94772 14 7.5 14.4477 7.5 15C7.5 15.5523 7.94772 16 8.5 16H11.5C12.0523 16 12.5 15.5523 12.5 15C12.5 14.4477 12.0523 14 11.5 14H11V6H11.5C12.0523 6 12.5 5.55228 12.5 5C12.5 4.44772 12.0523 4 11.5 4H8.5ZM15.2929 13.7071C14.9024 13.3166 14.9024 12.6834 15.2929 12.2929L17.5858 10L15.2929 7.70711C14.9024 7.31658 14.9024 6.68342 15.2929 6.29289C15.6834 5.90237 16.3166 5.90237 16.7071 6.29289L19.7071 9.29289C20.0976 9.68342 20.0976 10.3166 19.7071 10.7071L16.7071 13.7071C16.3166 14.0976 15.6834 14.0976 15.2929 13.7071ZM4.70711 6.29289C5.09763 6.68342 5.09763 7.31658 4.70711 7.70711L2.41421 10L4.70711 12.2929C5.09763 12.6834 5.09763 13.3166 4.70711 13.7071C4.31658 14.0976 3.68342 14.0976 3.29289 13.7071L0.292893 10.7071C-0.0976311 10.3166 -0.097631 9.68342 0.292893 9.29289L3.29289 6.29289C3.68342 5.90237 4.31658 5.90237 4.70711 6.29289Z",fill:"#4A4A4A"}))},k=function(t){return(0,e.createElement)("div",{onClick:t.onClick,style:{cursor:"pointer"}},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.8384 3.74744C15.2289 3.35691 15.8621 3.35691 16.2526 3.74744C16.6431 4.13796 16.6431 4.77113 16.2526 5.16165L11.4143 10L16.2526 14.8383C16.6431 15.2289 16.6431 15.862 16.2526 16.2526C15.8621 16.6431 15.2289 16.6431 14.8384 16.2526L10 11.4142L5.1617 16.2526C4.77117 16.6431 4.13801 16.6431 3.74748 16.2526C3.35696 15.862 3.35696 15.2289 3.74748 14.8383L8.58583 10L3.74748 5.16165C3.35696 4.77113 3.35696 4.13796 3.74748 3.74744C4.13801 3.35691 4.77117 3.35691 5.1617 3.74744L10 8.58578L14.8384 3.74744Z",fill:"#9B9B9B"})))},A=function(t){return(0,e.createElement)("div",null,(0,e.createElement)("p",{className:"sidebarPopUpRowTitle"}," ",t.title," "))},B=function(t){return(0,e.createElement)("div",null,(0,e.createElement)("p",null,t.details))},x=function(t){return(0,e.createElement)("div",{className:"TagOuterDiv"},(0,e.createElement)("p",null," ",t.tag," "))};const P=[{name:(0,i.__)("(Not set)","likecoin"),value:""},{name:"CC0",value:"http://creativecommons.org/publicdomain/zero/1.0/"},{name:"CC-BY",value:"https://creativecommons.org/licenses/by/4.0/"},{name:"CC-BY-SA",value:"https://creativecommons.org/licenses/by-sa/4.0/"}];var O=function(t){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c,{title:(0,i.__)("License:","likecoin")}),(0,e.createElement)("select",{name:"license",onChange:e=>{t.onSelect(e.target.value)},disabled:!!t.disabled||null},P.map((n=>(0,e.createElement)("option",{selected:n.value===t.defaultLicense||null,value:n.value},n.name)))))},R=function(t){return(0,e.createElement)("div",{onClick:t.onClick,style:t.paddingLeft?{paddingLeft:t.paddingLeft}:{}},(0,e.createElement)("svg",{width:"22",height:"22",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4,9.7l0.9-9c0.1-0.9,1.3-0.9,1.4,0l0.9,9c0.2,2,1.8,3.6,3.7,3.7l9,0.9c0.9,0.1,0.9,1.3,0,1.4l-9,0.9 c-2,0.2-3.6,1.8-3.7,3.7l-0.9,9c-0.1,0.9-1.3,0.9-1.4,0l-0.9-9c-0.2-2-1.8-3.6-3.7-3.7l-9-0.9c-0.9-0.1-0.9-1.3,0-1.4l9-0.9 C11.7,13.2,13.2,11.7,13.4,9.7z",fill:t.color})))};const{likecoHost:L,likerlandHost:F}=window.wpApiSettings;var U=function(t){const n=(0,a.useSelect)((e=>e("core/editor").getEditedPostAttribute("content"))),{setISCNLicense:d}=(0,a.useDispatch)(S),p=(0,a.useSelect)((e=>e(S).getLicense())),f=(0,m.count)(n,"words",{}),[h,v]=(0,r.useState)(!1),[E,g]=(0,r.useState)(!0),[I,N]=(0,r.useState)(!0),[w,C]=(0,r.useState)(!0),[_,b]=(0,r.useState)(!0),[T,D]=(0,r.useState)("#3973B9"),P=(0,a.useSelect)((e=>e("core/edit-post").isPluginSidebarOpened())),U=(0,a.useSelect)((e=>e("core/editor").isCurrentPostPublished())),j=(0,a.useSelect)((e=>e("core/editor").getEditedPostAttribute("modified_gmt")));function H(e){e.preventDefault(),v(!h)}return(0,r.useEffect)((()=>{N(!!U&&!t.ISCNId)}),[U,t.ISCNId]),(0,r.useEffect)((()=>{C(!!(U&&t.ISCNTimestamp&&Date.parse(`${j}Z`)>t.ISCNTimestamp))}),[U,j,t.ISCNTimestamp]),(0,r.useEffect)((()=>b(!!t.ISCNId)),[t.ISCNId]),(0,r.useEffect)((()=>{const e=t.ISCNVersion?`${t.ISCNVersion} (${new Date(t.ISCNTimestamp).toGMTString()})`:"-";g(e)}),[t.ISCNVersion,t.ISCNTimestamp]),(0,r.useEffect)((()=>{D(P?"white":"#3973B9")}),[P,D]),(0,e.createElement)(s.PluginSidebar,{name:"likecoin-sidebar",title:(0,i.__)("Web3Press","likecoin"),icon:(0,e.createElement)(R,{color:T})},(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"dePubMainSidebarDiv"},(0,e.createElement)("p",{className:"dePubStatusRed"},(0,i.__)("Decentralized Publishing","likecoin"))),(0,e.createElement)("div",{className:"likeCoinIconOuterDiv"},(0,e.createElement)(o,{color:"#9B9B9B"}))),!U&&(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"divInnerHolder"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",onClick:e=>{e.preventDefault(),document.getElementsByClassName("editor-post-publish-button__button")[0].click()}},(0,i.__)("Publish your post first","likecoin")))),I&&(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"divInnerHolder"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",onClick:t.handleRegisterISCN},(0,i.__)("Publish","likecoin")))),w&&(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"divInnerHolder"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",onClick:t.handleRegisterISCN},(0,i.__)("Update","likecoin")))),_&&(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"divInnerHolder"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",onClick:t.handleNFTAction},t.NFTClassId?(0,i.__)("View NFT","likecoin"):(0,i.__)("Mint NFT","likecoin")))),(0,e.createElement)("div",{className:"divOuterHolderMainSidebar"},(0,e.createElement)(l,{title:(0,i.__)("Publishing Status","likecoin"),status:""}),(0,e.createElement)(u,{isCurrentPostPublished:U,ISCNId:t.ISCNId}),(0,e.createElement)(l,{title:(0,i.__)("ISCN ID","likecoin"),status:t.ISCNId?t.ISCNId:"-",link:t.ISCNId?`https://app.${L}/view/${encodeURIComponent(t.ISCNId)}`:""}),t.ISCNId&&(0,e.createElement)(l,{title:(0,i.__)("NFT","likecoin"),status:t.NFTClassId?t.NFTClassId:(0,i.__)("Mint Now","likecoin"),link:t.NFTClassId?`https://${F}/nft/class/${encodeURIComponent(t.NFTClassId)}`:""}),(0,e.createElement)(l,{title:(0,i.__)("Storage","likecoin"),status:t.arweaveId?t.arweaveId:"-",link:t.arweaveId?`https://arweave.net/${t.arweaveId}`:""}),(0,e.createElement)(l,{title:(0,i.__)("Version","likecoin"),status:E})),(0,e.createElement)("div",{className:"divOuterHolderMainSidebar"},(0,e.createElement)(O,{defaultLicense:p,onSelect:function(e){d(e)},disabled:!(!U||I||w)})),(0,e.createElement)("div",{className:"divOuterHolderMainSidebar"},(0,e.createElement)("div",{className:"sidebarStatusTitleOuterDivPointer",onClick:H},(0,e.createElement)(c,{title:(0,i.__)("Metadata","likecoin")}),(0,e.createElement)("div",{className:"marginLeftAuto"},(0,e.createElement)(y,null))),h&&(0,e.createElement)("div",{className:"popUpWrapper"},(0,e.createElement)("div",{className:"popUpMainTitleDiv"},(0,e.createElement)(A,{title:(0,i.__)("Metadata","likecoin")}),(0,e.createElement)("div",{className:"popUpCrossIconWrapper"},(0,e.createElement)(k,{onClick:H}))),(0,e.createElement)("div",{className:"popUpMainContentWrapper"},(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(A,{title:(0,i.__)("Title","likecoin")}),(0,e.createElement)(B,{details:t.title})),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(A,{title:(0,i.__)("Description","likecoin")}),(0,e.createElement)(B,{details:t.description})),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(A,{title:(0,i.__)("Author","likecoin")}),(0,e.createElement)(B,{details:t.author})),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(A,{title:(0,i.__)("Tag","likecoin")}),(0,e.createElement)("div",{className:"flexBoxRow"},t.tags&&t.tags.length>0&&t.tags.map((t=>(0,e.createElement)(x,{tag:t}))))),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(A,{title:(0,i.__)("Url","likecoin")}),(0,e.createElement)(B,{details:t.url})),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(c,{title:(0,i.__)("Word count","likecoin")}),(0,e.createElement)(B,{details:f}))))))},j=function(){return(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__arrow",role:"img","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}))},H=function(){return(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__arrow",role:"img","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))},M=function(t){const[n,a]=(0,r.useState)(!0);return(0,e.createElement)(s.PluginPostPublishPanel,null,(0,e.createElement)("div",{className:"divOuterHolderStatusInfoPanel"},(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)("div",{className:"dePubDiv"},(0,e.createElement)("p",{className:"dePubStatusRed"},(0,i.__)("Web3Press","likecoin"))),(0,e.createElement)("div",{className:"likeCoinIconOuterDiv"},(0,e.createElement)(o,{color:"#9B9B9B"})),(0,e.createElement)("div",{onClick:function(e){e.preventDefault(),a(!n)},className:"marginLeftAuto"},!n&&(0,e.createElement)(H,null),n&&(0,e.createElement)(j,null))),n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)("div",null,(0,e.createElement)("p",{className:"flexBoxRowNormalText"},(0,i.__)("Register your content to decetralized publishing","likecoin")))),(0,e.createElement)("div",{className:"registerISCNBtnOuterDiv"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextSmallBtn",onClick:t.handleRegisterISCN},(0,i.__)("Publish","likecoin")),(0,e.createElement)("button",{className:"whiteBackgroundBlueTextSmallBtn",onClick:e=>{e.preventDefault(),document.querySelector('[aria-label="Close panel"]').click()}},(0,i.__)("Details","likecoin"))))))};const{siteurl:V,likecoHost:$,likerlandHost:W}=window.wpApiSettings,q=`https://${$}`,G=`https://app.${$}`,z="LikeCoin WordPress Plugin";var J=function(){const{DBLIKEPayAmount:t,DBMemo:n,DBArticleTitle:s,DBAuthorDescription:i,DBDescription:o,DBAuthor:c,DBArticleURL:l,DBArticleTags:u,DBISCNId:m,DBArweaveId:p,DBMattersIPFSHash:f,DBMattersPublishedArticleHash:h,DBISCNVersion:v,DBISCNTimestamp:E,DBMattersDraftId:g,DBMattersArticleId:I,DBMattersId:N,DBMattersArticleSlug:w,DBLicense:C}=(0,a.useSelect)((e=>e(S).selectISCNInfo())),{DBNFTClassId:_}=(0,a.useSelect)((e=>e(S).selectNFTInfo(m))),{fetchISCNRegisterData:b,postArweaveInfoData:T,postISCNInfoData:D}=(0,a.useDispatch)(S),[y,k]=(0,r.useState)(s),[A,B]=(0,r.useState)(i),[x,P]=(0,r.useState)(o),[O,R]=(0,r.useState)(c),[L,F]=(0,r.useState)(l),[j,H]=(0,r.useState)(u),[$,J]=(0,r.useState)(m),[Z,X]=(0,r.useState)(_),[K,Y]=(0,r.useState)(p),[Q,ee]=(0,r.useState)(f),[te,ne]=(0,r.useState)(h),[re,ae]=(0,r.useState)(v),[se,ie]=(0,r.useState)(E),[oe,ce]=(0,r.useState)(g),[le,ue]=(0,r.useState)(I),[de,me]=(0,r.useState)(N),[pe,fe]=(0,r.useState)(w),[he,ve]=(0,r.useState)([]),[Ee,ge]=(0,r.useState)(!1),[Se,Ie]=(0,r.useState)(!1),[Ne,we]=(0,r.useState)(null),Ce=(0,r.useCallback)((e=>{const{ipfsHash:t,arweaveId:n}=e;Y(n),T({ipfsHash:t,arweaveId:n})}),[T]),_e=(0,r.useCallback)((e=>{const{tx_hash:t,iscnId:n,iscnVersion:r,timestamp:a}=e;D({iscnHash:t,iscnId:n,iscnVersion:r,timestamp:a,license:C})}),[C,D]),be=(0,r.useCallback)((async()=>{Ne.postMessage(JSON.stringify({action:"INIT_WIDGET"}),q);const e=await b(),{files:t,title:n,tags:r,url:a,author:s,authorDescription:i,description:o}=e;k(n),H(r),F(a),R(s),B(i),P(o);const c=JSON.stringify({action:"SUBMIT_ISCN_DATA",data:{metadata:{fingerprints:he,name:n,tags:r,url:a,author:s,authorDescription:i,description:o,type:"article",license:C,recordNotes:z,memo:z},files:t}});Ne.postMessage(c,q)}),[C,b,he,Ne]),Te=(0,r.useCallback)((async e=>{if(e&&e.data&&(e.origin===q||e.origin===G)&&"string"==typeof e.data)try{const{action:t,data:n}=JSON.parse(e.data);"ISCN_WIDGET_READY"===t?Ie(!0):"ARWEAVE_SUBMITTED"===t?Ce(n):"ISCN_SUBMITTED"===t?_e(n):"NFT_MINT_DATA"===t?n.classId&&X(n.classId):console.warn(`Unknown event: ${t}`)}catch(e){console.error(e)}}),[Ce,_e]),De=(0,r.useCallback)((()=>{const e=encodeURIComponent($||""),t=encodeURIComponent(V),n=`${q}/in/widget/iscn-ar?opener=1&platform=wordpress&redirect_uri=${t}&iscn_id=${e}`;try{const e=window.open(n,"likePayWindow","menubar=no,location=no,width=576,height=768");if(!e||e.closed||void 0===e.closed)return void console.error("POPUP_BLOCKED");we(e),window.addEventListener("message",Te,!1)}catch(e){console.error(e)}}),[$,Te]);async function ye(e){e.preventDefault(),ge(!0)}(0,r.useEffect)((()=>{if(k(s),i){const{length:e}=i.split(" ");if(e>200){const t=i.split(" ").slice(0,197).join(" ").concat("...").concat(i.split(" ")[e-1]);B(t)}else B(i)}o&&P(o),R(c),F(l),H(u),J(m),X(_),ae(v),ie(E),ce(g),ue(I),me(N),fe(w),ne(h),Y(p)}),[t,n,s,i,o,c,l,u,m,v,E,_,g,I,N,w,h,p]),(0,r.useEffect)((()=>{ee(f);const e=[];if(f&&"-"!==f){const t=`ipfs://${f}`;e.push(t)}e.length>1&&ve(e)}),[f]),(0,r.useEffect)((()=>{Ee&&(De(),ge(!1)),Se&&(be(),Ie(!1))}),[Ee,Se,De,be]);const ke=async e=>{if(e&&e.data&&e.origin===G&&"string"==typeof e.data)try{const{action:t,data:n}=JSON.parse(e.data);"NFT_MINT_DATA"===t?n.classId&&X(n.classId):console.warn(`Unknown event: ${t}`)}catch(e){console.error(e)}},Ae=(0,r.useCallback)((e=>{if(e.preventDefault(),!$)return;const t=encodeURIComponent(V),n=Z?`https://${W}/nft/class/${encodeURIComponent(Z)}`:`${G}/nft/iscn/${encodeURIComponent($)}?opener=1&platform=wordpress&redirect_uri=${t}`;window.open(n,"_blank")&&!Z&&window.addEventListener("message",ke,!1)}),[$,Z]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(U,{handleRegisterISCN:ye,handleNFTAction:Ae,ISCNId:$,arweaveId:K,ISCNVersion:re,ISCNTimestamp:se,NFTClassId:Z,mattersDraftId:oe,mattersArticleId:le,mattersId:de,mattersArticleSlug:pe,mattersIPFSHash:Q,mattersPublishedArticleHash:te,title:y,authorDescription:A,description:x,author:O,tags:j,url:L}),(0,e.createElement)(d,{handleRegisterISCN:ye,handleNFTAction:Ae,ISCNId:$,arweaveId:K,ISCNVersion:re,ISCNTimestamp:se,NFTClassId:Z,mattersDraftId:oe,mattersArticleId:le,mattersId:de,mattersArticleSlug:pe,mattersIPFSHash:Q,mattersPublishedArticleHash:te}),(0,e.createElement)(M,{handleRegisterISCN:ye}))};(0,t.registerPlugin)("likecoin-sidebar",{render:function(){return(0,e.createElement)(J,null)}})}()}();
     1!function(){var e={669:function(e,t,n){e.exports=n(609)},448:function(e,t,n){"use strict";var r=n(867),a=n(26),i=n(372),s=n(327),o=n(97),c=n(109),l=n(985),u=n(61);e.exports=function(e){return new Promise((function(t,n){var d=e.data,p=e.headers,m=e.responseType;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+g)}var E=o(e.baseURL,e.url);function v(){if(f){var r="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};a(t,n,i),f=null}}if(f.open(e.method.toUpperCase(),s(E,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(v)},f.onabort=function(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||l(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(p[e.xsrfHeaderName]=S)}"setRequestHeader"in f&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),m&&"json"!==m&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),d||(d=null),f.send(d)}))}},609:function(e,t,n){"use strict";var r=n(867),a=n(849),i=n(321),s=n(185);function o(e){var t=new i(e),n=a(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=o(n(655));c.Axios=i,c.create=function(e){return o(s(c.defaults,e))},c.Cancel=n(263),c.CancelToken=n(972),c.isCancel=n(502),c.all=function(e){return Promise.all(e)},c.spread=n(713),c.isAxiosError=n(268),e.exports=c,e.exports.default=c},263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:function(e,t,n){"use strict";var r=n(263);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,n){"use strict";var r=n(867),a=n(327),i=n(782),s=n(572),o=n(185),c=n(875),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=o(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var a,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[s,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),a=Promise.resolve(e);u.length;)a=a.then(u.shift(),u.shift());return a}for(var d=e;n.length;){var p=n.shift(),m=n.shift();try{d=p(d)}catch(e){m(e);break}}try{a=s(d)}catch(e){return Promise.reject(e)}for(;i.length;)a=a.then(i.shift(),i.shift());return a},u.prototype.getUri=function(e){return e=o(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(o(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(o(r||{},{method:e,url:t,data:n}))}})),e.exports=u},782:function(e,t,n){"use strict";var r=n(867);function a(){this.handlers=[]}a.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},97:function(e,t,n){"use strict";var r=n(793),a=n(303);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},61:function(e,t,n){"use strict";var r=n(481);e.exports=function(e,t,n,a,i){var s=new Error(e);return r(s,t,n,a,i)}},572:function(e,t,n){"use strict";var r=n(867),a=n(527),i=n(502),s=n(655);function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return o(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return o(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(o(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:function(e){"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},185:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={},a=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=c(void 0,e[a])):n[a]=c(e[a],t[a])}r.forEach(a,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,l),r.forEach(s,(function(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=c(void 0,e[a])):n[a]=c(void 0,t[a])})),r.forEach(o,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=a.concat(i).concat(s).concat(o),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},26:function(e,t,n){"use strict";var r=n(61);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:function(e,t,n){"use strict";var r=n(867),a=n(655);e.exports=function(e,t,n){var i=this||a;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},655:function(e,t,n){"use strict";var r=n(867),a=n(16),i=n(481),s={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(448)),c),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(o(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||a&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(s)})),e.exports=l},849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},327:function(e,t,n){"use strict";var r=n(867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(a(t)+"="+a(e))})))})),i=s.join("&")}if(i){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:function(e,t,n){"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,i,s){var o=[];o.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),r.isString(a)&&o.push("path="+a),r.isString(i)&&o.push("domain="+i),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:function(e,t,n){"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:function(e,t,n){"use strict";var r=n(867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&a.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:function(e,t,n){"use strict";var r=n(593),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},s=r.version.split(".");function o(e,t){for(var n=t?t.split("."):s,r=e.split("."),a=0;a<3;a++){if(n[a]>r[a])return!0;if(n[a]<r[a])return!1}return!1}a.transitional=function(e,t,n){var a=t&&o(t);function s(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(s(r," has been removed in "+t));return a&&!i[r]&&(i[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={isOlderVersion:o,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),a=r.length;a-- >0;){var i=r[a],s=t[i];if(s){var o=e[i],c=void 0===o||s(o,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},867:function(e,t,n){"use strict";var r=n(849),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function s(e){return void 0===e}function o(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:l,isStream:function(e){return o(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,a=arguments.length;r<a;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,a){e[a]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},593:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_from":"axios@0.21.4"}')}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.plugins,r=window.React,a=window.wp.data,i=window.wp.editPost,s=window.wp.i18n,o=function(t){return(0,e.createElement)("div",{onClick:t.onClick,style:t.paddingLeft?{paddingLeft:t.paddingLeft}:{}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 30 30"},(0,e.createElement)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},(0,e.createElement)("g",{fill:t.color,transform:"translate(0 1)"},(0,e.createElement)("path",{d:"M13.4,9.7l0.9-9c0.1-0.9,1.3-0.9,1.4,0l0.9,9c0.2,2,1.8,3.6,3.7,3.7l9,0.9c0.9,0.1,0.9,1.3,0,1.4l-9,0.9 c-2,0.2-3.6,1.8-3.7,3.7l-0.9,9c-0.1,0.9-1.3,0.9-1.4,0l-0.9-9c-0.2-2-1.8-3.6-3.7-3.7l-9-0.9c-0.9-0.1-0.9-1.3,0-1.4l9-0.9 C11.7,13.2,13.2,11.7,13.4,9.7z"})))))},c=function(t){return(0,e.createElement)("div",{className:"SideBarStatusRowTitle"},(0,e.createElement)("p",{style:{marginBottom:"0px"}}," ",t.title," "))},l=function(t){return(0,e.createElement)("div",{className:"sidebarStatusTitleOuterDiv"},(0,e.createElement)(c,{title:t.title}),t.status&&(0,e.createElement)("div",{className:"SideBarStatusRowDetails"}," ",t.link&&(0,e.createElement)("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"longLink"},t.status)," ",!t.link&&t.status))},u=function(t){return(0,e.createElement)(l,{title:(0,s.__)("State","likecoin"),status:(0,e.createElement)("div",{className:"flexBoxRow"},!t.isCurrentPostPublished&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"greyDot"})," ",(0,e.createElement)("div",{className:"postStatusDiv"},`${(0,s.__)("Not Ready","likecoin")}`)),t.isCurrentPostPublished&&!t.ISCNId&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"redDot"})," ",(0,e.createElement)("div",{className:"postStatusDiv"},`${(0,s.__)("Ready","likecoin")}`)),t.isCurrentPostPublished&&t.ISCNId&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"greenDot"})," ",(0,e.createElement)("div",{className:"postStatusDiv"},`${(0,s.__)("Published","likecoin")}`)))})},d=function(t){const[n,l]=(0,r.useState)(!1),[d,p]=(0,r.useState)(!1),[m,f]=(0,r.useState)(!0),[h,g]=(0,r.useState)(!0),E=(0,a.useSelect)((e=>e("core/editor").isCurrentPostPublished())),v=(0,a.useSelect)((e=>e("core/editor").getEditedPostAttribute("modified_gmt")));return(0,r.useEffect)((()=>{f(!!(E&&t.ISCNTimestamp&&Date.parse(`${v}Z`)>t.ISCNTimestamp))}),[E,v,t.ISCNTimestamp]),(0,r.useEffect)((()=>g(!!t.ISCNId)),[t.ISCNId]),(0,r.useEffect)((()=>{l(!E&&t.mattersDraftId),p(E&&t.mattersArticleId)}),[E,t]),(0,e.createElement)(i.PluginDocumentSettingPanel,{name:"depub-panel",title:(0,s.__)("Web3Press","likecoin"),className:"depub-panel",icon:(0,e.createElement)(o,{color:"#9B9B9B",paddingLeft:"10px"})},(0,e.createElement)("div",{className:"postStatusInfoPanelOuterDiv"},(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)("div",{className:"divOuterHolderStatusInfoPanel"},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(u,{isCurrentPostPublished:E,ISCNId:t.ISCNId}),n&&(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)(c,{title:(0,s.__)("Distribution","likecoin")}),(0,e.createElement)("div",null,(0,e.createElement)("a",{rel:"noopener noreferrer",target:"_blank",className:"icon",href:`https://matters.news/me/drafts/${t.mattersDraftId}`},"Matters"))),d&&(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)(c,{title:(0,s.__)("Distribution","likecoin")}),(0,e.createElement)("div",null,(0,e.createElement)("a",{rel:"noopener noreferrer",target:"_blank",className:"icon",href:`https://matters.news/@${t.mattersId}/${t.mattersArticleSlug}-${t.mattersPublishedArticleHash}`},"Matters"))),(0,e.createElement)("div",{className:"postStatusInfoRowOuterDiv"},!E&&(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",style:{minWidth:"0",width:"100%"},onClick:e=>{e.preventDefault(),document.getElementsByClassName("editor-post-publish-button__button")[0].click()}},(0,s.__)("Publish your post first","likecoin")),E&&!t.ISCNId&&(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",width:"100%"}},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextSmallBtn",onClick:t.handleRegisterISCN},(0,s.__)("Publish","likecoin")),(0,e.createElement)("button",{className:"whiteBackgroundBlueTextSmallBtn",onClick:e=>{e.preventDefault(),document.querySelector('[aria-label="Web3Press"]').click()}},(0,s.__)("Details","likecoin"))),m&&(0,e.createElement)("button",{className:"blueBackgroundWhiteTextSmallBtn",onClick:t.handleRegisterISCN},(0,s.__)("Update","likecoin")),h&&(0,e.createElement)("button",{className:"blueBackgroundWhiteTextSmallBtn",onClick:t.handleNFTAction},t.NFTClassId?(0,s.__)("View NFT","likecoin"):(0,s.__)("Mint NFT","likecoin"))))))))},p=window.wp.components,m=window.wp.wordcount,f=n(669),h=n.n(f),g=window.wp.apiFetch,E=n.n(g);function v(e,t){if(a.createReduxStore){const n=(0,a.createReduxStore)(e,t);return(0,a.register)(n),n}return(0,a.registerStore)(e,t),e}const{postId:S,likecoHost:N}=window.wpApiSettings,I="likecoin/iscn_info_store",w=`/likecoin/v1/posts/${S}/iscn/arweave/upload`,_=`/likecoin/v1/posts/${S}/iscn/arweave`,C=`/likecoin/v1/posts/${S}/iscn/metadata`,T=`/likecoin/v1/posts/${S}/iscn/metadata`,b=`https://api.${N}/likernft/mint?iscn_id=`,D={DBArticleTitle:"",DBAuthorDescription:"",DBDescription:"",DBAuthor:"",DBArticleURL:"",DBArticleTags:[],DBISCNId:"",DBArweaveId:"",DBLicense:"",DBISCNVersion:0,DBISCNTimestamp:0,DBNFTClassId:"",DBMattersIPFSHash:"",DBMattersPublishedArticleHash:"",DBMattersDraftId:"",DBMattersArticleId:"",DBMattersId:"",DBMattersArticleSlug:""},B={getISCNInfo:()=>({type:"GET_ISCN_INFO"}),setISCNInfo:e=>({type:"SET_ISCN_INFO",data:e}),setISCNLicense:e=>({type:"SET_ISCN_LICENSE",license:e}),getNFTInfo:e=>({type:"GET_NFT_INFO",iscnId:e}),setNFTInfo:e=>({type:"SET_NFT_INFO",data:e}),setHTTPErrors:e=>({type:"SET_ERROR_MESSAGE",errorMsg:e}),*fetchISCNRegisterData(){const e=yield{type:"GET_ISCN_REGISTER_DATA"};if(!e)throw new Error("NO_ISCN_REGISTER_DATA_RETURNED");return e},*postArweaveInfoData(e){const t=yield{type:"POST_ARWEAVE_INFO_DATA",data:e};if(!t)throw new Error("NO_ARWEAVE_INFO_RETURNED");yield{type:"UPDATE_ARWEAVE_UPLOAD_AND_IPFS_GLOBAL_STATE",data:{arweaveId:t.arweave_id,ipfsHash:t.ipfs_hash}}},*postISCNInfoData(e){const t=yield{type:"POST_ISCN_INFO_DATA",data:e};if(!t)throw new Error("NO_ISCN_INFO_RETURNED");const{iscn_id:n,iscnVersion:r,iscnTimestamp:a}=t;yield{type:"UPDATE_ISCN_ID_GLOBAL_STATE",data:{iscnId:n,iscnTimestamp:a,iscnVersion:r}}}},y={reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ISCN_INFO":return{...e,DBISCNId:t.data.iscnId,DBISCNVersion:t.data.iscnVersion,DBISCNTimestamp:t.data.iscnTimestamp,DBLicense:t.data.license,DBNFTClassId:t.data.nftClassId,DBArticleTitle:t.data.title,DBAuthorDescription:t.data.authorDescription,DBDescription:t.data.description,DBAuthor:t.data.author,DBArticleURL:t.data.url,DBArticleTags:t.data.tags,DBArweaveId:t.data.arweaveId,DBMattersIPFSHash:t.data.mattersIPFSHash,DBMattersPublishedArticleHash:t.data.mattersPublishedArticleHash,DBMattersArticleId:t.data.mattersArticleId,DBMattersId:t.data.mattersId,DBMattersArticleSlug:t.data.mattersArticleSlug};case"SET_NFT_INFO":return{...e,DBNFTClassId:t.data.classId};case"SET_ISCN_LICENSE":return{...e,DBLicense:t.license};case"UPDATE_ARWEAVE_UPLOAD_AND_IPFS_GLOBAL_STATE":{const{arweaveId:n}=t.data;return{...e,DBArweaveId:n}}case"UPDATE_ISCN_ID_GLOBAL_STATE":return{...e,DBISCNId:t.data.iscnId,DBISCNVersion:t.data.iscnVersion,DBISCNTimestamp:1e3*t.data.iscnTimestamp};default:return e}},controls:{GET_ISCN_INFO:()=>E()({path:C}),GET_NFT_INFO:e=>h().get(`${b}${encodeURIComponent(e.iscnId)}`),GET_ISCN_REGISTER_DATA:()=>E()({path:w}),POST_ARWEAVE_INFO_DATA:e=>E()({method:"POST",path:_,data:{arweaveIPFSHash:e.data.ipfsHash,arweaveId:e.data.arweaveId}}),POST_ISCN_INFO_DATA:e=>E()({method:"POST",path:T,data:{iscnHash:e.data.iscnHash,iscnId:e.data.iscnId,iscnVersion:e.data.iscnVersion,iscnTimestamp:e.data.timestamp,iscnData:{license:e.data.license}}})},selectors:{selectISCNInfo:e=>e,selectNFTInfo:e=>e,getLicense:e=>e.DBLicense},resolvers:{*selectISCNInfo(){try{const e=yield B.getISCNInfo(),{iscnId:t,iscnVersion:n,iscnTimestamp:r,iscnData:a={},title:i,authorDescription:s,description:o,author:c,url:l,tags:u,arweaveId:d,arweaveIPFSHash:p,mattersIPFSHash:m,mattersPublishedArticleHash:f,mattersArticleId:h,mattersId:g,mattersArticleSlug:E}=e;return B.setISCNInfo({...a,iscnId:t,iscnVersion:n,iscnTimestamp:1e3*r,title:i,authorDescription:s,description:o,author:c,url:l,tags:u,arweaveId:d,arweaveIPFSHash:p,mattersIPFSHash:m,mattersPublishedArticleHash:f,mattersArticleId:h,mattersId:g,mattersArticleSlug:E})}catch(e){return B.setHTTPErrors(e.message)}},*selectNFTInfo(e){if(!e)return{};try{const t=yield B.getNFTInfo(e),{classId:n,currentPrice:r}=t.data;return B.setNFTInfo({classId:n,currentPrice:r})}catch(e){return console.error(e),{}}}},actions:B};v(I,y);var k=function(){return(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 4C7.94772 4 7.5 4.44772 7.5 5C7.5 5.55228 7.94772 6 8.5 6H9V14H8.5C7.94772 14 7.5 14.4477 7.5 15C7.5 15.5523 7.94772 16 8.5 16H11.5C12.0523 16 12.5 15.5523 12.5 15C12.5 14.4477 12.0523 14 11.5 14H11V6H11.5C12.0523 6 12.5 5.55228 12.5 5C12.5 4.44772 12.0523 4 11.5 4H8.5ZM15.2929 13.7071C14.9024 13.3166 14.9024 12.6834 15.2929 12.2929L17.5858 10L15.2929 7.70711C14.9024 7.31658 14.9024 6.68342 15.2929 6.29289C15.6834 5.90237 16.3166 5.90237 16.7071 6.29289L19.7071 9.29289C20.0976 9.68342 20.0976 10.3166 19.7071 10.7071L16.7071 13.7071C16.3166 14.0976 15.6834 14.0976 15.2929 13.7071ZM4.70711 6.29289C5.09763 6.68342 5.09763 7.31658 4.70711 7.70711L2.41421 10L4.70711 12.2929C5.09763 12.6834 5.09763 13.3166 4.70711 13.7071C4.31658 14.0976 3.68342 14.0976 3.29289 13.7071L0.292893 10.7071C-0.0976311 10.3166 -0.097631 9.68342 0.292893 9.29289L3.29289 6.29289C3.68342 5.90237 4.31658 5.90237 4.70711 6.29289Z",fill:"#4A4A4A"}))},A=function(t){return(0,e.createElement)("div",{onClick:t.onClick,style:{cursor:"pointer"}},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.8384 3.74744C15.2289 3.35691 15.8621 3.35691 16.2526 3.74744C16.6431 4.13796 16.6431 4.77113 16.2526 5.16165L11.4143 10L16.2526 14.8383C16.6431 15.2289 16.6431 15.862 16.2526 16.2526C15.8621 16.6431 15.2289 16.6431 14.8384 16.2526L10 11.4142L5.1617 16.2526C4.77117 16.6431 4.13801 16.6431 3.74748 16.2526C3.35696 15.862 3.35696 15.2289 3.74748 14.8383L8.58583 10L3.74748 5.16165C3.35696 4.77113 3.35696 4.13796 3.74748 3.74744C4.13801 3.35691 4.77117 3.35691 5.1617 3.74744L10 8.58578L14.8384 3.74744Z",fill:"#9B9B9B"})))},x=function(t){return(0,e.createElement)("div",null,(0,e.createElement)("p",{className:"sidebarPopUpRowTitle"}," ",t.title," "))},P=function(t){return(0,e.createElement)("div",null,(0,e.createElement)("p",null,t.details))},O=function(t){return(0,e.createElement)("div",{className:"TagOuterDiv"},(0,e.createElement)("p",null," ",t.tag," "))};const R=[{name:(0,s.__)("(Not set)","likecoin"),value:""},{name:"CC0",value:"http://creativecommons.org/publicdomain/zero/1.0/"},{name:"CC-BY",value:"https://creativecommons.org/licenses/by/4.0/"},{name:"CC-BY-SA",value:"https://creativecommons.org/licenses/by-sa/4.0/"}];var L=function(t){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c,{title:(0,s.__)("License:","likecoin")}),(0,e.createElement)("select",{name:"license",onChange:e=>{t.onSelect(e.target.value)},disabled:!!t.disabled||null},R.map((n=>(0,e.createElement)("option",{selected:n.value===t.defaultLicense||null,value:n.value},n.name)))))},F=function(t){return(0,e.createElement)("div",{onClick:t.onClick,style:t.paddingLeft?{paddingLeft:t.paddingLeft}:{}},(0,e.createElement)("svg",{width:"22",height:"22",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4,9.7l0.9-9c0.1-0.9,1.3-0.9,1.4,0l0.9,9c0.2,2,1.8,3.6,3.7,3.7l9,0.9c0.9,0.1,0.9,1.3,0,1.4l-9,0.9 c-2,0.2-3.6,1.8-3.7,3.7l-0.9,9c-0.1,0.9-1.3,0.9-1.4,0l-0.9-9c-0.2-2-1.8-3.6-3.7-3.7l-9-0.9c-0.9-0.1-0.9-1.3,0-1.4l9-0.9 C11.7,13.2,13.2,11.7,13.4,9.7z",fill:t.color})))};const{postId:U}=window.wpApiSettings,M="likecoin/button_info_store",j=`/likecoin/v1/posts/${U}/button/settings`,H=`/likecoin/v1/posts/${U}/button/settings`,$={isWidgetEnabled:!1,isOptionDisabled:!0,isLikerIdMissing:!1},V={getButtonSettings:()=>({type:"GET_BUTTON_SETTINGS"}),setButtonSettings:e=>({type:"SET_BUTTON_SETTINGS",data:e}),*fetchButtonSettings(){const e=yield{type:"GET_BUTTON_SETTINGS"};if(!e)throw new Error("FETCH_BUTTON_SETTINGS_ERROR");return e},*postButtonSettings(e){if(!(yield{type:"POST_BUTTON_SETTINGS",data:e}))throw new Error("FAIL_TO_POST_BUTTON_SETTINGS")}},W={reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t=arguments.length>1?arguments[1]:void 0;if("SET_BUTTON_SETTINGS"===t.type){const{isWidgetEnabled:n,isOptionDisabled:r,isLikerIdMissing:a}=t.data;return{...e,isWidgetEnabled:n,isOptionDisabled:r,isLikerIdMissing:a}}return e},controls:{GET_BUTTON_SETTINGS:()=>E()({path:j}),POST_BUTTON_SETTINGS:e=>E()({method:"POST",path:H,data:{is_widget_enabled:e.data.isEnabled?"bottom":"none"}})},selectors:{getButtonSettings:e=>e},resolvers:{*getButtonSettings(){const e=yield V.getButtonSettings(),{is_widget_enabled:t,is_disabled:n,show_no_id_error:r}=e;return V.setButtonSettings({isWidgetEnabled:t,isOptionDisabled:n,isLikerIdMissing:r})}},actions:V};v(M,W);const{likecoHost:G,likerlandHost:q}=window.wpApiSettings;var z=function(t){const n=(0,a.useSelect)((e=>e("core/editor").getEditedPostAttribute("content"))),{setISCNLicense:d}=(0,a.useDispatch)(I),f=(0,a.useSelect)((e=>e(I).getLicense())),{isWidgetEnabled:h,isOptionDisabled:g}=(0,a.useSelect)((e=>e(M).getButtonSettings())),{setButtonSettings:E,postButtonSettings:v}=(0,a.useDispatch)(M),S=(0,m.count)(n,"words",{}),[N,w]=(0,r.useState)(!1),[_,C]=(0,r.useState)(!0),[T,b]=(0,r.useState)(!0),[D,B]=(0,r.useState)(!0),[y,R]=(0,r.useState)(!0),[U,j]=(0,r.useState)("#3973B9"),H=(0,a.useSelect)((e=>e("core/edit-post").isPluginSidebarOpened())),$=(0,a.useSelect)((e=>e("core/editor").isCurrentPostPublished())),V=(0,a.useSelect)((e=>e("core/editor").getEditedPostAttribute("modified_gmt")));function W(e){e.preventDefault(),w(!N)}return(0,r.useEffect)((()=>{b(!!$&&!t.ISCNId)}),[$,t.ISCNId]),(0,r.useEffect)((()=>{B(!!($&&t.ISCNTimestamp&&Date.parse(`${V}Z`)>t.ISCNTimestamp))}),[$,V,t.ISCNTimestamp]),(0,r.useEffect)((()=>R(!!t.ISCNId)),[t.ISCNId]),(0,r.useEffect)((()=>{const e=t.ISCNVersion?`${t.ISCNVersion} (${new Date(t.ISCNTimestamp).toGMTString()})`:"-";C(e)}),[t.ISCNVersion,t.ISCNTimestamp]),(0,r.useEffect)((()=>{j(H?"white":"#3973B9")}),[H,j]),(0,e.createElement)(i.PluginSidebar,{name:"likecoin-sidebar",title:(0,s.__)("Web3Press","likecoin"),icon:(0,e.createElement)(F,{color:U})},(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"dePubMainSidebarDiv"},(0,e.createElement)("p",{className:"dePubStatusRed"},(0,s.__)("Decentralized Publishing","likecoin"))),(0,e.createElement)("div",{className:"likeCoinIconOuterDiv"},(0,e.createElement)(o,{color:"#9B9B9B"}))),!$&&(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"divInnerHolder"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",onClick:e=>{e.preventDefault(),document.getElementsByClassName("editor-post-publish-button__button")[0].click()}},(0,s.__)("Publish your post first","likecoin")))),T&&(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"divInnerHolder"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",onClick:t.handleRegisterISCN},(0,s.__)("Publish","likecoin")))),D&&(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"divInnerHolder"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",onClick:t.handleRegisterISCN},(0,s.__)("Update","likecoin")))),y&&(0,e.createElement)("div",{className:"divOuterHolder"},(0,e.createElement)("div",{className:"divInnerHolder"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextBtn",onClick:t.handleNFTAction},t.NFTClassId?(0,s.__)("View NFT","likecoin"):(0,s.__)("Mint NFT","likecoin")))),(0,e.createElement)("div",{className:"divOuterHolderMainSidebar"},(0,e.createElement)(l,{title:(0,s.__)("Publishing Status","likecoin"),status:""}),(0,e.createElement)(u,{isCurrentPostPublished:$,ISCNId:t.ISCNId}),(0,e.createElement)(l,{title:(0,s.__)("ISCN ID","likecoin"),status:t.ISCNId?t.ISCNId:"-",link:t.ISCNId?`https://app.${G}/view/${encodeURIComponent(t.ISCNId)}`:""}),t.ISCNId&&(0,e.createElement)(l,{title:(0,s.__)("NFT","likecoin"),status:t.NFTClassId?t.NFTClassId:(0,s.__)("Mint Now","likecoin"),link:t.NFTClassId?`https://${q}/nft/class/${encodeURIComponent(t.NFTClassId)}`:""}),(0,e.createElement)(l,{title:(0,s.__)("Storage","likecoin"),status:t.arweaveId?t.arweaveId:"-",link:t.arweaveId?`https://arweave.net/${t.arweaveId}`:""}),(0,e.createElement)(l,{title:(0,s.__)("Version","likecoin"),status:_})),!g&&(0,e.createElement)("div",{className:"divOuterHolderMainSidebar"},(0,e.createElement)(c,{title:(0,s.__)("Widget","likecoin")}),(0,e.createElement)(p.CheckboxControl,{label:(0,s.__)("Enable in-post widget","likecoin"),help:(0,s.__)("Embed widget in this post (Overrides site setting)","likecoin"),checked:!!h,onChange:function(){const e=!h;v({isEnabled:e}),E({isWidgetEnabled:e})}})),(0,e.createElement)("div",{className:"divOuterHolderMainSidebar"},(0,e.createElement)(L,{defaultLicense:f,onSelect:function(e){d(e)},disabled:!(!$||T||D)})),(0,e.createElement)("div",{className:"divOuterHolderMainSidebar"},(0,e.createElement)("div",{className:"sidebarStatusTitleOuterDivPointer",onClick:W},(0,e.createElement)(c,{title:(0,s.__)("Metadata","likecoin")}),(0,e.createElement)("div",{className:"marginLeftAuto"},(0,e.createElement)(k,null))),N&&(0,e.createElement)("div",{className:"popUpWrapper"},(0,e.createElement)("div",{className:"popUpMainTitleDiv"},(0,e.createElement)(x,{title:(0,s.__)("Metadata","likecoin")}),(0,e.createElement)("div",{className:"popUpCrossIconWrapper"},(0,e.createElement)(A,{onClick:W}))),(0,e.createElement)("div",{className:"popUpMainContentWrapper"},(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(x,{title:(0,s.__)("Title","likecoin")}),(0,e.createElement)(P,{details:t.title})),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(x,{title:(0,s.__)("Description","likecoin")}),(0,e.createElement)(P,{details:t.description})),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(x,{title:(0,s.__)("Author","likecoin")}),(0,e.createElement)(P,{details:t.author})),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(x,{title:(0,s.__)("Tag","likecoin")}),(0,e.createElement)("div",{className:"flexBoxRow"},t.tags&&t.tags.length>0&&t.tags.map((t=>(0,e.createElement)(O,{tag:t}))))),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(x,{title:(0,s.__)("Url","likecoin")}),(0,e.createElement)(P,{details:t.url})),(0,e.createElement)("div",{className:"popUpMainContentRow"},(0,e.createElement)(c,{title:(0,s.__)("Word count","likecoin")}),(0,e.createElement)(P,{details:S}))))))},J=function(){return(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__arrow",role:"img","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}))},Z=function(){return(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__arrow",role:"img","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))},X=function(t){const[n,a]=(0,r.useState)(!0);return(0,e.createElement)(i.PluginPostPublishPanel,null,(0,e.createElement)("div",{className:"divOuterHolderStatusInfoPanel"},(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)("div",{className:"dePubDiv"},(0,e.createElement)("p",{className:"dePubStatusRed"},(0,s.__)("Web3Press","likecoin"))),(0,e.createElement)("div",{className:"likeCoinIconOuterDiv"},(0,e.createElement)(o,{color:"#9B9B9B"})),(0,e.createElement)("div",{onClick:function(e){e.preventDefault(),a(!n)},className:"marginLeftAuto"},!n&&(0,e.createElement)(Z,null),n&&(0,e.createElement)(J,null))),n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"flexBoxRow"},(0,e.createElement)("div",null,(0,e.createElement)("p",{className:"flexBoxRowNormalText"},(0,s.__)("Register your content to decetralized publishing","likecoin")))),(0,e.createElement)("div",{className:"registerISCNBtnOuterDiv"},(0,e.createElement)("button",{className:"blueBackgroundWhiteTextSmallBtn",onClick:t.handleRegisterISCN},(0,s.__)("Publish","likecoin")),(0,e.createElement)("button",{className:"whiteBackgroundBlueTextSmallBtn",onClick:e=>{e.preventDefault(),document.querySelector('[aria-label="Close panel"]').click()}},(0,s.__)("Details","likecoin"))))))};const{siteurl:K,likecoHost:Y,likerlandHost:Q}=window.wpApiSettings,ee=`https://${Y}`,te=`https://app.${Y}`,ne="LikeCoin WordPress Plugin";var re=function(){const{DBLIKEPayAmount:t,DBMemo:n,DBArticleTitle:i,DBAuthorDescription:s,DBDescription:o,DBAuthor:c,DBArticleURL:l,DBArticleTags:u,DBISCNId:p,DBArweaveId:m,DBMattersIPFSHash:f,DBMattersPublishedArticleHash:h,DBISCNVersion:g,DBISCNTimestamp:E,DBMattersDraftId:v,DBMattersArticleId:S,DBMattersId:N,DBMattersArticleSlug:w,DBLicense:_}=(0,a.useSelect)((e=>e(I).selectISCNInfo())),{DBNFTClassId:C}=(0,a.useSelect)((e=>e(I).selectNFTInfo(p))),{fetchISCNRegisterData:T,postArweaveInfoData:b,postISCNInfoData:D}=(0,a.useDispatch)(I),[B,y]=(0,r.useState)(i),[k,A]=(0,r.useState)(s),[x,P]=(0,r.useState)(o),[O,R]=(0,r.useState)(c),[L,F]=(0,r.useState)(l),[U,M]=(0,r.useState)(u),[j,H]=(0,r.useState)(p),[$,V]=(0,r.useState)(C),[W,G]=(0,r.useState)(m),[q,J]=(0,r.useState)(f),[Z,Y]=(0,r.useState)(h),[re,ae]=(0,r.useState)(g),[ie,se]=(0,r.useState)(E),[oe,ce]=(0,r.useState)(v),[le,ue]=(0,r.useState)(S),[de,pe]=(0,r.useState)(N),[me,fe]=(0,r.useState)(w),[he,ge]=(0,r.useState)([]),[Ee,ve]=(0,r.useState)(!1),[Se,Ne]=(0,r.useState)(!1),[Ie,we]=(0,r.useState)(null),_e=(0,r.useCallback)((e=>{const{ipfsHash:t,arweaveId:n}=e;G(n),b({ipfsHash:t,arweaveId:n})}),[b]),Ce=(0,r.useCallback)((e=>{const{tx_hash:t,iscnId:n,iscnVersion:r,timestamp:a}=e;D({iscnHash:t,iscnId:n,iscnVersion:r,timestamp:a,license:_})}),[_,D]),Te=(0,r.useCallback)((async()=>{Ie.postMessage(JSON.stringify({action:"INIT_WIDGET"}),ee);const e=await T(),{files:t,title:n,tags:r,url:a,author:i,authorDescription:s,description:o}=e;y(n),M(r),F(a),R(i),A(s),P(o);const c=JSON.stringify({action:"SUBMIT_ISCN_DATA",data:{metadata:{fingerprints:he,name:n,tags:r,url:a,author:i,authorDescription:s,description:o,type:"article",license:_,recordNotes:ne,memo:ne},files:t}});Ie.postMessage(c,ee)}),[_,T,he,Ie]),be=(0,r.useCallback)((async e=>{if(e&&e.data&&(e.origin===ee||e.origin===te)&&"string"==typeof e.data)try{const{action:t,data:n}=JSON.parse(e.data);"ISCN_WIDGET_READY"===t?Ne(!0):"ARWEAVE_SUBMITTED"===t?_e(n):"ISCN_SUBMITTED"===t?Ce(n):"NFT_MINT_DATA"===t?n.classId&&V(n.classId):console.warn(`Unknown event: ${t}`)}catch(e){console.error(e)}}),[_e,Ce]),De=(0,r.useCallback)((()=>{const e=encodeURIComponent(j||""),t=encodeURIComponent(K),n=`${ee}/in/widget/iscn-ar?opener=1&platform=wordpress&redirect_uri=${t}&iscn_id=${e}`;try{const e=window.open(n,"likePayWindow","menubar=no,location=no,width=576,height=768");if(!e||e.closed||void 0===e.closed)return void console.error("POPUP_BLOCKED");we(e),window.addEventListener("message",be,!1)}catch(e){console.error(e)}}),[j,be]);async function Be(e){e.preventDefault(),ve(!0)}(0,r.useEffect)((()=>{if(y(i),s){const{length:e}=s.split(" ");if(e>200){const t=s.split(" ").slice(0,197).join(" ").concat("...").concat(s.split(" ")[e-1]);A(t)}else A(s)}o&&P(o),R(c),F(l),M(u),H(p),V(C),ae(g),se(E),ce(v),ue(S),pe(N),fe(w),Y(h),G(m)}),[t,n,i,s,o,c,l,u,p,g,E,C,v,S,N,w,h,m]),(0,r.useEffect)((()=>{J(f);const e=[];if(f&&"-"!==f){const t=`ipfs://${f}`;e.push(t)}e.length>1&&ge(e)}),[f]),(0,r.useEffect)((()=>{Ee&&(De(),ve(!1)),Se&&(Te(),Ne(!1))}),[Ee,Se,De,Te]);const ye=async e=>{if(e&&e.data&&e.origin===te&&"string"==typeof e.data)try{const{action:t,data:n}=JSON.parse(e.data);"NFT_MINT_DATA"===t?n.classId&&V(n.classId):console.warn(`Unknown event: ${t}`)}catch(e){console.error(e)}},ke=(0,r.useCallback)((e=>{if(e.preventDefault(),!j)return;const t=encodeURIComponent(K),n=$?`https://${Q}/nft/class/${encodeURIComponent($)}`:`${te}/nft/iscn/${encodeURIComponent(j)}?opener=1&platform=wordpress&redirect_uri=${t}`;window.open(n,"_blank")&&!$&&window.addEventListener("message",ye,!1)}),[j,$]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(z,{handleRegisterISCN:Be,handleNFTAction:ke,ISCNId:j,arweaveId:W,ISCNVersion:re,ISCNTimestamp:ie,NFTClassId:$,mattersDraftId:oe,mattersArticleId:le,mattersId:de,mattersArticleSlug:me,mattersIPFSHash:q,mattersPublishedArticleHash:Z,title:B,authorDescription:k,description:x,author:O,tags:U,url:L}),(0,e.createElement)(d,{handleRegisterISCN:Be,handleNFTAction:ke,ISCNId:j,arweaveId:W,ISCNVersion:re,ISCNTimestamp:ie,NFTClassId:$,mattersDraftId:oe,mattersArticleId:le,mattersId:de,mattersArticleSlug:me,mattersIPFSHash:q,mattersPublishedArticleHash:Z}),(0,e.createElement)(X,{handleRegisterISCN:Be}))};(0,t.registerPlugin)("likecoin-sidebar",{render:function(){return(0,e.createElement)(re,null)}})}()}();
  • likecoin/trunk/js/sidebar/src/pages/LikeCoinPluginSideBar.js

    r2866440 r2888124  
    22import { useState, useEffect } from 'react';
    33import { useSelect, useDispatch } from '@wordpress/data';
     4import { CheckboxControl } from '@wordpress/components';
    45import { __ } from '@wordpress/i18n';
    56import { count as wordCount } from '@wordpress/wordcount';
     
    1617import LicensePicker from '../components/LicensePicker';
    1718import Web3PressIconPinbar from '../components/Web3PressPinbar';
     19import { BUTTON_INFO_STORE_NAME } from '../store/button-info-store';
    1820
    1921const { likecoHost, likerlandHost } = window.wpApiSettings;
     
    2325  const { setISCNLicense } = useDispatch(ISCN_INFO_STORE_NAME);
    2426  const iscnLicense = useSelect((select) => select(ISCN_INFO_STORE_NAME).getLicense());
     27  const {
     28    isWidgetEnabled: isEnabledButton,
     29    isOptionDisabled: isHideButtonSetting,
     30  } = useSelect((select) => select(BUTTON_INFO_STORE_NAME).getButtonSettings());
     31  const { setButtonSettings, postButtonSettings } = useDispatch(BUTTON_INFO_STORE_NAME);
    2532  const numberOfWords = wordCount(content, 'words', {});
    2633  const [showMetaData, setShowMetaData] = useState(false);
     
    5057  function handleOnLicenseSelect(license) {
    5158    setISCNLicense(license);
     59  }
     60  function handleOnButtonSettingChange() {
     61    const isEnabled = !isEnabledButton;
     62    postButtonSettings({ isEnabled });
     63    setButtonSettings({ isWidgetEnabled: isEnabled });
    5264  }
    5365  function handleShowMetaData(e) {
     
    172184        />
    173185      </div>
     186      {!isHideButtonSetting && (
     187        <div className='divOuterHolderMainSidebar'>
     188          <StatusTitle title={__('Widget', 'likecoin')} />
     189          <CheckboxControl
     190              label={__('Enable in-post widget', 'likecoin')}
     191              help={__('Embed widget in this post (Overrides site setting)', 'likecoin')}
     192              checked={!!isEnabledButton}
     193              onChange={handleOnButtonSettingChange}
     194          />
     195        </div>
     196      )}
    174197      <div className='divOuterHolderMainSidebar'>
    175198        <LicensePicker
  • likecoin/trunk/likecoin.php

    r2884821 r2888124  
    1414 * Plugin URI:   https://github.com/likecoin/likecoin-wordpress
    1515 * Description:  Publishes your posts to the blockchain. Sell your posts, share your work, build community, preserve content.
    16  * Version:      3.0.5
     16 * Version:      3.0.6
    1717 * Author:       LikeCoin
    1818 * Author URI:   https://like.co/
     
    4242define( 'LC_PLUGIN_SLUG', 'likecoin' );
    4343define( 'LC_PLUGIN_NAME', 'Web3Press By LikeCoin' );
    44 define( 'LC_PLUGIN_VERSION', '3.0.5' );
     44define( 'LC_PLUGIN_VERSION', '3.0.6' );
    4545
    4646require_once dirname( __FILE__ ) . '/includes/constant/options.php';
  • likecoin/trunk/readme.txt

    r2884821 r2888124  
    77Tested up to: 6.1
    88Requires PHP: 5.4
    9 Stable tag: 3.0.5
     9Stable tag: 3.0.6
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    150150
    151151== Changelog ==
     152
     153= 3.0.6 =
     154
     155- Add widget settings in editor sidebar. Please allow per post widget settings in plugin advanced settings first.
    152156
    153157= 3.0.5 =
Note: See TracChangeset for help on using the changeset viewer.