Changeset 2114499
- Timestamp:
- 06/28/2019 11:14:48 PM (7 years ago)
- Location:
- soundcheck
- Files:
-
- 3 edited
- 15 copied
-
tags/1.0.2 (copied) (copied from soundcheck/trunk)
-
tags/1.0.2/2c3962efb5c14417eb99b15033163bd8.png (copied) (copied from soundcheck/trunk/2c3962efb5c14417eb99b15033163bd8.png)
-
tags/1.0.2/a69dbe4634047ba85aba5e10462c54cb.png (copied) (copied from soundcheck/trunk/a69dbe4634047ba85aba5e10462c54cb.png)
-
tags/1.0.2/admin.build.css (copied) (copied from soundcheck/trunk/admin.build.css)
-
tags/1.0.2/admin.build.js (copied) (copied from soundcheck/trunk/admin.build.js) (1 diff)
-
tags/1.0.2/bdf0973488134dbe05148d77d0311973.png (copied) (copied from soundcheck/trunk/bdf0973488134dbe05148d77d0311973.png)
-
tags/1.0.2/blocks.build.js (copied) (copied from soundcheck/trunk/blocks.build.js)
-
tags/1.0.2/blocks.editor.build.css (copied) (copied from soundcheck/trunk/blocks.editor.build.css)
-
tags/1.0.2/blocks.style.build.css (copied) (copied from soundcheck/trunk/blocks.style.build.css)
-
tags/1.0.2/plugin.php (copied) (copied from soundcheck/trunk/plugin.php) (1 diff)
-
tags/1.0.2/readme.txt (copied) (copied from soundcheck/trunk/readme.txt) (2 diffs)
-
tags/1.0.2/sidebar.build.js (copied) (copied from soundcheck/trunk/sidebar.build.js)
-
tags/1.0.2/src (copied) (copied from soundcheck/trunk/src)
-
tags/1.0.2/src/init-admin.php (copied) (copied from soundcheck/trunk/src/init-admin.php)
-
tags/1.0.2/src/init-blocks.php (copied) (copied from soundcheck/trunk/src/init-blocks.php)
-
trunk/admin.build.js (modified) (1 diff)
-
trunk/plugin.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
soundcheck/tags/1.0.2/admin.build.js
r2113682 r2114499 1 !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=25)}([function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.data},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r="https://api.peck.me",o="https://soundcheck.ai"},function(e,t,n){"use strict";var r={};r.logo=function(e){return wp.element.createElement("svg",{width:e+"px",height:e+"px",viewBox:"0 0 53 53",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,"Soundcheck"),wp.element.createElement("g",{id:"Soundcheck",fill:"#3BAB48"},wp.element.createElement("path",{d:"M37.1598063,1 L16.666899,1 L16.666899,1.02119114 C16.3943259,1.01009102 16.1227512,1 15.8511765,1 C7.09988132,1 0,8.16967043 0,17.0154594 L0,51 L37.1598063,51 C45.9111015,51 53,43.8353751 53,34.9905952 L53,17.0154594 C53,8.16967043 45.9111015,1 37.1598063,1 L37.1598063,1 Z M11.626792,32.1479546 C11.626792,33.1671477 10.8060773,33.9966296 9.79665806,33.9966296 C8.78324511,33.9966296 7.96752256,33.1671477 7.96752256,32.1479546 L7.96752256,23.7673616 C7.96752256,22.743123 8.78324511,21.9186866 9.79665806,21.9186866 C10.8060773,21.9186866 11.626792,22.743123 11.626792,23.7673616 L11.626792,32.1479546 Z M19.0351902,39.8352944 C19.0351902,40.8554966 18.213477,41.6849785 17.2050562,41.6849785 C16.195637,41.6849785 15.3749223,40.8554966 15.3749223,39.8352944 L15.3749223,16.0800218 C15.3749223,15.0547741 16.195637,14.2303376 17.2050562,14.2303376 C18.213477,14.2303376 19.0351902,15.0547741 19.0351902,16.0800218 L19.0351902,39.8352944 Z M27.6606823,33.9179196 C27.6606823,34.9431674 26.8399676,35.7665947 25.8315468,35.7665947 C24.8221276,35.7665947 24.0014129,34.9431674 24.0014129,33.9179196 L24.0014129,21.992351 C24.0014129,20.9721488 24.8221276,20.1426669 25.8315468,20.1426669 C26.8399676,20.1426669 27.6606823,20.9721488 27.6606823,21.992351 L27.6606823,33.9179196 Z M36.2871729,36.0895074 C36.2871729,37.1087005 35.4664582,37.9381824 34.457039,37.9381824 C33.4476198,37.9381824 32.626905,37.1087005 32.626905,36.0895074 L32.626905,19.8207633 C32.626905,18.8005611 33.4476198,17.9710791 34.457039,17.9710791 C35.4664582,17.9710791 36.2871729,18.8005611 36.2871729,19.8207633 L36.2871729,36.0895074 Z M44.8707307,32.1479546 C44.8707307,33.1671477 44.050016,33.9966296 43.0415952,33.9966296 C42.0271838,33.9966296 41.2114613,33.1671477 41.2114613,32.1479546 L41.2114613,23.7673616 C41.2114613,22.743123 42.0271838,21.9186866 43.0415952,21.9186866 C44.050016,21.9186866 44.8707307,22.743123 44.8707307,23.7673616 L44.8707307,32.1479546 Z",id:"logo"})))},r.speakable=function(e,t){return wp.element.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 78 78",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,e),wp.element.createElement("g",{id:"Speakable",fill:t,transform:"translate(2.000000, 0.000000)"},wp.element.createElement("path",{d:"M26.4788729,69.9405038 L9.41272422,77.3999991 L12.6487443,62.8196156 C4.92071963,56.3078621 0,46.4867881 0,35.5 C0,15.8938914 15.6700338,2.13162821e-14 35,2.13162821e-14 C54.3299662,2.13162821e-14 70,15.8938914 70,35.5 C70,55.1061086 54.3299662,71 35,71 C32.0609411,71 29.2064934,70.6325615 26.4788729,69.9405038 Z M28.2601921,52.8310547 C32.6326098,44.9247652 37.1284958,38.0443001 41.7479851,32.1894531 C46.3674743,26.3346061 50.6312663,22.1269659 54.539489,19.5664062 C52.8623973,19.012367 51.3051212,18.7353516 49.867614,18.7353516 C47.5765869,18.7353516 45.7385519,19.1471313 44.3534538,19.9707031 C42.9683557,20.794275 41.3025195,22.4713415 39.3558952,25.0019531 C37.1846604,27.8170714 34.1524642,32.9156532 30.2592155,40.2978516 C29.7201503,37.76724 29.0687897,35.9891002 28.305114,34.9633789 C27.5414383,33.9376576 26.4932717,33.4248047 25.1605827,33.4248047 C23.1540623,33.4248047 20.8705565,34.5029189 18.3099968,36.6591797 C20.4962056,37.9619206 22.3903924,40.200505 23.992614,43.375 L24.8236687,45.0595703 C25.1231493,45.6735057 25.4825207,46.4671175 25.9017937,47.4404297 L27.2719108,50.6074219 C27.3917031,50.9069025 27.7211269,51.6481061 28.2601921,52.8310547 Z",id:"icon"})))},r.colors={speakable_purple:"#6A64B6",peck_green:"#3BAB48"},t.a=r},function(e,t){e.exports=wp.compose},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){h&&m&&(h=!1,m.length?d=m.concat(d):v=-1,d.length&&c())}function c(){if(!h){var e=o(i);h=!0;for(var t=d.length;t;){for(m=d,d=[];++v<t;)m&&m[v].run();v=-1,t=d.length}m=null,h=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function s(){}var u,p,f=e.exports={};!function(){try{u="function"===typeof setTimeout?setTimeout:n}catch(e){u=n}try{p="function"===typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var m,d=[],h=!1,v=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new l(e,t)),1!==d.length||h||o(c)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.prependListener=s,f.prependOnceListener=s,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(3),o=function(e){var t=e.path,n=e.method,o=e.body,a=localStorage.getItem("jwt"),i=n||"GET",c={method:i,mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"}};a&&(c.headers.Authorization="Bearer "+a);var l=""+r.a+t,s=c;switch(n){case"PUT":case"POST":s.body=JSON.stringify(o);default:return fetch(l,s).then(function(e){if(200==e.status)return e.json();throw new Error(e.statusText)})}};t.a=o},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(49)),i=(n.n(a),Object(o.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setUser;return{signOut:function(){r(null),localStorage.removeItem("jwt")}}})(function(e){var t=e.signOut;return wp.element.createElement(r.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-dashboard-footer"},wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.Button,{isLink:!0,onClick:t},"Sign Out")),wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.ExternalLink,{href:"https://soundcheck.ai"},"soundcheck.ai")),wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.ExternalLink,{href:"mailto:help@soundcheck.ai"},"Help"))))}));t.a=i},function(e,t){e.exports="/wp-content/plugins/soundcheck/ dist/a69dbe4634047ba85aba5e10462c54cb.png"},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(3)),a=function(){var e=window.location.hostname,t=window.location.protocol+"//"+e,n=localStorage.getItem("jwt"),a=function(){var e=o.b+"/start/wordpress?url="+encodeURIComponent(t)+"&token="+n;window.location.href=e};return wp.element.createElement(r.Button,{isPrimary:!0,onClick:a},"Create Listing for ",e)};t.a=a},function(e,t,n){e.exports=n(26)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=(n.n(i),n(34)),l=n.n(c),s=n(41),u=(n.n(s),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.headers,n=e.data;return wp.element.createElement("div",{className:"soundcheck-table"},wp.element.createElement("div",{className:"soundcheck-table_header"},t.map(function(e,t){return wp.element.createElement(m,{key:t,title:e})})),wp.element.createElement("div",{className:"soundcheck-table_content"},n.map(function(e,t){return wp.element.createElement(f,{key:t,row:e})})))}}]),t}(i.Component);p.propTypes={headers:l.a.arrayOf(l.a.string),data:l.a.array.isRequired};var f=function(e){var t=e.row;return wp.element.createElement("div",{className:"soundcheck-table_row"},t.map(function(e,t){return e.component?wp.element.createElement("div",{key:t,className:"soundcheck-table_data"},e.component):wp.element.createElement("div",{key:t,className:"soundcheck-table_data",dangerouslySetInnerHTML:{__html:e.value}})}))},m=function(e){var t=e.title;return wp.element.createElement("div",{className:"soundcheck-table_header-item"},t)};t.a=p},function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(35):e.exports=n(36)}).call(t,n(6))},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(2)),a=(n.n(o),n(0)),i=(n.n(a),n(5)),c=(n.n(i),n(7)),l=n(3),s=n(50),u=(n.n(s),n(10)),p=n.n(u),f=Object(i.compose)([Object(o.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setUser;return{onToken:function(e){localStorage.setItem("jwt",e),Object(c.a)({path:"/v4/user"}).then(function(e){r(e)})}}}),Object(i.withState)({email:void 0,codeSent:!1})])(function(e){var t=e.codeSent,n=e.email,r=e.className,o=e.setState,i=e.onToken;return wp.element.createElement(a.Panel,{header:"Already Have an Account?",className:r||""},wp.element.createElement(a.PanelBody,null,wp.element.createElement(a.PanelRow,null,wp.element.createElement("div",{className:"sign-in"},wp.element.createElement("div",{className:"sign-in__form"},wp.element.createElement("div",{class:"logo"},wp.element.createElement("img",{height:"48",src:p.a})),wp.element.createElement("h3",null,"Sign In"),t?wp.element.createElement(d,{email:n,onGoBack:function(){o({codeSent:!1})},onTokenReceived:i}):wp.element.createElement(m,{onCodeSent:function(e){o({codeSent:!0,email:e})}}))))))}),m=Object(i.withState)({email:"",error:null})(function(e){var t=e.onCodeSent,n=e.email,o=e.setState,i=e.error;return wp.element.createElement(r.Fragment,null,i&&wp.element.createElement("div",{className:"sign-in__notice"},wp.element.createElement(a.Notice,{status:"error",onRemove:function(){o({error:null})}},i)),wp.element.createElement(a.TextControl,{label:"Your Email Address",type:"email",value:n,onChange:function(e){return o({email:e})}}),wp.element.createElement(a.Button,{className:"sign-in__button",isPrimary:!0,onClick:function(){if(n)return fetch(l.a+"/auth/email",{method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,create:!1})}).then(function(e){200==e.status?t(n):500==e.status?o({error:"There was an error sending your login code."}):e.json().then(function(e){o({error:e.message})})}).catch(function(e){return o({error:e})})}},"Send Sign In Code"))}),d=Object(i.withState)({authCode:"000000",error:null})(function(e){var t=e.authCode,n=e.onGoBack,o=e.onTokenReceived,i=e.error,c=e.email,s=e.setState;return wp.element.createElement(r.Fragment,null,i&&wp.element.createElement("div",{className:"sign-in__notice"},wp.element.createElement(a.Notice,{status:"error",onRemove:function(){s({error:null})}},i)),wp.element.createElement(a.TextControl,{label:"Your Login Code",type:"text",onChange:function(e){s({authCode:e})}}),wp.element.createElement(a.Button,{className:"sign-in__button",isPrimary:!0,onClick:function(){return fetch(l.a+"/auth/email?email="+encodeURIComponent(c)+"&code="+t,{method:"GET",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"}}).then(function(e){if(200==e.status)return e.json();throw new Error("Invalid login token")}).then(function(e){o(e.token)}).catch(function(e){s({error:e.message})})}},"Confirm Code"),wp.element.createElement("p",null,"Didn't receive your code?"),wp.element.createElement(a.Button,{isLink:!0,onClick:n},"Try Again"))});t.a=f},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(9)),a=n(11),i=function(e){var t=e.domain;return wp.element.createElement(r.Panel,{header:"Soundcheck Voice Hosting"},wp.element.createElement(r.PanelBody,null,wp.element.createElement(r.Notice,{status:"warning",isDismissible:!1},"This domain ",t," is not listed with Soundcheck."),wp.element.createElement("p",null,"You can list your domain for free and start making your business ready for voice."),wp.element.createElement("p",null,wp.element.createElement(a.a,null)),wp.element.createElement(o.a,null)))};t.a=i},function(e,t){e.exports="/wp-content/plugins/soundcheck/dist/bdf0973488134dbe05148d77d0311973.png"},function(e,t){e.exports="/wp-content/plugins/soundcheck/dist/2c3962efb5c14417eb99b15033163bd8.png"},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),a=n(1),i=(n.n(a),n(28)),c=n.n(i),l=n(7),s=n(2),u=(n.n(s),n(29)),p=n(54),f=n(55);Object(s.registerStore)("soundcheck",{reducer:Object(s.combineReducers)({speakables:p.b,voiceApps:p.c,soundcheckAuth:p.a}),actions:f.a,selectors:{getSpeakablePosts:function(e){return e.speakables.posts},getSpeakablePages:function(e){return e.speakables.pages},getVoiceApps:function(e){return e.voiceApps.apps},getVoiceAppsLoaded:function(e){return e.voiceApps.loaded},getCommandSources:function(e,t,n){return e.voiceApps.sources[n]},getSelectedVoiceAppId:function(e){return e.voiceApps.selectedAppId},getVoiceAppStats:function(e,t,n,r){var o=e.voiceApps,a=Math.round((r-n)/1e3/3600/24);return o.stats[t+"-"+a]},getUser:function(e){return e.soundcheckAuth.user},getUserLoaded:function(e){return e.soundcheckAuth.loaded}},controls:{FETCH_FROM_WPAPI:function(e){return c()({path:e.path})},FETCH_FROM_SOUNDCHECKAPI:function(e){return Object(l.a)({path:e.path})}},resolvers:{getSpeakablePosts:o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="/wp/v2/posts?page="+t,e.next=3,f.a.fetchFromWPAPI(n);case 3:return r=e.sent,e.abrupt("return",f.a.setSpeakablePosts(r));case 5:case"end":return e.stop()}},e,this)}),getSpeakablePages:o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="/wp/v2/pages?page="+t,e.next=3,f.a.fetchFromWPAPI(n);case 3:return r=e.sent,e.abrupt("return",f.a.setSpeakablePages(r));case 5:case"end":return e.stop()}},e,this)}),getVoiceApps:o.a.mark(function e(){var t,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="/v4/user/voice_apps",e.next=3,f.a.fetchFromSoundcheckAPI(t);case 3:return n=e.sent,e.abrupt("return",f.a.setVoiceApps(n));case 5:case"end":return e.stop()}},e,this)}),getVoiceAppStats:o.a.mark(function e(t,n,r){var a,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/v4/user/voice_apps/"+t+"/stats?start="+n+"&end="+r,e.next=3,f.a.fetchFromSoundcheckAPI(a);case 3:return i=e.sent,e.abrupt("return",f.a.setVoiceAppStats(t,i,n,r));case 5:case"end":return e.stop()}},e,this)}),getCommandSources:o.a.mark(function e(t,n){var r,a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/v4/user/voice_apps/"+t+"/commands/"+n+"/sources",e.next=3,f.a.fetchFromSoundcheckAPI(r);case 3:return a=e.sent,e.abrupt("return",f.a.setCommandSources(n,a));case 5:case"end":return e.stop()}},e,this)}),getUser:o.a.mark(function e(){var t,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="/v4/user",e.prev=1,e.next=4,f.a.fetchFromSoundcheckAPI(t);case 4:return n=e.sent,e.abrupt("return",f.a.setUser(n));case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",f.a.setUser(null));case 11:case"end":return e.stop()}},e,this,[[1,8]])})}}),Object(a.render)(wp.element.createElement(u.a,null),document.getElementById("soundcheck-root"))},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(27),o)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var a=t&&t.prototype instanceof o?t:o,i=Object.create(a.prototype),c=new m(r||[]);return i._invoke=s(e,n,c),i}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function i(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(n,o,a,i){var c=r(e[n],e,o);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"===typeof s&&w.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(s).then(function(e){l.value=e,a(l)},i)}i(c.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function s(e,t,n){var o=P;return function(a,i){if(o===C)throw new Error("Generator is already running");if(o===x){if("throw"===a)throw i;return h()}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=u(c,n);if(l){if(l===A)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===P)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=C;var s=r(e,t,n);if("normal"===s.type){if(o=n.done?x:_,s.arg===A)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=x,n.method="throw",n.arg=s.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===v){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=v,u(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,A;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,A):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function m(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function d(e){if(e){var t=e[b];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(w.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:v,done:!0}}var v,y=Object.prototype,w=y.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},b=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",S=g.toStringTag||"@@toStringTag",k="object"===typeof e,O=t.regeneratorRuntime;if(O)return void(k&&(e.exports=O));O=t.regeneratorRuntime=k?e.exports:{},O.wrap=n;var P="suspendedStart",_="suspendedYield",C="executing",x="completed",A={},T={};T[b]=function(){return this};var j=Object.getPrototypeOf,L=j&&j(j(d([])));L&&L!==y&&w.call(L,b)&&(T=L);var I=i.prototype=o.prototype=Object.create(T);a.prototype=I.constructor=i,i.constructor=a,i[S]=a.displayName="GeneratorFunction",O.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===a||"GeneratorFunction"===(t.displayName||t.name))},O.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,S in e||(e[S]="GeneratorFunction")),e.prototype=Object.create(I),e},O.awrap=function(e){return{__await:e}},c(l.prototype),l.prototype[E]=function(){return this},O.AsyncIterator=l,O.async=function(e,t,r,o){var a=new l(n(e,t,r,o));return O.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},c(I),I[S]="Generator",I[b]=function(){return this},I.toString=function(){return"[object Generator]"},O.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},O.values=d,m.prototype={constructor:m,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&w.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=w.call(o,"catchLoc"),c=w.call(o,"finallyLoc");if(i&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&w.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;f(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:d(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),A}}}(function(){return this}()||Function("return this")())},function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=(n.n(i),n(30)),l=(n.n(c),n(31)),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){return wp.element.createElement("div",{className:"soundcheck-layout"},wp.element.createElement(l.a,null))}}]),t}(i.Component);t.a=u},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(1),o=(n.n(r),n(5)),a=(n.n(o),n(32)),i=n(45),c=n(51),l=window.location.search,s=/[?&]page=([^&]*)/.exec(l),u=decodeURIComponent(s[1]),p=Object(o.withState)({route:u})(function(e){switch(e.route){case"soundcheck-structured-data":return;case"soundcheck-voice-hosting":return wp.element.createElement(c.a,null);case"soundcheck-voice-interactions":return wp.element.createElement(i.a,null);default:return wp.element.createElement(a.a,null)}})},function(e,t,n){"use strict";var r=n(33),o=function(){return wp.element.createElement(r.a,{className:"margin-bottom"})};t.a=o},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,a){try{var i=t[o](a),c=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)});e(c)}return r("next")})}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(12),i=n.n(a),c=n(1),l=(n.n(c),n(0)),s=(n.n(l),n(2)),u=(n.n(s),n(5)),p=(n.n(u),n(13)),f=n(4),m=n(42),d=n(3),h=n(44),v=(n.n(h),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),y=function(){var e=r(i.a.mark(function e(t){var n,r,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.link);case 2:return n=e.sent,e.next=5,n.text();case 5:return r=e.sent,o=Object(m.a)(r),e.abrupt("return",o);case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),w=function(e){var t=e.className;return wp.element.createElement(l.Panel,{header:"Voice-Optimized Web Content",className:t||""},wp.element.createElement(l.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement(l.ExternalLink,{href:d.soundeckUrl+"/speakable-content"},"Speakable content")," is text on your website that you designate as optimized for voice assistants. That means it is particularly suited to be read out loud using text to speech."),wp.element.createElement("p",null,"The tables below show posts hat contain speakable content. If the post has a valid ",wp.element.createElement("code",null,"SpeakableSpecification"),', the "FORMATTED" column will be checked. If the post also has speakable content, the "SPEAKABLE" column will be checked. Click on a SPEAKABLE column check to preview the content.'),wp.element.createElement("p",null,'To add speakable content to any post use the "Speakable Section" block in the editor.')),wp.element.createElement(b,null),wp.element.createElement(E,null))},g=Object(u.withState)({data:[],initialized:!1,loading:!1})(function(e){var t=e.json,n=e.data,r=e.setState,a=e.type,i=e.icon,c=e.loading;if(e.initialized){if(!c){r({loading:!0});var s=!0,u=!1,m=void 0;try{for(var d,h=n[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var w=d.value;!function(e){y(e).then(function(t){var a=t.specification,i=t.content,c=t.speakables,l=t.validations,s=[].concat(o(n)),u=s.find(function(t){return t.id===e.id});u.loaded=!0,u.hasSpeakableSpecification=!!a,u.isSpeakable=c&&c.length,u.content=i,u.validations=l,r({data:s})})}(w)}}catch(e){u=!0,m=e}finally{try{!s&&h.return&&h.return()}finally{if(u)throw m}}}}else if(t.length){var g=t.map(function(e){return v({},e,{loaded:!1,hasSpeakableSpecification:!1,isSpeakable:!1,content:null,validations:[],speakables:null})});r({data:g,initialized:!0})}var b=n.map(function(e){return[{component:wp.element.createElement("a",{href:e.link,dangerouslySetInnerHTML:{__html:e.title.rendered}})},{value:new Date(e.date).toLocaleDateString()},{component:wp.element.createElement(S,{isLoading:!e.loaded,isValid:e.hasSpeakableSpecification,color:f.a.colors.speakable_purple,tooltip:"Valid Specification"})},{component:wp.element.createElement(k,{isLoading:!e.loaded,validations:e.validations,content:e.content})}]});return wp.element.createElement(l.PanelBody,{title:a+"s",icon:i,initialOpen:!0},wp.element.createElement(l.PanelRow,null,b.length>0?wp.element.createElement(p.a,{data:b,headers:["Title","Date","Formatted","Speakable"]}):wp.element.createElement("p",null,"No ",a,"s with Speakable data yet. Add a Speakable block to a ",a," to get started.")))}),b=Object(s.withSelect)(function(e,t){return{json:(0,e("soundcheck").getSpeakablePosts)(1),type:"Post",icon:"admin-post"}})(g),E=Object(s.withSelect)(function(e,t){return{json:(0,e("soundcheck").getSpeakablePages)(1),type:"Page",icon:"admin-page"}})(g),S=function(e){var t=e.isLoading,n=e.isValid,r=e.tooltip,o=e.color;return t?wp.element.createElement(l.Spinner,null):n?f.a.speakable(r,o):wp.element.createElement("span",{className:"dashicons dashicons-minus"})},k=Object(u.withState)({isOpen:!1})(function(e){var t=e.isLoading,n=e.isOpen,r=e.validations,o=e.content,a=e.setState;return t?wp.element.createElement(l.Spinner,null):o?r.length?wp.element.createElement(c.Fragment,null,wp.element.createElement("span",{className:"pointer dashicons dashicons-warning",onClick:function(){return a({isOpen:!0})}}),n?wp.element.createElement(O,{validations:r,content:o,onRequestClose:function(){a({isOpen:!1})}}):null):wp.element.createElement(c.Fragment,null,wp.element.createElement("span",{className:"pointer",onClick:function(){return a({isOpen:!0})}},f.a.speakable("Speakable Content Found",f.a.colors.speakable_purple)),n?wp.element.createElement(O,{validations:r,content:o,onRequestClose:function(){a({isOpen:!1})}}):null):wp.element.createElement("span",{className:"dashicons dashicons-minus"})}),O=function(e){var t=e.validations,n=e.content,r=e.onRequestClose;return wp.element.createElement(l.Modal,{title:"Speakable Content",onRequestClose:r},t.length?wp.element.createElement("ul",null,t.map(function(e,t){return wp.element.createElement("li",{key:t},"error"==e.type?wp.element.createElement("span",{className:"dashicons dashicons-warning"}):wp.element.createElement("span",{className:"dashicons dashicons-info"})," ",e.message)})):wp.element.createElement("p",null,wp.element.createElement("span",{className:"dashicons dashicons-yes"})," Valid Speakable content."),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Preview"),wp.element.createElement("p",{class:"description"},n))};t.a=w},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r=n(14);e.exports=n(37)(r.isElement,!0)}else e.exports=n(40)()}).call(t,n(6))},function(e,t,n){"use strict";function r(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case m:case d:case l:case u:case s:case v:return e;default:switch(e=e&&e.$$typeof){case f:case h:case p:return e;default:return t}}case w:case y:case c:return t}}}function o(e){return r(e)===d}Object.defineProperty(t,"__esModule",{value:!0});var a="function"===typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,c=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,p=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,m=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,v=a?Symbol.for("react.suspense"):60113,y=a?Symbol.for("react.memo"):60115,w=a?Symbol.for("react.lazy"):60116;t.typeOf=r,t.AsyncMode=m,t.ConcurrentMode=d,t.ContextConsumer=f,t.ContextProvider=p,t.Element=i,t.ForwardRef=h,t.Fragment=l,t.Lazy=w,t.Memo=y,t.Portal=c,t.Profiler=u,t.StrictMode=s,t.Suspense=v,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===l||e===d||e===u||e===s||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===w||e.$$typeof===y||e.$$typeof===p||e.$$typeof===f||e.$$typeof===h)},t.isAsyncMode=function(e){return o(e)||r(e)===m},t.isConcurrentMode=o,t.isContextConsumer=function(e){return r(e)===f},t.isContextProvider=function(e){return r(e)===p},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return r(e)===h},t.isFragment=function(e){return r(e)===l},t.isLazy=function(e){return r(e)===w},t.isMemo=function(e){return r(e)===y},t.isPortal=function(e){return r(e)===c},t.isProfiler=function(e){return r(e)===u},t.isStrictMode=function(e){return r(e)===s},t.isSuspense=function(e){return r(e)===v}},function(e,t,n){"use strict";(function(e){"production"!==e.env.NODE_ENV&&function(){function e(e){return"string"===typeof e||"function"===typeof e||e===g||e===P||e===E||e===b||e===C||"object"===typeof e&&null!==e&&(e.$$typeof===A||e.$$typeof===x||e.$$typeof===S||e.$$typeof===k||e.$$typeof===_)}function n(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case y:var n=e.type;switch(n){case O:case P:case g:case E:case b:case C:return n;default:var r=n&&n.$$typeof;switch(r){case k:case _:case S:return r;default:return t}}case A:case x:case w:return t}}}function r(e){return z||(z=!0,L(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(e)||n(e)===O}function o(e){return n(e)===P}function a(e){return n(e)===k}function i(e){return n(e)===S}function c(e){return"object"===typeof e&&null!==e&&e.$$typeof===y}function l(e){return n(e)===_}function s(e){return n(e)===g}function u(e){return n(e)===A}function p(e){return n(e)===x}function f(e){return n(e)===w}function m(e){return n(e)===E}function d(e){return n(e)===b}function h(e){return n(e)===C}Object.defineProperty(t,"__esModule",{value:!0});var v="function"===typeof Symbol&&Symbol.for,y=v?Symbol.for("react.element"):60103,w=v?Symbol.for("react.portal"):60106,g=v?Symbol.for("react.fragment"):60107,b=v?Symbol.for("react.strict_mode"):60108,E=v?Symbol.for("react.profiler"):60114,S=v?Symbol.for("react.provider"):60109,k=v?Symbol.for("react.context"):60110,O=v?Symbol.for("react.async_mode"):60111,P=v?Symbol.for("react.concurrent_mode"):60111,_=v?Symbol.for("react.forward_ref"):60112,C=v?Symbol.for("react.suspense"):60113,x=v?Symbol.for("react.memo"):60115,A=v?Symbol.for("react.lazy"):60116,T=function(){},j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!==typeof console&&console.warn(a);try{throw new Error(a)}catch(e){}};T=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];j.apply(void 0,[t].concat(r))}};var L=T,I=O,N=P,R=k,V=S,F=y,M=_,B=g,U=A,D=x,$=w,H=E,q=b,W=C,z=!1;t.typeOf=n,t.AsyncMode=I,t.ConcurrentMode=N,t.ContextConsumer=R,t.ContextProvider=V,t.Element=F,t.ForwardRef=M,t.Fragment=B,t.Lazy=U,t.Memo=D,t.Portal=$,t.Profiler=H,t.StrictMode=q,t.Suspense=W,t.isValidElementType=e,t.isAsyncMode=r,t.isConcurrentMode=o,t.isContextConsumer=a,t.isContextProvider=i,t.isElement=c,t.isForwardRef=l,t.isFragment=s,t.isLazy=u,t.isMemo=p,t.isPortal=f,t.isProfiler=m,t.isStrictMode=d,t.isSuspense=h}()}).call(t,n(6))},function(e,t,n){"use strict";(function(t){function r(){return null}var o=n(14),a=n(38),i=n(8),c=n(39),l=Function.call.bind(Object.prototype.hasOwnProperty),s=function(){};"production"!==t.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function u(e){var t=e&&(x&&e[x]||e[A]);if("function"===typeof t)return t}function p(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e){this.message=e,this.stack=""}function m(e){function r(r,c,l,u,p,m,d){if(u=u||T,m=m||l,d!==i){if(n){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var v=u+":"+l;!o[v]&&a<3&&(s("You are manually calling a React.PropTypes validation function for the `"+m+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[v]=!0,a++)}}return null==c[l]?r?new f(null===c[l]?"The "+p+" `"+m+"` is marked as required in `"+u+"`, but its value is `null`.":"The "+p+" `"+m+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(c,l,u,p,m)}if("production"!==t.env.NODE_ENV)var o={},a=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function d(e){function t(t,n,r,o,a,i){var c=t[n];if(O(c)!==e)return new f("Invalid "+o+" `"+a+"` of type `"+P(c)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return m(t)}function h(e){function t(t,n,r,o,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c)){return new f("Invalid "+o+" `"+a+"` of type `"+O(c)+"` supplied to `"+r+"`, expected an array.")}for(var l=0;l<c.length;l++){var s=e(c,l,r,o,a+"["+l+"]",i);if(s instanceof Error)return s}return null}return m(t)}function v(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||T;return new f("Invalid "+o+" `"+a+"` of type `"+C(t[n])+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}return null}return m(t)}function y(e){function n(t,n,r,o,a){for(var i=t[n],c=0;c<e.length;c++)if(p(i,e[c]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===P(t)?String(t):t});return new f("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")}return Array.isArray(e)?m(n):("production"!==t.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function w(e){function t(t,n,r,o,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],s=O(c);if("object"!==s)return new f("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var u in c)if(l(c,u)){var p=e(c,u,r,o,a+"."+u,i);if(p instanceof Error)return p}return null}return m(t)}function g(e){function n(t,n,r,o,a){for(var c=0;c<e.length;c++){if(null==(0,e[c])(t,n,r,o,a,i))return null}return new f("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var o=0;o<e.length;o++){var a=e[o];if("function"!==typeof a)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(a)+" at index "+o+"."),r}return m(n)}function b(e){function t(t,n,r,o,a){var c=t[n],l=O(c);if("object"!==l)return new f("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var u=e[s];if(u){var p=u(c,s,r,o,a+"."+s,i);if(p)return p}}return null}return m(t)}function E(e){function t(t,n,r,o,c){var l=t[n],s=O(l);if("object"!==s)return new f("Invalid "+o+" `"+c+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var p in u){var m=e[p];if(!m)return new f("Invalid "+o+" `"+c+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=m(l,p,r,o,c+"."+p,i);if(d)return d}return null}return m(t)}function S(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(S);if(null===t||e(t))return!0;var n=u(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!S(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!S(a[1]))return!1}return!0;default:return!1}}function k(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":k(t,e)?"symbol":t}function P(e){if("undefined"===typeof e||null===e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=P(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function C(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var x="function"===typeof Symbol&&Symbol.iterator,A="@@iterator",T="<<anonymous>>",j={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:function(){return m(r)}(),arrayOf:h,element:function(){function t(t,n,r,o,a){var i=t[n];if(!e(i)){return new f("Invalid "+o+" `"+a+"` of type `"+O(i)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return m(t)}(),elementType:function(){function e(e,t,n,r,a){var i=e[t];if(!o.isValidElementType(i)){return new f("Invalid "+r+" `"+a+"` of type `"+O(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null}return m(e)}(),instanceOf:v,node:function(){function e(e,t,n,r,o){return S(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return m(e)}(),objectOf:w,oneOf:y,oneOfType:g,shape:b,exact:E};return f.prototype=Error.prototype,j.checkPropTypes=c,j.resetWarningCache=c.resetWarningCache,j.PropTypes=j,j}}).call(t,n(6))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,l=r(e),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var u in n)a.call(n,u)&&(l[u]=n[u]);if(o){c=o(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(l[c[p]]=n[c[p]])}}return l}},function(e,t,n){"use strict";(function(t){function r(e,n,r,l,s){if("production"!==t.env.NODE_ENV)for(var u in e)if(c(e,u)){var p;try{if("function"!==typeof e[u]){var f=Error((l||"React class")+": "+r+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.");throw f.name="Invariant Violation",f}p=e[u](n,u,l,r,null,a)}catch(e){p=e}if(!p||p instanceof Error||o((l||"React class")+": type specification of "+r+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var m=s?s():"";o("Failed "+r+" type: "+p.message+(null!=m?m:""))}}}var o=function(){};if("production"!==t.env.NODE_ENV){var a=n(8),i={},c=Function.call.bind(Object.prototype.hasOwnProperty);o=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}r.resetWarningCache=function(){"production"!==t.env.NODE_ENV&&(i={})},e.exports=r}).call(t,n(6))},function(e,t,n){"use strict";function r(){}function o(){}var a=n(8);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(43),o=n.n(r),a=function(e){var t=[];return o()(e).find("script[type='application/ld+json']").each(function(e,n){try{t[e]=JSON.parse(o()(this).html())}catch(e){throw new Error("There was an error parsing the JSON in the 'application/ld+json' script tag. "+e)}}),0==t.length?null:c(t)},i=function(e){var t=o()("<output>").append(o.a.parseHTML(e)),n=[],r=a(t);if(!r)return{specification:r,speakables:null,content:null,validations:[]};if(0==r.cssSelector.length)throw new Error("No valid selectors found in SpeakableSpecification.");var i=!0,c=!1,l=void 0;try{for(var u,f=r.cssSelector[Symbol.iterator]();!(i=(u=f.next()).done);i=!0){var m=u.value;o()(t).find(m).each(function(e,t){n.push(o()(this).text().trim())})}}catch(e){c=!0,l=e}finally{try{!i&&f.return&&f.return()}finally{if(c)throw l}}var d=s(n),h=p(d);return{specification:r,speakables:n,content:d,validations:h}},c=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i instanceof Array){var c=!0,s=!1,u=void 0;try{for(var p,f=i[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var m=p.value,d=l(m);if(d)return d}}catch(e){s=!0,u=e}finally{try{!c&&f.return&&f.return()}finally{if(s)throw u}}}else{var h=l(i);if(h)return h}}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return null},l=function(e){return e.speakable&&e.speakable["@type"]&&"SpeakableSpecification"==e.speakable["@type"]?e.speakable:null},s=function(e){return e?e.map(function(e){return u(e)}).join(" "):null},u=function(e){return e?(e=e.trim(),e.match(/^[\w\W\s]+[?.!]$/g)?e:e+"."):"."},p=function(e){var t=[];if(!e)return t.push({type:"error",message:"No speakable content found."}),t;var n=e.match(/\S+/g).length;return n<7?t.push({type:"error",message:"The speakable content is too short. Aim for 20-30 seconds of spoken content (2-3 sentences)."}):n<20&&t.push({type:"warning",message:"The speakable may be too short. Aim for 20-30 seconds of spoken content."}),n>100?t.push({type:"error",message:"The speakable content is too long. Aim for 20-30 seconds of spoken content (2-3 sentences)."}):n>80&&t.push({type:"warning",message:"The speakable may be too long. Aim for 20-30 seconds of spoken content."}),t}},function(e,t){e.exports=jQuery},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(46)),i=(n.n(a),n(47)),c=n(9),l=n(16),s=n(17),u=n(11),p=n(18),f=n.n(p),m=n(19),d=n.n(m),h=n(10),v=n.n(h),y=n(3),w=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getUser,o=n.getUserLoaded;return{user:r(),loaded:o()}})(function(e){var t=e.user;return e.loaded?t?wp.element.createElement(g,{className:"margin-bottom"}):wp.element.createElement("div",{className:"flex-grid"},wp.element.createElement("div",{class:"col margin-bottom"},wp.element.createElement(r.Panel,{header:"Voice Interactions"},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement("strong",null,"Set up your Voice Interactions to define how users can engange with your voice presence.")),wp.element.createElement("p",null,"Manage your content using WordPress as your CMS and then publish your interactions to popular voice assistants."),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:f.a,width:"128"}),wp.element.createElement("img",{src:d.a,width:"128"}),wp.element.createElement("img",{src:v.a,width:"128"})),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Start by creating a free Voice Listing."),wp.element.createElement("p",null,wp.element.createElement(u.a,null))))),wp.element.createElement(l.a,{className:"col margin-bottom"})):wp.element.createElement("div",null)}),g=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getVoiceApps,o=n.getVoiceAppsLoaded,a=window.location.hostname,i=r(),c=o();return{selectedApp:i.find(function(e){return e.domain==a}),voiceApps:i,domain:a,loaded:c}})(function(e){var t=e.className,n=e.selectedApp,o=e.loaded,a=e.domain;return o?n?wp.element.createElement(r.Panel,{header:"Voice Interactions",className:t||""},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,"Your Voice Interactions define how users can engange with your voice presence. Each interaction represents a question or command from a user and the response from the voice assistant."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:y.b+"/app/properties/"+n.id+"/interactions"},"Manage Interactions")),n&&wp.element.createElement(r.Panel,{header:"Interactions for "+n.domain,className:t||""},n&&n.commands.map(function(e){return wp.element.createElement(i.a,{app:n,command:e})})),wp.element.createElement(c.a,null))):wp.element.createElement(s.a,{domain:a}):wp.element.createElement("div",null)});t.a=w},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(0)),a=(n.n(o),n(2)),i=(n.n(a),n(5)),c=(n.n(i),n(48)),l=(n.n(c),n(7)),s=n(3),u=n(15),p=(n.n(u),Object(a.withSelect)(function(e,t){var n=t.app,r=t.command,o=e("soundcheck"),a=o.getCommandSources;return{sources:r?a(n.id,r.id):void 0}})(function(e){var t=e.command,n=e.app,r=e.sources,a=t.id;return t.intent&&(a=t.intent.name),wp.element.createElement(o.PanelBody,{title:a,initialOpen:!0},wp.element.createElement("p",null,t.intent.description),r&&r.map(function(e){return wp.element.createElement(m,{source:e,app:n,command:t})}),r&&wp.element.createElement(f,{app:n,command:t}))})),f=Object(i.withState)({isPreviewing:!1,relaoding:!1,url:null})(function(e){var t=e.app,n=e.command,a=e.isPreviewing,i=e.reloading,c=e.setState,l=e.url,u=s.a+"/v4/domains/"+t.id+"/commands/"+n.id+"/audio";return wp.element.createElement(o.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-source__preview"},a?i?wp.element.createElement(o.IconButton,{icon:"update",isBusy:!0}):wp.element.createElement(r.Fragment,null,wp.element.createElement("audio",{controls:!0},wp.element.createElement("source",{src:l,type:"audio/mpeg"})),wp.element.createElement(o.IconButton,{icon:"update",onClick:function(){c({reloading:!0}),setTimeout(function(){c({reloading:!1})},1e3)}})):wp.element.createElement(o.IconButton,{icon:"controls-volumeon",label:"Preview",isDefault:!0,onClick:function(){c({isPreviewing:!0,url:u})}})))}),m=function(e){var t=e.source,n=e.app,r=e.command;return wp.element.createElement(o.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-source__row"},"SPEAKABLE"==t.contentSource.uuid?wp.element.createElement(h,{source:t,app:n,command:r}):wp.element.createElement(d,{source:t,app:n,command:r}),wp.element.createElement("div",{className:"soundcheck-source__row__item"},t.contentSource.name)))},d=function(e){var t=e.source,n=e.app;e.command;return wp.element.createElement("div",{className:"soundcheck-source__row__item"},wp.element.createElement(o.ExternalLink,{href:s.b+"/app/properties/"+n.id+"/interactions"},t.label))},h=Object(i.compose)([Object(i.withState)({isOpen:!1,option:void 0,url:void 0,selectedPage:void 0,selectedPost:void 0,initialized:!1})],[Object(a.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getSpeakablePosts;return{pages:(0,n.getSpeakablePages)(1),posts:r(1)}})],[Object(a.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setCommandSource;return{onClick:function(e){var n="/v4/user/voice_apps/"+t.app.id+"/commands/"+t.command.id+"/sources/"+t.source.id;return t.source.global.url=e,Object(l.a)({path:n,method:"PUT",body:t.source}).then(function(e){r(t.command.id,e)})}}})])(function(e){var t=e.isOpen,n=e.setState,a=e.source,i=e.onClick,l=e.pages,s=e.posts,u=e.option,p=e.url,f=e.initialized,m=e.selectedPage,d=e.selectedPost,h=l.map(function(e){return{label:Object(c.decodeEntities)(e.title.rendered),value:e.link}});h.unshift({label:"<Select a Page>",value:""});var v=s.map(function(e){return{label:Object(c.decodeEntities)(e.title.rendered),value:e.link}});if(v.unshift({label:"<Select a Post>",value:""}),!f){var y={option:void 0,url:void 0,selectedPage:"",selectedPost:"",initialized:!0};if(y.url=a.global.url,y.option="custom",y.url){var w=!0,g=!1,b=void 0;try{for(var E,S=h[Symbol.iterator]();!(w=(E=S.next()).done);w=!0){E.value.link==y.url&&(y.option="page",y.selectedPage=y.url)}}catch(e){g=!0,b=e}finally{try{!w&&S.return&&S.return()}finally{if(g)throw b}}var k=!0,O=!1,P=void 0;try{for(var _,C=v[Symbol.iterator]();!(k=(_=C.next()).done);k=!0){_.value.link==y.url&&(y.option="post",y.selectedPost=y.url)}}catch(e){O=!0,P=e}finally{try{!k&&C.return&&C.return()}finally{if(O)throw P}}}n(y)}return wp.element.createElement(r.Fragment,null,wp.element.createElement("div",{className:"soundcheck-source__row__item"},wp.element.createElement(o.Button,{isLink:!0,onClick:function(){return n({isOpen:!0})}},a.label)),t?wp.element.createElement(o.Modal,{title:"Speakable Content",onRequestClose:function(){return n({isOpen:!1})}},wp.element.createElement("form",null,wp.element.createElement(o.RadioControl,{label:"Select a source with Speakable content.",selected:u,options:[{label:"A Recent Blog Page",value:"page"},{label:"A Recent Blog Post",value:"post"},{label:"Other URL",value:"custom"}],onChange:function(e){n({option:e})}}),function(){switch(u){case"post":return wp.element.createElement(o.SelectControl,{label:"Select a Post",value:d,options:v,onChange:function(e){n({url:e,selectedPost:e})}});case"page":return wp.element.createElement(o.SelectControl,{label:"Select a Page",value:m,options:h,onChange:function(e){return n({url:e,selectedPage:e})}});case"custom":return wp.element.createElement(o.TextControl,{label:"Other URL",value:p,onChange:function(e){return n({url:e})}})}}(),wp.element.createElement(o.Button,{isDefault:!0,onClick:function(){n({isOpen:!1}),i(p)}},"Save"))):null)});t.a=p},function(e,t){e.exports=wp.htmlEntities},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(3)),i=n(52),c=(n.n(i),n(53)),l=n(9),s=n(16),u=n(17),p=n(11),f=n(18),m=n.n(f),d=n(19),h=n.n(d),v=n(10),y=n.n(v),w=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getUser,o=n.getUserLoaded;return{user:r(),loaded:o()}})(function(e){var t=e.user;return e.loaded?t?wp.element.createElement(g,{className:"margin-bottom"}):wp.element.createElement("div",{className:"flex-grid"},wp.element.createElement("div",{class:"col margin-bottom"},wp.element.createElement(r.Panel,{header:"Voice Hosting"},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement("strong",null,"Soundcheck Voice Hosting makes your business or brand available on smart speakers and voice assistants.")),wp.element.createElement("p",null,"Free Features:"),wp.element.createElement("ol",null,wp.element.createElement("li",null,"Voice Listing to promote your voice presence."),wp.element.createElement("li",null,"Easily define answers to common voice-initiated questions."),wp.element.createElement("li",null,'Create and validate "Speakable" web content using custom editor blocks.'),wp.element.createElement("li",null,"Use WordPress as a voice CMS."),wp.element.createElement("li",null,"Publish to voice assistants like Amazon Alexa and Google Home.")),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:m.a,width:"128"}),wp.element.createElement("img",{src:h.a,width:"128"}),wp.element.createElement("img",{src:y.a,width:"128"})),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Start by creating a free Voice Listing."),wp.element.createElement("p",null,wp.element.createElement(p.a,null))))),wp.element.createElement(s.a,{className:"col margin-bottom"})):wp.element.createElement("div",null)}),g=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getVoiceApps,o=(n.getSelectedVoiceAppId,n.getVoiceAppsLoaded),a=window.location.hostname,i=r(),c=o();return{selectedApp:i.find(function(e){return e.domain==a}),voiceApps:i,domain:a,loaded:c}})(function(e){var t=e.className,n=e.selectedApp,o=e.icon,i=e.domain;return e.loaded?n?wp.element.createElement(r.Panel,{header:"Voice Hosting",className:t||""},wp.element.createElement(r.PanelBody,{title:n.term+" Voice Activity",icon:o,initialOpen:!0},wp.element.createElement("p",null,"See which platforms are accessing your published voice content."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:a.b+"/app/properties/"+n.id+"/availability"},"Edit Availability")),wp.element.createElement(c.a,{app:n})),wp.element.createElement(r.PanelBody,{title:i+" Voice Listing",icon:o,initialOpen:!0},"VALID"!=n.authStatus&&wp.element.createElement(r.Notice,{status:"info",isDismissible:!1},"You will need to verify ownership of ",n.domain," before your voice listing is published."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:a.b+"/app/properties/"+n.id+"/listing"},"Edit Voice Listing")," ",wp.element.createElement(r.ExternalLink,{href:a.b+"/voice/"+n.domain},"View Voice Listing")),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:n.banner1920x1080,style:{maxWidth:"100%"}}))),wp.element.createElement(r.PanelBody,null,wp.element.createElement(l.a,null))):wp.element.createElement(u.a,{domain:i}):wp.element.createElement("div",null)});t.a=w},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(5)),i=(n.n(a),n(13)),c=n(15),l=(n.n(c),Object(a.compose)([Object(a.withState)({now:Date.now()}),Object(o.withSelect)(function(e,t){var n=t.app,r=t.now,o=e("soundcheck"),a=o.getVoiceAppStats,i=a(n.id,0,r);return{stats:n?u(i).map(function(e){return[{value:e.platform},{value:e.requests},{value:e.users}]}):void 0}})])(function(e){var t=e.stats;return t?wp.element.createElement(i.a,{data:t,headers:["platform","requests","users"]}):wp.element.createElement(r.Spinner,null)})),s=[{platform:"Alexa",requests:0,users:0},{platform:"Actions on Google",requests:0,users:0},{platform:"Soundcheck Mobile",requests:0,users:0}],u=function(e){var t=new Set,n=[Object.assign({},s[0]),Object.assign({},s[1]),Object.assign({},s[2])];if(e){var r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var l=i.value,u=-1;"alexa"==l.platform?u=0:"aog"==l.platform?u=1:"mobile"==l.platform&&(u=2),u>=0&&(n[u].requests++,t.has(l.userId)||(n[u].users++,t.add(l.userId)))}}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}}return n};t.a=l},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return l});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={speakables:{posts:[],pages:[]},voiceApps:{selectedAppId:null,apps:[],stats:{},sources:{},loaded:!1},soundcheckAuth:{user:null,loaded:!1,token:localStorage.getItem("jwt")}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.speakables,t=arguments[1];switch(console.log("speakables reducing",t),console.log(e),t.type){case"SPEAKABLE_SET_POSTS":return o({},e,{posts:t.posts});case"SPEAKABLE_SET_PAGES":return o({},e,{pages:t.pages});default:return e}},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.voiceApps,t=arguments[1];switch(console.log("voiceapps reducing",t),console.log(e),t.type){case"VOICEAPPS_SET_APPS":return o({},e,{apps:t.apps,selectedAppId:t.apps.length>0?t.apps[0].id:null,loaded:!0});case"VOICEAPPS_SET_SOURCES":return o({},e,{sources:o({},e.sources,r({},t.commandId,t.sources))});case"VOICEAPPS_SET_STATS":var n=Math.round((t.end-t.start)/1e3/3600/24);return o({},e,{stats:o({},e.stats,r({},t.appId+"-"+n,t.stats))});case"VOICEAPPS_SET_SOURCE":var i=o({},e.sources);return i[t.commandId].map(function(e){return e.id==t.source.id?t.source:e}),o({},e,{sources:i});case"VOICEAPPS_SELECT_APP":return o({},e,{selectedAppId:t.id});default:return e}},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.soundcheckAuth,t=arguments[1];switch(console.log("auth reducing",t),console.log(e),t.type){case"AUTH_SET_USER":return console.log("SETTING USER",t.user),o({},e,{user:t.user,loaded:!0});case"AUTH_SET_TOKEN":return localStorage.setItem("jwt",t.token),o({},e,{token:t.token});default:return e}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={setSpeakablePosts:function(e){return{type:"SPEAKABLE_SET_POSTS",posts:e}},setSpeakablePages:function(e){return{type:"SPEAKABLE_SET_PAGES",pages:e}},setVoiceApps:function(e){return{type:"VOICEAPPS_SET_APPS",apps:e}},setVoiceAppStats:function(e,t,n,r){return{type:"VOICEAPPS_SET_STATS",appId:e,stats:t,start:n,end:r}},setSelectedVoiceAppId:function(e){return{type:"VOICEAPPS_SELECT_APP",id:e}},setCommandSources:function(e,t){return{type:"VOICEAPPS_SET_SOURCES",commandId:e,sources:t}},setCommandSource:function(e,t){return{type:"VOICEAPPS_SET_SOURCE",commandId:e,source:t}},setUser:function(e){return{type:"AUTH_SET_USER",user:e}},fetchFromWPAPI:function(e){return{type:"FETCH_FROM_WPAPI",path:e}},fetchFromSoundcheckAPI:function(e){return{type:"FETCH_FROM_SOUNDCHECKAPI",path:e}},updateToSoundcheckAPI:function(e,t){return{type:"UPDATE_TO_SOUNDCHECKAPI",path:e,body:t}},fetchVoiceAppDetailsFromSoundcheckAPI:function(e){return{type:"FETCH_VOICE_APP_DETAILS_FROM_SOUNDCHECKAPI",voiceApp:e}}}}]);1 !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=25)}([function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.data},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r="https://api.peck.me",o="https://soundcheck.ai"},function(e,t,n){"use strict";var r={};r.logo=function(e){return wp.element.createElement("svg",{width:e+"px",height:e+"px",viewBox:"0 0 53 53",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,"Soundcheck"),wp.element.createElement("g",{id:"Soundcheck",fill:"#3BAB48"},wp.element.createElement("path",{d:"M37.1598063,1 L16.666899,1 L16.666899,1.02119114 C16.3943259,1.01009102 16.1227512,1 15.8511765,1 C7.09988132,1 0,8.16967043 0,17.0154594 L0,51 L37.1598063,51 C45.9111015,51 53,43.8353751 53,34.9905952 L53,17.0154594 C53,8.16967043 45.9111015,1 37.1598063,1 L37.1598063,1 Z M11.626792,32.1479546 C11.626792,33.1671477 10.8060773,33.9966296 9.79665806,33.9966296 C8.78324511,33.9966296 7.96752256,33.1671477 7.96752256,32.1479546 L7.96752256,23.7673616 C7.96752256,22.743123 8.78324511,21.9186866 9.79665806,21.9186866 C10.8060773,21.9186866 11.626792,22.743123 11.626792,23.7673616 L11.626792,32.1479546 Z M19.0351902,39.8352944 C19.0351902,40.8554966 18.213477,41.6849785 17.2050562,41.6849785 C16.195637,41.6849785 15.3749223,40.8554966 15.3749223,39.8352944 L15.3749223,16.0800218 C15.3749223,15.0547741 16.195637,14.2303376 17.2050562,14.2303376 C18.213477,14.2303376 19.0351902,15.0547741 19.0351902,16.0800218 L19.0351902,39.8352944 Z M27.6606823,33.9179196 C27.6606823,34.9431674 26.8399676,35.7665947 25.8315468,35.7665947 C24.8221276,35.7665947 24.0014129,34.9431674 24.0014129,33.9179196 L24.0014129,21.992351 C24.0014129,20.9721488 24.8221276,20.1426669 25.8315468,20.1426669 C26.8399676,20.1426669 27.6606823,20.9721488 27.6606823,21.992351 L27.6606823,33.9179196 Z M36.2871729,36.0895074 C36.2871729,37.1087005 35.4664582,37.9381824 34.457039,37.9381824 C33.4476198,37.9381824 32.626905,37.1087005 32.626905,36.0895074 L32.626905,19.8207633 C32.626905,18.8005611 33.4476198,17.9710791 34.457039,17.9710791 C35.4664582,17.9710791 36.2871729,18.8005611 36.2871729,19.8207633 L36.2871729,36.0895074 Z M44.8707307,32.1479546 C44.8707307,33.1671477 44.050016,33.9966296 43.0415952,33.9966296 C42.0271838,33.9966296 41.2114613,33.1671477 41.2114613,32.1479546 L41.2114613,23.7673616 C41.2114613,22.743123 42.0271838,21.9186866 43.0415952,21.9186866 C44.050016,21.9186866 44.8707307,22.743123 44.8707307,23.7673616 L44.8707307,32.1479546 Z",id:"logo"})))},r.speakable=function(e,t){return wp.element.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 78 78",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,e),wp.element.createElement("g",{id:"Speakable",fill:t,transform:"translate(2.000000, 0.000000)"},wp.element.createElement("path",{d:"M26.4788729,69.9405038 L9.41272422,77.3999991 L12.6487443,62.8196156 C4.92071963,56.3078621 0,46.4867881 0,35.5 C0,15.8938914 15.6700338,2.13162821e-14 35,2.13162821e-14 C54.3299662,2.13162821e-14 70,15.8938914 70,35.5 C70,55.1061086 54.3299662,71 35,71 C32.0609411,71 29.2064934,70.6325615 26.4788729,69.9405038 Z M28.2601921,52.8310547 C32.6326098,44.9247652 37.1284958,38.0443001 41.7479851,32.1894531 C46.3674743,26.3346061 50.6312663,22.1269659 54.539489,19.5664062 C52.8623973,19.012367 51.3051212,18.7353516 49.867614,18.7353516 C47.5765869,18.7353516 45.7385519,19.1471313 44.3534538,19.9707031 C42.9683557,20.794275 41.3025195,22.4713415 39.3558952,25.0019531 C37.1846604,27.8170714 34.1524642,32.9156532 30.2592155,40.2978516 C29.7201503,37.76724 29.0687897,35.9891002 28.305114,34.9633789 C27.5414383,33.9376576 26.4932717,33.4248047 25.1605827,33.4248047 C23.1540623,33.4248047 20.8705565,34.5029189 18.3099968,36.6591797 C20.4962056,37.9619206 22.3903924,40.200505 23.992614,43.375 L24.8236687,45.0595703 C25.1231493,45.6735057 25.4825207,46.4671175 25.9017937,47.4404297 L27.2719108,50.6074219 C27.3917031,50.9069025 27.7211269,51.6481061 28.2601921,52.8310547 Z",id:"icon"})))},r.colors={speakable_purple:"#6A64B6",peck_green:"#3BAB48"},t.a=r},function(e,t){e.exports=wp.compose},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){h&&m&&(h=!1,m.length?d=m.concat(d):v=-1,d.length&&c())}function c(){if(!h){var e=o(i);h=!0;for(var t=d.length;t;){for(m=d,d=[];++v<t;)m&&m[v].run();v=-1,t=d.length}m=null,h=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function s(){}var u,p,f=e.exports={};!function(){try{u="function"===typeof setTimeout?setTimeout:n}catch(e){u=n}try{p="function"===typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var m,d=[],h=!1,v=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new l(e,t)),1!==d.length||h||o(c)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.prependListener=s,f.prependOnceListener=s,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(3),o=function(e){var t=e.path,n=e.method,o=e.body,a=localStorage.getItem("jwt"),i=n||"GET",c={method:i,mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"}};a&&(c.headers.Authorization="Bearer "+a);var l=""+r.a+t,s=c;switch(n){case"PUT":case"POST":s.body=JSON.stringify(o);default:return fetch(l,s).then(function(e){if(200==e.status)return e.json();throw new Error(e.statusText)})}};t.a=o},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(49)),i=(n.n(a),Object(o.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setUser;return{signOut:function(){r(null),localStorage.removeItem("jwt")}}})(function(e){var t=e.signOut;return wp.element.createElement(r.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-dashboard-footer"},wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.Button,{isLink:!0,onClick:t},"Sign Out")),wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.ExternalLink,{href:"https://soundcheck.ai"},"soundcheck.ai")),wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.ExternalLink,{href:"mailto:help@soundcheck.ai"},"Help"))))}));t.a=i},function(e,t){e.exports="/wp-content/plugins/soundcheck/a69dbe4634047ba85aba5e10462c54cb.png"},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(3)),a=function(){var e=window.location.hostname,t=window.location.protocol+"//"+e,n=localStorage.getItem("jwt"),a=function(){var e=o.b+"/app/start/wordpress?url="+encodeURIComponent(t)+"&token="+n;window.location.href=e};return wp.element.createElement(r.Button,{isPrimary:!0,onClick:a},"Create Listing for ",e)};t.a=a},function(e,t,n){e.exports=n(26)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=(n.n(i),n(34)),l=n.n(c),s=n(41),u=(n.n(s),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.headers,n=e.data;return wp.element.createElement("div",{className:"soundcheck-table"},wp.element.createElement("div",{className:"soundcheck-table_header"},t.map(function(e,t){return wp.element.createElement(m,{key:t,title:e})})),wp.element.createElement("div",{className:"soundcheck-table_content"},n.map(function(e,t){return wp.element.createElement(f,{key:t,row:e})})))}}]),t}(i.Component);p.propTypes={headers:l.a.arrayOf(l.a.string),data:l.a.array.isRequired};var f=function(e){var t=e.row;return wp.element.createElement("div",{className:"soundcheck-table_row"},t.map(function(e,t){return e.component?wp.element.createElement("div",{key:t,className:"soundcheck-table_data"},e.component):wp.element.createElement("div",{key:t,className:"soundcheck-table_data",dangerouslySetInnerHTML:{__html:e.value}})}))},m=function(e){var t=e.title;return wp.element.createElement("div",{className:"soundcheck-table_header-item"},t)};t.a=p},function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(35):e.exports=n(36)}).call(t,n(6))},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(2)),a=(n.n(o),n(0)),i=(n.n(a),n(5)),c=(n.n(i),n(7)),l=n(3),s=n(50),u=(n.n(s),n(10)),p=n.n(u),f=Object(i.compose)([Object(o.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setUser;return{onToken:function(e){localStorage.setItem("jwt",e),Object(c.a)({path:"/v4/user"}).then(function(e){r(e)})}}}),Object(i.withState)({email:void 0,codeSent:!1})])(function(e){var t=e.codeSent,n=e.email,r=e.className,o=e.setState,i=e.onToken;return wp.element.createElement(a.Panel,{header:"Already Have an Account?",className:r||""},wp.element.createElement(a.PanelBody,null,wp.element.createElement(a.PanelRow,null,wp.element.createElement("div",{className:"sign-in"},wp.element.createElement("div",{className:"sign-in__form"},wp.element.createElement("div",{class:"logo"},wp.element.createElement("img",{height:"48",src:p.a})),wp.element.createElement("h3",null,"Sign In"),t?wp.element.createElement(d,{email:n,onGoBack:function(){o({codeSent:!1})},onTokenReceived:i}):wp.element.createElement(m,{onCodeSent:function(e){o({codeSent:!0,email:e})}}))))))}),m=Object(i.withState)({email:"",error:null})(function(e){var t=e.onCodeSent,n=e.email,o=e.setState,i=e.error;return wp.element.createElement(r.Fragment,null,i&&wp.element.createElement("div",{className:"sign-in__notice"},wp.element.createElement(a.Notice,{status:"error",onRemove:function(){o({error:null})}},i)),wp.element.createElement(a.TextControl,{label:"Your Email Address",type:"email",value:n,onChange:function(e){return o({email:e})}}),wp.element.createElement(a.Button,{className:"sign-in__button",isPrimary:!0,onClick:function(){if(n)return fetch(l.a+"/auth/email",{method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,create:!1})}).then(function(e){200==e.status?t(n):500==e.status?o({error:"There was an error sending your login code."}):e.json().then(function(e){o({error:e.message})})}).catch(function(e){return o({error:e})})}},"Send Sign In Code"))}),d=Object(i.withState)({authCode:"000000",error:null})(function(e){var t=e.authCode,n=e.onGoBack,o=e.onTokenReceived,i=e.error,c=e.email,s=e.setState;return wp.element.createElement(r.Fragment,null,i&&wp.element.createElement("div",{className:"sign-in__notice"},wp.element.createElement(a.Notice,{status:"error",onRemove:function(){s({error:null})}},i)),wp.element.createElement(a.TextControl,{label:"Your Login Code",type:"text",onChange:function(e){s({authCode:e})}}),wp.element.createElement(a.Button,{className:"sign-in__button",isPrimary:!0,onClick:function(){return fetch(l.a+"/auth/email?email="+encodeURIComponent(c)+"&code="+t,{method:"GET",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"}}).then(function(e){if(200==e.status)return e.json();throw new Error("Invalid login token")}).then(function(e){o(e.token)}).catch(function(e){s({error:e.message})})}},"Confirm Code"),wp.element.createElement("p",null,"Didn't receive your code?"),wp.element.createElement(a.Button,{isLink:!0,onClick:n},"Try Again"))});t.a=f},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(9)),a=n(11),i=function(e){var t=e.domain;return wp.element.createElement(r.Panel,{header:"Soundcheck Voice Hosting"},wp.element.createElement(r.PanelBody,null,wp.element.createElement(r.Notice,{status:"warning",isDismissible:!1},"This domain ",t," is not listed with Soundcheck."),wp.element.createElement("p",null,"You can list your domain for free and start making your business ready for voice."),wp.element.createElement("p",null,wp.element.createElement(a.a,null)),wp.element.createElement(o.a,null)))};t.a=i},function(e,t){e.exports="/wp-content/plugins/soundcheck/bdf0973488134dbe05148d77d0311973.png"},function(e,t){e.exports="/wp-content/plugins/soundcheck/2c3962efb5c14417eb99b15033163bd8.png"},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),a=n(1),i=(n.n(a),n(28)),c=n.n(i),l=n(7),s=n(2),u=(n.n(s),n(29)),p=n(54),f=n(55);Object(s.registerStore)("soundcheck",{reducer:Object(s.combineReducers)({speakables:p.b,voiceApps:p.c,soundcheckAuth:p.a}),actions:f.a,selectors:{getSpeakablePosts:function(e){return e.speakables.posts},getSpeakablePages:function(e){return e.speakables.pages},getVoiceApps:function(e){return e.voiceApps.apps},getVoiceAppsLoaded:function(e){return e.voiceApps.loaded},getCommandSources:function(e,t,n){return e.voiceApps.sources[n]},getSelectedVoiceAppId:function(e){return e.voiceApps.selectedAppId},getVoiceAppStats:function(e,t,n,r){var o=e.voiceApps,a=Math.round((r-n)/1e3/3600/24);return o.stats[t+"-"+a]},getUser:function(e){return e.soundcheckAuth.user},getUserLoaded:function(e){return e.soundcheckAuth.loaded}},controls:{FETCH_FROM_WPAPI:function(e){return c()({path:e.path})},FETCH_FROM_SOUNDCHECKAPI:function(e){return Object(l.a)({path:e.path})}},resolvers:{getSpeakablePosts:o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="/wp/v2/posts?page="+t,e.next=3,f.a.fetchFromWPAPI(n);case 3:return r=e.sent,e.abrupt("return",f.a.setSpeakablePosts(r));case 5:case"end":return e.stop()}},e,this)}),getSpeakablePages:o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="/wp/v2/pages?page="+t,e.next=3,f.a.fetchFromWPAPI(n);case 3:return r=e.sent,e.abrupt("return",f.a.setSpeakablePages(r));case 5:case"end":return e.stop()}},e,this)}),getVoiceApps:o.a.mark(function e(){var t,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="/v4/user/voice_apps",e.next=3,f.a.fetchFromSoundcheckAPI(t);case 3:return n=e.sent,e.abrupt("return",f.a.setVoiceApps(n));case 5:case"end":return e.stop()}},e,this)}),getVoiceAppStats:o.a.mark(function e(t,n,r){var a,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/v4/user/voice_apps/"+t+"/stats?start="+n+"&end="+r,e.next=3,f.a.fetchFromSoundcheckAPI(a);case 3:return i=e.sent,e.abrupt("return",f.a.setVoiceAppStats(t,i,n,r));case 5:case"end":return e.stop()}},e,this)}),getCommandSources:o.a.mark(function e(t,n){var r,a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/v4/user/voice_apps/"+t+"/commands/"+n+"/sources",e.next=3,f.a.fetchFromSoundcheckAPI(r);case 3:return a=e.sent,e.abrupt("return",f.a.setCommandSources(n,a));case 5:case"end":return e.stop()}},e,this)}),getUser:o.a.mark(function e(){var t,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="/v4/user",e.prev=1,e.next=4,f.a.fetchFromSoundcheckAPI(t);case 4:return n=e.sent,e.abrupt("return",f.a.setUser(n));case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",f.a.setUser(null));case 11:case"end":return e.stop()}},e,this,[[1,8]])})}}),Object(a.render)(wp.element.createElement(u.a,null),document.getElementById("soundcheck-root"))},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(27),o)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var a=t&&t.prototype instanceof o?t:o,i=Object.create(a.prototype),c=new m(r||[]);return i._invoke=s(e,n,c),i}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function i(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(n,o,a,i){var c=r(e[n],e,o);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"===typeof s&&w.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(s).then(function(e){l.value=e,a(l)},i)}i(c.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function s(e,t,n){var o=P;return function(a,i){if(o===C)throw new Error("Generator is already running");if(o===x){if("throw"===a)throw i;return h()}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=u(c,n);if(l){if(l===A)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===P)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=C;var s=r(e,t,n);if("normal"===s.type){if(o=n.done?x:_,s.arg===A)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=x,n.method="throw",n.arg=s.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===v){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=v,u(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,A;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,A):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function m(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function d(e){if(e){var t=e[b];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(w.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:v,done:!0}}var v,y=Object.prototype,w=y.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},b=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",S=g.toStringTag||"@@toStringTag",k="object"===typeof e,O=t.regeneratorRuntime;if(O)return void(k&&(e.exports=O));O=t.regeneratorRuntime=k?e.exports:{},O.wrap=n;var P="suspendedStart",_="suspendedYield",C="executing",x="completed",A={},T={};T[b]=function(){return this};var j=Object.getPrototypeOf,L=j&&j(j(d([])));L&&L!==y&&w.call(L,b)&&(T=L);var I=i.prototype=o.prototype=Object.create(T);a.prototype=I.constructor=i,i.constructor=a,i[S]=a.displayName="GeneratorFunction",O.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===a||"GeneratorFunction"===(t.displayName||t.name))},O.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,S in e||(e[S]="GeneratorFunction")),e.prototype=Object.create(I),e},O.awrap=function(e){return{__await:e}},c(l.prototype),l.prototype[E]=function(){return this},O.AsyncIterator=l,O.async=function(e,t,r,o){var a=new l(n(e,t,r,o));return O.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},c(I),I[S]="Generator",I[b]=function(){return this},I.toString=function(){return"[object Generator]"},O.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},O.values=d,m.prototype={constructor:m,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&w.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=w.call(o,"catchLoc"),c=w.call(o,"finallyLoc");if(i&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&w.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;f(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:d(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),A}}}(function(){return this}()||Function("return this")())},function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=(n.n(i),n(30)),l=(n.n(c),n(31)),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){return wp.element.createElement("div",{className:"soundcheck-layout"},wp.element.createElement(l.a,null))}}]),t}(i.Component);t.a=u},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(1),o=(n.n(r),n(5)),a=(n.n(o),n(32)),i=n(45),c=n(51),l=window.location.search,s=/[?&]page=([^&]*)/.exec(l),u=decodeURIComponent(s[1]),p=Object(o.withState)({route:u})(function(e){switch(e.route){case"soundcheck-structured-data":return;case"soundcheck-voice-hosting":return wp.element.createElement(c.a,null);case"soundcheck-voice-interactions":return wp.element.createElement(i.a,null);default:return wp.element.createElement(a.a,null)}})},function(e,t,n){"use strict";var r=n(33),o=function(){return wp.element.createElement(r.a,{className:"margin-bottom"})};t.a=o},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,a){try{var i=t[o](a),c=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)});e(c)}return r("next")})}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(12),i=n.n(a),c=n(1),l=(n.n(c),n(0)),s=(n.n(l),n(2)),u=(n.n(s),n(5)),p=(n.n(u),n(13)),f=n(4),m=n(42),d=n(3),h=n(44),v=(n.n(h),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),y=function(){var e=r(i.a.mark(function e(t){var n,r,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.link);case 2:return n=e.sent,e.next=5,n.text();case 5:return r=e.sent,o=Object(m.a)(r),e.abrupt("return",o);case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),w=function(e){var t=e.className;return wp.element.createElement(l.Panel,{header:"Voice-Optimized Web Content",className:t||""},wp.element.createElement(l.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement(l.ExternalLink,{href:d.soundeckUrl+"/speakable-content"},"Speakable content")," is text on your website that you designate as optimized for voice assistants. That means it is particularly suited to be read out loud using text to speech."),wp.element.createElement("p",null,"The tables below show posts hat contain speakable content. If the post has a valid ",wp.element.createElement("code",null,"SpeakableSpecification"),', the "FORMATTED" column will be checked. If the post also has speakable content, the "SPEAKABLE" column will be checked. Click on a SPEAKABLE column check to preview the content.'),wp.element.createElement("p",null,'To add speakable content to any post use the "Speakable Section" block in the editor.')),wp.element.createElement(b,null),wp.element.createElement(E,null))},g=Object(u.withState)({data:[],initialized:!1,loading:!1})(function(e){var t=e.json,n=e.data,r=e.setState,a=e.type,i=e.icon,c=e.loading;if(e.initialized){if(!c){r({loading:!0});var s=!0,u=!1,m=void 0;try{for(var d,h=n[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var w=d.value;!function(e){y(e).then(function(t){var a=t.specification,i=t.content,c=t.speakables,l=t.validations,s=[].concat(o(n)),u=s.find(function(t){return t.id===e.id});u.loaded=!0,u.hasSpeakableSpecification=!!a,u.isSpeakable=c&&c.length,u.content=i,u.validations=l,r({data:s})})}(w)}}catch(e){u=!0,m=e}finally{try{!s&&h.return&&h.return()}finally{if(u)throw m}}}}else if(t.length){var g=t.map(function(e){return v({},e,{loaded:!1,hasSpeakableSpecification:!1,isSpeakable:!1,content:null,validations:[],speakables:null})});r({data:g,initialized:!0})}var b=n.map(function(e){return[{component:wp.element.createElement("a",{href:e.link,dangerouslySetInnerHTML:{__html:e.title.rendered}})},{value:new Date(e.date).toLocaleDateString()},{component:wp.element.createElement(S,{isLoading:!e.loaded,isValid:e.hasSpeakableSpecification,color:f.a.colors.speakable_purple,tooltip:"Valid Specification"})},{component:wp.element.createElement(k,{isLoading:!e.loaded,validations:e.validations,content:e.content})}]});return wp.element.createElement(l.PanelBody,{title:a+"s",icon:i,initialOpen:!0},wp.element.createElement(l.PanelRow,null,b.length>0?wp.element.createElement(p.a,{data:b,headers:["Title","Date","Formatted","Speakable"]}):wp.element.createElement("p",null,"No ",a,"s with Speakable data yet. Add a Speakable block to a ",a," to get started.")))}),b=Object(s.withSelect)(function(e,t){return{json:(0,e("soundcheck").getSpeakablePosts)(1),type:"Post",icon:"admin-post"}})(g),E=Object(s.withSelect)(function(e,t){return{json:(0,e("soundcheck").getSpeakablePages)(1),type:"Page",icon:"admin-page"}})(g),S=function(e){var t=e.isLoading,n=e.isValid,r=e.tooltip,o=e.color;return t?wp.element.createElement(l.Spinner,null):n?f.a.speakable(r,o):wp.element.createElement("span",{className:"dashicons dashicons-minus"})},k=Object(u.withState)({isOpen:!1})(function(e){var t=e.isLoading,n=e.isOpen,r=e.validations,o=e.content,a=e.setState;return t?wp.element.createElement(l.Spinner,null):o?r.length?wp.element.createElement(c.Fragment,null,wp.element.createElement("span",{className:"pointer dashicons dashicons-warning",onClick:function(){return a({isOpen:!0})}}),n?wp.element.createElement(O,{validations:r,content:o,onRequestClose:function(){a({isOpen:!1})}}):null):wp.element.createElement(c.Fragment,null,wp.element.createElement("span",{className:"pointer",onClick:function(){return a({isOpen:!0})}},f.a.speakable("Speakable Content Found",f.a.colors.speakable_purple)),n?wp.element.createElement(O,{validations:r,content:o,onRequestClose:function(){a({isOpen:!1})}}):null):wp.element.createElement("span",{className:"dashicons dashicons-minus"})}),O=function(e){var t=e.validations,n=e.content,r=e.onRequestClose;return wp.element.createElement(l.Modal,{title:"Speakable Content",onRequestClose:r},t.length?wp.element.createElement("ul",null,t.map(function(e,t){return wp.element.createElement("li",{key:t},"error"==e.type?wp.element.createElement("span",{className:"dashicons dashicons-warning"}):wp.element.createElement("span",{className:"dashicons dashicons-info"})," ",e.message)})):wp.element.createElement("p",null,wp.element.createElement("span",{className:"dashicons dashicons-yes"})," Valid Speakable content."),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Preview"),wp.element.createElement("p",{class:"description"},n))};t.a=w},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r=n(14);e.exports=n(37)(r.isElement,!0)}else e.exports=n(40)()}).call(t,n(6))},function(e,t,n){"use strict";function r(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case m:case d:case l:case u:case s:case v:return e;default:switch(e=e&&e.$$typeof){case f:case h:case p:return e;default:return t}}case w:case y:case c:return t}}}function o(e){return r(e)===d}Object.defineProperty(t,"__esModule",{value:!0});var a="function"===typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,c=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,p=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,m=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,v=a?Symbol.for("react.suspense"):60113,y=a?Symbol.for("react.memo"):60115,w=a?Symbol.for("react.lazy"):60116;t.typeOf=r,t.AsyncMode=m,t.ConcurrentMode=d,t.ContextConsumer=f,t.ContextProvider=p,t.Element=i,t.ForwardRef=h,t.Fragment=l,t.Lazy=w,t.Memo=y,t.Portal=c,t.Profiler=u,t.StrictMode=s,t.Suspense=v,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===l||e===d||e===u||e===s||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===w||e.$$typeof===y||e.$$typeof===p||e.$$typeof===f||e.$$typeof===h)},t.isAsyncMode=function(e){return o(e)||r(e)===m},t.isConcurrentMode=o,t.isContextConsumer=function(e){return r(e)===f},t.isContextProvider=function(e){return r(e)===p},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return r(e)===h},t.isFragment=function(e){return r(e)===l},t.isLazy=function(e){return r(e)===w},t.isMemo=function(e){return r(e)===y},t.isPortal=function(e){return r(e)===c},t.isProfiler=function(e){return r(e)===u},t.isStrictMode=function(e){return r(e)===s},t.isSuspense=function(e){return r(e)===v}},function(e,t,n){"use strict";(function(e){"production"!==e.env.NODE_ENV&&function(){function e(e){return"string"===typeof e||"function"===typeof e||e===g||e===P||e===E||e===b||e===C||"object"===typeof e&&null!==e&&(e.$$typeof===A||e.$$typeof===x||e.$$typeof===S||e.$$typeof===k||e.$$typeof===_)}function n(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case y:var n=e.type;switch(n){case O:case P:case g:case E:case b:case C:return n;default:var r=n&&n.$$typeof;switch(r){case k:case _:case S:return r;default:return t}}case A:case x:case w:return t}}}function r(e){return z||(z=!0,L(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(e)||n(e)===O}function o(e){return n(e)===P}function a(e){return n(e)===k}function i(e){return n(e)===S}function c(e){return"object"===typeof e&&null!==e&&e.$$typeof===y}function l(e){return n(e)===_}function s(e){return n(e)===g}function u(e){return n(e)===A}function p(e){return n(e)===x}function f(e){return n(e)===w}function m(e){return n(e)===E}function d(e){return n(e)===b}function h(e){return n(e)===C}Object.defineProperty(t,"__esModule",{value:!0});var v="function"===typeof Symbol&&Symbol.for,y=v?Symbol.for("react.element"):60103,w=v?Symbol.for("react.portal"):60106,g=v?Symbol.for("react.fragment"):60107,b=v?Symbol.for("react.strict_mode"):60108,E=v?Symbol.for("react.profiler"):60114,S=v?Symbol.for("react.provider"):60109,k=v?Symbol.for("react.context"):60110,O=v?Symbol.for("react.async_mode"):60111,P=v?Symbol.for("react.concurrent_mode"):60111,_=v?Symbol.for("react.forward_ref"):60112,C=v?Symbol.for("react.suspense"):60113,x=v?Symbol.for("react.memo"):60115,A=v?Symbol.for("react.lazy"):60116,T=function(){},j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!==typeof console&&console.warn(a);try{throw new Error(a)}catch(e){}};T=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];j.apply(void 0,[t].concat(r))}};var L=T,I=O,N=P,R=k,V=S,F=y,M=_,B=g,U=A,D=x,$=w,H=E,q=b,W=C,z=!1;t.typeOf=n,t.AsyncMode=I,t.ConcurrentMode=N,t.ContextConsumer=R,t.ContextProvider=V,t.Element=F,t.ForwardRef=M,t.Fragment=B,t.Lazy=U,t.Memo=D,t.Portal=$,t.Profiler=H,t.StrictMode=q,t.Suspense=W,t.isValidElementType=e,t.isAsyncMode=r,t.isConcurrentMode=o,t.isContextConsumer=a,t.isContextProvider=i,t.isElement=c,t.isForwardRef=l,t.isFragment=s,t.isLazy=u,t.isMemo=p,t.isPortal=f,t.isProfiler=m,t.isStrictMode=d,t.isSuspense=h}()}).call(t,n(6))},function(e,t,n){"use strict";(function(t){function r(){return null}var o=n(14),a=n(38),i=n(8),c=n(39),l=Function.call.bind(Object.prototype.hasOwnProperty),s=function(){};"production"!==t.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function u(e){var t=e&&(x&&e[x]||e[A]);if("function"===typeof t)return t}function p(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e){this.message=e,this.stack=""}function m(e){function r(r,c,l,u,p,m,d){if(u=u||T,m=m||l,d!==i){if(n){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var v=u+":"+l;!o[v]&&a<3&&(s("You are manually calling a React.PropTypes validation function for the `"+m+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[v]=!0,a++)}}return null==c[l]?r?new f(null===c[l]?"The "+p+" `"+m+"` is marked as required in `"+u+"`, but its value is `null`.":"The "+p+" `"+m+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(c,l,u,p,m)}if("production"!==t.env.NODE_ENV)var o={},a=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function d(e){function t(t,n,r,o,a,i){var c=t[n];if(O(c)!==e)return new f("Invalid "+o+" `"+a+"` of type `"+P(c)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return m(t)}function h(e){function t(t,n,r,o,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c)){return new f("Invalid "+o+" `"+a+"` of type `"+O(c)+"` supplied to `"+r+"`, expected an array.")}for(var l=0;l<c.length;l++){var s=e(c,l,r,o,a+"["+l+"]",i);if(s instanceof Error)return s}return null}return m(t)}function v(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||T;return new f("Invalid "+o+" `"+a+"` of type `"+C(t[n])+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}return null}return m(t)}function y(e){function n(t,n,r,o,a){for(var i=t[n],c=0;c<e.length;c++)if(p(i,e[c]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===P(t)?String(t):t});return new f("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")}return Array.isArray(e)?m(n):("production"!==t.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function w(e){function t(t,n,r,o,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],s=O(c);if("object"!==s)return new f("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var u in c)if(l(c,u)){var p=e(c,u,r,o,a+"."+u,i);if(p instanceof Error)return p}return null}return m(t)}function g(e){function n(t,n,r,o,a){for(var c=0;c<e.length;c++){if(null==(0,e[c])(t,n,r,o,a,i))return null}return new f("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var o=0;o<e.length;o++){var a=e[o];if("function"!==typeof a)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(a)+" at index "+o+"."),r}return m(n)}function b(e){function t(t,n,r,o,a){var c=t[n],l=O(c);if("object"!==l)return new f("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var u=e[s];if(u){var p=u(c,s,r,o,a+"."+s,i);if(p)return p}}return null}return m(t)}function E(e){function t(t,n,r,o,c){var l=t[n],s=O(l);if("object"!==s)return new f("Invalid "+o+" `"+c+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var p in u){var m=e[p];if(!m)return new f("Invalid "+o+" `"+c+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=m(l,p,r,o,c+"."+p,i);if(d)return d}return null}return m(t)}function S(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(S);if(null===t||e(t))return!0;var n=u(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!S(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!S(a[1]))return!1}return!0;default:return!1}}function k(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":k(t,e)?"symbol":t}function P(e){if("undefined"===typeof e||null===e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=P(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function C(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var x="function"===typeof Symbol&&Symbol.iterator,A="@@iterator",T="<<anonymous>>",j={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:function(){return m(r)}(),arrayOf:h,element:function(){function t(t,n,r,o,a){var i=t[n];if(!e(i)){return new f("Invalid "+o+" `"+a+"` of type `"+O(i)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return m(t)}(),elementType:function(){function e(e,t,n,r,a){var i=e[t];if(!o.isValidElementType(i)){return new f("Invalid "+r+" `"+a+"` of type `"+O(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null}return m(e)}(),instanceOf:v,node:function(){function e(e,t,n,r,o){return S(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return m(e)}(),objectOf:w,oneOf:y,oneOfType:g,shape:b,exact:E};return f.prototype=Error.prototype,j.checkPropTypes=c,j.resetWarningCache=c.resetWarningCache,j.PropTypes=j,j}}).call(t,n(6))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,l=r(e),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var u in n)a.call(n,u)&&(l[u]=n[u]);if(o){c=o(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(l[c[p]]=n[c[p]])}}return l}},function(e,t,n){"use strict";(function(t){function r(e,n,r,l,s){if("production"!==t.env.NODE_ENV)for(var u in e)if(c(e,u)){var p;try{if("function"!==typeof e[u]){var f=Error((l||"React class")+": "+r+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.");throw f.name="Invariant Violation",f}p=e[u](n,u,l,r,null,a)}catch(e){p=e}if(!p||p instanceof Error||o((l||"React class")+": type specification of "+r+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var m=s?s():"";o("Failed "+r+" type: "+p.message+(null!=m?m:""))}}}var o=function(){};if("production"!==t.env.NODE_ENV){var a=n(8),i={},c=Function.call.bind(Object.prototype.hasOwnProperty);o=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}r.resetWarningCache=function(){"production"!==t.env.NODE_ENV&&(i={})},e.exports=r}).call(t,n(6))},function(e,t,n){"use strict";function r(){}function o(){}var a=n(8);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(43),o=n.n(r),a=function(e){var t=[];return o()(e).find("script[type='application/ld+json']").each(function(e,n){try{t[e]=JSON.parse(o()(this).html())}catch(e){throw new Error("There was an error parsing the JSON in the 'application/ld+json' script tag. "+e)}}),0==t.length?null:c(t)},i=function(e){var t=o()("<output>").append(o.a.parseHTML(e)),n=[],r=a(t);if(!r)return{specification:r,speakables:null,content:null,validations:[]};if(0==r.cssSelector.length)throw new Error("No valid selectors found in SpeakableSpecification.");var i=!0,c=!1,l=void 0;try{for(var u,f=r.cssSelector[Symbol.iterator]();!(i=(u=f.next()).done);i=!0){var m=u.value;o()(t).find(m).each(function(e,t){n.push(o()(this).text().trim())})}}catch(e){c=!0,l=e}finally{try{!i&&f.return&&f.return()}finally{if(c)throw l}}var d=s(n),h=p(d);return{specification:r,speakables:n,content:d,validations:h}},c=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i instanceof Array){var c=!0,s=!1,u=void 0;try{for(var p,f=i[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var m=p.value,d=l(m);if(d)return d}}catch(e){s=!0,u=e}finally{try{!c&&f.return&&f.return()}finally{if(s)throw u}}}else{var h=l(i);if(h)return h}}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return null},l=function(e){return e.speakable&&e.speakable["@type"]&&"SpeakableSpecification"==e.speakable["@type"]?e.speakable:null},s=function(e){return e?e.map(function(e){return u(e)}).join(" "):null},u=function(e){return e?(e=e.trim(),e.match(/^[\w\W\s]+[?.!]$/g)?e:e+"."):"."},p=function(e){var t=[];if(!e)return t.push({type:"error",message:"No speakable content found."}),t;var n=e.match(/\S+/g).length;return n<7?t.push({type:"error",message:"The speakable content is too short. Aim for 20-30 seconds of spoken content (2-3 sentences)."}):n<20&&t.push({type:"warning",message:"The speakable may be too short. Aim for 20-30 seconds of spoken content."}),n>100?t.push({type:"error",message:"The speakable content is too long. Aim for 20-30 seconds of spoken content (2-3 sentences)."}):n>80&&t.push({type:"warning",message:"The speakable may be too long. Aim for 20-30 seconds of spoken content."}),t}},function(e,t){e.exports=jQuery},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(46)),i=(n.n(a),n(47)),c=n(9),l=n(16),s=n(17),u=n(11),p=n(18),f=n.n(p),m=n(19),d=n.n(m),h=n(10),v=n.n(h),y=n(3),w=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getUser,o=n.getUserLoaded;return{user:r(),loaded:o()}})(function(e){var t=e.user;return e.loaded?t?wp.element.createElement(g,{className:"margin-bottom"}):wp.element.createElement("div",{className:"flex-grid"},wp.element.createElement("div",{class:"col margin-bottom"},wp.element.createElement(r.Panel,{header:"Voice Interactions"},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement("strong",null,"Set up your Voice Interactions to define how users can engange with your voice presence.")),wp.element.createElement("p",null,"Manage your content using WordPress as your CMS and then publish your interactions to popular voice assistants."),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:f.a,width:"128"}),wp.element.createElement("img",{src:d.a,width:"128"}),wp.element.createElement("img",{src:v.a,width:"128"})),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Start by creating a free Voice Listing."),wp.element.createElement("p",null,wp.element.createElement(u.a,null))))),wp.element.createElement(l.a,{className:"col margin-bottom"})):wp.element.createElement("div",null)}),g=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getVoiceApps,o=n.getVoiceAppsLoaded,a=window.location.hostname,i=r(),c=o();return{selectedApp:i.find(function(e){return e.domain==a}),voiceApps:i,domain:a,loaded:c}})(function(e){var t=e.className,n=e.selectedApp,o=e.loaded,a=e.domain;return o?n?wp.element.createElement(r.Panel,{header:"Voice Interactions",className:t||""},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,"Your Voice Interactions define how users can engange with your voice presence. Each interaction represents a question or command from a user and the response from the voice assistant."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:y.b+"/app/properties/"+n.id+"/interactions"},"Manage Interactions")),n&&wp.element.createElement(r.Panel,{header:"Interactions for "+n.domain,className:t||""},n&&n.commands.map(function(e){return wp.element.createElement(i.a,{app:n,command:e})})),wp.element.createElement(c.a,null))):wp.element.createElement(s.a,{domain:a}):wp.element.createElement("div",null)});t.a=w},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(0)),a=(n.n(o),n(2)),i=(n.n(a),n(5)),c=(n.n(i),n(48)),l=(n.n(c),n(7)),s=n(3),u=n(15),p=(n.n(u),Object(a.withSelect)(function(e,t){var n=t.app,r=t.command,o=e("soundcheck"),a=o.getCommandSources;return{sources:r?a(n.id,r.id):void 0}})(function(e){var t=e.command,n=e.app,r=e.sources,a=t.id;return t.intent&&(a=t.intent.name),wp.element.createElement(o.PanelBody,{title:a,initialOpen:!0},wp.element.createElement("p",null,t.intent.description),r&&r.map(function(e){return wp.element.createElement(m,{source:e,app:n,command:t})}),r&&wp.element.createElement(f,{app:n,command:t}))})),f=Object(i.withState)({isPreviewing:!1,relaoding:!1,url:null})(function(e){var t=e.app,n=e.command,a=e.isPreviewing,i=e.reloading,c=e.setState,l=e.url,u=s.a+"/v4/domains/"+t.id+"/commands/"+n.id+"/audio";return wp.element.createElement(o.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-source__preview"},a?i?wp.element.createElement(o.IconButton,{icon:"update",isBusy:!0}):wp.element.createElement(r.Fragment,null,wp.element.createElement("audio",{controls:!0},wp.element.createElement("source",{src:l,type:"audio/mpeg"})),wp.element.createElement(o.IconButton,{icon:"update",onClick:function(){c({reloading:!0}),setTimeout(function(){c({reloading:!1})},1e3)}})):wp.element.createElement(o.IconButton,{icon:"controls-volumeon",label:"Preview",isDefault:!0,onClick:function(){c({isPreviewing:!0,url:u})}})))}),m=function(e){var t=e.source,n=e.app,r=e.command;return wp.element.createElement(o.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-source__row"},"SPEAKABLE"==t.contentSource.uuid?wp.element.createElement(h,{source:t,app:n,command:r}):wp.element.createElement(d,{source:t,app:n,command:r}),wp.element.createElement("div",{className:"soundcheck-source__row__item"},t.contentSource.name)))},d=function(e){var t=e.source,n=e.app;e.command;return wp.element.createElement("div",{className:"soundcheck-source__row__item"},wp.element.createElement(o.ExternalLink,{href:s.b+"/app/properties/"+n.id+"/interactions"},t.label))},h=Object(i.compose)([Object(i.withState)({isOpen:!1,option:void 0,url:void 0,selectedPage:void 0,selectedPost:void 0,initialized:!1})],[Object(a.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getSpeakablePosts;return{pages:(0,n.getSpeakablePages)(1),posts:r(1)}})],[Object(a.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setCommandSource;return{onClick:function(e){var n="/v4/user/voice_apps/"+t.app.id+"/commands/"+t.command.id+"/sources/"+t.source.id;return t.source.global.url=e,Object(l.a)({path:n,method:"PUT",body:t.source}).then(function(e){r(t.command.id,e)})}}})])(function(e){var t=e.isOpen,n=e.setState,a=e.source,i=e.onClick,l=e.pages,s=e.posts,u=e.option,p=e.url,f=e.initialized,m=e.selectedPage,d=e.selectedPost,h=l.map(function(e){return{label:Object(c.decodeEntities)(e.title.rendered),value:e.link}});h.unshift({label:"<Select a Page>",value:""});var v=s.map(function(e){return{label:Object(c.decodeEntities)(e.title.rendered),value:e.link}});if(v.unshift({label:"<Select a Post>",value:""}),!f){var y={option:void 0,url:void 0,selectedPage:"",selectedPost:"",initialized:!0};if(y.url=a.global.url,y.option="custom",y.url){var w=!0,g=!1,b=void 0;try{for(var E,S=h[Symbol.iterator]();!(w=(E=S.next()).done);w=!0){E.value.link==y.url&&(y.option="page",y.selectedPage=y.url)}}catch(e){g=!0,b=e}finally{try{!w&&S.return&&S.return()}finally{if(g)throw b}}var k=!0,O=!1,P=void 0;try{for(var _,C=v[Symbol.iterator]();!(k=(_=C.next()).done);k=!0){_.value.link==y.url&&(y.option="post",y.selectedPost=y.url)}}catch(e){O=!0,P=e}finally{try{!k&&C.return&&C.return()}finally{if(O)throw P}}}n(y)}return wp.element.createElement(r.Fragment,null,wp.element.createElement("div",{className:"soundcheck-source__row__item"},wp.element.createElement(o.Button,{isLink:!0,onClick:function(){return n({isOpen:!0})}},a.label)),t?wp.element.createElement(o.Modal,{title:"Speakable Content",onRequestClose:function(){return n({isOpen:!1})}},wp.element.createElement("form",null,wp.element.createElement(o.RadioControl,{label:"Select a source with Speakable content.",selected:u,options:[{label:"A Recent Blog Page",value:"page"},{label:"A Recent Blog Post",value:"post"},{label:"Other URL",value:"custom"}],onChange:function(e){n({option:e})}}),function(){switch(u){case"post":return wp.element.createElement(o.SelectControl,{label:"Select a Post",value:d,options:v,onChange:function(e){n({url:e,selectedPost:e})}});case"page":return wp.element.createElement(o.SelectControl,{label:"Select a Page",value:m,options:h,onChange:function(e){return n({url:e,selectedPage:e})}});case"custom":return wp.element.createElement(o.TextControl,{label:"Other URL",value:p,onChange:function(e){return n({url:e})}})}}(),wp.element.createElement(o.Button,{isDefault:!0,onClick:function(){n({isOpen:!1}),i(p)}},"Save"))):null)});t.a=p},function(e,t){e.exports=wp.htmlEntities},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(3)),i=n(52),c=(n.n(i),n(53)),l=n(9),s=n(16),u=n(17),p=n(11),f=n(18),m=n.n(f),d=n(19),h=n.n(d),v=n(10),y=n.n(v),w=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getUser,o=n.getUserLoaded;return{user:r(),loaded:o()}})(function(e){var t=e.user;return e.loaded?t?wp.element.createElement(g,{className:"margin-bottom"}):wp.element.createElement("div",{className:"flex-grid"},wp.element.createElement("div",{class:"col margin-bottom"},wp.element.createElement(r.Panel,{header:"Voice Hosting"},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement("strong",null,"Soundcheck Voice Hosting makes your business or brand available on smart speakers and voice assistants.")),wp.element.createElement("p",null,"Free Features:"),wp.element.createElement("ol",null,wp.element.createElement("li",null,"Voice Listing to promote your voice presence."),wp.element.createElement("li",null,"Easily define answers to common voice-initiated questions."),wp.element.createElement("li",null,'Create and validate "Speakable" web content using custom editor blocks.'),wp.element.createElement("li",null,"Use WordPress as a voice CMS."),wp.element.createElement("li",null,"Publish to voice assistants like Amazon Alexa and Google Home.")),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:m.a,width:"128"}),wp.element.createElement("img",{src:h.a,width:"128"}),wp.element.createElement("img",{src:y.a,width:"128"})),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Start by creating a free Voice Listing."),wp.element.createElement("p",null,wp.element.createElement(p.a,null))))),wp.element.createElement(s.a,{className:"col margin-bottom"})):wp.element.createElement("div",null)}),g=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getVoiceApps,o=(n.getSelectedVoiceAppId,n.getVoiceAppsLoaded),a=window.location.hostname,i=r(),c=o();return{selectedApp:i.find(function(e){return e.domain==a}),voiceApps:i,domain:a,loaded:c}})(function(e){var t=e.className,n=e.selectedApp,o=e.icon,i=e.domain;return e.loaded?n?wp.element.createElement(r.Panel,{header:"Voice Hosting",className:t||""},wp.element.createElement(r.PanelBody,{title:n.term+" Voice Activity",icon:o,initialOpen:!0},wp.element.createElement("p",null,"See which platforms are accessing your published voice content."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:a.b+"/app/properties/"+n.id+"/availability"},"Edit Availability")),wp.element.createElement(c.a,{app:n})),wp.element.createElement(r.PanelBody,{title:i+" Voice Listing",icon:o,initialOpen:!0},"VALID"!=n.authStatus&&wp.element.createElement(r.Notice,{status:"info",isDismissible:!1},"You will need to verify ownership of ",n.domain," before your voice listing is published."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:a.b+"/app/properties/"+n.id+"/listing"},"Edit Voice Listing")," ",wp.element.createElement(r.ExternalLink,{href:a.b+"/voice/"+n.domain},"View Voice Listing")),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:n.banner1920x1080,style:{maxWidth:"100%"}}))),wp.element.createElement(r.PanelBody,null,wp.element.createElement(l.a,null))):wp.element.createElement(u.a,{domain:i}):wp.element.createElement("div",null)});t.a=w},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(5)),i=(n.n(a),n(13)),c=n(15),l=(n.n(c),Object(a.compose)([Object(a.withState)({now:Date.now()}),Object(o.withSelect)(function(e,t){var n=t.app,r=t.now,o=e("soundcheck"),a=o.getVoiceAppStats,i=a(n.id,0,r);return{stats:n?u(i).map(function(e){return[{value:e.platform},{value:e.requests},{value:e.users}]}):void 0}})])(function(e){var t=e.stats;return t?wp.element.createElement(i.a,{data:t,headers:["platform","requests","users"]}):wp.element.createElement(r.Spinner,null)})),s=[{platform:"Alexa",requests:0,users:0},{platform:"Actions on Google",requests:0,users:0},{platform:"Soundcheck Mobile",requests:0,users:0}],u=function(e){var t=new Set,n=[Object.assign({},s[0]),Object.assign({},s[1]),Object.assign({},s[2])];if(e){var r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var l=i.value,u=-1;"alexa"==l.platform?u=0:"aog"==l.platform?u=1:"mobile"==l.platform&&(u=2),u>=0&&(n[u].requests++,t.has(l.userId)||(n[u].users++,t.add(l.userId)))}}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}}return n};t.a=l},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return l});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={speakables:{posts:[],pages:[]},voiceApps:{selectedAppId:null,apps:[],stats:{},sources:{},loaded:!1},soundcheckAuth:{user:null,loaded:!1,token:localStorage.getItem("jwt")}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.speakables,t=arguments[1];switch(console.log("speakables reducing",t),console.log(e),t.type){case"SPEAKABLE_SET_POSTS":return o({},e,{posts:t.posts});case"SPEAKABLE_SET_PAGES":return o({},e,{pages:t.pages});default:return e}},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.voiceApps,t=arguments[1];switch(console.log("voiceapps reducing",t),console.log(e),t.type){case"VOICEAPPS_SET_APPS":return o({},e,{apps:t.apps,selectedAppId:t.apps.length>0?t.apps[0].id:null,loaded:!0});case"VOICEAPPS_SET_SOURCES":return o({},e,{sources:o({},e.sources,r({},t.commandId,t.sources))});case"VOICEAPPS_SET_STATS":var n=Math.round((t.end-t.start)/1e3/3600/24);return o({},e,{stats:o({},e.stats,r({},t.appId+"-"+n,t.stats))});case"VOICEAPPS_SET_SOURCE":var i=o({},e.sources);return i[t.commandId].map(function(e){return e.id==t.source.id?t.source:e}),o({},e,{sources:i});case"VOICEAPPS_SELECT_APP":return o({},e,{selectedAppId:t.id});default:return e}},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.soundcheckAuth,t=arguments[1];switch(console.log("auth reducing",t),console.log(e),t.type){case"AUTH_SET_USER":return console.log("SETTING USER",t.user),o({},e,{user:t.user,loaded:!0});case"AUTH_SET_TOKEN":return localStorage.setItem("jwt",t.token),o({},e,{token:t.token});default:return e}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={setSpeakablePosts:function(e){return{type:"SPEAKABLE_SET_POSTS",posts:e}},setSpeakablePages:function(e){return{type:"SPEAKABLE_SET_PAGES",pages:e}},setVoiceApps:function(e){return{type:"VOICEAPPS_SET_APPS",apps:e}},setVoiceAppStats:function(e,t,n,r){return{type:"VOICEAPPS_SET_STATS",appId:e,stats:t,start:n,end:r}},setSelectedVoiceAppId:function(e){return{type:"VOICEAPPS_SELECT_APP",id:e}},setCommandSources:function(e,t){return{type:"VOICEAPPS_SET_SOURCES",commandId:e,sources:t}},setCommandSource:function(e,t){return{type:"VOICEAPPS_SET_SOURCE",commandId:e,source:t}},setUser:function(e){return{type:"AUTH_SET_USER",user:e}},fetchFromWPAPI:function(e){return{type:"FETCH_FROM_WPAPI",path:e}},fetchFromSoundcheckAPI:function(e){return{type:"FETCH_FROM_SOUNDCHECKAPI",path:e}},updateToSoundcheckAPI:function(e,t){return{type:"UPDATE_TO_SOUNDCHECKAPI",path:e,body:t}},fetchVoiceAppDetailsFromSoundcheckAPI:function(e){return{type:"FETCH_VOICE_APP_DETAILS_FROM_SOUNDCHECKAPI",voiceApp:e}}}}]); -
soundcheck/tags/1.0.2/plugin.php
r2114274 r2114499 4 4 * Plugin URI: https://soundcheck.ai/wordpress 5 5 * Description: This is a plugin for managing content for smart speakers in WordPress posts. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Soundcheck 8 8 * -
soundcheck/tags/1.0.2/readme.txt
r2114268 r2114499 6 6 Tested up to: 5.2.2 7 7 Requires PHP: 5.2.4 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl.html … … 42 42 * Initial version of speakable blocks and validation 43 43 * Fix for install issue 44 45 = 1.0.2 = 46 * Fix image paths 47 * Fix create path -
soundcheck/trunk/admin.build.js
r2113682 r2114499 1 !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=25)}([function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.data},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r="https://api.peck.me",o="https://soundcheck.ai"},function(e,t,n){"use strict";var r={};r.logo=function(e){return wp.element.createElement("svg",{width:e+"px",height:e+"px",viewBox:"0 0 53 53",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,"Soundcheck"),wp.element.createElement("g",{id:"Soundcheck",fill:"#3BAB48"},wp.element.createElement("path",{d:"M37.1598063,1 L16.666899,1 L16.666899,1.02119114 C16.3943259,1.01009102 16.1227512,1 15.8511765,1 C7.09988132,1 0,8.16967043 0,17.0154594 L0,51 L37.1598063,51 C45.9111015,51 53,43.8353751 53,34.9905952 L53,17.0154594 C53,8.16967043 45.9111015,1 37.1598063,1 L37.1598063,1 Z M11.626792,32.1479546 C11.626792,33.1671477 10.8060773,33.9966296 9.79665806,33.9966296 C8.78324511,33.9966296 7.96752256,33.1671477 7.96752256,32.1479546 L7.96752256,23.7673616 C7.96752256,22.743123 8.78324511,21.9186866 9.79665806,21.9186866 C10.8060773,21.9186866 11.626792,22.743123 11.626792,23.7673616 L11.626792,32.1479546 Z M19.0351902,39.8352944 C19.0351902,40.8554966 18.213477,41.6849785 17.2050562,41.6849785 C16.195637,41.6849785 15.3749223,40.8554966 15.3749223,39.8352944 L15.3749223,16.0800218 C15.3749223,15.0547741 16.195637,14.2303376 17.2050562,14.2303376 C18.213477,14.2303376 19.0351902,15.0547741 19.0351902,16.0800218 L19.0351902,39.8352944 Z M27.6606823,33.9179196 C27.6606823,34.9431674 26.8399676,35.7665947 25.8315468,35.7665947 C24.8221276,35.7665947 24.0014129,34.9431674 24.0014129,33.9179196 L24.0014129,21.992351 C24.0014129,20.9721488 24.8221276,20.1426669 25.8315468,20.1426669 C26.8399676,20.1426669 27.6606823,20.9721488 27.6606823,21.992351 L27.6606823,33.9179196 Z M36.2871729,36.0895074 C36.2871729,37.1087005 35.4664582,37.9381824 34.457039,37.9381824 C33.4476198,37.9381824 32.626905,37.1087005 32.626905,36.0895074 L32.626905,19.8207633 C32.626905,18.8005611 33.4476198,17.9710791 34.457039,17.9710791 C35.4664582,17.9710791 36.2871729,18.8005611 36.2871729,19.8207633 L36.2871729,36.0895074 Z M44.8707307,32.1479546 C44.8707307,33.1671477 44.050016,33.9966296 43.0415952,33.9966296 C42.0271838,33.9966296 41.2114613,33.1671477 41.2114613,32.1479546 L41.2114613,23.7673616 C41.2114613,22.743123 42.0271838,21.9186866 43.0415952,21.9186866 C44.050016,21.9186866 44.8707307,22.743123 44.8707307,23.7673616 L44.8707307,32.1479546 Z",id:"logo"})))},r.speakable=function(e,t){return wp.element.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 78 78",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,e),wp.element.createElement("g",{id:"Speakable",fill:t,transform:"translate(2.000000, 0.000000)"},wp.element.createElement("path",{d:"M26.4788729,69.9405038 L9.41272422,77.3999991 L12.6487443,62.8196156 C4.92071963,56.3078621 0,46.4867881 0,35.5 C0,15.8938914 15.6700338,2.13162821e-14 35,2.13162821e-14 C54.3299662,2.13162821e-14 70,15.8938914 70,35.5 C70,55.1061086 54.3299662,71 35,71 C32.0609411,71 29.2064934,70.6325615 26.4788729,69.9405038 Z M28.2601921,52.8310547 C32.6326098,44.9247652 37.1284958,38.0443001 41.7479851,32.1894531 C46.3674743,26.3346061 50.6312663,22.1269659 54.539489,19.5664062 C52.8623973,19.012367 51.3051212,18.7353516 49.867614,18.7353516 C47.5765869,18.7353516 45.7385519,19.1471313 44.3534538,19.9707031 C42.9683557,20.794275 41.3025195,22.4713415 39.3558952,25.0019531 C37.1846604,27.8170714 34.1524642,32.9156532 30.2592155,40.2978516 C29.7201503,37.76724 29.0687897,35.9891002 28.305114,34.9633789 C27.5414383,33.9376576 26.4932717,33.4248047 25.1605827,33.4248047 C23.1540623,33.4248047 20.8705565,34.5029189 18.3099968,36.6591797 C20.4962056,37.9619206 22.3903924,40.200505 23.992614,43.375 L24.8236687,45.0595703 C25.1231493,45.6735057 25.4825207,46.4671175 25.9017937,47.4404297 L27.2719108,50.6074219 C27.3917031,50.9069025 27.7211269,51.6481061 28.2601921,52.8310547 Z",id:"icon"})))},r.colors={speakable_purple:"#6A64B6",peck_green:"#3BAB48"},t.a=r},function(e,t){e.exports=wp.compose},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){h&&m&&(h=!1,m.length?d=m.concat(d):v=-1,d.length&&c())}function c(){if(!h){var e=o(i);h=!0;for(var t=d.length;t;){for(m=d,d=[];++v<t;)m&&m[v].run();v=-1,t=d.length}m=null,h=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function s(){}var u,p,f=e.exports={};!function(){try{u="function"===typeof setTimeout?setTimeout:n}catch(e){u=n}try{p="function"===typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var m,d=[],h=!1,v=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new l(e,t)),1!==d.length||h||o(c)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.prependListener=s,f.prependOnceListener=s,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(3),o=function(e){var t=e.path,n=e.method,o=e.body,a=localStorage.getItem("jwt"),i=n||"GET",c={method:i,mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"}};a&&(c.headers.Authorization="Bearer "+a);var l=""+r.a+t,s=c;switch(n){case"PUT":case"POST":s.body=JSON.stringify(o);default:return fetch(l,s).then(function(e){if(200==e.status)return e.json();throw new Error(e.statusText)})}};t.a=o},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(49)),i=(n.n(a),Object(o.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setUser;return{signOut:function(){r(null),localStorage.removeItem("jwt")}}})(function(e){var t=e.signOut;return wp.element.createElement(r.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-dashboard-footer"},wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.Button,{isLink:!0,onClick:t},"Sign Out")),wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.ExternalLink,{href:"https://soundcheck.ai"},"soundcheck.ai")),wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.ExternalLink,{href:"mailto:help@soundcheck.ai"},"Help"))))}));t.a=i},function(e,t){e.exports="/wp-content/plugins/soundcheck/ dist/a69dbe4634047ba85aba5e10462c54cb.png"},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(3)),a=function(){var e=window.location.hostname,t=window.location.protocol+"//"+e,n=localStorage.getItem("jwt"),a=function(){var e=o.b+"/start/wordpress?url="+encodeURIComponent(t)+"&token="+n;window.location.href=e};return wp.element.createElement(r.Button,{isPrimary:!0,onClick:a},"Create Listing for ",e)};t.a=a},function(e,t,n){e.exports=n(26)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=(n.n(i),n(34)),l=n.n(c),s=n(41),u=(n.n(s),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.headers,n=e.data;return wp.element.createElement("div",{className:"soundcheck-table"},wp.element.createElement("div",{className:"soundcheck-table_header"},t.map(function(e,t){return wp.element.createElement(m,{key:t,title:e})})),wp.element.createElement("div",{className:"soundcheck-table_content"},n.map(function(e,t){return wp.element.createElement(f,{key:t,row:e})})))}}]),t}(i.Component);p.propTypes={headers:l.a.arrayOf(l.a.string),data:l.a.array.isRequired};var f=function(e){var t=e.row;return wp.element.createElement("div",{className:"soundcheck-table_row"},t.map(function(e,t){return e.component?wp.element.createElement("div",{key:t,className:"soundcheck-table_data"},e.component):wp.element.createElement("div",{key:t,className:"soundcheck-table_data",dangerouslySetInnerHTML:{__html:e.value}})}))},m=function(e){var t=e.title;return wp.element.createElement("div",{className:"soundcheck-table_header-item"},t)};t.a=p},function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(35):e.exports=n(36)}).call(t,n(6))},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(2)),a=(n.n(o),n(0)),i=(n.n(a),n(5)),c=(n.n(i),n(7)),l=n(3),s=n(50),u=(n.n(s),n(10)),p=n.n(u),f=Object(i.compose)([Object(o.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setUser;return{onToken:function(e){localStorage.setItem("jwt",e),Object(c.a)({path:"/v4/user"}).then(function(e){r(e)})}}}),Object(i.withState)({email:void 0,codeSent:!1})])(function(e){var t=e.codeSent,n=e.email,r=e.className,o=e.setState,i=e.onToken;return wp.element.createElement(a.Panel,{header:"Already Have an Account?",className:r||""},wp.element.createElement(a.PanelBody,null,wp.element.createElement(a.PanelRow,null,wp.element.createElement("div",{className:"sign-in"},wp.element.createElement("div",{className:"sign-in__form"},wp.element.createElement("div",{class:"logo"},wp.element.createElement("img",{height:"48",src:p.a})),wp.element.createElement("h3",null,"Sign In"),t?wp.element.createElement(d,{email:n,onGoBack:function(){o({codeSent:!1})},onTokenReceived:i}):wp.element.createElement(m,{onCodeSent:function(e){o({codeSent:!0,email:e})}}))))))}),m=Object(i.withState)({email:"",error:null})(function(e){var t=e.onCodeSent,n=e.email,o=e.setState,i=e.error;return wp.element.createElement(r.Fragment,null,i&&wp.element.createElement("div",{className:"sign-in__notice"},wp.element.createElement(a.Notice,{status:"error",onRemove:function(){o({error:null})}},i)),wp.element.createElement(a.TextControl,{label:"Your Email Address",type:"email",value:n,onChange:function(e){return o({email:e})}}),wp.element.createElement(a.Button,{className:"sign-in__button",isPrimary:!0,onClick:function(){if(n)return fetch(l.a+"/auth/email",{method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,create:!1})}).then(function(e){200==e.status?t(n):500==e.status?o({error:"There was an error sending your login code."}):e.json().then(function(e){o({error:e.message})})}).catch(function(e){return o({error:e})})}},"Send Sign In Code"))}),d=Object(i.withState)({authCode:"000000",error:null})(function(e){var t=e.authCode,n=e.onGoBack,o=e.onTokenReceived,i=e.error,c=e.email,s=e.setState;return wp.element.createElement(r.Fragment,null,i&&wp.element.createElement("div",{className:"sign-in__notice"},wp.element.createElement(a.Notice,{status:"error",onRemove:function(){s({error:null})}},i)),wp.element.createElement(a.TextControl,{label:"Your Login Code",type:"text",onChange:function(e){s({authCode:e})}}),wp.element.createElement(a.Button,{className:"sign-in__button",isPrimary:!0,onClick:function(){return fetch(l.a+"/auth/email?email="+encodeURIComponent(c)+"&code="+t,{method:"GET",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"}}).then(function(e){if(200==e.status)return e.json();throw new Error("Invalid login token")}).then(function(e){o(e.token)}).catch(function(e){s({error:e.message})})}},"Confirm Code"),wp.element.createElement("p",null,"Didn't receive your code?"),wp.element.createElement(a.Button,{isLink:!0,onClick:n},"Try Again"))});t.a=f},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(9)),a=n(11),i=function(e){var t=e.domain;return wp.element.createElement(r.Panel,{header:"Soundcheck Voice Hosting"},wp.element.createElement(r.PanelBody,null,wp.element.createElement(r.Notice,{status:"warning",isDismissible:!1},"This domain ",t," is not listed with Soundcheck."),wp.element.createElement("p",null,"You can list your domain for free and start making your business ready for voice."),wp.element.createElement("p",null,wp.element.createElement(a.a,null)),wp.element.createElement(o.a,null)))};t.a=i},function(e,t){e.exports="/wp-content/plugins/soundcheck/dist/bdf0973488134dbe05148d77d0311973.png"},function(e,t){e.exports="/wp-content/plugins/soundcheck/dist/2c3962efb5c14417eb99b15033163bd8.png"},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),a=n(1),i=(n.n(a),n(28)),c=n.n(i),l=n(7),s=n(2),u=(n.n(s),n(29)),p=n(54),f=n(55);Object(s.registerStore)("soundcheck",{reducer:Object(s.combineReducers)({speakables:p.b,voiceApps:p.c,soundcheckAuth:p.a}),actions:f.a,selectors:{getSpeakablePosts:function(e){return e.speakables.posts},getSpeakablePages:function(e){return e.speakables.pages},getVoiceApps:function(e){return e.voiceApps.apps},getVoiceAppsLoaded:function(e){return e.voiceApps.loaded},getCommandSources:function(e,t,n){return e.voiceApps.sources[n]},getSelectedVoiceAppId:function(e){return e.voiceApps.selectedAppId},getVoiceAppStats:function(e,t,n,r){var o=e.voiceApps,a=Math.round((r-n)/1e3/3600/24);return o.stats[t+"-"+a]},getUser:function(e){return e.soundcheckAuth.user},getUserLoaded:function(e){return e.soundcheckAuth.loaded}},controls:{FETCH_FROM_WPAPI:function(e){return c()({path:e.path})},FETCH_FROM_SOUNDCHECKAPI:function(e){return Object(l.a)({path:e.path})}},resolvers:{getSpeakablePosts:o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="/wp/v2/posts?page="+t,e.next=3,f.a.fetchFromWPAPI(n);case 3:return r=e.sent,e.abrupt("return",f.a.setSpeakablePosts(r));case 5:case"end":return e.stop()}},e,this)}),getSpeakablePages:o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="/wp/v2/pages?page="+t,e.next=3,f.a.fetchFromWPAPI(n);case 3:return r=e.sent,e.abrupt("return",f.a.setSpeakablePages(r));case 5:case"end":return e.stop()}},e,this)}),getVoiceApps:o.a.mark(function e(){var t,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="/v4/user/voice_apps",e.next=3,f.a.fetchFromSoundcheckAPI(t);case 3:return n=e.sent,e.abrupt("return",f.a.setVoiceApps(n));case 5:case"end":return e.stop()}},e,this)}),getVoiceAppStats:o.a.mark(function e(t,n,r){var a,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/v4/user/voice_apps/"+t+"/stats?start="+n+"&end="+r,e.next=3,f.a.fetchFromSoundcheckAPI(a);case 3:return i=e.sent,e.abrupt("return",f.a.setVoiceAppStats(t,i,n,r));case 5:case"end":return e.stop()}},e,this)}),getCommandSources:o.a.mark(function e(t,n){var r,a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/v4/user/voice_apps/"+t+"/commands/"+n+"/sources",e.next=3,f.a.fetchFromSoundcheckAPI(r);case 3:return a=e.sent,e.abrupt("return",f.a.setCommandSources(n,a));case 5:case"end":return e.stop()}},e,this)}),getUser:o.a.mark(function e(){var t,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="/v4/user",e.prev=1,e.next=4,f.a.fetchFromSoundcheckAPI(t);case 4:return n=e.sent,e.abrupt("return",f.a.setUser(n));case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",f.a.setUser(null));case 11:case"end":return e.stop()}},e,this,[[1,8]])})}}),Object(a.render)(wp.element.createElement(u.a,null),document.getElementById("soundcheck-root"))},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(27),o)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var a=t&&t.prototype instanceof o?t:o,i=Object.create(a.prototype),c=new m(r||[]);return i._invoke=s(e,n,c),i}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function i(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(n,o,a,i){var c=r(e[n],e,o);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"===typeof s&&w.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(s).then(function(e){l.value=e,a(l)},i)}i(c.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function s(e,t,n){var o=P;return function(a,i){if(o===C)throw new Error("Generator is already running");if(o===x){if("throw"===a)throw i;return h()}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=u(c,n);if(l){if(l===A)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===P)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=C;var s=r(e,t,n);if("normal"===s.type){if(o=n.done?x:_,s.arg===A)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=x,n.method="throw",n.arg=s.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===v){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=v,u(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,A;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,A):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function m(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function d(e){if(e){var t=e[b];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(w.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:v,done:!0}}var v,y=Object.prototype,w=y.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},b=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",S=g.toStringTag||"@@toStringTag",k="object"===typeof e,O=t.regeneratorRuntime;if(O)return void(k&&(e.exports=O));O=t.regeneratorRuntime=k?e.exports:{},O.wrap=n;var P="suspendedStart",_="suspendedYield",C="executing",x="completed",A={},T={};T[b]=function(){return this};var j=Object.getPrototypeOf,L=j&&j(j(d([])));L&&L!==y&&w.call(L,b)&&(T=L);var I=i.prototype=o.prototype=Object.create(T);a.prototype=I.constructor=i,i.constructor=a,i[S]=a.displayName="GeneratorFunction",O.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===a||"GeneratorFunction"===(t.displayName||t.name))},O.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,S in e||(e[S]="GeneratorFunction")),e.prototype=Object.create(I),e},O.awrap=function(e){return{__await:e}},c(l.prototype),l.prototype[E]=function(){return this},O.AsyncIterator=l,O.async=function(e,t,r,o){var a=new l(n(e,t,r,o));return O.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},c(I),I[S]="Generator",I[b]=function(){return this},I.toString=function(){return"[object Generator]"},O.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},O.values=d,m.prototype={constructor:m,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&w.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=w.call(o,"catchLoc"),c=w.call(o,"finallyLoc");if(i&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&w.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;f(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:d(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),A}}}(function(){return this}()||Function("return this")())},function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=(n.n(i),n(30)),l=(n.n(c),n(31)),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){return wp.element.createElement("div",{className:"soundcheck-layout"},wp.element.createElement(l.a,null))}}]),t}(i.Component);t.a=u},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(1),o=(n.n(r),n(5)),a=(n.n(o),n(32)),i=n(45),c=n(51),l=window.location.search,s=/[?&]page=([^&]*)/.exec(l),u=decodeURIComponent(s[1]),p=Object(o.withState)({route:u})(function(e){switch(e.route){case"soundcheck-structured-data":return;case"soundcheck-voice-hosting":return wp.element.createElement(c.a,null);case"soundcheck-voice-interactions":return wp.element.createElement(i.a,null);default:return wp.element.createElement(a.a,null)}})},function(e,t,n){"use strict";var r=n(33),o=function(){return wp.element.createElement(r.a,{className:"margin-bottom"})};t.a=o},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,a){try{var i=t[o](a),c=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)});e(c)}return r("next")})}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(12),i=n.n(a),c=n(1),l=(n.n(c),n(0)),s=(n.n(l),n(2)),u=(n.n(s),n(5)),p=(n.n(u),n(13)),f=n(4),m=n(42),d=n(3),h=n(44),v=(n.n(h),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),y=function(){var e=r(i.a.mark(function e(t){var n,r,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.link);case 2:return n=e.sent,e.next=5,n.text();case 5:return r=e.sent,o=Object(m.a)(r),e.abrupt("return",o);case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),w=function(e){var t=e.className;return wp.element.createElement(l.Panel,{header:"Voice-Optimized Web Content",className:t||""},wp.element.createElement(l.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement(l.ExternalLink,{href:d.soundeckUrl+"/speakable-content"},"Speakable content")," is text on your website that you designate as optimized for voice assistants. That means it is particularly suited to be read out loud using text to speech."),wp.element.createElement("p",null,"The tables below show posts hat contain speakable content. If the post has a valid ",wp.element.createElement("code",null,"SpeakableSpecification"),', the "FORMATTED" column will be checked. If the post also has speakable content, the "SPEAKABLE" column will be checked. Click on a SPEAKABLE column check to preview the content.'),wp.element.createElement("p",null,'To add speakable content to any post use the "Speakable Section" block in the editor.')),wp.element.createElement(b,null),wp.element.createElement(E,null))},g=Object(u.withState)({data:[],initialized:!1,loading:!1})(function(e){var t=e.json,n=e.data,r=e.setState,a=e.type,i=e.icon,c=e.loading;if(e.initialized){if(!c){r({loading:!0});var s=!0,u=!1,m=void 0;try{for(var d,h=n[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var w=d.value;!function(e){y(e).then(function(t){var a=t.specification,i=t.content,c=t.speakables,l=t.validations,s=[].concat(o(n)),u=s.find(function(t){return t.id===e.id});u.loaded=!0,u.hasSpeakableSpecification=!!a,u.isSpeakable=c&&c.length,u.content=i,u.validations=l,r({data:s})})}(w)}}catch(e){u=!0,m=e}finally{try{!s&&h.return&&h.return()}finally{if(u)throw m}}}}else if(t.length){var g=t.map(function(e){return v({},e,{loaded:!1,hasSpeakableSpecification:!1,isSpeakable:!1,content:null,validations:[],speakables:null})});r({data:g,initialized:!0})}var b=n.map(function(e){return[{component:wp.element.createElement("a",{href:e.link,dangerouslySetInnerHTML:{__html:e.title.rendered}})},{value:new Date(e.date).toLocaleDateString()},{component:wp.element.createElement(S,{isLoading:!e.loaded,isValid:e.hasSpeakableSpecification,color:f.a.colors.speakable_purple,tooltip:"Valid Specification"})},{component:wp.element.createElement(k,{isLoading:!e.loaded,validations:e.validations,content:e.content})}]});return wp.element.createElement(l.PanelBody,{title:a+"s",icon:i,initialOpen:!0},wp.element.createElement(l.PanelRow,null,b.length>0?wp.element.createElement(p.a,{data:b,headers:["Title","Date","Formatted","Speakable"]}):wp.element.createElement("p",null,"No ",a,"s with Speakable data yet. Add a Speakable block to a ",a," to get started.")))}),b=Object(s.withSelect)(function(e,t){return{json:(0,e("soundcheck").getSpeakablePosts)(1),type:"Post",icon:"admin-post"}})(g),E=Object(s.withSelect)(function(e,t){return{json:(0,e("soundcheck").getSpeakablePages)(1),type:"Page",icon:"admin-page"}})(g),S=function(e){var t=e.isLoading,n=e.isValid,r=e.tooltip,o=e.color;return t?wp.element.createElement(l.Spinner,null):n?f.a.speakable(r,o):wp.element.createElement("span",{className:"dashicons dashicons-minus"})},k=Object(u.withState)({isOpen:!1})(function(e){var t=e.isLoading,n=e.isOpen,r=e.validations,o=e.content,a=e.setState;return t?wp.element.createElement(l.Spinner,null):o?r.length?wp.element.createElement(c.Fragment,null,wp.element.createElement("span",{className:"pointer dashicons dashicons-warning",onClick:function(){return a({isOpen:!0})}}),n?wp.element.createElement(O,{validations:r,content:o,onRequestClose:function(){a({isOpen:!1})}}):null):wp.element.createElement(c.Fragment,null,wp.element.createElement("span",{className:"pointer",onClick:function(){return a({isOpen:!0})}},f.a.speakable("Speakable Content Found",f.a.colors.speakable_purple)),n?wp.element.createElement(O,{validations:r,content:o,onRequestClose:function(){a({isOpen:!1})}}):null):wp.element.createElement("span",{className:"dashicons dashicons-minus"})}),O=function(e){var t=e.validations,n=e.content,r=e.onRequestClose;return wp.element.createElement(l.Modal,{title:"Speakable Content",onRequestClose:r},t.length?wp.element.createElement("ul",null,t.map(function(e,t){return wp.element.createElement("li",{key:t},"error"==e.type?wp.element.createElement("span",{className:"dashicons dashicons-warning"}):wp.element.createElement("span",{className:"dashicons dashicons-info"})," ",e.message)})):wp.element.createElement("p",null,wp.element.createElement("span",{className:"dashicons dashicons-yes"})," Valid Speakable content."),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Preview"),wp.element.createElement("p",{class:"description"},n))};t.a=w},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r=n(14);e.exports=n(37)(r.isElement,!0)}else e.exports=n(40)()}).call(t,n(6))},function(e,t,n){"use strict";function r(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case m:case d:case l:case u:case s:case v:return e;default:switch(e=e&&e.$$typeof){case f:case h:case p:return e;default:return t}}case w:case y:case c:return t}}}function o(e){return r(e)===d}Object.defineProperty(t,"__esModule",{value:!0});var a="function"===typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,c=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,p=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,m=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,v=a?Symbol.for("react.suspense"):60113,y=a?Symbol.for("react.memo"):60115,w=a?Symbol.for("react.lazy"):60116;t.typeOf=r,t.AsyncMode=m,t.ConcurrentMode=d,t.ContextConsumer=f,t.ContextProvider=p,t.Element=i,t.ForwardRef=h,t.Fragment=l,t.Lazy=w,t.Memo=y,t.Portal=c,t.Profiler=u,t.StrictMode=s,t.Suspense=v,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===l||e===d||e===u||e===s||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===w||e.$$typeof===y||e.$$typeof===p||e.$$typeof===f||e.$$typeof===h)},t.isAsyncMode=function(e){return o(e)||r(e)===m},t.isConcurrentMode=o,t.isContextConsumer=function(e){return r(e)===f},t.isContextProvider=function(e){return r(e)===p},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return r(e)===h},t.isFragment=function(e){return r(e)===l},t.isLazy=function(e){return r(e)===w},t.isMemo=function(e){return r(e)===y},t.isPortal=function(e){return r(e)===c},t.isProfiler=function(e){return r(e)===u},t.isStrictMode=function(e){return r(e)===s},t.isSuspense=function(e){return r(e)===v}},function(e,t,n){"use strict";(function(e){"production"!==e.env.NODE_ENV&&function(){function e(e){return"string"===typeof e||"function"===typeof e||e===g||e===P||e===E||e===b||e===C||"object"===typeof e&&null!==e&&(e.$$typeof===A||e.$$typeof===x||e.$$typeof===S||e.$$typeof===k||e.$$typeof===_)}function n(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case y:var n=e.type;switch(n){case O:case P:case g:case E:case b:case C:return n;default:var r=n&&n.$$typeof;switch(r){case k:case _:case S:return r;default:return t}}case A:case x:case w:return t}}}function r(e){return z||(z=!0,L(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(e)||n(e)===O}function o(e){return n(e)===P}function a(e){return n(e)===k}function i(e){return n(e)===S}function c(e){return"object"===typeof e&&null!==e&&e.$$typeof===y}function l(e){return n(e)===_}function s(e){return n(e)===g}function u(e){return n(e)===A}function p(e){return n(e)===x}function f(e){return n(e)===w}function m(e){return n(e)===E}function d(e){return n(e)===b}function h(e){return n(e)===C}Object.defineProperty(t,"__esModule",{value:!0});var v="function"===typeof Symbol&&Symbol.for,y=v?Symbol.for("react.element"):60103,w=v?Symbol.for("react.portal"):60106,g=v?Symbol.for("react.fragment"):60107,b=v?Symbol.for("react.strict_mode"):60108,E=v?Symbol.for("react.profiler"):60114,S=v?Symbol.for("react.provider"):60109,k=v?Symbol.for("react.context"):60110,O=v?Symbol.for("react.async_mode"):60111,P=v?Symbol.for("react.concurrent_mode"):60111,_=v?Symbol.for("react.forward_ref"):60112,C=v?Symbol.for("react.suspense"):60113,x=v?Symbol.for("react.memo"):60115,A=v?Symbol.for("react.lazy"):60116,T=function(){},j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!==typeof console&&console.warn(a);try{throw new Error(a)}catch(e){}};T=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];j.apply(void 0,[t].concat(r))}};var L=T,I=O,N=P,R=k,V=S,F=y,M=_,B=g,U=A,D=x,$=w,H=E,q=b,W=C,z=!1;t.typeOf=n,t.AsyncMode=I,t.ConcurrentMode=N,t.ContextConsumer=R,t.ContextProvider=V,t.Element=F,t.ForwardRef=M,t.Fragment=B,t.Lazy=U,t.Memo=D,t.Portal=$,t.Profiler=H,t.StrictMode=q,t.Suspense=W,t.isValidElementType=e,t.isAsyncMode=r,t.isConcurrentMode=o,t.isContextConsumer=a,t.isContextProvider=i,t.isElement=c,t.isForwardRef=l,t.isFragment=s,t.isLazy=u,t.isMemo=p,t.isPortal=f,t.isProfiler=m,t.isStrictMode=d,t.isSuspense=h}()}).call(t,n(6))},function(e,t,n){"use strict";(function(t){function r(){return null}var o=n(14),a=n(38),i=n(8),c=n(39),l=Function.call.bind(Object.prototype.hasOwnProperty),s=function(){};"production"!==t.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function u(e){var t=e&&(x&&e[x]||e[A]);if("function"===typeof t)return t}function p(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e){this.message=e,this.stack=""}function m(e){function r(r,c,l,u,p,m,d){if(u=u||T,m=m||l,d!==i){if(n){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var v=u+":"+l;!o[v]&&a<3&&(s("You are manually calling a React.PropTypes validation function for the `"+m+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[v]=!0,a++)}}return null==c[l]?r?new f(null===c[l]?"The "+p+" `"+m+"` is marked as required in `"+u+"`, but its value is `null`.":"The "+p+" `"+m+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(c,l,u,p,m)}if("production"!==t.env.NODE_ENV)var o={},a=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function d(e){function t(t,n,r,o,a,i){var c=t[n];if(O(c)!==e)return new f("Invalid "+o+" `"+a+"` of type `"+P(c)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return m(t)}function h(e){function t(t,n,r,o,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c)){return new f("Invalid "+o+" `"+a+"` of type `"+O(c)+"` supplied to `"+r+"`, expected an array.")}for(var l=0;l<c.length;l++){var s=e(c,l,r,o,a+"["+l+"]",i);if(s instanceof Error)return s}return null}return m(t)}function v(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||T;return new f("Invalid "+o+" `"+a+"` of type `"+C(t[n])+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}return null}return m(t)}function y(e){function n(t,n,r,o,a){for(var i=t[n],c=0;c<e.length;c++)if(p(i,e[c]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===P(t)?String(t):t});return new f("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")}return Array.isArray(e)?m(n):("production"!==t.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function w(e){function t(t,n,r,o,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],s=O(c);if("object"!==s)return new f("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var u in c)if(l(c,u)){var p=e(c,u,r,o,a+"."+u,i);if(p instanceof Error)return p}return null}return m(t)}function g(e){function n(t,n,r,o,a){for(var c=0;c<e.length;c++){if(null==(0,e[c])(t,n,r,o,a,i))return null}return new f("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var o=0;o<e.length;o++){var a=e[o];if("function"!==typeof a)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(a)+" at index "+o+"."),r}return m(n)}function b(e){function t(t,n,r,o,a){var c=t[n],l=O(c);if("object"!==l)return new f("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var u=e[s];if(u){var p=u(c,s,r,o,a+"."+s,i);if(p)return p}}return null}return m(t)}function E(e){function t(t,n,r,o,c){var l=t[n],s=O(l);if("object"!==s)return new f("Invalid "+o+" `"+c+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var p in u){var m=e[p];if(!m)return new f("Invalid "+o+" `"+c+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=m(l,p,r,o,c+"."+p,i);if(d)return d}return null}return m(t)}function S(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(S);if(null===t||e(t))return!0;var n=u(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!S(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!S(a[1]))return!1}return!0;default:return!1}}function k(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":k(t,e)?"symbol":t}function P(e){if("undefined"===typeof e||null===e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=P(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function C(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var x="function"===typeof Symbol&&Symbol.iterator,A="@@iterator",T="<<anonymous>>",j={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:function(){return m(r)}(),arrayOf:h,element:function(){function t(t,n,r,o,a){var i=t[n];if(!e(i)){return new f("Invalid "+o+" `"+a+"` of type `"+O(i)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return m(t)}(),elementType:function(){function e(e,t,n,r,a){var i=e[t];if(!o.isValidElementType(i)){return new f("Invalid "+r+" `"+a+"` of type `"+O(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null}return m(e)}(),instanceOf:v,node:function(){function e(e,t,n,r,o){return S(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return m(e)}(),objectOf:w,oneOf:y,oneOfType:g,shape:b,exact:E};return f.prototype=Error.prototype,j.checkPropTypes=c,j.resetWarningCache=c.resetWarningCache,j.PropTypes=j,j}}).call(t,n(6))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,l=r(e),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var u in n)a.call(n,u)&&(l[u]=n[u]);if(o){c=o(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(l[c[p]]=n[c[p]])}}return l}},function(e,t,n){"use strict";(function(t){function r(e,n,r,l,s){if("production"!==t.env.NODE_ENV)for(var u in e)if(c(e,u)){var p;try{if("function"!==typeof e[u]){var f=Error((l||"React class")+": "+r+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.");throw f.name="Invariant Violation",f}p=e[u](n,u,l,r,null,a)}catch(e){p=e}if(!p||p instanceof Error||o((l||"React class")+": type specification of "+r+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var m=s?s():"";o("Failed "+r+" type: "+p.message+(null!=m?m:""))}}}var o=function(){};if("production"!==t.env.NODE_ENV){var a=n(8),i={},c=Function.call.bind(Object.prototype.hasOwnProperty);o=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}r.resetWarningCache=function(){"production"!==t.env.NODE_ENV&&(i={})},e.exports=r}).call(t,n(6))},function(e,t,n){"use strict";function r(){}function o(){}var a=n(8);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(43),o=n.n(r),a=function(e){var t=[];return o()(e).find("script[type='application/ld+json']").each(function(e,n){try{t[e]=JSON.parse(o()(this).html())}catch(e){throw new Error("There was an error parsing the JSON in the 'application/ld+json' script tag. "+e)}}),0==t.length?null:c(t)},i=function(e){var t=o()("<output>").append(o.a.parseHTML(e)),n=[],r=a(t);if(!r)return{specification:r,speakables:null,content:null,validations:[]};if(0==r.cssSelector.length)throw new Error("No valid selectors found in SpeakableSpecification.");var i=!0,c=!1,l=void 0;try{for(var u,f=r.cssSelector[Symbol.iterator]();!(i=(u=f.next()).done);i=!0){var m=u.value;o()(t).find(m).each(function(e,t){n.push(o()(this).text().trim())})}}catch(e){c=!0,l=e}finally{try{!i&&f.return&&f.return()}finally{if(c)throw l}}var d=s(n),h=p(d);return{specification:r,speakables:n,content:d,validations:h}},c=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i instanceof Array){var c=!0,s=!1,u=void 0;try{for(var p,f=i[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var m=p.value,d=l(m);if(d)return d}}catch(e){s=!0,u=e}finally{try{!c&&f.return&&f.return()}finally{if(s)throw u}}}else{var h=l(i);if(h)return h}}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return null},l=function(e){return e.speakable&&e.speakable["@type"]&&"SpeakableSpecification"==e.speakable["@type"]?e.speakable:null},s=function(e){return e?e.map(function(e){return u(e)}).join(" "):null},u=function(e){return e?(e=e.trim(),e.match(/^[\w\W\s]+[?.!]$/g)?e:e+"."):"."},p=function(e){var t=[];if(!e)return t.push({type:"error",message:"No speakable content found."}),t;var n=e.match(/\S+/g).length;return n<7?t.push({type:"error",message:"The speakable content is too short. Aim for 20-30 seconds of spoken content (2-3 sentences)."}):n<20&&t.push({type:"warning",message:"The speakable may be too short. Aim for 20-30 seconds of spoken content."}),n>100?t.push({type:"error",message:"The speakable content is too long. Aim for 20-30 seconds of spoken content (2-3 sentences)."}):n>80&&t.push({type:"warning",message:"The speakable may be too long. Aim for 20-30 seconds of spoken content."}),t}},function(e,t){e.exports=jQuery},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(46)),i=(n.n(a),n(47)),c=n(9),l=n(16),s=n(17),u=n(11),p=n(18),f=n.n(p),m=n(19),d=n.n(m),h=n(10),v=n.n(h),y=n(3),w=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getUser,o=n.getUserLoaded;return{user:r(),loaded:o()}})(function(e){var t=e.user;return e.loaded?t?wp.element.createElement(g,{className:"margin-bottom"}):wp.element.createElement("div",{className:"flex-grid"},wp.element.createElement("div",{class:"col margin-bottom"},wp.element.createElement(r.Panel,{header:"Voice Interactions"},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement("strong",null,"Set up your Voice Interactions to define how users can engange with your voice presence.")),wp.element.createElement("p",null,"Manage your content using WordPress as your CMS and then publish your interactions to popular voice assistants."),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:f.a,width:"128"}),wp.element.createElement("img",{src:d.a,width:"128"}),wp.element.createElement("img",{src:v.a,width:"128"})),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Start by creating a free Voice Listing."),wp.element.createElement("p",null,wp.element.createElement(u.a,null))))),wp.element.createElement(l.a,{className:"col margin-bottom"})):wp.element.createElement("div",null)}),g=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getVoiceApps,o=n.getVoiceAppsLoaded,a=window.location.hostname,i=r(),c=o();return{selectedApp:i.find(function(e){return e.domain==a}),voiceApps:i,domain:a,loaded:c}})(function(e){var t=e.className,n=e.selectedApp,o=e.loaded,a=e.domain;return o?n?wp.element.createElement(r.Panel,{header:"Voice Interactions",className:t||""},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,"Your Voice Interactions define how users can engange with your voice presence. Each interaction represents a question or command from a user and the response from the voice assistant."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:y.b+"/app/properties/"+n.id+"/interactions"},"Manage Interactions")),n&&wp.element.createElement(r.Panel,{header:"Interactions for "+n.domain,className:t||""},n&&n.commands.map(function(e){return wp.element.createElement(i.a,{app:n,command:e})})),wp.element.createElement(c.a,null))):wp.element.createElement(s.a,{domain:a}):wp.element.createElement("div",null)});t.a=w},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(0)),a=(n.n(o),n(2)),i=(n.n(a),n(5)),c=(n.n(i),n(48)),l=(n.n(c),n(7)),s=n(3),u=n(15),p=(n.n(u),Object(a.withSelect)(function(e,t){var n=t.app,r=t.command,o=e("soundcheck"),a=o.getCommandSources;return{sources:r?a(n.id,r.id):void 0}})(function(e){var t=e.command,n=e.app,r=e.sources,a=t.id;return t.intent&&(a=t.intent.name),wp.element.createElement(o.PanelBody,{title:a,initialOpen:!0},wp.element.createElement("p",null,t.intent.description),r&&r.map(function(e){return wp.element.createElement(m,{source:e,app:n,command:t})}),r&&wp.element.createElement(f,{app:n,command:t}))})),f=Object(i.withState)({isPreviewing:!1,relaoding:!1,url:null})(function(e){var t=e.app,n=e.command,a=e.isPreviewing,i=e.reloading,c=e.setState,l=e.url,u=s.a+"/v4/domains/"+t.id+"/commands/"+n.id+"/audio";return wp.element.createElement(o.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-source__preview"},a?i?wp.element.createElement(o.IconButton,{icon:"update",isBusy:!0}):wp.element.createElement(r.Fragment,null,wp.element.createElement("audio",{controls:!0},wp.element.createElement("source",{src:l,type:"audio/mpeg"})),wp.element.createElement(o.IconButton,{icon:"update",onClick:function(){c({reloading:!0}),setTimeout(function(){c({reloading:!1})},1e3)}})):wp.element.createElement(o.IconButton,{icon:"controls-volumeon",label:"Preview",isDefault:!0,onClick:function(){c({isPreviewing:!0,url:u})}})))}),m=function(e){var t=e.source,n=e.app,r=e.command;return wp.element.createElement(o.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-source__row"},"SPEAKABLE"==t.contentSource.uuid?wp.element.createElement(h,{source:t,app:n,command:r}):wp.element.createElement(d,{source:t,app:n,command:r}),wp.element.createElement("div",{className:"soundcheck-source__row__item"},t.contentSource.name)))},d=function(e){var t=e.source,n=e.app;e.command;return wp.element.createElement("div",{className:"soundcheck-source__row__item"},wp.element.createElement(o.ExternalLink,{href:s.b+"/app/properties/"+n.id+"/interactions"},t.label))},h=Object(i.compose)([Object(i.withState)({isOpen:!1,option:void 0,url:void 0,selectedPage:void 0,selectedPost:void 0,initialized:!1})],[Object(a.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getSpeakablePosts;return{pages:(0,n.getSpeakablePages)(1),posts:r(1)}})],[Object(a.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setCommandSource;return{onClick:function(e){var n="/v4/user/voice_apps/"+t.app.id+"/commands/"+t.command.id+"/sources/"+t.source.id;return t.source.global.url=e,Object(l.a)({path:n,method:"PUT",body:t.source}).then(function(e){r(t.command.id,e)})}}})])(function(e){var t=e.isOpen,n=e.setState,a=e.source,i=e.onClick,l=e.pages,s=e.posts,u=e.option,p=e.url,f=e.initialized,m=e.selectedPage,d=e.selectedPost,h=l.map(function(e){return{label:Object(c.decodeEntities)(e.title.rendered),value:e.link}});h.unshift({label:"<Select a Page>",value:""});var v=s.map(function(e){return{label:Object(c.decodeEntities)(e.title.rendered),value:e.link}});if(v.unshift({label:"<Select a Post>",value:""}),!f){var y={option:void 0,url:void 0,selectedPage:"",selectedPost:"",initialized:!0};if(y.url=a.global.url,y.option="custom",y.url){var w=!0,g=!1,b=void 0;try{for(var E,S=h[Symbol.iterator]();!(w=(E=S.next()).done);w=!0){E.value.link==y.url&&(y.option="page",y.selectedPage=y.url)}}catch(e){g=!0,b=e}finally{try{!w&&S.return&&S.return()}finally{if(g)throw b}}var k=!0,O=!1,P=void 0;try{for(var _,C=v[Symbol.iterator]();!(k=(_=C.next()).done);k=!0){_.value.link==y.url&&(y.option="post",y.selectedPost=y.url)}}catch(e){O=!0,P=e}finally{try{!k&&C.return&&C.return()}finally{if(O)throw P}}}n(y)}return wp.element.createElement(r.Fragment,null,wp.element.createElement("div",{className:"soundcheck-source__row__item"},wp.element.createElement(o.Button,{isLink:!0,onClick:function(){return n({isOpen:!0})}},a.label)),t?wp.element.createElement(o.Modal,{title:"Speakable Content",onRequestClose:function(){return n({isOpen:!1})}},wp.element.createElement("form",null,wp.element.createElement(o.RadioControl,{label:"Select a source with Speakable content.",selected:u,options:[{label:"A Recent Blog Page",value:"page"},{label:"A Recent Blog Post",value:"post"},{label:"Other URL",value:"custom"}],onChange:function(e){n({option:e})}}),function(){switch(u){case"post":return wp.element.createElement(o.SelectControl,{label:"Select a Post",value:d,options:v,onChange:function(e){n({url:e,selectedPost:e})}});case"page":return wp.element.createElement(o.SelectControl,{label:"Select a Page",value:m,options:h,onChange:function(e){return n({url:e,selectedPage:e})}});case"custom":return wp.element.createElement(o.TextControl,{label:"Other URL",value:p,onChange:function(e){return n({url:e})}})}}(),wp.element.createElement(o.Button,{isDefault:!0,onClick:function(){n({isOpen:!1}),i(p)}},"Save"))):null)});t.a=p},function(e,t){e.exports=wp.htmlEntities},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(3)),i=n(52),c=(n.n(i),n(53)),l=n(9),s=n(16),u=n(17),p=n(11),f=n(18),m=n.n(f),d=n(19),h=n.n(d),v=n(10),y=n.n(v),w=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getUser,o=n.getUserLoaded;return{user:r(),loaded:o()}})(function(e){var t=e.user;return e.loaded?t?wp.element.createElement(g,{className:"margin-bottom"}):wp.element.createElement("div",{className:"flex-grid"},wp.element.createElement("div",{class:"col margin-bottom"},wp.element.createElement(r.Panel,{header:"Voice Hosting"},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement("strong",null,"Soundcheck Voice Hosting makes your business or brand available on smart speakers and voice assistants.")),wp.element.createElement("p",null,"Free Features:"),wp.element.createElement("ol",null,wp.element.createElement("li",null,"Voice Listing to promote your voice presence."),wp.element.createElement("li",null,"Easily define answers to common voice-initiated questions."),wp.element.createElement("li",null,'Create and validate "Speakable" web content using custom editor blocks.'),wp.element.createElement("li",null,"Use WordPress as a voice CMS."),wp.element.createElement("li",null,"Publish to voice assistants like Amazon Alexa and Google Home.")),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:m.a,width:"128"}),wp.element.createElement("img",{src:h.a,width:"128"}),wp.element.createElement("img",{src:y.a,width:"128"})),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Start by creating a free Voice Listing."),wp.element.createElement("p",null,wp.element.createElement(p.a,null))))),wp.element.createElement(s.a,{className:"col margin-bottom"})):wp.element.createElement("div",null)}),g=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getVoiceApps,o=(n.getSelectedVoiceAppId,n.getVoiceAppsLoaded),a=window.location.hostname,i=r(),c=o();return{selectedApp:i.find(function(e){return e.domain==a}),voiceApps:i,domain:a,loaded:c}})(function(e){var t=e.className,n=e.selectedApp,o=e.icon,i=e.domain;return e.loaded?n?wp.element.createElement(r.Panel,{header:"Voice Hosting",className:t||""},wp.element.createElement(r.PanelBody,{title:n.term+" Voice Activity",icon:o,initialOpen:!0},wp.element.createElement("p",null,"See which platforms are accessing your published voice content."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:a.b+"/app/properties/"+n.id+"/availability"},"Edit Availability")),wp.element.createElement(c.a,{app:n})),wp.element.createElement(r.PanelBody,{title:i+" Voice Listing",icon:o,initialOpen:!0},"VALID"!=n.authStatus&&wp.element.createElement(r.Notice,{status:"info",isDismissible:!1},"You will need to verify ownership of ",n.domain," before your voice listing is published."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:a.b+"/app/properties/"+n.id+"/listing"},"Edit Voice Listing")," ",wp.element.createElement(r.ExternalLink,{href:a.b+"/voice/"+n.domain},"View Voice Listing")),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:n.banner1920x1080,style:{maxWidth:"100%"}}))),wp.element.createElement(r.PanelBody,null,wp.element.createElement(l.a,null))):wp.element.createElement(u.a,{domain:i}):wp.element.createElement("div",null)});t.a=w},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(5)),i=(n.n(a),n(13)),c=n(15),l=(n.n(c),Object(a.compose)([Object(a.withState)({now:Date.now()}),Object(o.withSelect)(function(e,t){var n=t.app,r=t.now,o=e("soundcheck"),a=o.getVoiceAppStats,i=a(n.id,0,r);return{stats:n?u(i).map(function(e){return[{value:e.platform},{value:e.requests},{value:e.users}]}):void 0}})])(function(e){var t=e.stats;return t?wp.element.createElement(i.a,{data:t,headers:["platform","requests","users"]}):wp.element.createElement(r.Spinner,null)})),s=[{platform:"Alexa",requests:0,users:0},{platform:"Actions on Google",requests:0,users:0},{platform:"Soundcheck Mobile",requests:0,users:0}],u=function(e){var t=new Set,n=[Object.assign({},s[0]),Object.assign({},s[1]),Object.assign({},s[2])];if(e){var r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var l=i.value,u=-1;"alexa"==l.platform?u=0:"aog"==l.platform?u=1:"mobile"==l.platform&&(u=2),u>=0&&(n[u].requests++,t.has(l.userId)||(n[u].users++,t.add(l.userId)))}}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}}return n};t.a=l},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return l});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={speakables:{posts:[],pages:[]},voiceApps:{selectedAppId:null,apps:[],stats:{},sources:{},loaded:!1},soundcheckAuth:{user:null,loaded:!1,token:localStorage.getItem("jwt")}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.speakables,t=arguments[1];switch(console.log("speakables reducing",t),console.log(e),t.type){case"SPEAKABLE_SET_POSTS":return o({},e,{posts:t.posts});case"SPEAKABLE_SET_PAGES":return o({},e,{pages:t.pages});default:return e}},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.voiceApps,t=arguments[1];switch(console.log("voiceapps reducing",t),console.log(e),t.type){case"VOICEAPPS_SET_APPS":return o({},e,{apps:t.apps,selectedAppId:t.apps.length>0?t.apps[0].id:null,loaded:!0});case"VOICEAPPS_SET_SOURCES":return o({},e,{sources:o({},e.sources,r({},t.commandId,t.sources))});case"VOICEAPPS_SET_STATS":var n=Math.round((t.end-t.start)/1e3/3600/24);return o({},e,{stats:o({},e.stats,r({},t.appId+"-"+n,t.stats))});case"VOICEAPPS_SET_SOURCE":var i=o({},e.sources);return i[t.commandId].map(function(e){return e.id==t.source.id?t.source:e}),o({},e,{sources:i});case"VOICEAPPS_SELECT_APP":return o({},e,{selectedAppId:t.id});default:return e}},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.soundcheckAuth,t=arguments[1];switch(console.log("auth reducing",t),console.log(e),t.type){case"AUTH_SET_USER":return console.log("SETTING USER",t.user),o({},e,{user:t.user,loaded:!0});case"AUTH_SET_TOKEN":return localStorage.setItem("jwt",t.token),o({},e,{token:t.token});default:return e}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={setSpeakablePosts:function(e){return{type:"SPEAKABLE_SET_POSTS",posts:e}},setSpeakablePages:function(e){return{type:"SPEAKABLE_SET_PAGES",pages:e}},setVoiceApps:function(e){return{type:"VOICEAPPS_SET_APPS",apps:e}},setVoiceAppStats:function(e,t,n,r){return{type:"VOICEAPPS_SET_STATS",appId:e,stats:t,start:n,end:r}},setSelectedVoiceAppId:function(e){return{type:"VOICEAPPS_SELECT_APP",id:e}},setCommandSources:function(e,t){return{type:"VOICEAPPS_SET_SOURCES",commandId:e,sources:t}},setCommandSource:function(e,t){return{type:"VOICEAPPS_SET_SOURCE",commandId:e,source:t}},setUser:function(e){return{type:"AUTH_SET_USER",user:e}},fetchFromWPAPI:function(e){return{type:"FETCH_FROM_WPAPI",path:e}},fetchFromSoundcheckAPI:function(e){return{type:"FETCH_FROM_SOUNDCHECKAPI",path:e}},updateToSoundcheckAPI:function(e,t){return{type:"UPDATE_TO_SOUNDCHECKAPI",path:e,body:t}},fetchVoiceAppDetailsFromSoundcheckAPI:function(e){return{type:"FETCH_VOICE_APP_DETAILS_FROM_SOUNDCHECKAPI",voiceApp:e}}}}]);1 !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=25)}([function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.data},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r="https://api.peck.me",o="https://soundcheck.ai"},function(e,t,n){"use strict";var r={};r.logo=function(e){return wp.element.createElement("svg",{width:e+"px",height:e+"px",viewBox:"0 0 53 53",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,"Soundcheck"),wp.element.createElement("g",{id:"Soundcheck",fill:"#3BAB48"},wp.element.createElement("path",{d:"M37.1598063,1 L16.666899,1 L16.666899,1.02119114 C16.3943259,1.01009102 16.1227512,1 15.8511765,1 C7.09988132,1 0,8.16967043 0,17.0154594 L0,51 L37.1598063,51 C45.9111015,51 53,43.8353751 53,34.9905952 L53,17.0154594 C53,8.16967043 45.9111015,1 37.1598063,1 L37.1598063,1 Z M11.626792,32.1479546 C11.626792,33.1671477 10.8060773,33.9966296 9.79665806,33.9966296 C8.78324511,33.9966296 7.96752256,33.1671477 7.96752256,32.1479546 L7.96752256,23.7673616 C7.96752256,22.743123 8.78324511,21.9186866 9.79665806,21.9186866 C10.8060773,21.9186866 11.626792,22.743123 11.626792,23.7673616 L11.626792,32.1479546 Z M19.0351902,39.8352944 C19.0351902,40.8554966 18.213477,41.6849785 17.2050562,41.6849785 C16.195637,41.6849785 15.3749223,40.8554966 15.3749223,39.8352944 L15.3749223,16.0800218 C15.3749223,15.0547741 16.195637,14.2303376 17.2050562,14.2303376 C18.213477,14.2303376 19.0351902,15.0547741 19.0351902,16.0800218 L19.0351902,39.8352944 Z M27.6606823,33.9179196 C27.6606823,34.9431674 26.8399676,35.7665947 25.8315468,35.7665947 C24.8221276,35.7665947 24.0014129,34.9431674 24.0014129,33.9179196 L24.0014129,21.992351 C24.0014129,20.9721488 24.8221276,20.1426669 25.8315468,20.1426669 C26.8399676,20.1426669 27.6606823,20.9721488 27.6606823,21.992351 L27.6606823,33.9179196 Z M36.2871729,36.0895074 C36.2871729,37.1087005 35.4664582,37.9381824 34.457039,37.9381824 C33.4476198,37.9381824 32.626905,37.1087005 32.626905,36.0895074 L32.626905,19.8207633 C32.626905,18.8005611 33.4476198,17.9710791 34.457039,17.9710791 C35.4664582,17.9710791 36.2871729,18.8005611 36.2871729,19.8207633 L36.2871729,36.0895074 Z M44.8707307,32.1479546 C44.8707307,33.1671477 44.050016,33.9966296 43.0415952,33.9966296 C42.0271838,33.9966296 41.2114613,33.1671477 41.2114613,32.1479546 L41.2114613,23.7673616 C41.2114613,22.743123 42.0271838,21.9186866 43.0415952,21.9186866 C44.050016,21.9186866 44.8707307,22.743123 44.8707307,23.7673616 L44.8707307,32.1479546 Z",id:"logo"})))},r.speakable=function(e,t){return wp.element.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 78 78",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",null,e),wp.element.createElement("g",{id:"Speakable",fill:t,transform:"translate(2.000000, 0.000000)"},wp.element.createElement("path",{d:"M26.4788729,69.9405038 L9.41272422,77.3999991 L12.6487443,62.8196156 C4.92071963,56.3078621 0,46.4867881 0,35.5 C0,15.8938914 15.6700338,2.13162821e-14 35,2.13162821e-14 C54.3299662,2.13162821e-14 70,15.8938914 70,35.5 C70,55.1061086 54.3299662,71 35,71 C32.0609411,71 29.2064934,70.6325615 26.4788729,69.9405038 Z M28.2601921,52.8310547 C32.6326098,44.9247652 37.1284958,38.0443001 41.7479851,32.1894531 C46.3674743,26.3346061 50.6312663,22.1269659 54.539489,19.5664062 C52.8623973,19.012367 51.3051212,18.7353516 49.867614,18.7353516 C47.5765869,18.7353516 45.7385519,19.1471313 44.3534538,19.9707031 C42.9683557,20.794275 41.3025195,22.4713415 39.3558952,25.0019531 C37.1846604,27.8170714 34.1524642,32.9156532 30.2592155,40.2978516 C29.7201503,37.76724 29.0687897,35.9891002 28.305114,34.9633789 C27.5414383,33.9376576 26.4932717,33.4248047 25.1605827,33.4248047 C23.1540623,33.4248047 20.8705565,34.5029189 18.3099968,36.6591797 C20.4962056,37.9619206 22.3903924,40.200505 23.992614,43.375 L24.8236687,45.0595703 C25.1231493,45.6735057 25.4825207,46.4671175 25.9017937,47.4404297 L27.2719108,50.6074219 C27.3917031,50.9069025 27.7211269,51.6481061 28.2601921,52.8310547 Z",id:"icon"})))},r.colors={speakable_purple:"#6A64B6",peck_green:"#3BAB48"},t.a=r},function(e,t){e.exports=wp.compose},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){h&&m&&(h=!1,m.length?d=m.concat(d):v=-1,d.length&&c())}function c(){if(!h){var e=o(i);h=!0;for(var t=d.length;t;){for(m=d,d=[];++v<t;)m&&m[v].run();v=-1,t=d.length}m=null,h=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function s(){}var u,p,f=e.exports={};!function(){try{u="function"===typeof setTimeout?setTimeout:n}catch(e){u=n}try{p="function"===typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var m,d=[],h=!1,v=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new l(e,t)),1!==d.length||h||o(c)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.prependListener=s,f.prependOnceListener=s,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(3),o=function(e){var t=e.path,n=e.method,o=e.body,a=localStorage.getItem("jwt"),i=n||"GET",c={method:i,mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"}};a&&(c.headers.Authorization="Bearer "+a);var l=""+r.a+t,s=c;switch(n){case"PUT":case"POST":s.body=JSON.stringify(o);default:return fetch(l,s).then(function(e){if(200==e.status)return e.json();throw new Error(e.statusText)})}};t.a=o},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(49)),i=(n.n(a),Object(o.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setUser;return{signOut:function(){r(null),localStorage.removeItem("jwt")}}})(function(e){var t=e.signOut;return wp.element.createElement(r.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-dashboard-footer"},wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.Button,{isLink:!0,onClick:t},"Sign Out")),wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.ExternalLink,{href:"https://soundcheck.ai"},"soundcheck.ai")),wp.element.createElement("div",{className:"soundcheck-dashboard-footer__item"},wp.element.createElement(r.ExternalLink,{href:"mailto:help@soundcheck.ai"},"Help"))))}));t.a=i},function(e,t){e.exports="/wp-content/plugins/soundcheck/a69dbe4634047ba85aba5e10462c54cb.png"},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(3)),a=function(){var e=window.location.hostname,t=window.location.protocol+"//"+e,n=localStorage.getItem("jwt"),a=function(){var e=o.b+"/app/start/wordpress?url="+encodeURIComponent(t)+"&token="+n;window.location.href=e};return wp.element.createElement(r.Button,{isPrimary:!0,onClick:a},"Create Listing for ",e)};t.a=a},function(e,t,n){e.exports=n(26)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=(n.n(i),n(34)),l=n.n(c),s=n(41),u=(n.n(s),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.headers,n=e.data;return wp.element.createElement("div",{className:"soundcheck-table"},wp.element.createElement("div",{className:"soundcheck-table_header"},t.map(function(e,t){return wp.element.createElement(m,{key:t,title:e})})),wp.element.createElement("div",{className:"soundcheck-table_content"},n.map(function(e,t){return wp.element.createElement(f,{key:t,row:e})})))}}]),t}(i.Component);p.propTypes={headers:l.a.arrayOf(l.a.string),data:l.a.array.isRequired};var f=function(e){var t=e.row;return wp.element.createElement("div",{className:"soundcheck-table_row"},t.map(function(e,t){return e.component?wp.element.createElement("div",{key:t,className:"soundcheck-table_data"},e.component):wp.element.createElement("div",{key:t,className:"soundcheck-table_data",dangerouslySetInnerHTML:{__html:e.value}})}))},m=function(e){var t=e.title;return wp.element.createElement("div",{className:"soundcheck-table_header-item"},t)};t.a=p},function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(35):e.exports=n(36)}).call(t,n(6))},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(2)),a=(n.n(o),n(0)),i=(n.n(a),n(5)),c=(n.n(i),n(7)),l=n(3),s=n(50),u=(n.n(s),n(10)),p=n.n(u),f=Object(i.compose)([Object(o.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setUser;return{onToken:function(e){localStorage.setItem("jwt",e),Object(c.a)({path:"/v4/user"}).then(function(e){r(e)})}}}),Object(i.withState)({email:void 0,codeSent:!1})])(function(e){var t=e.codeSent,n=e.email,r=e.className,o=e.setState,i=e.onToken;return wp.element.createElement(a.Panel,{header:"Already Have an Account?",className:r||""},wp.element.createElement(a.PanelBody,null,wp.element.createElement(a.PanelRow,null,wp.element.createElement("div",{className:"sign-in"},wp.element.createElement("div",{className:"sign-in__form"},wp.element.createElement("div",{class:"logo"},wp.element.createElement("img",{height:"48",src:p.a})),wp.element.createElement("h3",null,"Sign In"),t?wp.element.createElement(d,{email:n,onGoBack:function(){o({codeSent:!1})},onTokenReceived:i}):wp.element.createElement(m,{onCodeSent:function(e){o({codeSent:!0,email:e})}}))))))}),m=Object(i.withState)({email:"",error:null})(function(e){var t=e.onCodeSent,n=e.email,o=e.setState,i=e.error;return wp.element.createElement(r.Fragment,null,i&&wp.element.createElement("div",{className:"sign-in__notice"},wp.element.createElement(a.Notice,{status:"error",onRemove:function(){o({error:null})}},i)),wp.element.createElement(a.TextControl,{label:"Your Email Address",type:"email",value:n,onChange:function(e){return o({email:e})}}),wp.element.createElement(a.Button,{className:"sign-in__button",isPrimary:!0,onClick:function(){if(n)return fetch(l.a+"/auth/email",{method:"POST",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,create:!1})}).then(function(e){200==e.status?t(n):500==e.status?o({error:"There was an error sending your login code."}):e.json().then(function(e){o({error:e.message})})}).catch(function(e){return o({error:e})})}},"Send Sign In Code"))}),d=Object(i.withState)({authCode:"000000",error:null})(function(e){var t=e.authCode,n=e.onGoBack,o=e.onTokenReceived,i=e.error,c=e.email,s=e.setState;return wp.element.createElement(r.Fragment,null,i&&wp.element.createElement("div",{className:"sign-in__notice"},wp.element.createElement(a.Notice,{status:"error",onRemove:function(){s({error:null})}},i)),wp.element.createElement(a.TextControl,{label:"Your Login Code",type:"text",onChange:function(e){s({authCode:e})}}),wp.element.createElement(a.Button,{className:"sign-in__button",isPrimary:!0,onClick:function(){return fetch(l.a+"/auth/email?email="+encodeURIComponent(c)+"&code="+t,{method:"GET",mode:"cors",credentials:"omit",headers:{"Content-Type":"application/json"}}).then(function(e){if(200==e.status)return e.json();throw new Error("Invalid login token")}).then(function(e){o(e.token)}).catch(function(e){s({error:e.message})})}},"Confirm Code"),wp.element.createElement("p",null,"Didn't receive your code?"),wp.element.createElement(a.Button,{isLink:!0,onClick:n},"Try Again"))});t.a=f},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(9)),a=n(11),i=function(e){var t=e.domain;return wp.element.createElement(r.Panel,{header:"Soundcheck Voice Hosting"},wp.element.createElement(r.PanelBody,null,wp.element.createElement(r.Notice,{status:"warning",isDismissible:!1},"This domain ",t," is not listed with Soundcheck."),wp.element.createElement("p",null,"You can list your domain for free and start making your business ready for voice."),wp.element.createElement("p",null,wp.element.createElement(a.a,null)),wp.element.createElement(o.a,null)))};t.a=i},function(e,t){e.exports="/wp-content/plugins/soundcheck/bdf0973488134dbe05148d77d0311973.png"},function(e,t){e.exports="/wp-content/plugins/soundcheck/2c3962efb5c14417eb99b15033163bd8.png"},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),a=n(1),i=(n.n(a),n(28)),c=n.n(i),l=n(7),s=n(2),u=(n.n(s),n(29)),p=n(54),f=n(55);Object(s.registerStore)("soundcheck",{reducer:Object(s.combineReducers)({speakables:p.b,voiceApps:p.c,soundcheckAuth:p.a}),actions:f.a,selectors:{getSpeakablePosts:function(e){return e.speakables.posts},getSpeakablePages:function(e){return e.speakables.pages},getVoiceApps:function(e){return e.voiceApps.apps},getVoiceAppsLoaded:function(e){return e.voiceApps.loaded},getCommandSources:function(e,t,n){return e.voiceApps.sources[n]},getSelectedVoiceAppId:function(e){return e.voiceApps.selectedAppId},getVoiceAppStats:function(e,t,n,r){var o=e.voiceApps,a=Math.round((r-n)/1e3/3600/24);return o.stats[t+"-"+a]},getUser:function(e){return e.soundcheckAuth.user},getUserLoaded:function(e){return e.soundcheckAuth.loaded}},controls:{FETCH_FROM_WPAPI:function(e){return c()({path:e.path})},FETCH_FROM_SOUNDCHECKAPI:function(e){return Object(l.a)({path:e.path})}},resolvers:{getSpeakablePosts:o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="/wp/v2/posts?page="+t,e.next=3,f.a.fetchFromWPAPI(n);case 3:return r=e.sent,e.abrupt("return",f.a.setSpeakablePosts(r));case 5:case"end":return e.stop()}},e,this)}),getSpeakablePages:o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="/wp/v2/pages?page="+t,e.next=3,f.a.fetchFromWPAPI(n);case 3:return r=e.sent,e.abrupt("return",f.a.setSpeakablePages(r));case 5:case"end":return e.stop()}},e,this)}),getVoiceApps:o.a.mark(function e(){var t,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="/v4/user/voice_apps",e.next=3,f.a.fetchFromSoundcheckAPI(t);case 3:return n=e.sent,e.abrupt("return",f.a.setVoiceApps(n));case 5:case"end":return e.stop()}},e,this)}),getVoiceAppStats:o.a.mark(function e(t,n,r){var a,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/v4/user/voice_apps/"+t+"/stats?start="+n+"&end="+r,e.next=3,f.a.fetchFromSoundcheckAPI(a);case 3:return i=e.sent,e.abrupt("return",f.a.setVoiceAppStats(t,i,n,r));case 5:case"end":return e.stop()}},e,this)}),getCommandSources:o.a.mark(function e(t,n){var r,a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/v4/user/voice_apps/"+t+"/commands/"+n+"/sources",e.next=3,f.a.fetchFromSoundcheckAPI(r);case 3:return a=e.sent,e.abrupt("return",f.a.setCommandSources(n,a));case 5:case"end":return e.stop()}},e,this)}),getUser:o.a.mark(function e(){var t,n;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="/v4/user",e.prev=1,e.next=4,f.a.fetchFromSoundcheckAPI(t);case 4:return n=e.sent,e.abrupt("return",f.a.setUser(n));case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",f.a.setUser(null));case 11:case"end":return e.stop()}},e,this,[[1,8]])})}}),Object(a.render)(wp.element.createElement(u.a,null),document.getElementById("soundcheck-root"))},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(27),o)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var a=t&&t.prototype instanceof o?t:o,i=Object.create(a.prototype),c=new m(r||[]);return i._invoke=s(e,n,c),i}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function i(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(n,o,a,i){var c=r(e[n],e,o);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"===typeof s&&w.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(s).then(function(e){l.value=e,a(l)},i)}i(c.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function s(e,t,n){var o=P;return function(a,i){if(o===C)throw new Error("Generator is already running");if(o===x){if("throw"===a)throw i;return h()}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=u(c,n);if(l){if(l===A)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===P)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=C;var s=r(e,t,n);if("normal"===s.type){if(o=n.done?x:_,s.arg===A)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=x,n.method="throw",n.arg=s.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===v){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=v,u(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,A;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,A):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function m(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function d(e){if(e){var t=e[b];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(w.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:v,done:!0}}var v,y=Object.prototype,w=y.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},b=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",S=g.toStringTag||"@@toStringTag",k="object"===typeof e,O=t.regeneratorRuntime;if(O)return void(k&&(e.exports=O));O=t.regeneratorRuntime=k?e.exports:{},O.wrap=n;var P="suspendedStart",_="suspendedYield",C="executing",x="completed",A={},T={};T[b]=function(){return this};var j=Object.getPrototypeOf,L=j&&j(j(d([])));L&&L!==y&&w.call(L,b)&&(T=L);var I=i.prototype=o.prototype=Object.create(T);a.prototype=I.constructor=i,i.constructor=a,i[S]=a.displayName="GeneratorFunction",O.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===a||"GeneratorFunction"===(t.displayName||t.name))},O.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,S in e||(e[S]="GeneratorFunction")),e.prototype=Object.create(I),e},O.awrap=function(e){return{__await:e}},c(l.prototype),l.prototype[E]=function(){return this},O.AsyncIterator=l,O.async=function(e,t,r,o){var a=new l(n(e,t,r,o));return O.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},c(I),I[S]="Generator",I[b]=function(){return this},I.toString=function(){return"[object Generator]"},O.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},O.values=d,m.prototype={constructor:m,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&w.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=w.call(o,"catchLoc"),c=w.call(o,"finallyLoc");if(i&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&w.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;f(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:d(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),A}}}(function(){return this}()||Function("return this")())},function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=(n.n(i),n(30)),l=(n.n(c),n(31)),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){return wp.element.createElement("div",{className:"soundcheck-layout"},wp.element.createElement(l.a,null))}}]),t}(i.Component);t.a=u},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(1),o=(n.n(r),n(5)),a=(n.n(o),n(32)),i=n(45),c=n(51),l=window.location.search,s=/[?&]page=([^&]*)/.exec(l),u=decodeURIComponent(s[1]),p=Object(o.withState)({route:u})(function(e){switch(e.route){case"soundcheck-structured-data":return;case"soundcheck-voice-hosting":return wp.element.createElement(c.a,null);case"soundcheck-voice-interactions":return wp.element.createElement(i.a,null);default:return wp.element.createElement(a.a,null)}})},function(e,t,n){"use strict";var r=n(33),o=function(){return wp.element.createElement(r.a,{className:"margin-bottom"})};t.a=o},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,a){try{var i=t[o](a),c=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)});e(c)}return r("next")})}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(12),i=n.n(a),c=n(1),l=(n.n(c),n(0)),s=(n.n(l),n(2)),u=(n.n(s),n(5)),p=(n.n(u),n(13)),f=n(4),m=n(42),d=n(3),h=n(44),v=(n.n(h),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),y=function(){var e=r(i.a.mark(function e(t){var n,r,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.link);case 2:return n=e.sent,e.next=5,n.text();case 5:return r=e.sent,o=Object(m.a)(r),e.abrupt("return",o);case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),w=function(e){var t=e.className;return wp.element.createElement(l.Panel,{header:"Voice-Optimized Web Content",className:t||""},wp.element.createElement(l.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement(l.ExternalLink,{href:d.soundeckUrl+"/speakable-content"},"Speakable content")," is text on your website that you designate as optimized for voice assistants. That means it is particularly suited to be read out loud using text to speech."),wp.element.createElement("p",null,"The tables below show posts hat contain speakable content. If the post has a valid ",wp.element.createElement("code",null,"SpeakableSpecification"),', the "FORMATTED" column will be checked. If the post also has speakable content, the "SPEAKABLE" column will be checked. Click on a SPEAKABLE column check to preview the content.'),wp.element.createElement("p",null,'To add speakable content to any post use the "Speakable Section" block in the editor.')),wp.element.createElement(b,null),wp.element.createElement(E,null))},g=Object(u.withState)({data:[],initialized:!1,loading:!1})(function(e){var t=e.json,n=e.data,r=e.setState,a=e.type,i=e.icon,c=e.loading;if(e.initialized){if(!c){r({loading:!0});var s=!0,u=!1,m=void 0;try{for(var d,h=n[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var w=d.value;!function(e){y(e).then(function(t){var a=t.specification,i=t.content,c=t.speakables,l=t.validations,s=[].concat(o(n)),u=s.find(function(t){return t.id===e.id});u.loaded=!0,u.hasSpeakableSpecification=!!a,u.isSpeakable=c&&c.length,u.content=i,u.validations=l,r({data:s})})}(w)}}catch(e){u=!0,m=e}finally{try{!s&&h.return&&h.return()}finally{if(u)throw m}}}}else if(t.length){var g=t.map(function(e){return v({},e,{loaded:!1,hasSpeakableSpecification:!1,isSpeakable:!1,content:null,validations:[],speakables:null})});r({data:g,initialized:!0})}var b=n.map(function(e){return[{component:wp.element.createElement("a",{href:e.link,dangerouslySetInnerHTML:{__html:e.title.rendered}})},{value:new Date(e.date).toLocaleDateString()},{component:wp.element.createElement(S,{isLoading:!e.loaded,isValid:e.hasSpeakableSpecification,color:f.a.colors.speakable_purple,tooltip:"Valid Specification"})},{component:wp.element.createElement(k,{isLoading:!e.loaded,validations:e.validations,content:e.content})}]});return wp.element.createElement(l.PanelBody,{title:a+"s",icon:i,initialOpen:!0},wp.element.createElement(l.PanelRow,null,b.length>0?wp.element.createElement(p.a,{data:b,headers:["Title","Date","Formatted","Speakable"]}):wp.element.createElement("p",null,"No ",a,"s with Speakable data yet. Add a Speakable block to a ",a," to get started.")))}),b=Object(s.withSelect)(function(e,t){return{json:(0,e("soundcheck").getSpeakablePosts)(1),type:"Post",icon:"admin-post"}})(g),E=Object(s.withSelect)(function(e,t){return{json:(0,e("soundcheck").getSpeakablePages)(1),type:"Page",icon:"admin-page"}})(g),S=function(e){var t=e.isLoading,n=e.isValid,r=e.tooltip,o=e.color;return t?wp.element.createElement(l.Spinner,null):n?f.a.speakable(r,o):wp.element.createElement("span",{className:"dashicons dashicons-minus"})},k=Object(u.withState)({isOpen:!1})(function(e){var t=e.isLoading,n=e.isOpen,r=e.validations,o=e.content,a=e.setState;return t?wp.element.createElement(l.Spinner,null):o?r.length?wp.element.createElement(c.Fragment,null,wp.element.createElement("span",{className:"pointer dashicons dashicons-warning",onClick:function(){return a({isOpen:!0})}}),n?wp.element.createElement(O,{validations:r,content:o,onRequestClose:function(){a({isOpen:!1})}}):null):wp.element.createElement(c.Fragment,null,wp.element.createElement("span",{className:"pointer",onClick:function(){return a({isOpen:!0})}},f.a.speakable("Speakable Content Found",f.a.colors.speakable_purple)),n?wp.element.createElement(O,{validations:r,content:o,onRequestClose:function(){a({isOpen:!1})}}):null):wp.element.createElement("span",{className:"dashicons dashicons-minus"})}),O=function(e){var t=e.validations,n=e.content,r=e.onRequestClose;return wp.element.createElement(l.Modal,{title:"Speakable Content",onRequestClose:r},t.length?wp.element.createElement("ul",null,t.map(function(e,t){return wp.element.createElement("li",{key:t},"error"==e.type?wp.element.createElement("span",{className:"dashicons dashicons-warning"}):wp.element.createElement("span",{className:"dashicons dashicons-info"})," ",e.message)})):wp.element.createElement("p",null,wp.element.createElement("span",{className:"dashicons dashicons-yes"})," Valid Speakable content."),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Preview"),wp.element.createElement("p",{class:"description"},n))};t.a=w},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r=n(14);e.exports=n(37)(r.isElement,!0)}else e.exports=n(40)()}).call(t,n(6))},function(e,t,n){"use strict";function r(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case m:case d:case l:case u:case s:case v:return e;default:switch(e=e&&e.$$typeof){case f:case h:case p:return e;default:return t}}case w:case y:case c:return t}}}function o(e){return r(e)===d}Object.defineProperty(t,"__esModule",{value:!0});var a="function"===typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,c=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,p=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,m=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,v=a?Symbol.for("react.suspense"):60113,y=a?Symbol.for("react.memo"):60115,w=a?Symbol.for("react.lazy"):60116;t.typeOf=r,t.AsyncMode=m,t.ConcurrentMode=d,t.ContextConsumer=f,t.ContextProvider=p,t.Element=i,t.ForwardRef=h,t.Fragment=l,t.Lazy=w,t.Memo=y,t.Portal=c,t.Profiler=u,t.StrictMode=s,t.Suspense=v,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===l||e===d||e===u||e===s||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===w||e.$$typeof===y||e.$$typeof===p||e.$$typeof===f||e.$$typeof===h)},t.isAsyncMode=function(e){return o(e)||r(e)===m},t.isConcurrentMode=o,t.isContextConsumer=function(e){return r(e)===f},t.isContextProvider=function(e){return r(e)===p},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return r(e)===h},t.isFragment=function(e){return r(e)===l},t.isLazy=function(e){return r(e)===w},t.isMemo=function(e){return r(e)===y},t.isPortal=function(e){return r(e)===c},t.isProfiler=function(e){return r(e)===u},t.isStrictMode=function(e){return r(e)===s},t.isSuspense=function(e){return r(e)===v}},function(e,t,n){"use strict";(function(e){"production"!==e.env.NODE_ENV&&function(){function e(e){return"string"===typeof e||"function"===typeof e||e===g||e===P||e===E||e===b||e===C||"object"===typeof e&&null!==e&&(e.$$typeof===A||e.$$typeof===x||e.$$typeof===S||e.$$typeof===k||e.$$typeof===_)}function n(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case y:var n=e.type;switch(n){case O:case P:case g:case E:case b:case C:return n;default:var r=n&&n.$$typeof;switch(r){case k:case _:case S:return r;default:return t}}case A:case x:case w:return t}}}function r(e){return z||(z=!0,L(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(e)||n(e)===O}function o(e){return n(e)===P}function a(e){return n(e)===k}function i(e){return n(e)===S}function c(e){return"object"===typeof e&&null!==e&&e.$$typeof===y}function l(e){return n(e)===_}function s(e){return n(e)===g}function u(e){return n(e)===A}function p(e){return n(e)===x}function f(e){return n(e)===w}function m(e){return n(e)===E}function d(e){return n(e)===b}function h(e){return n(e)===C}Object.defineProperty(t,"__esModule",{value:!0});var v="function"===typeof Symbol&&Symbol.for,y=v?Symbol.for("react.element"):60103,w=v?Symbol.for("react.portal"):60106,g=v?Symbol.for("react.fragment"):60107,b=v?Symbol.for("react.strict_mode"):60108,E=v?Symbol.for("react.profiler"):60114,S=v?Symbol.for("react.provider"):60109,k=v?Symbol.for("react.context"):60110,O=v?Symbol.for("react.async_mode"):60111,P=v?Symbol.for("react.concurrent_mode"):60111,_=v?Symbol.for("react.forward_ref"):60112,C=v?Symbol.for("react.suspense"):60113,x=v?Symbol.for("react.memo"):60115,A=v?Symbol.for("react.lazy"):60116,T=function(){},j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!==typeof console&&console.warn(a);try{throw new Error(a)}catch(e){}};T=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];j.apply(void 0,[t].concat(r))}};var L=T,I=O,N=P,R=k,V=S,F=y,M=_,B=g,U=A,D=x,$=w,H=E,q=b,W=C,z=!1;t.typeOf=n,t.AsyncMode=I,t.ConcurrentMode=N,t.ContextConsumer=R,t.ContextProvider=V,t.Element=F,t.ForwardRef=M,t.Fragment=B,t.Lazy=U,t.Memo=D,t.Portal=$,t.Profiler=H,t.StrictMode=q,t.Suspense=W,t.isValidElementType=e,t.isAsyncMode=r,t.isConcurrentMode=o,t.isContextConsumer=a,t.isContextProvider=i,t.isElement=c,t.isForwardRef=l,t.isFragment=s,t.isLazy=u,t.isMemo=p,t.isPortal=f,t.isProfiler=m,t.isStrictMode=d,t.isSuspense=h}()}).call(t,n(6))},function(e,t,n){"use strict";(function(t){function r(){return null}var o=n(14),a=n(38),i=n(8),c=n(39),l=Function.call.bind(Object.prototype.hasOwnProperty),s=function(){};"production"!==t.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function u(e){var t=e&&(x&&e[x]||e[A]);if("function"===typeof t)return t}function p(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e){this.message=e,this.stack=""}function m(e){function r(r,c,l,u,p,m,d){if(u=u||T,m=m||l,d!==i){if(n){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var v=u+":"+l;!o[v]&&a<3&&(s("You are manually calling a React.PropTypes validation function for the `"+m+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[v]=!0,a++)}}return null==c[l]?r?new f(null===c[l]?"The "+p+" `"+m+"` is marked as required in `"+u+"`, but its value is `null`.":"The "+p+" `"+m+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(c,l,u,p,m)}if("production"!==t.env.NODE_ENV)var o={},a=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function d(e){function t(t,n,r,o,a,i){var c=t[n];if(O(c)!==e)return new f("Invalid "+o+" `"+a+"` of type `"+P(c)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return m(t)}function h(e){function t(t,n,r,o,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c)){return new f("Invalid "+o+" `"+a+"` of type `"+O(c)+"` supplied to `"+r+"`, expected an array.")}for(var l=0;l<c.length;l++){var s=e(c,l,r,o,a+"["+l+"]",i);if(s instanceof Error)return s}return null}return m(t)}function v(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||T;return new f("Invalid "+o+" `"+a+"` of type `"+C(t[n])+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}return null}return m(t)}function y(e){function n(t,n,r,o,a){for(var i=t[n],c=0;c<e.length;c++)if(p(i,e[c]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===P(t)?String(t):t});return new f("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")}return Array.isArray(e)?m(n):("production"!==t.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function w(e){function t(t,n,r,o,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],s=O(c);if("object"!==s)return new f("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var u in c)if(l(c,u)){var p=e(c,u,r,o,a+"."+u,i);if(p instanceof Error)return p}return null}return m(t)}function g(e){function n(t,n,r,o,a){for(var c=0;c<e.length;c++){if(null==(0,e[c])(t,n,r,o,a,i))return null}return new f("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var o=0;o<e.length;o++){var a=e[o];if("function"!==typeof a)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(a)+" at index "+o+"."),r}return m(n)}function b(e){function t(t,n,r,o,a){var c=t[n],l=O(c);if("object"!==l)return new f("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var u=e[s];if(u){var p=u(c,s,r,o,a+"."+s,i);if(p)return p}}return null}return m(t)}function E(e){function t(t,n,r,o,c){var l=t[n],s=O(l);if("object"!==s)return new f("Invalid "+o+" `"+c+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var p in u){var m=e[p];if(!m)return new f("Invalid "+o+" `"+c+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=m(l,p,r,o,c+"."+p,i);if(d)return d}return null}return m(t)}function S(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(S);if(null===t||e(t))return!0;var n=u(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!S(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!S(a[1]))return!1}return!0;default:return!1}}function k(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}function O(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":k(t,e)?"symbol":t}function P(e){if("undefined"===typeof e||null===e)return""+e;var t=O(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=P(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function C(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var x="function"===typeof Symbol&&Symbol.iterator,A="@@iterator",T="<<anonymous>>",j={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:function(){return m(r)}(),arrayOf:h,element:function(){function t(t,n,r,o,a){var i=t[n];if(!e(i)){return new f("Invalid "+o+" `"+a+"` of type `"+O(i)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return m(t)}(),elementType:function(){function e(e,t,n,r,a){var i=e[t];if(!o.isValidElementType(i)){return new f("Invalid "+r+" `"+a+"` of type `"+O(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null}return m(e)}(),instanceOf:v,node:function(){function e(e,t,n,r,o){return S(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return m(e)}(),objectOf:w,oneOf:y,oneOfType:g,shape:b,exact:E};return f.prototype=Error.prototype,j.checkPropTypes=c,j.resetWarningCache=c.resetWarningCache,j.PropTypes=j,j}}).call(t,n(6))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,l=r(e),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var u in n)a.call(n,u)&&(l[u]=n[u]);if(o){c=o(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(l[c[p]]=n[c[p]])}}return l}},function(e,t,n){"use strict";(function(t){function r(e,n,r,l,s){if("production"!==t.env.NODE_ENV)for(var u in e)if(c(e,u)){var p;try{if("function"!==typeof e[u]){var f=Error((l||"React class")+": "+r+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.");throw f.name="Invariant Violation",f}p=e[u](n,u,l,r,null,a)}catch(e){p=e}if(!p||p instanceof Error||o((l||"React class")+": type specification of "+r+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var m=s?s():"";o("Failed "+r+" type: "+p.message+(null!=m?m:""))}}}var o=function(){};if("production"!==t.env.NODE_ENV){var a=n(8),i={},c=Function.call.bind(Object.prototype.hasOwnProperty);o=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}r.resetWarningCache=function(){"production"!==t.env.NODE_ENV&&(i={})},e.exports=r}).call(t,n(6))},function(e,t,n){"use strict";function r(){}function o(){}var a=n(8);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(43),o=n.n(r),a=function(e){var t=[];return o()(e).find("script[type='application/ld+json']").each(function(e,n){try{t[e]=JSON.parse(o()(this).html())}catch(e){throw new Error("There was an error parsing the JSON in the 'application/ld+json' script tag. "+e)}}),0==t.length?null:c(t)},i=function(e){var t=o()("<output>").append(o.a.parseHTML(e)),n=[],r=a(t);if(!r)return{specification:r,speakables:null,content:null,validations:[]};if(0==r.cssSelector.length)throw new Error("No valid selectors found in SpeakableSpecification.");var i=!0,c=!1,l=void 0;try{for(var u,f=r.cssSelector[Symbol.iterator]();!(i=(u=f.next()).done);i=!0){var m=u.value;o()(t).find(m).each(function(e,t){n.push(o()(this).text().trim())})}}catch(e){c=!0,l=e}finally{try{!i&&f.return&&f.return()}finally{if(c)throw l}}var d=s(n),h=p(d);return{specification:r,speakables:n,content:d,validations:h}},c=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i instanceof Array){var c=!0,s=!1,u=void 0;try{for(var p,f=i[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var m=p.value,d=l(m);if(d)return d}}catch(e){s=!0,u=e}finally{try{!c&&f.return&&f.return()}finally{if(s)throw u}}}else{var h=l(i);if(h)return h}}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return null},l=function(e){return e.speakable&&e.speakable["@type"]&&"SpeakableSpecification"==e.speakable["@type"]?e.speakable:null},s=function(e){return e?e.map(function(e){return u(e)}).join(" "):null},u=function(e){return e?(e=e.trim(),e.match(/^[\w\W\s]+[?.!]$/g)?e:e+"."):"."},p=function(e){var t=[];if(!e)return t.push({type:"error",message:"No speakable content found."}),t;var n=e.match(/\S+/g).length;return n<7?t.push({type:"error",message:"The speakable content is too short. Aim for 20-30 seconds of spoken content (2-3 sentences)."}):n<20&&t.push({type:"warning",message:"The speakable may be too short. Aim for 20-30 seconds of spoken content."}),n>100?t.push({type:"error",message:"The speakable content is too long. Aim for 20-30 seconds of spoken content (2-3 sentences)."}):n>80&&t.push({type:"warning",message:"The speakable may be too long. Aim for 20-30 seconds of spoken content."}),t}},function(e,t){e.exports=jQuery},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(46)),i=(n.n(a),n(47)),c=n(9),l=n(16),s=n(17),u=n(11),p=n(18),f=n.n(p),m=n(19),d=n.n(m),h=n(10),v=n.n(h),y=n(3),w=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getUser,o=n.getUserLoaded;return{user:r(),loaded:o()}})(function(e){var t=e.user;return e.loaded?t?wp.element.createElement(g,{className:"margin-bottom"}):wp.element.createElement("div",{className:"flex-grid"},wp.element.createElement("div",{class:"col margin-bottom"},wp.element.createElement(r.Panel,{header:"Voice Interactions"},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement("strong",null,"Set up your Voice Interactions to define how users can engange with your voice presence.")),wp.element.createElement("p",null,"Manage your content using WordPress as your CMS and then publish your interactions to popular voice assistants."),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:f.a,width:"128"}),wp.element.createElement("img",{src:d.a,width:"128"}),wp.element.createElement("img",{src:v.a,width:"128"})),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Start by creating a free Voice Listing."),wp.element.createElement("p",null,wp.element.createElement(u.a,null))))),wp.element.createElement(l.a,{className:"col margin-bottom"})):wp.element.createElement("div",null)}),g=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getVoiceApps,o=n.getVoiceAppsLoaded,a=window.location.hostname,i=r(),c=o();return{selectedApp:i.find(function(e){return e.domain==a}),voiceApps:i,domain:a,loaded:c}})(function(e){var t=e.className,n=e.selectedApp,o=e.loaded,a=e.domain;return o?n?wp.element.createElement(r.Panel,{header:"Voice Interactions",className:t||""},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,"Your Voice Interactions define how users can engange with your voice presence. Each interaction represents a question or command from a user and the response from the voice assistant."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:y.b+"/app/properties/"+n.id+"/interactions"},"Manage Interactions")),n&&wp.element.createElement(r.Panel,{header:"Interactions for "+n.domain,className:t||""},n&&n.commands.map(function(e){return wp.element.createElement(i.a,{app:n,command:e})})),wp.element.createElement(c.a,null))):wp.element.createElement(s.a,{domain:a}):wp.element.createElement("div",null)});t.a=w},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(0)),a=(n.n(o),n(2)),i=(n.n(a),n(5)),c=(n.n(i),n(48)),l=(n.n(c),n(7)),s=n(3),u=n(15),p=(n.n(u),Object(a.withSelect)(function(e,t){var n=t.app,r=t.command,o=e("soundcheck"),a=o.getCommandSources;return{sources:r?a(n.id,r.id):void 0}})(function(e){var t=e.command,n=e.app,r=e.sources,a=t.id;return t.intent&&(a=t.intent.name),wp.element.createElement(o.PanelBody,{title:a,initialOpen:!0},wp.element.createElement("p",null,t.intent.description),r&&r.map(function(e){return wp.element.createElement(m,{source:e,app:n,command:t})}),r&&wp.element.createElement(f,{app:n,command:t}))})),f=Object(i.withState)({isPreviewing:!1,relaoding:!1,url:null})(function(e){var t=e.app,n=e.command,a=e.isPreviewing,i=e.reloading,c=e.setState,l=e.url,u=s.a+"/v4/domains/"+t.id+"/commands/"+n.id+"/audio";return wp.element.createElement(o.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-source__preview"},a?i?wp.element.createElement(o.IconButton,{icon:"update",isBusy:!0}):wp.element.createElement(r.Fragment,null,wp.element.createElement("audio",{controls:!0},wp.element.createElement("source",{src:l,type:"audio/mpeg"})),wp.element.createElement(o.IconButton,{icon:"update",onClick:function(){c({reloading:!0}),setTimeout(function(){c({reloading:!1})},1e3)}})):wp.element.createElement(o.IconButton,{icon:"controls-volumeon",label:"Preview",isDefault:!0,onClick:function(){c({isPreviewing:!0,url:u})}})))}),m=function(e){var t=e.source,n=e.app,r=e.command;return wp.element.createElement(o.PanelRow,null,wp.element.createElement("div",{className:"soundcheck-source__row"},"SPEAKABLE"==t.contentSource.uuid?wp.element.createElement(h,{source:t,app:n,command:r}):wp.element.createElement(d,{source:t,app:n,command:r}),wp.element.createElement("div",{className:"soundcheck-source__row__item"},t.contentSource.name)))},d=function(e){var t=e.source,n=e.app;e.command;return wp.element.createElement("div",{className:"soundcheck-source__row__item"},wp.element.createElement(o.ExternalLink,{href:s.b+"/app/properties/"+n.id+"/interactions"},t.label))},h=Object(i.compose)([Object(i.withState)({isOpen:!1,option:void 0,url:void 0,selectedPage:void 0,selectedPost:void 0,initialized:!1})],[Object(a.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getSpeakablePosts;return{pages:(0,n.getSpeakablePages)(1),posts:r(1)}})],[Object(a.withDispatch)(function(e,t){var n=e("soundcheck"),r=n.setCommandSource;return{onClick:function(e){var n="/v4/user/voice_apps/"+t.app.id+"/commands/"+t.command.id+"/sources/"+t.source.id;return t.source.global.url=e,Object(l.a)({path:n,method:"PUT",body:t.source}).then(function(e){r(t.command.id,e)})}}})])(function(e){var t=e.isOpen,n=e.setState,a=e.source,i=e.onClick,l=e.pages,s=e.posts,u=e.option,p=e.url,f=e.initialized,m=e.selectedPage,d=e.selectedPost,h=l.map(function(e){return{label:Object(c.decodeEntities)(e.title.rendered),value:e.link}});h.unshift({label:"<Select a Page>",value:""});var v=s.map(function(e){return{label:Object(c.decodeEntities)(e.title.rendered),value:e.link}});if(v.unshift({label:"<Select a Post>",value:""}),!f){var y={option:void 0,url:void 0,selectedPage:"",selectedPost:"",initialized:!0};if(y.url=a.global.url,y.option="custom",y.url){var w=!0,g=!1,b=void 0;try{for(var E,S=h[Symbol.iterator]();!(w=(E=S.next()).done);w=!0){E.value.link==y.url&&(y.option="page",y.selectedPage=y.url)}}catch(e){g=!0,b=e}finally{try{!w&&S.return&&S.return()}finally{if(g)throw b}}var k=!0,O=!1,P=void 0;try{for(var _,C=v[Symbol.iterator]();!(k=(_=C.next()).done);k=!0){_.value.link==y.url&&(y.option="post",y.selectedPost=y.url)}}catch(e){O=!0,P=e}finally{try{!k&&C.return&&C.return()}finally{if(O)throw P}}}n(y)}return wp.element.createElement(r.Fragment,null,wp.element.createElement("div",{className:"soundcheck-source__row__item"},wp.element.createElement(o.Button,{isLink:!0,onClick:function(){return n({isOpen:!0})}},a.label)),t?wp.element.createElement(o.Modal,{title:"Speakable Content",onRequestClose:function(){return n({isOpen:!1})}},wp.element.createElement("form",null,wp.element.createElement(o.RadioControl,{label:"Select a source with Speakable content.",selected:u,options:[{label:"A Recent Blog Page",value:"page"},{label:"A Recent Blog Post",value:"post"},{label:"Other URL",value:"custom"}],onChange:function(e){n({option:e})}}),function(){switch(u){case"post":return wp.element.createElement(o.SelectControl,{label:"Select a Post",value:d,options:v,onChange:function(e){n({url:e,selectedPost:e})}});case"page":return wp.element.createElement(o.SelectControl,{label:"Select a Page",value:m,options:h,onChange:function(e){return n({url:e,selectedPage:e})}});case"custom":return wp.element.createElement(o.TextControl,{label:"Other URL",value:p,onChange:function(e){return n({url:e})}})}}(),wp.element.createElement(o.Button,{isDefault:!0,onClick:function(){n({isOpen:!1}),i(p)}},"Save"))):null)});t.a=p},function(e,t){e.exports=wp.htmlEntities},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(3)),i=n(52),c=(n.n(i),n(53)),l=n(9),s=n(16),u=n(17),p=n(11),f=n(18),m=n.n(f),d=n(19),h=n.n(d),v=n(10),y=n.n(v),w=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getUser,o=n.getUserLoaded;return{user:r(),loaded:o()}})(function(e){var t=e.user;return e.loaded?t?wp.element.createElement(g,{className:"margin-bottom"}):wp.element.createElement("div",{className:"flex-grid"},wp.element.createElement("div",{class:"col margin-bottom"},wp.element.createElement(r.Panel,{header:"Voice Hosting"},wp.element.createElement(r.PanelBody,null,wp.element.createElement("p",null,wp.element.createElement("strong",null,"Soundcheck Voice Hosting makes your business or brand available on smart speakers and voice assistants.")),wp.element.createElement("p",null,"Free Features:"),wp.element.createElement("ol",null,wp.element.createElement("li",null,"Voice Listing to promote your voice presence."),wp.element.createElement("li",null,"Easily define answers to common voice-initiated questions."),wp.element.createElement("li",null,'Create and validate "Speakable" web content using custom editor blocks.'),wp.element.createElement("li",null,"Use WordPress as a voice CMS."),wp.element.createElement("li",null,"Publish to voice assistants like Amazon Alexa and Google Home.")),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:m.a,width:"128"}),wp.element.createElement("img",{src:h.a,width:"128"}),wp.element.createElement("img",{src:y.a,width:"128"})),wp.element.createElement("hr",null),wp.element.createElement("p",null,"Start by creating a free Voice Listing."),wp.element.createElement("p",null,wp.element.createElement(p.a,null))))),wp.element.createElement(s.a,{className:"col margin-bottom"})):wp.element.createElement("div",null)}),g=Object(o.withSelect)(function(e,t){var n=e("soundcheck"),r=n.getVoiceApps,o=(n.getSelectedVoiceAppId,n.getVoiceAppsLoaded),a=window.location.hostname,i=r(),c=o();return{selectedApp:i.find(function(e){return e.domain==a}),voiceApps:i,domain:a,loaded:c}})(function(e){var t=e.className,n=e.selectedApp,o=e.icon,i=e.domain;return e.loaded?n?wp.element.createElement(r.Panel,{header:"Voice Hosting",className:t||""},wp.element.createElement(r.PanelBody,{title:n.term+" Voice Activity",icon:o,initialOpen:!0},wp.element.createElement("p",null,"See which platforms are accessing your published voice content."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:a.b+"/app/properties/"+n.id+"/availability"},"Edit Availability")),wp.element.createElement(c.a,{app:n})),wp.element.createElement(r.PanelBody,{title:i+" Voice Listing",icon:o,initialOpen:!0},"VALID"!=n.authStatus&&wp.element.createElement(r.Notice,{status:"info",isDismissible:!1},"You will need to verify ownership of ",n.domain," before your voice listing is published."),wp.element.createElement("p",null,wp.element.createElement(r.ExternalLink,{href:a.b+"/app/properties/"+n.id+"/listing"},"Edit Voice Listing")," ",wp.element.createElement(r.ExternalLink,{href:a.b+"/voice/"+n.domain},"View Voice Listing")),wp.element.createElement(r.PanelRow,null,wp.element.createElement("img",{src:n.banner1920x1080,style:{maxWidth:"100%"}}))),wp.element.createElement(r.PanelBody,null,wp.element.createElement(l.a,null))):wp.element.createElement(u.a,{domain:i}):wp.element.createElement("div",null)});t.a=w},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(2)),a=(n.n(o),n(5)),i=(n.n(a),n(13)),c=n(15),l=(n.n(c),Object(a.compose)([Object(a.withState)({now:Date.now()}),Object(o.withSelect)(function(e,t){var n=t.app,r=t.now,o=e("soundcheck"),a=o.getVoiceAppStats,i=a(n.id,0,r);return{stats:n?u(i).map(function(e){return[{value:e.platform},{value:e.requests},{value:e.users}]}):void 0}})])(function(e){var t=e.stats;return t?wp.element.createElement(i.a,{data:t,headers:["platform","requests","users"]}):wp.element.createElement(r.Spinner,null)})),s=[{platform:"Alexa",requests:0,users:0},{platform:"Actions on Google",requests:0,users:0},{platform:"Soundcheck Mobile",requests:0,users:0}],u=function(e){var t=new Set,n=[Object.assign({},s[0]),Object.assign({},s[1]),Object.assign({},s[2])];if(e){var r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var l=i.value,u=-1;"alexa"==l.platform?u=0:"aog"==l.platform?u=1:"mobile"==l.platform&&(u=2),u>=0&&(n[u].requests++,t.has(l.userId)||(n[u].users++,t.add(l.userId)))}}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}}return n};t.a=l},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return l});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={speakables:{posts:[],pages:[]},voiceApps:{selectedAppId:null,apps:[],stats:{},sources:{},loaded:!1},soundcheckAuth:{user:null,loaded:!1,token:localStorage.getItem("jwt")}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.speakables,t=arguments[1];switch(console.log("speakables reducing",t),console.log(e),t.type){case"SPEAKABLE_SET_POSTS":return o({},e,{posts:t.posts});case"SPEAKABLE_SET_PAGES":return o({},e,{pages:t.pages});default:return e}},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.voiceApps,t=arguments[1];switch(console.log("voiceapps reducing",t),console.log(e),t.type){case"VOICEAPPS_SET_APPS":return o({},e,{apps:t.apps,selectedAppId:t.apps.length>0?t.apps[0].id:null,loaded:!0});case"VOICEAPPS_SET_SOURCES":return o({},e,{sources:o({},e.sources,r({},t.commandId,t.sources))});case"VOICEAPPS_SET_STATS":var n=Math.round((t.end-t.start)/1e3/3600/24);return o({},e,{stats:o({},e.stats,r({},t.appId+"-"+n,t.stats))});case"VOICEAPPS_SET_SOURCE":var i=o({},e.sources);return i[t.commandId].map(function(e){return e.id==t.source.id?t.source:e}),o({},e,{sources:i});case"VOICEAPPS_SELECT_APP":return o({},e,{selectedAppId:t.id});default:return e}},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.soundcheckAuth,t=arguments[1];switch(console.log("auth reducing",t),console.log(e),t.type){case"AUTH_SET_USER":return console.log("SETTING USER",t.user),o({},e,{user:t.user,loaded:!0});case"AUTH_SET_TOKEN":return localStorage.setItem("jwt",t.token),o({},e,{token:t.token});default:return e}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={setSpeakablePosts:function(e){return{type:"SPEAKABLE_SET_POSTS",posts:e}},setSpeakablePages:function(e){return{type:"SPEAKABLE_SET_PAGES",pages:e}},setVoiceApps:function(e){return{type:"VOICEAPPS_SET_APPS",apps:e}},setVoiceAppStats:function(e,t,n,r){return{type:"VOICEAPPS_SET_STATS",appId:e,stats:t,start:n,end:r}},setSelectedVoiceAppId:function(e){return{type:"VOICEAPPS_SELECT_APP",id:e}},setCommandSources:function(e,t){return{type:"VOICEAPPS_SET_SOURCES",commandId:e,sources:t}},setCommandSource:function(e,t){return{type:"VOICEAPPS_SET_SOURCE",commandId:e,source:t}},setUser:function(e){return{type:"AUTH_SET_USER",user:e}},fetchFromWPAPI:function(e){return{type:"FETCH_FROM_WPAPI",path:e}},fetchFromSoundcheckAPI:function(e){return{type:"FETCH_FROM_SOUNDCHECKAPI",path:e}},updateToSoundcheckAPI:function(e,t){return{type:"UPDATE_TO_SOUNDCHECKAPI",path:e,body:t}},fetchVoiceAppDetailsFromSoundcheckAPI:function(e){return{type:"FETCH_VOICE_APP_DETAILS_FROM_SOUNDCHECKAPI",voiceApp:e}}}}]); -
soundcheck/trunk/plugin.php
r2114274 r2114499 4 4 * Plugin URI: https://soundcheck.ai/wordpress 5 5 * Description: This is a plugin for managing content for smart speakers in WordPress posts. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Soundcheck 8 8 * -
soundcheck/trunk/readme.txt
r2114268 r2114499 6 6 Tested up to: 5.2.2 7 7 Requires PHP: 5.2.4 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl.html … … 42 42 * Initial version of speakable blocks and validation 43 43 * Fix for install issue 44 45 = 1.0.2 = 46 * Fix image paths 47 * Fix create path
Note: See TracChangeset
for help on using the changeset viewer.