/*! For license information please see editor-beta.js.LICENSE.txt */ (()=>{var e={9:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(91793),s=r(86087);const o=window?.Jetpack_Editor_Initial_State?.tracksUserData||null,a=parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId)||0,i=()=>((0,s.useEffect)(()=>{o&&n.A.initialize(o?.userid,o?.username,a?{blog_id:a}:{})},[]),n.A)},25:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(94715),s=r(56427),o=r(86087),a=r(27723),i=r(88948),l=r(48558),c=r(10790);const __=a.__,u=({tockUrl:e,setEditedUrl:t,setUrl:r,cancel:n})=>{const a=(0,o.useRef)(!0),u=(0,o.useRef)(!1),d=e=>{r(),u.current=!0,e()};return(0,c.jsx)(s.ToolbarGroup,{children:(0,c.jsx)(s.Dropdown,{popoverProps:{variant:"toolbar"},onClose:()=>u.current?u.current=!1:n(),placement:"bottom-start",renderToggle:({isOpen:t,onToggle:r})=>(!a.current||t||e||(a.current=!1,r()),(0,c.jsx)(s.ToolbarButton,{className:"components-toolbar__control",label:__("Edit Tock business name","jetpack"),onClick:()=>{r(),t&&n()},children:__("Edit","jetpack")})),renderContent:({onClose:r})=>(0,c.jsx)(s.BaseControl,{className:"jetpack-tock-url-settings",help:(0,o.createInterpolateElement)(__("The Tock business can be found in the URL of your public Tock page. For example: www.exploretock.com/myname","jetpack"),{b:(0,c.jsx)("strong",{})}),__nextHasNoMarginBottom:!0,children:(0,c.jsxs)("div",{className:"jetpack-tock-url-input-wrapper",children:[(0,c.jsx)(s.TextControl,{placeholder:__("Add Tock business name","jetpack"),onChange:t,value:e,onKeyDownCapture:t=>((t,r)=>{const{keyCode:s}=t;s===l.ENTER&&""!==e&&(t.preventDefault(),d(r)),s===l.ESCAPE&&(t.preventDefault(),n(),r())})(t,r),className:"jetpack-tock-url-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,c.jsx)("div",{className:"jetpack-tock-url-input-action",children:(0,c.jsx)(s.Button,{type:"submit",label:__("Submit","jetpack"),icon:i.A,className:"jetpack-tock-url-input-submit",onClick:()=>d(r)})})]})})})})},d=({url:e,popoverAnchor:t})=>{const r=`\n\t\t
\n\t\t