You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 lines
5.2 KiB

(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[2],{11:function(e,t){e.exports=window.yoast.styledComponents},16:function(e,t){e.exports=window.wp.element},5:function(e,t){e.exports=window.wp.i18n},788:function(e,t,n){"use strict";var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,a=!1,i=void 0;try{for(var r,c=e[Symbol.iterator]();!(o=(r=c.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,i=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n\t@media only screen and (min-width: 1024px) {\n\t\t.BeaconFabButtonFrame.BeaconFabButtonFrame {\n\t\t\tright: 340px;\n\t\t}\n\t}\n"],["\n\t@media only screen and (min-width: 1024px) {\n\t\t.BeaconFabButtonFrame.BeaconFabButtonFrame {\n\t\t\tright: 340px;\n\t\t}\n\t}\n"]),i=n(16),r=n(11),c=function(e){return e&&e.__esModule?e:{default:e}}(r),l=n(5);var s=(0,r.createGlobalStyle)(a);function d(e){var t=document.createElement("div");t.setAttribute("id","yoast-helpscout-beacon"),(0,i.render)(wp.element.createElement(e,null),t),document.body.appendChild(t)}function p(){return!!document.getElementById("sidebar")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!function(e,t){var n=e.Beacon;function o(){var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,o){e.Beacon.readyQueue.push({method:t,options:n,data:o})},n.readyQueue=[],"complete"===t.readyState)return o();e.attachEvent?e.attachEvent("onload",o):e.addEventListener("load",o,!1)}(window,document,window.Beacon),window.Beacon("init",e),""!==t&&window.Beacon("session-data",JSON.parse(t)),p()&&d(s)}window.wpseoHelpScoutBeacon=u,window.wpseoHelpScoutBeaconConsent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c.default.div.withConfig({displayName:"help-scout-beacon__Frame",componentId:"sc-15tmc09-0"})(["border-radius:60px;height:60px;position:fixed;transform:scale(1);width:60px;z-index:1049;bottom:40px;box-shadow:rgba(0,0,0,0.1) 0 4px 7px;right:40px;top:auto;border-width:initial;border-style:none;border-color:initial;border-image:initial;transition:box-shadow 250ms ease 0s,opacity 0.4s ease 0s,scale 1000ms ease-in-out 0s,transform 0.2s ease-in-out 0s;"]),a=c.default.span.withConfig({displayName:"help-scout-beacon__SvgContainer",componentId:"sc-15tmc09-1"})(["-webkit-box-align:center;align-items:center;color:white;cursor:pointer;display:flex;height:100%;-webkit-box-pack:center;justify-content:center;left:0;pointer-events:none;position:absolute;text-indent:-99999px;top:0;width:60px;will-change:opacity,transform;opacity:1 !important;transform:rotate(0deg) scale(1) !important;transition:opacity 80ms linear 0s,transform 160ms linear 0s;"]),r=function(){return wp.element.createElement(a,null,wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"52",height:"52"},wp.element.createElement("path",{d:"M27.031 32h-2.488v-2.046c0-.635.077-1.21.232-1.72.154-.513.366-.972.639-1.381.272-.41.58-.779.923-1.109.345-.328.694-.652 1.049-.97l.995-.854a6.432 6.432 0 0 0 1.475-1.568c.39-.59.585-1.329.585-2.216 0-.635-.117-1.203-.355-1.703a3.7 3.7 0 0 0-.96-1.263 4.305 4.305 0 0 0-1.401-.783A5.324 5.324 0 0 0 26 16.114c-1.28 0-2.316.375-3.11 1.124-.795.75-1.286 1.705-1.475 2.865L19 19.693c.356-1.772 1.166-3.165 2.434-4.176C22.701 14.507 24.26 14 26.107 14c.947 0 1.842.131 2.682.392.84.262 1.57.648 2.185 1.16a5.652 5.652 0 0 1 1.475 1.892c.368.75.551 1.602.551 2.556 0 .728-.083 1.364-.248 1.909a5.315 5.315 0 0 1-.693 1.467 6.276 6.276 0 0 1-1.048 1.176c-.403.351-.83.71-1.28 1.073-.498.387-.918.738-1.26 1.057a4.698 4.698 0 0 0-.836 1.006 3.847 3.847 0 0 0-.462 1.176c-.095.432-.142.955-.142 1.568V32zM26 37a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z",fill:"#FFF"})))},m=c.default.button.withConfig({displayName:"help-scout-beacon__Button",componentId:"sc-15tmc09-2"})(["-webkit-appearance:none;-webkit-box-align:center;align-items:center;bottom:0;display:block;height:60px;-webkit-box-pack:center;justify-content:center;line-height:60px;position:relative;user-select:none;z-index:899;background-color:rgb(164,40,106);color:white;cursor:pointer;min-width:60px;-webkit-tap-highlight-color:transparent;border-radius:200px;margin:0;outline:none;padding:0;border-width:initial;border-style:none;border-color:initial;border-image:initial;transition:background-color 200ms linear 0s,transform 200ms linear 0s;"]);d(function(){var a=(0,i.useState)(!0),c=o(a,2),d=c[0],w=c[1],h=p();return wp.element.createElement(i.Fragment,null,h&&wp.element.createElement(s,null),d&&wp.element.createElement(n,{className:h?"BeaconFabButtonFrame":""},wp.element.createElement(m,{onClick:function(){var n=(0,l.__)("When you click OK we will load our HelpScout beacon, which will load data from HelpScout. This beacon can potentially also set cookies.","wordpress-seo");window.confirm(n)&&(u(e,t),window.Beacon("open"),window.setTimeout(function(){w(!1)},1e3))}},wp.element.createElement(r,null))))})}}},[[788,0]]]);