%PDF- %PDF-
Direktori : /var/www/tif-dev/wp-content/plugins/lazy-blocks/controls/url/ |
Current File : //var/www/tif-dev/wp-content/plugins/lazy-blocks/controls/url/script.min.js |
!function(){var e={9090:function(e,n,t){e.exports=t(618)},618:function(e,n){function t(e){var n=0;if(0==e.length)return n;for(var t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n&=n;return n}function r(e,n){n=n||62;var t,r=[],o="",a=e<0?"-":"";function l(e){return"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[e]}for(e=Math.abs(e);e>=n;)t=e%n,e=Math.floor(e/n),r.push(l(t));e>0&&r.push(l(e));for(var i=r.length-1;i>=0;i--)o+=r[i];return a+o}n.bitwise=t,n.binaryTransfer=r,n.unique=function(e){return r(t(e),61).replace("-","Z")},n.random=function(e){for(var n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",t="",r=e||8,o=0;o<r;o++){var a=Math.floor(Math.random()*n.length);t+=n.substring(a,a+1)}return t}}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={exports:{}};return e[r](a,a.exports,t),a.exports}!function(){"use strict";var e=t(9090);function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var r=wp.element.useState,o=wp.i18n.__,a=wp.hooks.addFilter,l=wp.components,i=l.BaseControl,u=l.Button,c=wp.blockEditor.__experimentalLinkControl;function f(t){var a,l,f=(a=r(e.unique("".concat(new Date))),l=2,function(e){if(Array.isArray(e))return e}(a)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a=[],l=!0,i=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);l=!0);}catch(e){i=!0,o=e}finally{try{l||null==t.return||t.return()}finally{if(i)throw o}}return a}}(a,l)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(a,l)||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.")}()),s=f[0],p=f[1];return wp.element.createElement(i,{label:t.data.label,help:t.data.help},wp.element.createElement("div",{className:"lzb-gutenberg-url"},wp.element.createElement(c,{key:s,className:"wp-block-navigation-link__inline-link-input",opensInNewTab:!1,value:{url:t.getValue()},onChange:function(e){var n=e.url,r=void 0===n?"":n;t.onChange(r)}}),t.getValue()?wp.element.createElement(u,{isSmall:!0,isSecondary:!0,onClick:function(){t.onChange(""),p(e.unique("".concat(new Date)))}},o("Reset","lazy-blocks")):""))}a("lzb.editor.control.url.render","lzb.editor",(function(e,n){return wp.element.createElement(f,n)}))}()}();