Your IP : 216.73.216.215


Current Path : /home/flapst5/ekmtoronto.com/wp-content/plugins/code-snippets/dist/
Upload File :
Current File : /home/flapst5/ekmtoronto.com/wp-content/plugins/code-snippets/dist/welcome.js

/*! For license information please see welcome.js.LICENSE.txt */
(()=>{var e={6942(e,r){var n;!function(){"use strict";var t={}.hasOwnProperty;function s(){for(var e="",r=0;r<arguments.length;r++){var n=arguments[r];n&&(e=i(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var n in e)t.call(e,n)&&e[n]&&(r=i(r,n));return r}function i(e,r){return r?e?e+" "+r:e+r:e}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(r,[]))||(e.exports=n)}()}},r={};function n(t){var s=r[t];if(void 0!==s)return s.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.exports}n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";function e(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function r(r,n){return function(e){if(Array.isArray(e))return e}(r)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,s,o,i,c=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;a=!1}else for(;!(a=(t=o.call(n)).done)&&(c.push(t.value),c.length!==r);a=!0);}catch(e){l=!0,s=e}finally{try{if(!a&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw s}}return c}}(r,n)||function(r,n){if(r){if("string"==typeof r)return e(r,n);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e(r,n):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const t=window.wp.i18n,s=window.React;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,r,n){return(r=function(e){var r=function(e){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var c=n(6942),a=n.n(c),l=function(){var e;return!(null===(e=window.CODE_SNIPPETS)||void 0===e||!e.isLicensed)};const p=window.wp.url;var d=function(e){switch(!0){case null==e:return;case"boolean"==typeof e:return e?"1":"0";case"number"==typeof e:case"string"==typeof e:return String(e);default:throw new Error("Unsupported query arg type: ".concat(o(e)))}},u=function(e,n){for(var t={},s=0,o=Object.entries(n);s<o.length;s++){var i=r(o[s],2),c=i[0],a=i[1],l=d(a);void 0!==l&&(t[c]=l)}return(0,p.addQueryArgs)(e,t)};const h=window.ReactJSXRuntime;function j(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function f(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?j(Object(n),!0).forEach(function(r){i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var b=function(e){return(0,h.jsx)("svg",f(f({width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:(0,h.jsx)("path",{stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",d:"M19.499 17.334a2.167 2.167 0 1 1-2.167 2.167m2.167-2.167a2.167 2.167 0 0 0-2.167 2.167m2.167-2.167V8.667m-2.167 10.834H8.665m0 0A2.167 2.167 0 0 0 6.5 17.334m2.166 2.167A2.167 2.167 0 1 1 6.5 17.334m0 0V8.667m2.166-2.166A2.167 2.167 0 1 0 6.5 8.667m2.166-2.166A2.167 2.167 0 0 1 6.5 8.667m2.166-2.166h8.667m0 0a2.167 2.167 0 1 1 2.167 2.166m-2.167-2.166a2.167 2.167 0 0 0 2.167 2.166M8.124 8.126l9.75 9.75m-9.75 0 9.75-9.75"})}))};function m(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function g(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?m(Object(n),!0).forEach(function(r){i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var x=function(e){return(0,h.jsx)("svg",g(g({width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:(0,h.jsx)("path",{d:"M20.0417 20.0417L22.75 22.75M4.33333 6.5H21.6667M4.33333 13H8.66666M4.33333 19.5H8.66666M11.9167 16.25C11.9167 17.3993 12.3732 18.5015 13.1859 19.3141C13.9985 20.1268 15.1007 20.5833 16.25 20.5833C17.3993 20.5833 18.5015 20.1268 19.3141 19.3141C20.1268 18.5015 20.5833 17.3993 20.5833 16.25C20.5833 15.1007 20.1268 13.9985 19.3141 13.1859C18.5015 12.3732 17.3993 11.9167 16.25 11.9167C15.1007 11.9167 13.9985 12.3732 13.1859 13.1859C12.3732 13.9985 11.9167 15.1007 11.9167 16.25Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))};function w(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function v(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?w(Object(n),!0).forEach(function(r){i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var y=function(e){return(0,h.jsx)("svg",v(v({width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:(0,h.jsx)("path",{d:"M11.9167 19.5045H7.21175C4.42541 19.5002 2.16666 17.326 2.16666 14.6436C2.16666 11.9624 4.42541 9.78812 7.21175 9.78812C7.6375 7.87928 9.15525 6.32145 11.193 5.7007C13.2297 5.08103 15.4787 5.49162 17.0907 6.78403C18.7027 8.0732 19.4328 10.0416 19.0082 11.9505H20.0807C20.8821 11.9519 21.6621 12.2097 22.3067 12.686C22.9513 13.1624 23.4266 13.8324 23.6632 14.5981M21.6667 22.7502L23.8333 20.5835L21.6667 18.4169M18.4167 18.4169L16.25 20.5835L18.4167 22.7502",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))};function _(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function O(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?_(Object(n),!0).forEach(function(r){i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var C=function(e){return(0,h.jsxs)("svg",O(O({width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:[(0,h.jsx)("path",{d:"M11.1854 4.67675C11.6469 2.77442 14.3531 2.77442 14.8146 4.67675C14.8838 4.96253 15.0196 5.22793 15.2108 5.45133C15.402 5.67474 15.6432 5.84984 15.9149 5.96239C16.1865 6.07494 16.4809 6.12176 16.7741 6.09902C17.0673 6.07629 17.3509 5.98466 17.602 5.83158C19.2736 4.81325 21.1878 6.72642 20.1695 8.39908C20.0166 8.65004 19.9252 8.93353 19.9025 9.2265C19.8798 9.51948 19.9266 9.81367 20.039 10.0852C20.1514 10.3567 20.3263 10.5978 20.5495 10.789C20.7726 10.9802 21.0377 11.116 21.3233 11.1854C23.2256 11.6469 23.2256 14.3531 21.3233 14.8146C21.0375 14.8838 20.7721 15.0196 20.5487 15.2108C20.3253 15.402 20.1502 15.6432 20.0376 15.9149C19.9251 16.1865 19.8782 16.4809 19.901 16.7741C19.9237 17.0673 20.0153 17.3509 20.1684 17.602C21.1868 19.2736 19.2736 21.1878 17.6009 20.1695C17.35 20.0166 17.0665 19.9252 16.7735 19.9025C16.4805 19.8798 16.1863 19.9266 15.9148 20.039C15.6433 20.1514 15.4022 20.3263 15.211 20.5495C15.0198 20.7726 14.884 21.0377 14.8146 21.3233C14.3531 23.2256 11.6469 23.2256 11.1854 21.3233C11.1162 21.0375 10.9804 20.7721 10.7892 20.5487C10.598 20.3253 10.3568 20.1502 10.0851 20.0376C9.81347 19.9251 9.51907 19.8782 9.2259 19.901C8.93273 19.9237 8.64907 20.0153 8.398 20.1684C6.72642 21.1868 4.81217 19.2736 5.8305 17.6009C5.98336 17.35 6.07485 17.0665 6.09752 16.7735C6.1202 16.4805 6.07343 16.1863 5.96101 15.9148C5.84859 15.6433 5.6737 15.4022 5.45055 15.211C5.22739 15.0198 4.96228 14.884 4.67675 14.8146C2.77442 14.3531 2.77442 11.6469 4.67675 11.1854C4.96253 11.1162 5.22793 10.9804 5.45133 10.7892C5.67474 10.598 5.84984 10.3568 5.96239 10.0851C6.07494 9.81347 6.12176 9.51907 6.09902 9.2259C6.07629 8.93273 5.98466 8.64907 5.83158 8.398C4.81325 6.72642 6.72642 4.81217 8.39908 5.8305C9.48242 6.48917 10.8864 5.90633 11.1854 4.67675Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,h.jsx)("path",{d:"M9.75 13C9.75 13.862 10.0924 14.6886 10.7019 15.2981C11.3114 15.9076 12.138 16.25 13 16.25C13.862 16.25 14.6886 15.9076 15.2981 15.2981C15.9076 14.6886 16.25 13.862 16.25 13C16.25 12.138 15.9076 11.3114 15.2981 10.7019C14.6886 10.0924 13.862 9.75 13 9.75C12.138 9.75 11.3114 10.0924 10.7019 10.7019C10.0924 11.3114 9.75 12.138 9.75 13Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function P(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function S(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?P(Object(n),!0).forEach(function(r){i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var N=function(e){return(0,h.jsx)("svg",S(S({width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:(0,h.jsx)("path",{d:"M7.58333 8.66634L3.25 12.9997L7.58333 17.333M18.4167 8.66634L22.75 12.9997L18.4167 17.333M15.1667 4.33301L10.8333 21.6663",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))};const E=window.wp.element,k=window.wp.components;var D=function(e){var r,n=e.isOpen,s=e.setIsOpen;return n?(0,h.jsxs)(k.Modal,{"aria-labelledby":"code-snippets-upsell-dialog-title",className:"code-snippets-upsell code-snippets-upsell-dialog",onRequestClose:function(){s(!1)},children:[(0,h.jsx)("img",{src:"".concat(null===(r=window.CODE_SNIPPETS)||void 0===r?void 0:r.urls.plugin,"/assets/icon.svg"),alt:(0,t.__)("Code Snippets logo","code-snippets")}),(0,h.jsx)(L,{})]}):null},L=function(){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h1",{id:"code-snippets-upsell-dialog-title",children:(0,E.createInterpolateElement)((0,t.__)("Unlock all cloud sync features and many more, with <span>Code Snippets Pro</span>","code-snippets"),{span:(0,h.jsx)("span",{})})}),(0,h.jsx)("p",{children:(0,E.createInterpolateElement)((0,t.__)("With Code Snippets Pro you can connect your WordPress sites to the code snippets cloud platform and be able to <strong>backup, synchronise, collaborate, and deploy</strong> your snippets from one central location.","code-snippets"),{strong:(0,h.jsx)("strong",{})})}),(0,h.jsx)("a",{href:"https://codesnippets.pro/pricing/",className:"button button-primary button-large",rel:"noreferrer",target:"_blank",children:(0,t.__)("Explore Code Snippets Pro","code-snippets")}),(0,h.jsx)("p",{children:(0,t.__)("Here's what else you get with Pro:","code-snippets")}),(0,h.jsxs)("ul",{children:[(0,h.jsx)("li",{children:(0,t.__)("Create, explain and verify snippets with AI","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("Control when snippets run with Conditions","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("CSS stylesheet snippets","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("Minified JavaScript snippets","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("Editor blocks and Elementor widgets","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("Cloud sync and backup","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("Cloud share and deploy","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("Cloud bundles and teams","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("WP-CLI commands","code-snippets")}),(0,h.jsx)("li",{children:(0,t.__)("And much more!","code-snippets")})]})]})};function I(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function M(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?I(Object(n),!0).forEach(function(r){i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var A,R=new URLSearchParams(window.location.search),T=function(e){var r=e.name,n=e.url,t=e.label,o=(0,s.useMemo)(function(){return new URL(n).searchParams.get("page")},[n]),i=!R.get("subpage")&&R.get("page")===o;return(0,h.jsx)("li",{children:(0,h.jsx)("a",M(M({href:n,className:a()("".concat(r,"-link"),{"active-link":i})},!o&&{target:"_blank",rel:"noopener noreferrer"}),{},{children:t}))})},W=function(){var e,r;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(T,{name:"docs",url:"https://codesnippets.pro/docs",label:(0,t.__)("Docs","code-snippets")}),(0,h.jsx)(T,{name:"cloud",url:"https://codesnippets.cloud/",label:(0,t.__)("Cloud Dashboard","code-snippets")}),(null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.welcome)&&(0,h.jsx)(T,{name:"welcome",url:window.CODE_SNIPPETS.urls.welcome,label:(0,t.__)("What's New","code-snippets")}),(null===(r=window.CODE_SNIPPETS)||void 0===r?void 0:r.urls.import)&&(0,h.jsx)(T,{name:"import-snippets",url:window.CODE_SNIPPETS.urls.import,label:(0,t._x)("Import","snippets","code-snippets")})]})},F=function(){return(0,h.jsx)("li",{className:"toolbar-more-item",children:(0,h.jsxs)("details",{className:"toolbar-more-menu",children:[(0,h.jsxs)("summary",{children:[(0,t.__)("More","code-snippets"),(0,h.jsx)("span",{className:"dashicons dashicons-arrow-down-alt2","aria-hidden":"true"})]}),(0,h.jsx)("ul",{children:(0,h.jsx)(W,{})})]})})},B=function(){var e,n,o=r((0,s.useState)(!1),2),i=o[0],c=o[1];return(0,h.jsxs)("div",{className:"code-snippets-toolbar-upper",children:[(0,h.jsxs)("div",{className:"logo",children:[(0,h.jsx)("img",{src:"".concat(null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.plugin,"/assets/icon.svg"),alt:(0,t.__)("Code Snippets logo","code-snippets"),"aria-hidden":"true"}),(0,h.jsx)("div",{children:(0,t.__)("Code Snippets","code-snippets")})]}),(0,h.jsx)("nav",{"aria-label":(0,t.__)("Main links","code-snippets"),children:(0,h.jsxs)("ul",{children:[(0,h.jsx)(W,{}),(0,h.jsx)(F,{}),!(l()||null!==(n=window.CODE_SNIPPETS)&&void 0!==n&&n.hideUpsell)&&(0,h.jsx)("li",{className:"toolbar-upgrade-item",children:(0,h.jsx)("a",{className:"button button-large button-secondary",href:"https://codesnippets.pro/pricing/",target:"_blank",rel:"noopener noreferrer",onClick:function(e){e.preventDefault(),c(!0)},children:(0,t.__)("Upgrade to Pro","code-snippets")})})]})}),(0,h.jsx)(D,{isOpen:i,setIsOpen:c})]})},H=function(e){var r,n=e.subpage,s=e.label,o=e.Icon,i=e.isPro;return(0,h.jsx)("li",{children:(0,h.jsxs)("a",{href:u(null===(r=window.CODE_SNIPPETS)||void 0===r?void 0:r.urls.manage,{subpage:n}),className:a()("".concat(n,"-link"),{"active-link":n===R.get("subpage")}),children:[(0,h.jsx)(o,{"aria-hidden":"true"}),(0,h.jsx)("span",{className:"toolbar-nav-label",children:s}),i&&!l()&&(0,h.jsx)("span",{className:"pro-chip",children:(0,t.__)("Pro","code-snippets")})]})})},U=function(){var e;return(0,h.jsx)("div",{className:"code-snippets-toolbar-lower",children:(0,h.jsx)("nav",{"aria-label":(0,t.__)("Main features","code-snippets"),children:(0,h.jsxs)("ul",{children:[(0,h.jsx)(H,{subpage:"snippets",label:(0,t.__)("Snippets","code-snippets"),Icon:N}),l()&&(0,h.jsx)(H,{subpage:"blueprints",label:(0,t.__)("Blueprints","code-snippets"),Icon:b}),(0,h.jsx)(H,{subpage:"cloud-community",label:(0,t.__)("Cloud Community","code-snippets"),Icon:x}),(0,h.jsx)(H,{subpage:"cloud-library",label:(0,t.__)("Cloud Library","code-snippets"),Icon:y,isPro:!0}),!l()&&(0,h.jsx)(H,{subpage:"blueprints",label:(0,t.__)("Blueprints","code-snippets"),Icon:b,isPro:!0}),(null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.settings)&&(0,h.jsx)("li",{className:"toolbar-end-item",children:(0,h.jsxs)("a",{href:window.CODE_SNIPPETS.urls.settings,className:"settings-link",children:[(0,h.jsx)(C,{"aria-hidden":"true"}),(0,h.jsx)("span",{className:"toolbar-nav-label",children:(0,t.__)("Settings","code-snippets")})]})})]})})})},V=function(){return(0,h.jsxs)("div",{className:"code-snippets-toolbar",children:[(0,h.jsx)(B,{}),(0,h.jsx)(U,{})]})},Z=["Added","Changed","Fixed","Deprecated","Removed","Security","Other"],q={Added:(0,t.__)("New features","code-snippets"),Changed:(0,t.__)("Improvements","code-snippets"),Deprecated:(0,t.__)("Deprecated features","code-snippets"),Removed:(0,t.__)("Removed features","code-snippets"),Fixed:(0,t.__)("Bug fixes","code-snippets"),Security:(0,t.__)("Security updates","code-snippets"),Other:(0,t.__)("Other","code-snippets")},J={Added:"lightbulb",Changed:"chart-line",Deprecated:"remove",Removed:"trash",Fixed:"buddicons-replies",Security:"shield",Other:"open-folder"},Q={core:(0,t.__)("Core","code-snippets"),pro:(0,t.__)("Pro","code-snippets")},X=null===(A=window.CODE_SNIPPETS_WELCOME)||void 0===A?void 0:A.changelog,$=function(e){var n=e.section,t=e.entries;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("h4",{children:[(0,h.jsx)("span",{className:"dashicons dashicons-".concat(J[n]),"aria-hidden":"true"}),q[n]]}),(0,h.jsx)("ul",{children:Object.entries(t).map(function(e){var n=r(e,2),t=n[0];return n[1].map(function(e){var r;return(0,h.jsxs)("li",{children:[(0,h.jsx)("span",{className:"badge ".concat(t,"-badge"),children:null!==(r=Q[t])&&void 0!==r?r:t}),(0,h.jsx)("span",{children:e})]},e)})})})]})},z=function(){return(0,h.jsxs)("div",{className:"code-snippets-changelog",children:[(0,h.jsxs)("div",{className:"code-snippets-header-wrapper",children:[(0,h.jsx)("h2",{children:(0,t.__)("Latest changes","code-snippets")}),(0,h.jsxs)("a",{href:"https://wordpress.org/plugins/code-snippets/changelog",className:"button button-primary button-large",target:"_blank",rel:"noreferrer",children:[(0,t.__)("View changelog","code-snippets"),(0,h.jsx)("span",{className:"screen-reader-text",children:(0,t.__)("(opens in a new tab)","code-snippets")})]})]}),(0,h.jsx)("div",{className:"code-snippets-changelog-entries",children:null==X?void 0:X.map(function(e){var r=e.version,n=e.date,o=e.entries;return(0,h.jsxs)(s.Fragment,{children:[(0,h.jsxs)("h3",{children:[(0,t.sprintf)((0,t.__)("Version %s","code-snippets"),r),(0,h.jsx)("span",{children:n})]}),Z.map(function(e){return o[e]?(0,h.jsx)($,{section:e,entries:o[e]},e):null})]},r)})})]})},G=window.CODE_SNIPPETS_WELCOME,K=function(){var e=r((0,s.useState)(!1),2),n=e[0],o=e[1];return(0,h.jsxs)("div",{className:"code-snippets-hero",children:[(0,h.jsxs)("div",{className:"code-snippets-header-wrapper",children:[(0,h.jsx)("h2",{children:null==G?void 0:G.hero.name}),(0,h.jsxs)("a",{className:"button button-primary button-large",href:null==G?void 0:G.hero.follow_url,target:"_blank",rel:"noopener noreferrer",children:[(0,t.__)("Read more","code-snippets"),(0,h.jsx)("span",{className:"screen-reader-text",children:(0,t.__)("(opens in a new tab)","code-snippets")})]})]}),(0,h.jsxs)("figure",{children:[!n&&(0,h.jsx)("div",{className:"code-snippets-loading-spinner","aria-hidden":"true"}),(0,h.jsx)("img",{src:null==G?void 0:G.hero.image_url,alt:(0,t.__)("Latest news image","code-snippets"),onLoad:function(){return o(!0)}})]})]})},Y=function(e){var r=e.partners;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h2",{children:(0,t.__)("Exclusive deals from our partners","code-snippets")}),(0,h.jsx)("ul",{className:"code-snippets-partners",children:r.map(function(e){var r=e.title,n=e.follow_url,s=e.image_url;return(0,h.jsxs)("li",{className:"code-snippets-card",children:[(0,h.jsx)("figure",{children:(0,h.jsx)("img",{src:s,alt:(0,t.__)("Partner image","code-snippets")})}),(0,h.jsxs)("div",{className:"code-snippets-header-wrapper",children:[(0,h.jsx)("h3",{children:r}),(0,h.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer","aria-label":(0,t.sprintf)((0,t.__)("Visit %s (opens in a new tab)","code-snippets"),r),children:(0,t.__)("Visit","code-snippets")})]})]},r)})})]})},ee=function(e){var r=e.articles;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h2",{children:(0,t.__)("Helpful articles","code-snippets")}),(0,h.jsx)("ul",{className:"code-snippets-articles",children:r.map(function(e){var r=e.title,n=e.follow_url,s=e.image_url,o=e.description,i=e.category;return(0,h.jsxs)("li",{className:"code-snippets-card",children:[(0,h.jsx)("figure",{children:(0,h.jsx)("img",{src:s,alt:(0,t.__)("Feature image","code-snippets")})}),(0,h.jsxs)("div",{className:"code-snippets-header-wrapper",children:[(0,h.jsx)("p",{className:"item-category",children:i}),(0,h.jsx)("h3",{children:r}),(0,h.jsx)("p",{className:"item-description",children:o}),(0,h.jsxs)("a",{href:n,className:"button button-secondary",target:"_blank",rel:"noopener noreferrer",children:[(0,t.__)("Read more","code-snippets"),(0,h.jsx)("span",{className:"screen-reader-text",children:(0,t.__)("(opens in a new tab)","code-snippets")})]})]})]},r)})})]})};const re=window.ReactDOM;var ne,te,se;ne="code-snippets-welcome-container",te=function(){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(V,{}),(0,h.jsxs)("div",{className:"code-snippets-welcome",children:[(0,h.jsx)("h1",{children:(0,t.__)("Resources and Updates","code-snippets")}),(0,h.jsx)("hr",{className:"wp-header-end"}),(0,h.jsxs)("div",{className:"code-snippets-updates",children:[(0,h.jsx)(K,{}),(0,h.jsx)(z,{})]}),(null==G?void 0:G.features)&&(0,h.jsx)(ee,{articles:G.features}),(null==G?void 0:G.partners)&&(0,h.jsx)(Y,{partners:G.partners})]})]})},(se=document.getElementById(ne))?(0,re.createRoot)(se).render((0,h.jsx)(te,{})):console.error("Could not find element #".concat(ne,"."))})()})();