useblocks 1.1.108 → 1.1.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/{iframe-eblock.facd6272.html → iframe-eblock.1f8831da.html} +2 -2
- package/iframe/{iframe.facd6272.html → iframe.1f8831da.html} +2 -2
- package/iframe/js/{elMarkupHelper.JLkggsgY.js → elMarkupHelper.BMa_Fy58.js} +79 -79
- package/iframe/js/{iframe-eblock.body.facd6272.js → iframe-eblock.body.1f8831da.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.facd6272.js → iframe.body.1f8831da.js} +1 -1
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{23ecb0b0.js → 153e784a.js} +1 -1
- package/static/core/{feb1ffa4.js → 271ebf42.js} +1 -1
- package/static/core/{83a7fff3.js → 28ed1e25.js} +1 -1
- package/static/core/{f89490a1.js → 30d6bd8a.js} +1 -1
- package/static/core/{9b50835f.js → 40119ab2.js} +1 -1
- package/static/core/{e86ffdcb.js → 4b44806a.js} +1 -1
- package/static/core/{32813d7b.js → 52516069.js} +2 -2
- package/static/core/{34804219.js → 6013e7a8.js} +1 -1
- package/static/core/{8a452a94.js → 6547f1cd.js} +1 -1
- package/static/core/{d8e8d436.js → 68988386.js} +1 -1
- package/static/core/{42ef449b.js → 68d98113.js} +1 -1
- package/static/core/{da678146.js → 73f5e024.js} +5 -5
- package/static/core/{38ea9ef6.js → 77e5a03d.js} +1 -1
- package/static/core/{aa65675c.js → 78a82c80.js} +1 -1
- package/static/core/{a77f31cb.js → 7d027ebc.js} +1 -1
- package/static/core/{622a2220.js → 7e41a4b3.js} +1 -1
- package/static/core/{87e91b5e.js → 7f08c9cf.js} +1 -1
- package/static/core/{c6bde249.js → 86b09d55.js} +1 -1
- package/static/core/{4ec0aff8.js → af8ca6d5.js} +1 -1
- package/static/core/{cc70a22f.js → b1a3c563.js} +2 -2
- package/static/core/{4d698359.js → d4abafdb.js} +1 -1
- package/static/core/{c9cebb1a.js → da0597fc.js} +1 -1
- package/static/core/{f50ba1e0.js → dee88720.js} +1 -1
- package/static/core/{ebcc0451.js → e18b6b9e.js} +1 -1
- package/static/core/{e8a44736.js → e8220aa2.js} +1 -1
- package/static/core/{2865a0ae.js → eef2226c.js} +1 -1
- package/static/core/{19e01848.js → ff82b68b.js} +1 -1
- package/static/umd-runtime/{runtime.DeDiWiET.js → runtime.ISFTauyN.js} +1 -1
- package/{useblocks-core.facd6272.js → useblocks-core.1f8831da.js} +41 -41
- package/useblocks-esm.js +11 -11
- package/{useblocks-po.facd6272.js → useblocks-po.1f8831da.js} +1 -1
- package/useblocks.js +11 -11
- package/vendor/useblocks-ui-kit/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("js/iframe-eblock.js",["require","exports","module","js/elMarkupHelper.
|
|
1
|
+
__useblocks__.define("js/iframe-eblock.js",["require","exports","module","js/elMarkupHelper.BMa_Fy58.js"],function(f,N,L){const n=f("./elMarkupHelper.BMa_Fy58.js");var v=n.require_iframeResizer_contentWindow_min();function b(o){const c=new Map,e=[],s=[],a=[];for(const t of o)if(t instanceof HTMLLinkElement)t.getAttribute("em-class")?.startsWith("em-font-")&&s.push(t);else if(t instanceof HTMLStyleElement){const r=t.getAttribute("em")||"",i=c.get(r);i?i.push(t):c.set(r,[t])}else if(t instanceof Element)if(t.getAttribute("em")==="block")e.push(t);else{const r=t.querySelector("[em='block']");r&&e.push(r)}else t.textContent===`
|
|
2
2
|
`&&a.push(t);const l=[];for(const t of s)l.push(t);for(const[t,r]of c)if(r.length>1){let i=n.minifyStylesheet(r.map(d=>d.innerHTML).join(`
|
|
3
3
|
`),{restructure:!0,forceMediaMerge:!0}).css;if(i=cssbeautify(i,{indent:" ",autosemicolon:!0}),i){const d=document.createElement("style");d.innerHTML=`
|
|
4
4
|
${i}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e=window.__useblocks__||(window.__useblocks__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=null,s={},c={},l=0;function u(e,t){l+=1;try{return e.factory.apply(null,t)}finally{--l}}var d=`./`,f={},p=60,m=`emailmaker:diagnostics`,h=[],g;function _(){if(g!==void 0)return g;g=!1;try{var e=/[?&]diagnostics(?:=([^&]*))?/.exec(window.location.search||``);if(e)return g=e[1]!==`0`,g;if(typeof window.__DIAGNOSTICS__==`boolean`)return g=!!window.__DIAGNOSTICS__,g;g=window.localStorage.getItem(m)===`1`}catch{g=!1}return g}function v(e,t){if(_()){var n={phase:e,at:performance.timeOrigin+performance.now(),kind:`wait`};t&&(n.parent=String(t)),h.push(n)}}function y(e){if(!e||e.__amdLogged)return e;try{Object.defineProperty(e,"__amdLogged",{value:!0,enumerable:!1})}catch{try{e.__amdLogged=!0}catch{}}try{var t=e&&e.message||`loader error`;console.error(`[AMD] `+(t.indexOf(`[AMD]`)===0?t.slice(6):t),e)}catch{}return e}function b(){try{if(e!==void 0&&e&&e.publicPath)return String(e.publicPath)}catch{}return`(not set)`}function x(){var e=b();return String(e).indexOf(`file:`)===0?` The page appears to be opened as a local file (file://) or publicPath was not configured. Serve the host app over HTTP(S) and set publicPath to the origin that serves editor assets (host bundler plugin or __amdEnv.setPublicPath). Current runtime publicPath=`+e+`.`:` Host bundler publicPath may be misconfigured (Vite/Webpack host plugin). In dev, set publicPath to the absolute origin that serves editor assets (for example http://localhost:3001/<outputFolder>/). Current runtime publicPath=`+e+`.`}function S(e){if(typeof fetch!=`function`)return Promise.resolve(``);function t(e){var t=(e.headers.get(`content-type`)||``).toLowerCase();try{e.body&&typeof e.body.cancel==`function`&&e.body.cancel()}catch{}return t.indexOf(`text/html`)>=0?` The URL returned HTML (Content-Type: text/html), not JavaScript — often a SPA fallback when asset paths are wrong.`:e.ok?``:` HTTP status `+e.status+` — the asset URL may be wrong or blocked by the server.`}return fetch(e,{method:`HEAD`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(function(n){return n.status===405||n.status===501?fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t):t(n)}).catch(function(){return fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t).catch(function(){return``})})}function C(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function w(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function T(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(i&&i!==`.`){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function E(e){var t=String(e||``).replace(/\\/g,`/`),n=String(d||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function D(e){return{then:function(t,n){return e.then(t,n)},catch:function(t){return e.catch(t)},finally:function(t){return e.finally(t)}}}function O(e,t){var n=String(e||``);if(!n)return n;if(n.indexOf(`./`)!==0&&n.indexOf(`../`)!==0)return E(T(n));var r=t||``;if(Object.prototype.hasOwnProperty.call(f,r)){var i=String(f[r]||``);i&&!k(i)&&i.charAt(0)!==`/`&&(r=i)}var a=T(r),o=a?a.split(`/`):[];o.length>0&&o.pop();for(var s=n.split(`/`),c=0;c<s.length;c++){var l=s[c];if(l&&l!==`.`){if(l===`..`){o.length>0&&o.pop();continue}o.push(l)}}return E(o.join(`/`))}function k(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function A(e){var t=String(e||``);if(!t||k(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function j(){var t=String(d||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),k(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,A(e.publicPath)).href}catch{}return A(t)}function M(e,t){var n=O(e,t),r=j(),i=Object.prototype.hasOwnProperty.call(f,n)?String(f[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function N(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function P(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=N()):typeof e==`function`?(r=e,n=[],e=N()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}P.amd={async:!0};function F(e){var t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}P(`vite/preload-helper`,[`exports`],function(e){e.__vitePreload=function(e){return Promise.resolve().then(function(){return e().catch(F)})}});function I(){return function(){}}function L(e,t){return{id:e,exports:t,uri:M(e)}}function R(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return V(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return V(e,r)}function z(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=O(e,o);if(s in a)throw y(a[s]);if(s in n)return n[s];if(s in r||s in i)throw y(C(s,Error(`Module is still loading asynchronously`)));if(!(s in t))throw y(C(s,Error(`Module is not available for syncRequire`)));return U(s)}function B(e,i){if(o&&e in o){var s={},c=[e];for(s[e]=!0;c.length>0;){var l=o[c.shift()];if(l)for(var u=0;u<l.length;u++){var d=l[u];s[d]||(s[d]=!0,c.push(d),!(d in n||d in a||d in r)&&(d in o?d in t||K(d,i).catch(function(){}):d in t&&V(d).catch(function(){})))}}}}function V(e,i){var o=O(e,i);if(o in a)return Promise.reject(y(a[o]));if(o in n)return Promise.resolve(n[o]);if(o in r)return r[o];if(v(`core:module:`+o+`:ask`,i),o in t)r[o]=H(o);else{var s=M(o);r[o]=K(o).then(function(){return v(`core:module:`+o+`:loaded`,i),o in t?H(o):S(s).then(function(e){var t=C(o,Error(`Module not defined after script load from "`+s+`".`+e+x()));throw a[o]=t,y(t)})}).catch(function(e){delete r[o];var t=e&&e.moduleId===o?e:C(o,e);throw a[o]=t,y(t)})}return B(o),r[o]}function H(e){var i=t[e],o=W(e),s=I(),l=L(e,s);c[e]=s;function d(t){return n[e]=t,delete r[e],delete c[e],n[e]}return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?l:V(t,e).catch(function(n){throw w(e,t,n)})})).then(function(t){v(`core:module:`+e+`:deps`);var n=u(i,t);return n&&typeof n.then==`function`?n.then(function(t){return v(`core:module:`+e+`:ready`),d(t===void 0?l.exports:t)}):(v(`core:module:`+e+`:ready`),d(n===void 0?l.exports:n))}).catch(function(t){throw delete r[e],delete c[e],a[e]=t,y(t)})}function U(e){var r=t[e],i=W(e),o=I(),s=L(e,o);try{var c=u(r,r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return z(t,e)}catch(n){throw w(e,t,n)}}));if(c&&typeof c.then==`function`)throw C(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=c===void 0?s.exports:c,n[e]}catch(t){throw a[e]=t,y(t)}}function W(e){var o=function(o,s,u){if(Array.isArray(o))return R(o,s,u,e);var d=O(o,e);if(d in a)throw y(a[d]);return d in n?n[d]:d in c&&l>0?c[d]:d in r||d in i?D(V(o,e)):d in t?z(o,e):D(V(o,e))};return o.resolve=function(t){return O(t,e)},o.toUrl=function(t){return M(t,e)},o.sync=function(t){return z(t,e)},o}function G(t,n){var r=e!==void 0&&e?e.moduleTransport:null;if(typeof r!=`function`||e.blobBlocked)return null;try{var i=r(t,n);return i&&typeof i.then==`function`?i:null}catch{return null}}function K(t,n){if(t in i)return i[t];if(s[t]&&s[t]!==t)return i[t]=K(s[t],n),i[t];var r=M(t);if(document.querySelector(`script[src="`+r+`"]`))return i[t]=Promise.resolve(),i[t];var a=performance.now();function o(e){return J(t,r,!1,n).then(function(n){return q(t,e,a),n})}var c=G(r,t);return c?(i[t]=c.then(function(r){return r?J(t,URL.createObjectURL(r),!0,n).then(function(e){return q(t,`transport`,a),e},function(){return e.blobBlocked=!0,o(`network-after-blob`)}):o(`network-fallback`)},function(){return o(`network-after-transport-error`)}),i[t]):(i[t]=o(`network`),i[t])}function q(t,n,r){_()&&((e.loaderTimings||=[]).push({id:t,via:n,ms:Math.round((performance.now()-r)*10)/10}),typeof e.onLoaderTiming==`function`&&e.onLoaderTiming())}function J(e,t,n,r){return new Promise(function(a,o){var s=!1,c=document.createElement(`script`);c.src=t,c.setAttribute(`data-amd-module-id`,e),c.async=!0,r===`low`&&(c.fetchPriority=`low`);var l=p>0?p*1e3:0,u=null;function d(){u!=null&&(clearTimeout(u),u=null),c.onload=null,c.onerror=null,n&&typeof URL<`u`&&URL.revokeObjectURL&&URL.revokeObjectURL(t)}function f(e){s||(s=!0,d(),e())}l>0&&(u=setTimeout(function(){f(function(){delete i[e],o(y(C(e,Error(`Timed out after `+l+`ms loading script: `+t+`.`+x()))))})},l)),c.onload=function(){f(function(){a()})},c.onerror=function(){f(function(){delete i[e],o(y(C(e,Error(`Failed to load script: `+t+`.`+x()))))})},document.head.appendChild(c)})}R.config=function(e){if(e.baseUrl&&(d=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(f[t]=e.paths[t]);if(e.bundles){for(var n in e.bundles)if(Object.prototype.hasOwnProperty.call(e.bundles,n))for(var r=0;r<e.bundles[n].length;r++)s[e.bundles[n][r]]=n}if(e.graph)for(var i in o||={},e.graph)Object.prototype.hasOwnProperty.call(e.graph,i)&&(o[i]=e.graph[i]);typeof e.waitSeconds==`number`&&e.waitSeconds>=0&&(p=e.waitSeconds)},R.warm=function(e,r){var i=r&&r.priority;return Promise.all((e||[]).map(function(e){var r=O(e);if(r in a)return Promise.reject(a[r]);var o=r in t||r in n?Promise.resolve():K(r,i);return B(r,i),o})).then(function(){})},R.modules=t,R.resolved=n,R.errors=a,R.toUrl=M,R.sync=z,e.define=P,e.require=R,e.syncRequire=z,e.diagnosticsBuffer=h})(),e.require.config({baseUrl:`./`});
|
|
2
2
|
|
|
3
|
-
__useblocks__.require.config({ paths: {"js/iframe-eblock.js":"js/iframe-eblock.body.
|
|
3
|
+
__useblocks__.require.config({ paths: {"js/iframe-eblock.js":"js/iframe-eblock.body.1f8831da.js"} });
|
|
4
4
|
|
|
5
|
-
__useblocks__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.
|
|
5
|
+
__useblocks__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.BMa_Fy58.js"],"js/iframe.js":["js/elMarkupHelper.BMa_Fy58.js"],"js/darkreader.CyLMh7_H.js":[],"js/elMarkupHelper.BMa_Fy58.js":[],"js/rules.CL_BitCE.js":[],"js/typograf.all.CGEpDoct.js":[]}});
|
|
6
6
|
|
|
7
7
|
__useblocks__.require("js/iframe-eblock.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("js/iframe.js",["require","exports","module","js/elMarkupHelper.
|
|
1
|
+
__useblocks__.define("js/iframe.js",["require","exports","module","js/elMarkupHelper.BMa_Fy58.js"],function(Q,pt,yt){const a=Q("./elMarkupHelper.BMa_Fy58.js");var ee="confetti:open-settings",te="confetti:start",oe="confetti:stop",ie="confetti:complete",re=class{constructor(e){a._defineProperty(this,"_app",void 0),a._defineProperty(this,"_state","idle"),a._defineProperty(this,"_activeEffects",new Map),a._defineProperty(this,"_onDocumentClick",t=>{const r=t.target;if(!r)return;const n=r.closest(".confetti-placeholder");if(!n)return;const l=n.getAttribute("data-confetti-preset")||void 0;this._app.use("MessageService").send(ee,{preset:l})}),this._app=e}init(){const e=this._app.use("MessageService");e.addListener(te,t=>this._handleStart(t.id,t.options)),e.addListener(oe,t=>this._handleStop(t.id)),document.addEventListener("click",this._onDocumentClick,!0)}_handleStart(e,t){const r={id:e,options:t,startTime:Date.now()};this._activeEffects.set(e,r),this._state="running",this.onEffectStart(e,t),this.renderConfetti(e,t);const n=t.duration||3e3;setTimeout(()=>{this._completeEffect(e)},n)}_handleStop(e){if(this._state="stopping",e==="all")for(const t of this._activeEffects.keys())this._completeEffect(t,!0);else this._completeEffect(e,!0)}_completeEffect(e,t=!1){this._activeEffects.get(e)&&(this._activeEffects.delete(e),this.clearConfetti(e,t),this.onEffectComplete(e),this._activeEffects.size===0&&(this._state="idle"),this._app.use("MessageService").send(ie,{id:e}))}onEffectStart(e,t){}onEffectComplete(e){}getState(){return this._state}isRunning(){return this._state==="running"}dispose(){document.removeEventListener("click",this._onDocumentClick,!0),this._handleStop("all"),this._activeEffects.clear()}},ne=class extends re{constructor(e){super(e),a._defineProperty(this,"_containers",new Map)}renderConfetti(e,t){const r=this._getRenderBounds(),n=document.createElement("div");n.id=`confetti-${e}`,n.setAttribute("data-confetti-overlay","true"),n.style.cssText=`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: ${r.top}px;
|
|
4
4
|
left: ${r.left}px;
|
package/iframe/js/iframe.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e=window.__useblocks__||(window.__useblocks__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=null,s={},c={},l=0;function u(e,t){l+=1;try{return e.factory.apply(null,t)}finally{--l}}var d=`./`,f={},p=60,m=`emailmaker:diagnostics`,h=[],g;function _(){if(g!==void 0)return g;g=!1;try{var e=/[?&]diagnostics(?:=([^&]*))?/.exec(window.location.search||``);if(e)return g=e[1]!==`0`,g;if(typeof window.__DIAGNOSTICS__==`boolean`)return g=!!window.__DIAGNOSTICS__,g;g=window.localStorage.getItem(m)===`1`}catch{g=!1}return g}function v(e,t){if(_()){var n={phase:e,at:performance.timeOrigin+performance.now(),kind:`wait`};t&&(n.parent=String(t)),h.push(n)}}function y(e){if(!e||e.__amdLogged)return e;try{Object.defineProperty(e,"__amdLogged",{value:!0,enumerable:!1})}catch{try{e.__amdLogged=!0}catch{}}try{var t=e&&e.message||`loader error`;console.error(`[AMD] `+(t.indexOf(`[AMD]`)===0?t.slice(6):t),e)}catch{}return e}function b(){try{if(e!==void 0&&e&&e.publicPath)return String(e.publicPath)}catch{}return`(not set)`}function x(){var e=b();return String(e).indexOf(`file:`)===0?` The page appears to be opened as a local file (file://) or publicPath was not configured. Serve the host app over HTTP(S) and set publicPath to the origin that serves editor assets (host bundler plugin or __amdEnv.setPublicPath). Current runtime publicPath=`+e+`.`:` Host bundler publicPath may be misconfigured (Vite/Webpack host plugin). In dev, set publicPath to the absolute origin that serves editor assets (for example http://localhost:3001/<outputFolder>/). Current runtime publicPath=`+e+`.`}function S(e){if(typeof fetch!=`function`)return Promise.resolve(``);function t(e){var t=(e.headers.get(`content-type`)||``).toLowerCase();try{e.body&&typeof e.body.cancel==`function`&&e.body.cancel()}catch{}return t.indexOf(`text/html`)>=0?` The URL returned HTML (Content-Type: text/html), not JavaScript — often a SPA fallback when asset paths are wrong.`:e.ok?``:` HTTP status `+e.status+` — the asset URL may be wrong or blocked by the server.`}return fetch(e,{method:`HEAD`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(function(n){return n.status===405||n.status===501?fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t):t(n)}).catch(function(){return fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t).catch(function(){return``})})}function C(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function w(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function T(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(i&&i!==`.`){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function E(e){var t=String(e||``).replace(/\\/g,`/`),n=String(d||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function D(e){return{then:function(t,n){return e.then(t,n)},catch:function(t){return e.catch(t)},finally:function(t){return e.finally(t)}}}function O(e,t){var n=String(e||``);if(!n)return n;if(n.indexOf(`./`)!==0&&n.indexOf(`../`)!==0)return E(T(n));var r=t||``;if(Object.prototype.hasOwnProperty.call(f,r)){var i=String(f[r]||``);i&&!k(i)&&i.charAt(0)!==`/`&&(r=i)}var a=T(r),o=a?a.split(`/`):[];o.length>0&&o.pop();for(var s=n.split(`/`),c=0;c<s.length;c++){var l=s[c];if(l&&l!==`.`){if(l===`..`){o.length>0&&o.pop();continue}o.push(l)}}return E(o.join(`/`))}function k(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function A(e){var t=String(e||``);if(!t||k(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function j(){var t=String(d||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),k(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,A(e.publicPath)).href}catch{}return A(t)}function M(e,t){var n=O(e,t),r=j(),i=Object.prototype.hasOwnProperty.call(f,n)?String(f[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function N(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function P(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=N()):typeof e==`function`?(r=e,n=[],e=N()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}P.amd={async:!0};function F(e){var t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}P(`vite/preload-helper`,[`exports`],function(e){e.__vitePreload=function(e){return Promise.resolve().then(function(){return e().catch(F)})}});function I(){return function(){}}function L(e,t){return{id:e,exports:t,uri:M(e)}}function R(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return V(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return V(e,r)}function z(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=O(e,o);if(s in a)throw y(a[s]);if(s in n)return n[s];if(s in r||s in i)throw y(C(s,Error(`Module is still loading asynchronously`)));if(!(s in t))throw y(C(s,Error(`Module is not available for syncRequire`)));return U(s)}function B(e,i){if(o&&e in o){var s={},c=[e];for(s[e]=!0;c.length>0;){var l=o[c.shift()];if(l)for(var u=0;u<l.length;u++){var d=l[u];s[d]||(s[d]=!0,c.push(d),!(d in n||d in a||d in r)&&(d in o?d in t||K(d,i).catch(function(){}):d in t&&V(d).catch(function(){})))}}}}function V(e,i){var o=O(e,i);if(o in a)return Promise.reject(y(a[o]));if(o in n)return Promise.resolve(n[o]);if(o in r)return r[o];if(v(`core:module:`+o+`:ask`,i),o in t)r[o]=H(o);else{var s=M(o);r[o]=K(o).then(function(){return v(`core:module:`+o+`:loaded`,i),o in t?H(o):S(s).then(function(e){var t=C(o,Error(`Module not defined after script load from "`+s+`".`+e+x()));throw a[o]=t,y(t)})}).catch(function(e){delete r[o];var t=e&&e.moduleId===o?e:C(o,e);throw a[o]=t,y(t)})}return B(o),r[o]}function H(e){var i=t[e],o=W(e),s=I(),l=L(e,s);c[e]=s;function d(t){return n[e]=t,delete r[e],delete c[e],n[e]}return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?l:V(t,e).catch(function(n){throw w(e,t,n)})})).then(function(t){v(`core:module:`+e+`:deps`);var n=u(i,t);return n&&typeof n.then==`function`?n.then(function(t){return v(`core:module:`+e+`:ready`),d(t===void 0?l.exports:t)}):(v(`core:module:`+e+`:ready`),d(n===void 0?l.exports:n))}).catch(function(t){throw delete r[e],delete c[e],a[e]=t,y(t)})}function U(e){var r=t[e],i=W(e),o=I(),s=L(e,o);try{var c=u(r,r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return z(t,e)}catch(n){throw w(e,t,n)}}));if(c&&typeof c.then==`function`)throw C(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=c===void 0?s.exports:c,n[e]}catch(t){throw a[e]=t,y(t)}}function W(e){var o=function(o,s,u){if(Array.isArray(o))return R(o,s,u,e);var d=O(o,e);if(d in a)throw y(a[d]);return d in n?n[d]:d in c&&l>0?c[d]:d in r||d in i?D(V(o,e)):d in t?z(o,e):D(V(o,e))};return o.resolve=function(t){return O(t,e)},o.toUrl=function(t){return M(t,e)},o.sync=function(t){return z(t,e)},o}function G(t,n){var r=e!==void 0&&e?e.moduleTransport:null;if(typeof r!=`function`||e.blobBlocked)return null;try{var i=r(t,n);return i&&typeof i.then==`function`?i:null}catch{return null}}function K(t,n){if(t in i)return i[t];if(s[t]&&s[t]!==t)return i[t]=K(s[t],n),i[t];var r=M(t);if(document.querySelector(`script[src="`+r+`"]`))return i[t]=Promise.resolve(),i[t];var a=performance.now();function o(e){return J(t,r,!1,n).then(function(n){return q(t,e,a),n})}var c=G(r,t);return c?(i[t]=c.then(function(r){return r?J(t,URL.createObjectURL(r),!0,n).then(function(e){return q(t,`transport`,a),e},function(){return e.blobBlocked=!0,o(`network-after-blob`)}):o(`network-fallback`)},function(){return o(`network-after-transport-error`)}),i[t]):(i[t]=o(`network`),i[t])}function q(t,n,r){_()&&((e.loaderTimings||=[]).push({id:t,via:n,ms:Math.round((performance.now()-r)*10)/10}),typeof e.onLoaderTiming==`function`&&e.onLoaderTiming())}function J(e,t,n,r){return new Promise(function(a,o){var s=!1,c=document.createElement(`script`);c.src=t,c.setAttribute(`data-amd-module-id`,e),c.async=!0,r===`low`&&(c.fetchPriority=`low`);var l=p>0?p*1e3:0,u=null;function d(){u!=null&&(clearTimeout(u),u=null),c.onload=null,c.onerror=null,n&&typeof URL<`u`&&URL.revokeObjectURL&&URL.revokeObjectURL(t)}function f(e){s||(s=!0,d(),e())}l>0&&(u=setTimeout(function(){f(function(){delete i[e],o(y(C(e,Error(`Timed out after `+l+`ms loading script: `+t+`.`+x()))))})},l)),c.onload=function(){f(function(){a()})},c.onerror=function(){f(function(){delete i[e],o(y(C(e,Error(`Failed to load script: `+t+`.`+x()))))})},document.head.appendChild(c)})}R.config=function(e){if(e.baseUrl&&(d=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(f[t]=e.paths[t]);if(e.bundles){for(var n in e.bundles)if(Object.prototype.hasOwnProperty.call(e.bundles,n))for(var r=0;r<e.bundles[n].length;r++)s[e.bundles[n][r]]=n}if(e.graph)for(var i in o||={},e.graph)Object.prototype.hasOwnProperty.call(e.graph,i)&&(o[i]=e.graph[i]);typeof e.waitSeconds==`number`&&e.waitSeconds>=0&&(p=e.waitSeconds)},R.warm=function(e,r){var i=r&&r.priority;return Promise.all((e||[]).map(function(e){var r=O(e);if(r in a)return Promise.reject(a[r]);var o=r in t||r in n?Promise.resolve():K(r,i);return B(r,i),o})).then(function(){})},R.modules=t,R.resolved=n,R.errors=a,R.toUrl=M,R.sync=z,e.define=P,e.require=R,e.syncRequire=z,e.diagnosticsBuffer=h})(),e.require.config({baseUrl:`./`});
|
|
2
2
|
|
|
3
|
-
__useblocks__.require.config({ paths: {"js/iframe.js":"js/iframe.body.
|
|
3
|
+
__useblocks__.require.config({ paths: {"js/iframe.js":"js/iframe.body.1f8831da.js"} });
|
|
4
4
|
|
|
5
|
-
__useblocks__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.
|
|
5
|
+
__useblocks__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.BMa_Fy58.js"],"js/iframe.js":["js/elMarkupHelper.BMa_Fy58.js"],"js/darkreader.CyLMh7_H.js":[],"js/elMarkupHelper.BMa_Fy58.js":[],"js/rules.CL_BitCE.js":[],"js/typograf.all.CGEpDoct.js":[]}});
|
|
6
6
|
|
|
7
7
|
__useblocks__.require("js/iframe.js");
|
package/package.json
CHANGED
package/runtime/react/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../vendor/react/index.js";var i=e&&e.default?e.default:e,{Activity:n,Children:o,Component:c,Fragment:m,Profiler:E,PureComponent:v,StrictMode:d,Suspense:R,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:S,__COMPILER_RUNTIME:h,cache:T,cacheSignal:b,cloneElement:g,createContext:N,createElement:_,createRef:A,forwardRef:O,isValidElement:k,lazy:I,memo:D,startTransition:L,unstable_useCacheRefresh:M,use:P,useActionState:U,useCallback:V,useContext:x,useDebugValue:H,useDeferredValue:z,useEffect:F,useEffectEvent:G,useId:W,useImperativeHandle:Y,useInsertionEffect:j,useLayoutEffect:p,useMemo:q,useOptimistic:w,useReducer:B,useRef:J,useState:Q,useSyncExternalStore:X,useTransition:Z,version:$}=e;try{var u=Symbol.for("editor-runtime.react.copies"),t=globalThis[u];t||(t=[],globalThis[u]=t);for(var r=!1,s=0;s<t.length;s++){var a=t[s];a&&a.react===e&&a.package==="useblocks"&&a.version==="1.1.
|
|
1
|
+
import e from"../../vendor/react/index.js";var i=e&&e.default?e.default:e,{Activity:n,Children:o,Component:c,Fragment:m,Profiler:E,PureComponent:v,StrictMode:d,Suspense:R,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:S,__COMPILER_RUNTIME:h,cache:T,cacheSignal:b,cloneElement:g,createContext:N,createElement:_,createRef:A,forwardRef:O,isValidElement:k,lazy:I,memo:D,startTransition:L,unstable_useCacheRefresh:M,use:P,useActionState:U,useCallback:V,useContext:x,useDebugValue:H,useDeferredValue:z,useEffect:F,useEffectEvent:G,useId:W,useImperativeHandle:Y,useInsertionEffect:j,useLayoutEffect:p,useMemo:q,useOptimistic:w,useReducer:B,useRef:J,useState:Q,useSyncExternalStore:X,useTransition:Z,version:$}=e;try{var u=Symbol.for("editor-runtime.react.copies"),t=globalThis[u];t||(t=[],globalThis[u]=t);for(var r=!1,s=0;s<t.length;s++){var a=t[s];a&&a.react===e&&a.package==="useblocks"&&a.version==="1.1.109"&&(r=!0)}r||t.push({package:"useblocks",version:"1.1.109",react:e})}catch{}export{n as Activity,o as Children,c as Component,m as Fragment,E as Profiler,v as PureComponent,d as StrictMode,R as Suspense,S as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h as __COMPILER_RUNTIME,T as cache,b as cacheSignal,g as cloneElement,N as createContext,_ as createElement,A as createRef,i as default,O as forwardRef,k as isValidElement,I as lazy,D as memo,L as startTransition,M as unstable_useCacheRefresh,P as use,U as useActionState,V as useCallback,x as useContext,H as useDebugValue,z as useDeferredValue,F as useEffect,G as useEffectEvent,W as useId,Y as useImperativeHandle,j as useInsertionEffect,p as useLayoutEffect,q as useMemo,w as useOptimistic,B as useReducer,J as useRef,Q as useState,X as useSyncExternalStore,Z as useTransition,$ as version};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/153e784a.js",["require","exports","module","static/core/2ff39ddf.js","static/core/bac4c584.js"],function(a,m,v){const w=a("./2ff39ddf.js"),h=a("./bac4c584.js");var d={items_per_page:"/ Seite",jump_to:"Gehe zu",jump_to_confirm:"bestätigen",page:"Seite",prev_page:"Vorherige Seite",next_page:"Nächste Seite",prev_5:"5 Seiten zurück",next_5:"5 Seiten vor",prev_3:"3 Seiten zurück",next_3:"3 Seiten vor",page_size:"Page Size"};function i(t){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function($){return Object.getOwnPropertyDescriptor(t,$).enumerable})),n.push.apply(n,l)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(l){p(t,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(n,l))})}return t}function p(t,e,n){return e=g(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=b(t,"string");return i(e)=="symbol"?e:String(e)}function b(t,e){if(i(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var l=n.call(t,e||"default");if(i(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var f=s(s({},h.commonLocale),{},{locale:"de_DE",today:"Heute",now:"Jetzt",backToToday:"Zurück zu Heute",ok:"OK",clear:"Zurücksetzen",week:"Woche",month:"Monat",year:"Jahr",timeSelect:"Zeit wählen",dateSelect:"Datum wählen",monthSelect:"Wähle einen Monat",yearSelect:"Wähle ein Jahr",decadeSelect:"Wähle ein Jahrzehnt",previousMonth:"Vorheriger Monat (PageUp)",nextMonth:"Nächster Monat (PageDown)",previousYear:"Vorheriges Jahr (Ctrl + left)",nextYear:"Nächstes Jahr (Ctrl + right)",previousDecade:"Vorheriges Jahrzehnt",nextDecade:"Nächstes Jahrzehnt",previousCentury:"Vorheriges Jahrhundert",nextCentury:"Nächstes Jahrhundert"}),c={placeholder:"Zeit auswählen",rangePlaceholder:["Startzeit","Endzeit"]},u={lang:{placeholder:"Datum auswählen",rangePlaceholder:["Startdatum","Enddatum"],shortWeekDays:["So","Mo","Di","Mi","Do","Fr","Sa"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],...f},timePickerLocale:{...c}},y=u,r="${label} ist nicht gültig. ${type} erwartet",S={locale:"de",Pagination:d,DatePicker:u,TimePicker:c,Calendar:y,global:{placeholder:"Bitte auswählen",close:"Schließen",show:"Anzeigen",hide:"Ausblenden"},Table:{filterTitle:"Filter-Menü",filterConfirm:"OK",filterReset:"Zurücksetzen",filterEmptyText:"Keine Filter",filterSearchPlaceholder:"Suche in Filtern",filterCheckAll:"Alle auswählen",selectAll:"Selektiere Alle",selectInvert:"Selektion Invertieren",selectionAll:"Wählen Sie alle Daten aus",sortTitle:"Sortieren",emptyText:"Keine Daten",expand:"Zeile erweitern",collapse:"Zeile reduzieren",triggerDesc:"Klicken zur absteigenden Sortierung",triggerAsc:"Klicken zur aufsteigenden Sortierung",cancelSort:"Klicken zum Abbrechen der Sortierung"},Tour:{Next:"Weiter",Previous:"Zurück",Finish:"Fertig"},Modal:{okText:"OK",cancelText:"Abbrechen",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Abbrechen"},Transfer:{titles:["",""],searchPlaceholder:"Suchen",itemUnit:"Eintrag",itemsUnit:"Einträge",remove:"Entfernen",selectCurrent:"Alle auf aktueller Seite auswählen",removeCurrent:"Auswahl auf aktueller Seite aufheben",selectAll:"Alle auswählen",deselectAll:"Alle abwählen",removeAll:"Auswahl aufheben",selectInvert:"Auswahl umkehren"},Upload:{uploading:"Hochladen...",removeFile:"Datei entfernen",uploadError:"Fehler beim Hochladen",previewFile:"Dateivorschau",downloadFile:"Download-Datei"},Empty:{description:"Keine Daten"},Text:{edit:"Bearbeiten",copy:"Kopieren",copied:"Kopiert",expand:"Erweitern"},Form:{defaultValidateMessages:{default:"Feld-Validierungsfehler: ${label}",required:"Bitte geben Sie ${label} an",enum:"${label} muss eines der folgenden sein [${enum}]",whitespace:"${label} darf kein Leerzeichen sein",date:{format:"${label} ist ein ungültiges Datumsformat",parse:"${label} kann nicht in ein Datum umgewandelt werden",invalid:"${label} ist ein ungültiges Datum"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} muss genau ${len} Zeichen lang sein",min:"${label} muss mindestens ${min} Zeichen lang sein",max:"${label} darf höchstens ${max} Zeichen lang sein",range:"${label} muss zwischen ${min} und ${max} Zeichen lang sein"},number:{len:"${label} muss gleich ${len} sein",min:"${label} muss mindestens ${min} sein",max:"${label} darf maximal ${max} sein",range:"${label} muss zwischen ${min} und ${max} liegen"},array:{len:"Es müssen ${len} ${label} sein",min:"Es müssen mindestens ${min} ${label} sein",max:"Es dürfen maximal ${max} ${label} sein",range:"Die Anzahl an ${label} muss zwischen ${min} und ${max} liegen"},pattern:{mismatch:"${label} entspricht nicht dem ${pattern} Muster"}}},QRCode:{expired:"QR-Code abgelaufen",refresh:"Aktualisieren"}};m.default=S});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/feb1ffa4.js",["require","exports","module","static/core/2ff39ddf.js","static/core/15891cd6.js","static/core/e7620593.js","static/core/49be45c4.js","react","react/jsx-runtime","__delivery__/libs","react-dom","react-dom/client"],function(Xr,Z,tF){const dt=Xr("./2ff39ddf.js"),Xa=Xr("./15891cd6.js"),nf=Xr("./e7620593.js"),nl=Xr("./49be45c4.js");let F=Xr("react");F=dt.__toESM(F);let ei=Xr("react/jsx-runtime"),Hr=Xr("__delivery__/libs"),ll=Xr("react-dom");ll=dt.__toESM(ll);let oF=Xr("react-dom/client");function lf(o,t){if(Xa._typeof(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var n=a.call(o,t||"default");if(Xa._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function sl(o){var t=lf(o,"string");return Xa._typeof(t)=="symbol"?t:t+""}function ri(o,t,a){return(t=sl(t))in o?Object.defineProperty(o,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[t]=a,o}var ti=(0,F.createContext)({});function dl(o){var t,a,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o)){var l=o.length;for(t=0;t<l;t++)o[t]&&(a=dl(o[t]))&&(n&&(n+=" "),n+=a)}else for(a in o)o[a]&&(n&&(n+=" "),n+=a);return n}function ul(){for(var o,t,a=0,n="",l=arguments.length;a<l;a++)(o=arguments[a])&&(t=dl(o))&&(n&&(n+=" "),n+=t);return n}var sf={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},lr=Math.round;function oi(o,t){const a=o.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=a.map(l=>parseFloat(l));for(let l=0;l<3;l+=1)n[l]=t(n[l]||0,a[l]||"",l);return a[3]?n[3]=a[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var cl=(o,t,a)=>a===0?o:o/100;function po(o,t){const a=t||255;return o>a?a:o<0?0:o}var Mo=class tf{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function a(l){return l[0]in t&&l[1]in t&&l[2]in t}if(t)if(typeof t=="string"){let d=function(u){return l.startsWith(u)};var n=d;const l=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(d("rgb"))this.fromRgbString(l);else if(d("hsl"))this.fromHslString(l);else if(d("hsv")||d("hsb"))this.fromHsvString(l);else{const u=sf[l.toLowerCase()];u&&this.fromHexString(parseInt(u,36).toString(16).padStart(6,"0"))}}else if(t instanceof tf)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(a("rgb"))this.r=po(t.r),this.g=po(t.g),this.b=po(t.b),this.a=typeof t.a=="number"?po(t.a,1):1;else if(a("hsl"))this.fromHsl(t);else if(a("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const a=this.toHsv();return a.h=t,this._c(a)}getLuminance(){function t(d){const u=d/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const a=t(this.r),n=t(this.g),l=t(this.b);return .2126*a+.7152*n+.0722*l}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const a=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*a-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()-t/100;return l<0&&(l=0),this._c({h:a,s:n,l,a:this.a})}lighten(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()+t/100;return l>1&&(l=1),this._c({h:a,s:n,l,a:this.a})}mix(t,a=50){const n=this._c(t),l=a/100,d=c=>(n[c]-this[c])*l+this[c],u={r:lr(d("r")),g:lr(d("g")),b:lr(d("b")),a:lr(d("a")*100)/100};return this._c(u)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const a=this._c(t),n=this.a+a.a*(1-this.a),l=d=>lr((this[d]*this.a+a[d]*a.a*(1-this.a))/n);return this._c({r:l("r"),g:l("g"),b:l("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const a=(this.r||0).toString(16);t+=a.length===2?a:"0"+a;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const l=(this.b||0).toString(16);if(t+=l.length===2?l:"0"+l,typeof this.a=="number"&&this.a>=0&&this.a<1){const d=lr(this.a*255).toString(16);t+=d.length===2?d:"0"+d}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),a=lr(this.getHSLSaturation()*100),n=lr(this.getLightness()*100);return this.a!==1?`hsla(${t},${a}%,${n}%,${this.a})`:`hsl(${t},${a}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,a,n){const l=this.clone();return l[t]=po(a,n),l}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const a=t.replace("#","");function n(l,d){return parseInt(a[l]+a[d||l],16)}a.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=a[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=a[6]?n(6,7)/255:1)}fromHsl({h:t,s:a,l:n,a:l}){const d=(t%360+360)%360;if(this._h=d,this._hsl_s=a,this._l=n,this.a=typeof l=="number"?l:1,a<=0){const S=lr(n*255);this.r=S,this.g=S,this.b=S;return}let u=0,c=0,g=0;const m=d/60,v=(1-Math.abs(2*n-1))*a,y=v*(1-Math.abs(m%2-1));m>=0&&m<1?(u=v,c=y):m>=1&&m<2?(u=y,c=v):m>=2&&m<3?(c=v,g=y):m>=3&&m<4?(c=y,g=v):m>=4&&m<5?(u=y,g=v):m>=5&&m<6&&(u=v,g=y);const b=n-v/2;this.r=lr((u+b)*255),this.g=lr((c+b)*255),this.b=lr((g+b)*255)}fromHsv({h:t,s:a,v:n,a:l}){const d=(t%360+360)%360;this._h=d,this._hsv_s=a,this._v=n,this.a=typeof l=="number"?l:1;const u=lr(n*255);if(this.r=u,this.g=u,this.b=u,a<=0)return;const c=d/60,g=Math.floor(c),m=c-g,v=lr(n*(1-a)*255),y=lr(n*(1-a*m)*255),b=lr(n*(1-a*(1-m))*255);switch(g){case 0:this.g=b,this.b=v;break;case 1:this.r=y,this.b=v;break;case 2:this.r=v,this.b=b;break;case 3:this.r=v,this.g=y;break;case 4:this.r=b,this.g=v;break;default:this.g=v,this.b=y}}fromHsvString(t){const a=oi(t,cl);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(t){const a=oi(t,cl);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(t){const a=oi(t,(n,l)=>l.includes("%")?lr(n/100*255):n);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}},Bo=2,fl=.16,df=.05,uf=.05,cf=.15,ml=5,pl=4,ff=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function gl(o,t,a){let n;return Math.round(o.h)>=60&&Math.round(o.h)<=240?n=a?Math.round(o.h)-Bo*t:Math.round(o.h)+Bo*t:n=a?Math.round(o.h)+Bo*t:Math.round(o.h)-Bo*t,n<0?n+=360:n>=360&&(n-=360),n}function hl(o,t,a){if(o.h===0&&o.s===0)return o.s;let n;return a?n=o.s-fl*t:t===pl?n=o.s+fl:n=o.s+df*t,n>1&&(n=1),a&&t===ml&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function vl(o,t,a){let n;return a?n=o.v+uf*t:n=o.v-cf*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function mf(o,t={}){const a=[],n=new Mo(o),l=n.toHsv();for(let d=ml;d>0;d-=1){const u=new Mo({h:gl(l,d,!0),s:hl(l,d,!0),v:vl(l,d,!0)});a.push(u)}a.push(n);for(let d=1;d<=pl;d+=1){const u=new Mo({h:gl(l,d),s:hl(l,d),v:vl(l,d)});a.push(u)}return t.theme==="dark"?ff.map(({index:d,amount:u})=>new Mo(t.backgroundColor||"#141414").mix(a[d],u).toHexString()):a.map(d=>d.toHexString())}var yl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];yl.primary=yl[5];var bl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];bl.primary=bl[5];var wl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];wl.primary=wl[5];var Cl=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Cl.primary=Cl[5];var Al=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Al.primary=Al[5];var Il=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Il.primary=Il[5];var Fl=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Fl.primary=Fl[5];var _l=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_l.primary=_l[5];var ai=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ai.primary=ai[5];var Sl=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Sl.primary=Sl[5];var zl=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];zl.primary=zl[5];var El=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];El.primary=El[5];var Tl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Tl.primary=Tl[5];var kl=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];kl.primary=kl[5];var Rl=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Rl.primary=Rl[5];var xl=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];xl.primary=xl[5];var Pl=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Pl.primary=Pl[5];var Ll=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Ll.primary=Ll[5];var Ul=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Ul.primary=Ul[5];var Nl=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Nl.primary=Nl[5];var Dl=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Dl.primary=Dl[5];var jl=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];jl.primary=jl[5];var Ol=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ol.primary=Ol[5];var Ml=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Ml.primary=Ml[5];var Bl=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Bl.primary=Bl[5];var ql=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ql.primary=ql[5];function Wl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var aF=Wl()?F.useLayoutEffect:F.useEffect;function pf(){return{...F}.useId}var iF=pf();function gf(o,t,a){const n=F.useRef({});return(!("value"in n.current)||a(n.current.condition,t))&&(n.current.value=o(),n.current.condition=t),n.current.value}var hf=dt.__commonJSMin((o=>{})),vf=dt.__commonJSMin(((o,t)=>{t.exports=hf()})),nF=vf(),lF=Number(F.version.split(".")[0]),yf=(o,t)=>{typeof o=="function"?o(t):typeof o=="object"&&o&&"current"in o&&(o.current=t)},bf=(...o)=>{const t=o.filter(Boolean);return t.length<=1?t[0]:a=>{o.forEach(n=>{yf(n,a)})}},wf=(...o)=>gf(()=>bf(...o),o,(t,a)=>t.length!==a.length||t.every((n,l)=>n!==a[l]));function Cf(o,t){if(!o)return!1;if(o.contains)return o.contains(t);let a=t;for(;a;){if(a===o)return!0;a=a.parentNode}return!1}var Gl="data-rc-order",Hl="data-rc-priority",Af="rc-util-key",ii=new Map;function Vl({mark:o}={}){return o?o.startsWith("data-")?o:`data-${o}`:Af}function ni(o){return o.attachTo?o.attachTo:document.querySelector("head")||document.body}function If(o){return o==="queue"?"prependQueue":o?"prepend":"append"}function li(o){return Array.from((ii.get(o)||o).children).filter(t=>t.tagName==="STYLE")}function Kl(o,t={}){if(!Wl())return null;const{csp:a,prepend:n,priority:l=0}=t,d=If(n),u=d==="prependQueue",c=document.createElement("style");c.setAttribute(Gl,d),u&&l&&c.setAttribute(Hl,`${l}`),a?.nonce&&(c.nonce=a?.nonce),c.innerHTML=o;const g=ni(t),{firstChild:m}=g;if(n){if(u){const v=(t.styles||li(g)).filter(y=>{if(!["prepend","prependQueue"].includes(y.getAttribute(Gl)))return!1;const b=Number(y.getAttribute(Hl)||0);return l>=b});if(v.length)return g.insertBefore(c,v[v.length-1].nextSibling),c}g.insertBefore(c,m)}else g.appendChild(c);return c}function Ff(o,t={}){let{styles:a}=t;return a||=li(ni(t)),a.find(n=>n.getAttribute(Vl(t))===o)}function _f(o,t){const a=ii.get(o);if(!a||!Cf(document,a)){const n=Kl("",t),{parentNode:l}=n;ii.set(o,l),o.removeChild(n)}}function Sf(o,t,a={}){const n=ni(a),l=li(n),d={...a,styles:l};_f(n,d);const u=Ff(t,d);if(u)return d.csp?.nonce&&u.nonce!==d.csp?.nonce&&(u.nonce=d.csp?.nonce),u.innerHTML!==o&&(u.innerHTML=o),u;const c=Kl(o,d);return c.setAttribute(Vl(d),t),c}function $l(o){return o?.getRootNode?.()}function zf(o){return $l(o)instanceof ShadowRoot}function Ef(o){return zf(o)?$l(o):null}var si={},Tf=[],kf=o=>{Tf.push(o)};function Rf(o,t){}function xf(o,t){}function Pf(){si={}}function Ql(o,t,a){!t&&!si[a]&&(o(!1,a),si[a]=!0)}function qo(o,t){Ql(Rf,o,t)}function Lf(o,t){Ql(xf,o,t)}qo.preMessage=kf,qo.resetWarned=Pf,qo.noteOnce=Lf;var Uf=dt.__commonJSMin(((o,t)=>{t.exports=d,t.exports.isMobile=d,t.exports.default=d;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function d(u){u||(u={});let c=u.ua;if(!c&&typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;let g=a.test(c)&&!n.test(c)||!!u.tablet&&l.test(c);return!g&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(g=!0),g}})),sF=dt.__toESM(Uf()),dF=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
1
|
+
__useblocks__.define("static/core/271ebf42.js",["require","exports","module","static/core/2ff39ddf.js","static/core/bac4c584.js","static/core/e7620593.js","static/core/49be45c4.js","react","react/jsx-runtime","__delivery__/libs","react-dom","react-dom/client"],function(Xr,Z,tF){const dt=Xr("./2ff39ddf.js"),Xa=Xr("./bac4c584.js"),nf=Xr("./e7620593.js"),nl=Xr("./49be45c4.js");let F=Xr("react");F=dt.__toESM(F);let ei=Xr("react/jsx-runtime"),Hr=Xr("__delivery__/libs"),ll=Xr("react-dom");ll=dt.__toESM(ll);let oF=Xr("react-dom/client");function lf(o,t){if(Xa._typeof(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var n=a.call(o,t||"default");if(Xa._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function sl(o){var t=lf(o,"string");return Xa._typeof(t)=="symbol"?t:t+""}function ri(o,t,a){return(t=sl(t))in o?Object.defineProperty(o,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[t]=a,o}var ti=(0,F.createContext)({});function dl(o){var t,a,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o)){var l=o.length;for(t=0;t<l;t++)o[t]&&(a=dl(o[t]))&&(n&&(n+=" "),n+=a)}else for(a in o)o[a]&&(n&&(n+=" "),n+=a);return n}function ul(){for(var o,t,a=0,n="",l=arguments.length;a<l;a++)(o=arguments[a])&&(t=dl(o))&&(n&&(n+=" "),n+=t);return n}var sf={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},lr=Math.round;function oi(o,t){const a=o.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=a.map(l=>parseFloat(l));for(let l=0;l<3;l+=1)n[l]=t(n[l]||0,a[l]||"",l);return a[3]?n[3]=a[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var cl=(o,t,a)=>a===0?o:o/100;function po(o,t){const a=t||255;return o>a?a:o<0?0:o}var Mo=class tf{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function a(l){return l[0]in t&&l[1]in t&&l[2]in t}if(t)if(typeof t=="string"){let d=function(u){return l.startsWith(u)};var n=d;const l=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(d("rgb"))this.fromRgbString(l);else if(d("hsl"))this.fromHslString(l);else if(d("hsv")||d("hsb"))this.fromHsvString(l);else{const u=sf[l.toLowerCase()];u&&this.fromHexString(parseInt(u,36).toString(16).padStart(6,"0"))}}else if(t instanceof tf)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(a("rgb"))this.r=po(t.r),this.g=po(t.g),this.b=po(t.b),this.a=typeof t.a=="number"?po(t.a,1):1;else if(a("hsl"))this.fromHsl(t);else if(a("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const a=this.toHsv();return a.h=t,this._c(a)}getLuminance(){function t(d){const u=d/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const a=t(this.r),n=t(this.g),l=t(this.b);return .2126*a+.7152*n+.0722*l}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const a=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*a-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()-t/100;return l<0&&(l=0),this._c({h:a,s:n,l,a:this.a})}lighten(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()+t/100;return l>1&&(l=1),this._c({h:a,s:n,l,a:this.a})}mix(t,a=50){const n=this._c(t),l=a/100,d=c=>(n[c]-this[c])*l+this[c],u={r:lr(d("r")),g:lr(d("g")),b:lr(d("b")),a:lr(d("a")*100)/100};return this._c(u)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const a=this._c(t),n=this.a+a.a*(1-this.a),l=d=>lr((this[d]*this.a+a[d]*a.a*(1-this.a))/n);return this._c({r:l("r"),g:l("g"),b:l("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const a=(this.r||0).toString(16);t+=a.length===2?a:"0"+a;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const l=(this.b||0).toString(16);if(t+=l.length===2?l:"0"+l,typeof this.a=="number"&&this.a>=0&&this.a<1){const d=lr(this.a*255).toString(16);t+=d.length===2?d:"0"+d}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),a=lr(this.getHSLSaturation()*100),n=lr(this.getLightness()*100);return this.a!==1?`hsla(${t},${a}%,${n}%,${this.a})`:`hsl(${t},${a}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,a,n){const l=this.clone();return l[t]=po(a,n),l}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const a=t.replace("#","");function n(l,d){return parseInt(a[l]+a[d||l],16)}a.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=a[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=a[6]?n(6,7)/255:1)}fromHsl({h:t,s:a,l:n,a:l}){const d=(t%360+360)%360;if(this._h=d,this._hsl_s=a,this._l=n,this.a=typeof l=="number"?l:1,a<=0){const S=lr(n*255);this.r=S,this.g=S,this.b=S;return}let u=0,c=0,g=0;const m=d/60,v=(1-Math.abs(2*n-1))*a,y=v*(1-Math.abs(m%2-1));m>=0&&m<1?(u=v,c=y):m>=1&&m<2?(u=y,c=v):m>=2&&m<3?(c=v,g=y):m>=3&&m<4?(c=y,g=v):m>=4&&m<5?(u=y,g=v):m>=5&&m<6&&(u=v,g=y);const b=n-v/2;this.r=lr((u+b)*255),this.g=lr((c+b)*255),this.b=lr((g+b)*255)}fromHsv({h:t,s:a,v:n,a:l}){const d=(t%360+360)%360;this._h=d,this._hsv_s=a,this._v=n,this.a=typeof l=="number"?l:1;const u=lr(n*255);if(this.r=u,this.g=u,this.b=u,a<=0)return;const c=d/60,g=Math.floor(c),m=c-g,v=lr(n*(1-a)*255),y=lr(n*(1-a*m)*255),b=lr(n*(1-a*(1-m))*255);switch(g){case 0:this.g=b,this.b=v;break;case 1:this.r=y,this.b=v;break;case 2:this.r=v,this.b=b;break;case 3:this.r=v,this.g=y;break;case 4:this.r=b,this.g=v;break;default:this.g=v,this.b=y}}fromHsvString(t){const a=oi(t,cl);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(t){const a=oi(t,cl);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(t){const a=oi(t,(n,l)=>l.includes("%")?lr(n/100*255):n);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}},Bo=2,fl=.16,df=.05,uf=.05,cf=.15,ml=5,pl=4,ff=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function gl(o,t,a){let n;return Math.round(o.h)>=60&&Math.round(o.h)<=240?n=a?Math.round(o.h)-Bo*t:Math.round(o.h)+Bo*t:n=a?Math.round(o.h)+Bo*t:Math.round(o.h)-Bo*t,n<0?n+=360:n>=360&&(n-=360),n}function hl(o,t,a){if(o.h===0&&o.s===0)return o.s;let n;return a?n=o.s-fl*t:t===pl?n=o.s+fl:n=o.s+df*t,n>1&&(n=1),a&&t===ml&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function vl(o,t,a){let n;return a?n=o.v+uf*t:n=o.v-cf*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function mf(o,t={}){const a=[],n=new Mo(o),l=n.toHsv();for(let d=ml;d>0;d-=1){const u=new Mo({h:gl(l,d,!0),s:hl(l,d,!0),v:vl(l,d,!0)});a.push(u)}a.push(n);for(let d=1;d<=pl;d+=1){const u=new Mo({h:gl(l,d),s:hl(l,d),v:vl(l,d)});a.push(u)}return t.theme==="dark"?ff.map(({index:d,amount:u})=>new Mo(t.backgroundColor||"#141414").mix(a[d],u).toHexString()):a.map(d=>d.toHexString())}var yl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];yl.primary=yl[5];var bl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];bl.primary=bl[5];var wl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];wl.primary=wl[5];var Cl=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Cl.primary=Cl[5];var Al=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Al.primary=Al[5];var Il=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Il.primary=Il[5];var Fl=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Fl.primary=Fl[5];var _l=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_l.primary=_l[5];var ai=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ai.primary=ai[5];var Sl=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Sl.primary=Sl[5];var zl=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];zl.primary=zl[5];var El=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];El.primary=El[5];var Tl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Tl.primary=Tl[5];var kl=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];kl.primary=kl[5];var Rl=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Rl.primary=Rl[5];var xl=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];xl.primary=xl[5];var Pl=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Pl.primary=Pl[5];var Ll=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Ll.primary=Ll[5];var Ul=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Ul.primary=Ul[5];var Nl=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Nl.primary=Nl[5];var Dl=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Dl.primary=Dl[5];var jl=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];jl.primary=jl[5];var Ol=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ol.primary=Ol[5];var Ml=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Ml.primary=Ml[5];var Bl=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Bl.primary=Bl[5];var ql=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ql.primary=ql[5];function Wl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var aF=Wl()?F.useLayoutEffect:F.useEffect;function pf(){return{...F}.useId}var iF=pf();function gf(o,t,a){const n=F.useRef({});return(!("value"in n.current)||a(n.current.condition,t))&&(n.current.value=o(),n.current.condition=t),n.current.value}var hf=dt.__commonJSMin((o=>{})),vf=dt.__commonJSMin(((o,t)=>{t.exports=hf()})),nF=vf(),lF=Number(F.version.split(".")[0]),yf=(o,t)=>{typeof o=="function"?o(t):typeof o=="object"&&o&&"current"in o&&(o.current=t)},bf=(...o)=>{const t=o.filter(Boolean);return t.length<=1?t[0]:a=>{o.forEach(n=>{yf(n,a)})}},wf=(...o)=>gf(()=>bf(...o),o,(t,a)=>t.length!==a.length||t.every((n,l)=>n!==a[l]));function Cf(o,t){if(!o)return!1;if(o.contains)return o.contains(t);let a=t;for(;a;){if(a===o)return!0;a=a.parentNode}return!1}var Gl="data-rc-order",Hl="data-rc-priority",Af="rc-util-key",ii=new Map;function Vl({mark:o}={}){return o?o.startsWith("data-")?o:`data-${o}`:Af}function ni(o){return o.attachTo?o.attachTo:document.querySelector("head")||document.body}function If(o){return o==="queue"?"prependQueue":o?"prepend":"append"}function li(o){return Array.from((ii.get(o)||o).children).filter(t=>t.tagName==="STYLE")}function Kl(o,t={}){if(!Wl())return null;const{csp:a,prepend:n,priority:l=0}=t,d=If(n),u=d==="prependQueue",c=document.createElement("style");c.setAttribute(Gl,d),u&&l&&c.setAttribute(Hl,`${l}`),a?.nonce&&(c.nonce=a?.nonce),c.innerHTML=o;const g=ni(t),{firstChild:m}=g;if(n){if(u){const v=(t.styles||li(g)).filter(y=>{if(!["prepend","prependQueue"].includes(y.getAttribute(Gl)))return!1;const b=Number(y.getAttribute(Hl)||0);return l>=b});if(v.length)return g.insertBefore(c,v[v.length-1].nextSibling),c}g.insertBefore(c,m)}else g.appendChild(c);return c}function Ff(o,t={}){let{styles:a}=t;return a||=li(ni(t)),a.find(n=>n.getAttribute(Vl(t))===o)}function _f(o,t){const a=ii.get(o);if(!a||!Cf(document,a)){const n=Kl("",t),{parentNode:l}=n;ii.set(o,l),o.removeChild(n)}}function Sf(o,t,a={}){const n=ni(a),l=li(n),d={...a,styles:l};_f(n,d);const u=Ff(t,d);if(u)return d.csp?.nonce&&u.nonce!==d.csp?.nonce&&(u.nonce=d.csp?.nonce),u.innerHTML!==o&&(u.innerHTML=o),u;const c=Kl(o,d);return c.setAttribute(Vl(d),t),c}function $l(o){return o?.getRootNode?.()}function zf(o){return $l(o)instanceof ShadowRoot}function Ef(o){return zf(o)?$l(o):null}var si={},Tf=[],kf=o=>{Tf.push(o)};function Rf(o,t){}function xf(o,t){}function Pf(){si={}}function Ql(o,t,a){!t&&!si[a]&&(o(!1,a),si[a]=!0)}function qo(o,t){Ql(Rf,o,t)}function Lf(o,t){Ql(xf,o,t)}qo.preMessage=kf,qo.resetWarned=Pf,qo.noteOnce=Lf;var Uf=dt.__commonJSMin(((o,t)=>{t.exports=d,t.exports.isMobile=d,t.exports.default=d;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function d(u){u||(u={});let c=u.ua;if(!c&&typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;let g=a.test(c)&&!n.test(c)||!!u.tablet&&l.test(c);return!g&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(g=!0),g}})),sF=dt.__toESM(Uf()),dF=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
2
2
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
3
3
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
4
4
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/28ed1e25.js",["require","exports","module","static/core/2ff39ddf.js","static/core/bac4c584.js"],function(g,$,L){const T=g("./2ff39ddf.js"),u=g("./bac4c584.js");function w(t,e){const d={bytes:0,hidden:0,byKind:{}};for(const n of e)if(!(n.finishedAt>t.end||n.finishedAt<t.start)){if(n.transferred===null){d.hidden+=1;continue}d.bytes+=n.transferred,d.byKind[n.kind]=(d.byKind[n.kind]??0)+n.transferred}return d}var y="core:module:";function v(t){const e=[...t].sort((n,r)=>n.start-r.start),d=[];return e.forEach(n=>{const r=d[d.length-1];if(r&&n.start<=r.end){r.end=Math.max(r.end,n.end);return}d.push({start:n.start,end:n.end})}),d}function A(t,e){const d=Math.max(0,t.end-t.start),n=v(e.map(r=>({start:Math.max(t.start,r.startedAt),end:Math.min(t.end,r.finishedAt)})).filter(r=>r.end>r.start)).reduce((r,o)=>r+(o.end-o.start),0);return{networkMs:n,quietMs:d-n}}function P(t){const e=new Map;t.forEach(n=>{if(!n.phase.startsWith(y))return;const r=n.phase.slice(12),o=r.lastIndexOf(":");if(o<=0)return;const s=r.slice(0,o),a=r.slice(o+1),i=e.get(s)??{};a==="ask"?(i.ask=n.at,n.parent&&(i.parent=n.parent)):a==="loaded"?i.loaded=n.at:a==="deps"?i.deps=n.at:a==="ready"&&(i.ready=n.at),e.set(s,i)});const d=[];return e.forEach((n,r)=>{if(n.ask===void 0||n.ready===void 0)return;const o=n.ask,s=n.ready,a=n.deps,i=n.loaded;d.push({id:r,parent:n.parent,askedAt:o,loadedAt:i,depsAt:a,readyAt:s,networkMs:i===void 0?0:i-o,waitingMs:a===void 0?0:a-(i??o),executionMs:a===void 0?0:s-a})}),d}function S(t){const e=new Map;t.forEach(o=>{if(o.parent===void 0)return;const s=e.get(o.parent)??[];s.push(o),e.set(o.parent,s)});let d=t.filter(o=>o.parent===void 0).reduce((o,s)=>o===void 0||s.readyAt>o.readyAt?s:o,void 0);const n=[],r=new Set;for(;d&&!r.has(d.id);)r.add(d.id),n.push(d),d=(e.get(d.id)??[]).reduce((o,s)=>o===void 0||s.readyAt>o.readyAt?s:o,void 0);return n}function E(t,e){const d=u.detectMount(t),n=u.requiredPhases(d),r=new Map;t.forEach(l=>{n.includes(l.phase)&&!r.has(l.phase)&&r.set(l.phase,l.at)});const o=[...r.entries()].sort((l,h)=>l[1]-h[1]),s=q(d),a=o.findIndex(([l])=>l===s),i=a===-1?o:o.slice(0,a+1);return i.slice(1).map(([l,h],m)=>{const[x,p]=i[m],f=A({start:p,end:h},e);return{from:x,to:l,startedAt:p,endedAt:h,durationMs:h-p,networkMs:f.networkMs,quietMs:f.quietMs}})}function q(t){return t==="headless"?u.PHASES.showEnd:u.PHASES.canvasSettled}function M(t,e){const d=t.find(n=>n.phase===e);return d?d.at:null}function j(t,e){return t===null?e:e===null?t:Math.max(t,e)}function z(t,e){const d=u.missingRequiredPhases(t),n=d.length===0,r=t.reduce((p,f)=>p===null||f.at<p?f.at:p,null),o=u.detectMount(t),s=M(t,u.PHASES.canvasPainted),a=o==="headless"?M(t,u.PHASES.showEnd):j(M(t,u.PHASES.canvasSettled),M(t,u.PHASES.editorVisible)),i=P(t),l=i.reduce((p,f)=>p+f.executionMs,0),h=r!==null&&n&&(o==="headless"||s!==null),m=o==="headless"?a:s,x=h&&m!==null?A({start:r,end:m},e):{networkMs:0,quietMs:0};return{startedAt:r,paintedAt:s,settledAt:a,totalMs:h&&s!==null?s-r:null,settledMs:h&&a!==null?a-r:null,settleGapMs:h&&a!==null&&s!==null?a-s:null,segments:h?E(t,e):[],complete:n,missingPhases:d,networkMs:x.networkMs,quietMs:x.quietMs,moduleExecutionMs:l,criticalPath:S(i),transferBeforeFrame:h&&r!==null&&m!==null?w({start:r,end:m},e):{bytes:0,hidden:0,byKind:{}}}}function c(t){return t.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""")}function H(){return"dev"}function k(t,e){return{mode:H(),summary:z(t,e),marks:[...t],resources:[...e]}}function b(t){return t===null?"—":`${Math.round(t)} мс`}function _(t){return t==="dev"?"dev-сервер — AMD-ядро не работает, слой модулей пуст":t==="build"?"собранная версия":"режим неизвестен"}function R(t){const{summary:e}=t,d=e.complete?'<span class="ok">прогон полный</span>':'<span class="bad">прогон неполный — в сравнение не идёт</span>',n=e.missingPhases.length===0?"":`<p class="bad">Не хватает фаз: ${e.missingPhases.map(c).join(", ")}</p>`;return`
|
|
2
2
|
<header>
|
|
3
3
|
<h1>Куда ушло время до показа письма</h1>
|
|
4
4
|
<p class="mode">${c(_(t.mode))}</p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
__useblocks__.define("static/core/a73da823.js",["require","exports","module"],function(d,a,u){function s(c,l="application/octet-stream"){let t=c.trim(),i=l?.trim()||"application/octet-stream";const o=t.indexOf(",");if(t.startsWith("data:")&&o>=0){const e=t.slice(5,o).split(";")[0]?.trim();e&&(i=e),t=t.slice(o+1)}const m=t.replace(/\s/g,""),r=atob(m),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return new Blob([n],{type:i})}Object.defineProperty(a,"base64ToBlob",{enumerable:!0,get:function(){return s}})});
|
|
2
2
|
|
|
3
3
|
(function(){try{if(typeof document<"u"){var t=".blocks-app .image-preview{text-align:center;min-height:100px;position:relative}.blocks-app .image-preview .image-editor-modal{border:1px solid red}.blocks-app .image-preview__edit-button{position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-preview img{border:1px solid var(--ub-colorBorder);border-radius:6px;max-width:100%;max-height:500px}.blocks-app .serach-results .ant-row{align-items:center}.blocks-app .serach-results .blocks-search__divider-wrapper{margin-top:12px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{border-top:1px solid var(--ub-colorBorderSecondary);background:0 0;width:100%;height:1px;min-height:0;margin:0;position:static}.blocks-app .slideshow-container{width:524px;height:350px;margin:auto;position:relative;overflow:hidden}.blocks-app .slideshow-image{opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .image-ai .slideshow-image{width:auto;height:auto}.blocks-app .image-ai__image-item{text-align:center;border-radius:6px;justify-content:center;align-items:center;min-height:100px;display:flex;position:relative}.blocks-app .image-ai__image-item .buttons{justify-content:space-between;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-ai .text-area-input-hybrid{border:none;outline:none;min-height:0;padding:0 0 0 1px}.blocks-app .image-ai .text-area-input-hybrid textarea{height:32px;min-height:32px;padding:3px 11px;line-height:26px}.blocks-app .image-ai__loading{justify-content:center;align-items:center;min-height:150px;display:flex}.blocks-app .image-ai__loading .spin{flex-direction:column;justify-content:center;align-items:center;height:150px;display:flex}.blocks-app .image-ai__loading .status{margin:3px 0 0}.blocks-app .image-ai__preview{border-radius:6px;margin-top:24px;overflow:hidden}.blocks-app .image-ai__preview .image-ai__image-item img{border-radius:calc(var(--ub-borderRadius) * 1px);object-fit:contain;max-height:100%;transition:height 1s;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.blocks-app .image-ai .small{width:302px;height:202px}.blocks-app .image-ai .large{width:524px;height:350px}.blocks-app .image-ai .image-ai__row{padding:0 2px}.blocks-app .image-ai .image-ai__input-affix-wrapper{border-style:solid;border-width:calc(var(--ub-borderWidth) * 1px);border-color:var(--ub-colorFillSecondaryDarken);border-radius:calc(var(--ub-borderRadius) * 1px);width:100%;padding-left:0;display:inline-flex}.blocks-app .image-ai .image-ai__input-affix-wrapper:hover{border-color:var(--ub-borderColorHover)}.blocks-app .image-ai .image-ai__input-affix-wrapper.ant-input-affix-wrapper-focused{border-color:var(--ub-colorPrimaryBorder)}.blocks-app .image-ai .image-ai__textarea{font-size:16px}.blocks-app .image-ai .image-ai__input-icon{font-size:16px;top:0;right:0}.dark .blocks-app .image-ai .image-ai__preview .image-ai__image-item img{background:#2b2b2b;border:1px solid #434343}.dark .blocks-app .image-ai .ant-btn{background:#1f1f1f}.dark .blocks-app .image-ai .ant-btn:hover{color:var(--ub-colorPrimary)}.blocks-app .stock-tab img{border-radius:0;max-width:none;max-height:none}.blocks-app .stock-tab .stock-search-input{padding:0 2px}.blocks-app .stock-tab .my-masonry-grid{text-align:center;width:auto;display:flex}.blocks-app .stock-tab .my-masonry-grid_column{background-clip:padding-box}.blocks-app .stock-tab .list-item{cursor:pointer;background:#f0f2f5;border:1px solid #f0f2f5;border-radius:6px;min-height:100px;max-height:100px;margin-bottom:20px;transition:all .3s;display:inline-block;position:relative;overflow:hidden}.blocks-app .stock-tab .list-item .overlay-image{opacity:0;background-size:cover;width:110px;height:40px;transition:opacity .5s;position:absolute;bottom:10px;right:10px}.blocks-app .stock-tab .list-item .ant-spin{color:#f0f2f5;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.blocks-app .stock-tab .list-item img{object-fit:cover;opacity:0;border-radius:6px;height:auto;transition:opacity .5s ease-in-out;display:block}.blocks-app .stock-tab .list-item.loaded{border:1px solid #d9d9d9;max-height:1000px}.blocks-app .stock-tab .list-item.loaded img{opacity:1;height:100%}.blocks-app .stock-tab .list-item.loaded .loaded-image{opacity:.5}.blocks-app .stock-tab .list-item:hover{box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017}.blocks-app .stock-tab .list-item:hover p.creator-info,.blocks-app .stock-tab .list-item:hover .overlay-image{opacity:1}.blocks-app .stock-tab .list-item p.creator-info{color:#fff;opacity:0;background-color:#00000080;border-radius:0 0 6px;margin:0;padding:5px;font-size:10px;line-height:1.2;position:absolute;bottom:0;right:0}.blocks-app .stock-tab .list-item p.creator-info:hover a{color:#fff;text-decoration:underline}.blocks-app .stock-tab .list-item p.creator-info a{color:#fff;text-decoration:none}.blocks-app .stock-color-filter{display:flex}.blocks-app .stock-color-filter label{border-width:1px;width:24px;height:24px;margin:4px;padding:0;font-size:0;border-radius:6px!important}.blocks-app .stock-color-filter label.all-colors{background-image:linear-gradient(135deg,red,#ff7f00,#ff0,#0f0,#00f,#8b00ff)}.blocks-app .stock-color-filter label.black-color{background:#222}.blocks-app .stock-color-filter label.bw-color{background-image:linear-gradient(135deg,#222 50%,#fff 50%)}.blocks-app .stock-color-filter label.white-color{background:#fff}.blocks-app .stock-color-filter label.orange-color{background:#fa8c16}.blocks-app .stock-color-filter label.red-color{background:#f5222d}.blocks-app .stock-color-filter label.purple-color{background:#722ed1}.blocks-app .stock-color-filter label.magenta-color{background:#eb2f96}.blocks-app .stock-color-filter label.green-color{background:#52c41a}.blocks-app .stock-color-filter label.teal-color{background:#43c3c3}.blocks-app .stock-color-filter label.blue-color{background:#1677ff}.blocks-app .stock-color-filter .ant-radio-button-wrapper:not(:first-child):before{display:none}.blocks-app .serach-results{padding-top:6px}.blocks-app .serach-results .stock-search-input{width:322px;padding:0 2px}.blocks-app .serach-results .blocks-search__divider-wrapper{width:calc(100% + 48px);margin-top:12px;margin-left:-24px;margin-right:-24px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{pointer-events:none;border-top:1px solid var(--ub-colorBorderSecondary);background:linear-gradient(180deg, var(--ub-colorBgContainerDisabled), transparent 40%);border-bottom:none;width:100%;height:20px;min-height:20px;margin:0;position:relative;bottom:auto;left:auto;right:auto}.dark .blocks-app .image-center .stock-tab .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{background:linear-gradient(180deg, var(--ub-colorBgBase), transparent 40%)}.dark .blocks-app .stock-tab .list-item{background:#2b2b2b;border:1px solid #2b2b2b}.dark .blocks-app .stock-tab .list-item.loaded{border:1px solid #434343}.blocks-app .image-center .image-center-image-preview{justify-content:center;align-items:center;display:flex}.blocks-app .image-center .ant-divider-horizontal{pointer-events:none;z-index:1;background:linear-gradient(180deg, var(--ub-colorBgContainerDisabled), transparent 40%);width:calc(100% + 48px);height:20px;margin:24px -24px 0;position:absolute;bottom:-19px}.dark .blocks-app .image-center .ant-divider-horizontal{background:linear-gradient(180deg, var(--ub-colorBgBase), transparent 40%)}.blocks-app .image-center .ant-divider-horizontal.ant-divider-with-text{background:0 0;width:calc(100% + 38px);margin:0 -24px 20px;position:relative;top:0}.blocks-app .image-center img{border-radius:4px;max-width:524px;max-height:352px}.blocks-app .image-center .image-size{justify-content:center;margin-top:6px;font-size:14px;line-height:22px;display:flex}.blocks-app .image-center .ant-upload.ant-upload-drag{border-radius:6px}.blocks-app .image-center .ant-modal-body .stock-search-input{margin-bottom:0}.blocks-app .image-center .ant-modal-body .serach-results .stock-search-input{margin-bottom:10px}.blocks-app .image-center .ant-modal-body .ant-form:not(.serach-results) .ant-form-item:last-child{margin-bottom:0}.blocks-app .image-center .ant-modal-body .ant-tabs{transition:all .7s cubic-bezier(.075,.82,.165,1)}.blocks-app .image-center .ant-modal-body .ant-tabs .ant-tabs-content-holder{overflow-y:clip}.blocks-app .ant-modal{transition:width .7s ease-in-out}",e=window.__useblocks_styles__||(window.__useblocks_styles__={sheets:{},order:[]}),r=t;if(!e.sheets[r]){var o=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(o=new CSSStyleSheet,o.replaceSync(t))}catch{o=null}if(o){if(!e.host||!e.host.isConnected||!e.host.sheet){var a=document.createElement("style");a.setAttribute("data-useblocks","true"),document.head.appendChild(a),e.host=a}for(var l=e.host.sheet,p=0;p<o.cssRules.length;p++)try{l.insertRule(o.cssRules[p].cssText,l.cssRules.length)}catch{}(e.texts||(e.texts=[])).push(t),(e.listeners||[]).forEach(function(i){try{i(t)}catch{}})}else{var a=document.createElement("style");a.setAttribute("data-useblocks","true"),a.appendChild(document.createTextNode(t)),document.head.appendChild(a)}e.sheets[r]=!0,e.order.push(r)}}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
4
|
-
__useblocks__.define("static/core/
|
|
4
|
+
__useblocks__.define("static/core/30d6bd8a.js",["require","exports","module","static/core/2ff39ddf.js","static/core/648f17a7.js","static/core/bac4c584.js","static/core/73f5e024.js","static/core/a73da823.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(ie,kt,fn){const Xe=ie("./2ff39ddf.js"),be=ie("./648f17a7.js"),s=ie("./bac4c584.js"),ne=ie("./73f5e024.js"),It=ie("./a73da823.js");let e=ie("react");e=Xe.__toESM(e);let t=ie("react/jsx-runtime"),m=ie("__delivery__/libs"),xt=ie("vite/preload-helper");var _t=Xe.__toESM(s.require_prop_types()),Et=s.lazyRoute(()=>(0,xt.__vitePreload)(()=>Promise.resolve().then(()=>ie("./68988386.js")),void 0,{}.url));function St(r){return s.useSelector(s.selectSecondModal)?(0,t.jsx)(e.Suspense,{fallback:null,children:(0,t.jsx)(Et,{...r})}):null}var jt=({currentImageLink:r,newLink:o,previewDisplayUrl:i,resolvedPreviewObjectUrl:l,resolvedPreviewBlob:u,resolveImageBlob:c,onSave:f,uploadImageResultIsLoading:p})=>{const g=i||l;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"image-preview",children:[p&&(0,t.jsx)("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:s.emCssVar("colorBgLayout"),zIndex:10,opacity:.7},children:(0,t.jsx)(m.ui_kit$Spin,{size:"large"})}),g&&(0,t.jsx)("img",{alt:"uploadedImage",src:g})]})}),(0,t.jsx)(St,{currentImageLink:r,prefetchedBlob:u,resolveImageBlob:c,newLink:o,onSave:f,uploadImageResultIsLoading:p})]})},_e={Pixel:"Pixel",Percent:"Percent"},et={unit:_e.Percent,value:80};function Rt(r){return typeof r=="number"?{unit:_e.Percent,value:r*100}:typeof r=="string"?/^(\d*(\.\d+)?)px$/.exec(r)?{unit:_e.Pixel,value:parseFloat(r)}:/^(\d*(\.\d+)?)%$/.exec(r)?{unit:_e.Percent,value:parseFloat(r)}:et:et}function Lt(r,o){const i=Rt(r);let l;return i.unit===_e.Pixel?l=`${i.value}px`:l=`${100-i.value}%`,o?`${l} 0px 0px 0px`:`0px 0px ${l} 0px`}function tt({next:r,hasMore:o,children:i,loader:l,scrollThreshold:u=.8,endMessage:c,style:f,height:p,scrollableTarget:g,hasChildren:w,inverse:I=!1,pullDownToRefresh:y=!1,pullDownToRefreshContent:h,releaseToRefreshContent:x,pullDownToRefreshThreshold:k=100,refreshFunction:L,onScroll:b,dataLength:S,initialScrollY:R,className:F="",role:Q,tabIndex:D,id:G,...z}){const[W,H]=(0,e.useState)(!1),[T,q]=(0,e.useState)(!1),[V,re]=(0,e.useState)(0),_=(0,e.useRef)(null),Y=(0,e.useRef)(null),N=(0,e.useRef)(null),B=(0,e.useRef)(r);B.current=r;const ee=(0,e.useRef)(L);ee.current=L;const P=(0,e.useRef)(k);P.current=k;const n=(0,e.useRef)(!1),A=(0,e.useRef)(!1),j=(0,e.useRef)(0),$=(0,e.useRef)(0),le=(0,e.useRef)(0),E=(0,e.useCallback)(()=>g instanceof HTMLElement?g:typeof g=="string"?document.getElementById(g):null,[g]);(0,e.useEffect)(()=>{if(typeof S>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(y&&typeof L!="function")throw new Error(`Mandatory prop "refreshFunction" missing.
|
|
5
5
|
Pull Down To Refresh functionality will not work
|
|
6
6
|
as expected. Check README.md for usage'`);if(typeof R=="number"){const U=p?_.current:E();U&&U.scrollHeight>R&&U.scrollTo(0,R)}},[]),(0,e.useEffect)(()=>{n.current=!1,H(!1)},[S]),(0,e.useEffect)(()=>{if(!o||typeof IntersectionObserver>"u")return;const U=Y.current;if(!U)return;const Z=p?_.current:E(),O=new IntersectionObserver(([te])=>{!te.isIntersecting||n.current||(n.current=!0,H(!0),B.current())},{root:Z,rootMargin:Lt(u,I),threshold:0});return O.observe(U),()=>O.disconnect()},[o,u,I,p,E]),(0,e.useEffect)(()=>{var U;if(!b)return;const Z=(U=p?_.current:E())!==null&&U!==void 0?U:typeof window<"u"?window:null;if(!Z)return;const O=te=>{setTimeout(()=>b(te),0)};return Z.addEventListener("scroll",O),()=>Z.removeEventListener("scroll",O)},[b,p,E]),(0,e.useEffect)(()=>{var U,Z;if(!y)return;const O=(U=p?_.current:E())!==null&&U!==void 0?U:typeof window<"u"?window:null;if(!O)return;if(!((Z=N.current)===null||Z===void 0)&&Z.firstChild){const K=N.current.firstChild.getBoundingClientRect().height;le.current=K,re(K)}const te=K=>{(O instanceof HTMLElement?O.scrollTop:document.documentElement.scrollTop)>0||(A.current=!0,K instanceof MouseEvent?j.current=K.pageY:K instanceof TouchEvent&&(j.current=K.touches[0].pageY),$.current=j.current,_.current&&(_.current.style.willChange="transform",_.current.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},v=K=>{if(!A.current||(K instanceof MouseEvent?$.current=K.pageY:K instanceof TouchEvent&&($.current=K.touches[0].pageY),$.current<j.current))return;const se=$.current-j.current;se>=P.current&&q(!0),!(se>le.current*1.5)&&_.current&&(_.current.style.overflow="visible",_.current.style.transform=`translate3d(0px, ${se}px, 0px)`)},J=()=>{j.current=0,$.current=0,A.current=!1,q(K=>{var se;return K&&((se=ee.current)===null||se===void 0||se.call(ee)),!1}),requestAnimationFrame(()=>{_.current&&(_.current.style.overflow="auto",_.current.style.transform="none",_.current.style.willChange="unset")})};return O.addEventListener("touchstart",te),O.addEventListener("touchmove",v),O.addEventListener("touchend",J),O.addEventListener("mousedown",te),O.addEventListener("mousemove",v),O.addEventListener("mouseup",J),()=>{O.removeEventListener("touchstart",te),O.removeEventListener("touchmove",v),O.removeEventListener("touchend",J),O.removeEventListener("mousedown",te),O.removeEventListener("mousemove",v),O.removeEventListener("mouseup",J)}},[y,p,E]);const ve={height:p??"auto",overflow:"auto",WebkitOverflowScrolling:"touch",...f},ae=w||!!(i&&i instanceof Array&&i.length),pe=y&&p?{overflow:"auto"}:{},Ce=o?(0,t.jsx)("div",{ref:Y,style:{height:1}}):null;return(0,t.jsx)("div",{style:pe,className:"infinite-scroll-component__outerdiv",children:(0,t.jsxs)("div",{...z,role:Q,tabIndex:D,id:G,className:["infinite-scroll-component",F].filter(Boolean).join(" "),ref:_,style:ve,children:[y&&(0,t.jsx)("div",{style:{position:"relative"},ref:N,children:(0,t.jsx)("div",{style:{position:"absolute",left:0,right:0,top:-1*V},children:T?x:h})}),i,!W&&!ae&&o&&l,W&&o&&l,Ce,!o&&c]})})}function Ot(r,o){if(r==null)return{};var i=Pt(r,o),l,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(u=0;u<c.length;u++)l=c[u],!(o.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(r,l)&&(i[l]=r[l])}return i}function Pt(r,o){if(r==null)return{};for(var i={},l=Object.keys(r),u,c=0;c<l.length;c++)u=l[c],!(o.indexOf(u)>=0)&&(i[u]=r[u]);return i}function Pe(){return Pe=Object.assign||function(r){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r},Pe.apply(this,arguments)}function nt(r,o){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);o&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),i.push.apply(i,l)}return i}function Ee(r){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?nt(Object(i),!0).forEach(function(l){Ut(r,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):nt(Object(i)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(i,l))})}return r}function Ut(r,o,i){return o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}var Dt={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},Te=2,Ne=class extends e.default.Component{constructor(r){super(r),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this);let o;this.props.breakpointCols&&this.props.breakpointCols.default?o=this.props.breakpointCols.default:o=parseInt(this.props.breakpointCols)||Te,this.state={columnCount:o}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){if(!window||!window.requestAnimationFrame){this.reCalculateColumnCount();return}window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})}reCalculateColumnCount(){const r=window&&window.innerWidth||1/0;let o=this.props.breakpointCols;typeof o!="object"&&(o={default:parseInt(o)||Te});let i=1/0,l=o.default||Te;for(let u in o){const c=parseInt(u);c>0&&r<=c&&c<i&&(i=c,l=o[u])}l=Math.max(1,parseInt(l)||1),this.state.columnCount!==l&&this.setState({columnCount:l})}itemsInColumns(){const r=this.state.columnCount,o=new Array(r),i=e.default.Children.toArray(this.props.children);for(let l=0;l<i.length;l++){const u=l%r;o[u]||(o[u]=[]),o[u].push(i[l])}return o}renderColumns(){const{column:r,columnAttrs:o={},columnClassName:i}=this.props,l=this.itemsInColumns(),u=`${100/l.length}%`;let c=i;c&&typeof c!="string"&&(this.logDeprecated('The property "columnClassName" requires a string'),typeof c>"u"&&(c="my-masonry-grid_column"));const f=Ee(Ee(Ee({},r),o),{},{style:Ee(Ee({},o.style),{},{width:u}),className:c});return l.map((p,g)=>e.default.createElement("div",Pe({},f,{key:g}),p))}logDeprecated(r){}render(){const r=this.props,{children:o,breakpointCols:i,columnClassName:l,columnAttrs:u,column:c,className:f}=r,p=Ot(r,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let g=f;return typeof f!="string"&&(this.logDeprecated('The property "className" requires a string'),typeof f>"u"&&(g="my-masonry-grid")),e.default.createElement("div",Pe({},p,{className:g}),this.renderColumns())}};Ne.defaultProps=Dt;function Be(r,o){return r?r.exhausted?{...r,src:null}:{...r,src:r.src||o||null}:null}function st({items:r,getItemId:o,getRequestUrl:i,createController:l}){const[u,c]=(0,e.useState)({}),f=(0,e.useRef)(new Map),p=(0,e.useCallback)(g=>{const w=o(g),I=i(g),y=`${w}:${I}`;if(f.current.has(y))return{itemId:w,requestUrl:I,cacheKey:y,controller:f.current.get(y)};const h=l(I);return f.current.set(y,h),{itemId:w,requestUrl:I,cacheKey:y,controller:h}},[l,o,i]);return(0,e.useEffect)(()=>{const g=new Set,w={},I=r.map(y=>{const{itemId:h,cacheKey:x,controller:k}=p(y);g.add(x),w[h]=k.src;const L=Be(k.handleChangeSrc?.(),k.src);return L?.changed&&L.src&&(w[h]=L.src),k.subscribeToSrcChange?.(b=>{const S=Be(b,k.src);!S?.changed||!S.src||c(R=>R[h]===S.src?R:{...R,[h]:S.src})})}).filter(Boolean);return f.current.forEach((y,h)=>{g.has(h)||f.current.delete(h)}),c(w),()=>{I.forEach(y=>y?.())}},[p,r]),{getDisplaySrc:(0,e.useCallback)(g=>{const{itemId:w,requestUrl:I,controller:y}=p(g);return u[w]||y.src||I},[u,p]),handleLoad:(0,e.useCallback)(g=>{p(g).controller.handleSuccess()},[p]),handleError:(0,e.useCallback)(g=>{const{itemId:w,controller:I}=p(g),y=Be(I.handleError(),I.src);y?.changed&&y.src&&c(h=>({...h,[w]:y.src}))},[p])}}var rt="blocks",Mt=({setCurrentImageLink:r,setModalHeight:o,setModalWidth:i,setImageStockList:l,imageStockList:u,currentReq:c,setCurrentReq:f,inputRef:p,setStockLink:g,customRequest:w})=>{const I=s.useAppConfig(),y=s.useIsStandalone(),[h,x]=(0,e.useState)(!1),[k,L]=(0,e.useState)(2),{__:b}=s.useI18n(),S=s.useNotification(),[R]=s.useLazyGetUnsplashImageQuery(),[F]=s.useLazyGetSearchImageQuery(),Q=(0,e.useCallback)(n=>n instanceof Error||typeof n?.message=="string"&&n.message?n.message:typeof n?.error?.message=="string"&&n.error.message?n.error.message:b("Failed to load stock images through the configured proxy chain."),[b]),D=(0,e.useCallback)(n=>{S.error({id:"STOCK_IMAGES_SEARCH_FAILED",title:b("Failed to load stock images"),description:Q(n)})},[b,Q,S]),G=async()=>{h||(x(!0),F({query:c,page:k}).then(n=>{if(n?.error){D(n.error),x(!1);return}const A=n?.data?.results||[];l(j=>[...j,...A]),x(!1),L(j=>j+1)}).catch(()=>{x(!1)}))};(0,e.useEffect)(()=>{c.keywords!==""&&z()},[c.color,c.orientation]);const z=async()=>{const n=await F({query:c,page:1});if(n?.error){D(n.error),l([]);return}const A=n?.data?.results||[];A.length>0?(l(A),setTimeout(()=>{i(1060),o("84vh")},0)):l([])},[W,H]=(0,e.useState)(null),T=(0,e.useCallback)((n,A,j)=>`${n}${n.includes("?")?"&":"?"}w=${A}&q=${j}`,[]),q=(0,e.useCallback)(n=>be.getProxiedUrl(n,{config:I,standalone:y,resourceType:"stockImages",intent:"display"}),[I,y]),V=(0,e.useCallback)(n=>n.id,[]),re=(0,e.useCallback)(n=>T(n.urls.raw,644,96),[T]),{getDisplaySrc:_,handleLoad:Y,handleError:N}=st({items:u,getItemId:V,getRequestUrl:re,createController:q}),B=n=>A=>{Y(n),A.target.parentNode.classList.add("loaded")},ee=n=>()=>{N(n)},P=(n,A,j)=>{R(A.download_location),H(j),setTimeout(()=>H(null),2e3),g(`${n.raw}&w=1200&q=96`),r(`${n.raw}&w=1200&q=96`),w(`${n.raw}&w=1200&q=96`)};return(0,t.jsxs)("div",{className:"stock-tab",children:[(0,t.jsxs)(m.ui_kit$Form,{onValuesChange:z,className:u.length>0?"serach-results":"",children:[(0,t.jsxs)(m.ui_kit$Row,{gutter:24,children:[(0,t.jsx)(m.ui_kit$Col,{span:u.length>0?"":24,children:(0,t.jsx)(m.ui_kit$Form.Item,{className:"stock-search-input",children:(0,t.jsx)(m.ui_kit$SearchInput,{onSearch:z,allowClear:!0,size:u.length>0?"medium":"large",placeholder:b("Search image"),value:c.keywords,onChange:n=>f(A=>({...A,keywords:n.target.value})),ref:p,spellCheck:"false",enterButton:!1})})}),u.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.ui_kit$Col,{children:(0,t.jsxs)(m.ui_kit$Radio.Group,{defaultValue:"",onChange:n=>f(A=>({...A,orientation:n.target.value})),children:[(0,t.jsx)(m.ui_kit$Tooltip,{title:b("All"),placement:"top",children:(0,t.jsx)(m.ui_kit$Radio.Button,{value:"",children:(0,t.jsx)(s.EmIcons,{icon:"MixedView",component:m.icons$MixedView})})}),(0,t.jsx)(m.ui_kit$Tooltip,{title:b("Landscape"),placement:"top",children:(0,t.jsx)(m.ui_kit$Radio.Button,{value:"landscape",children:(0,t.jsx)(s.EmIcons,{icon:"LandscapeView",component:m.icons$LandscapeView})})}),(0,t.jsx)(m.ui_kit$Tooltip,{title:b("Portrait"),placement:"top",children:(0,t.jsx)(m.ui_kit$Radio.Button,{value:"portrait",children:(0,t.jsx)(s.EmIcons,{icon:"PortraitView",component:m.icons$PortraitView})})}),(0,t.jsx)(m.ui_kit$Tooltip,{title:b("Squarish"),placement:"top",children:(0,t.jsx)(m.ui_kit$Radio.Button,{value:"squarish",children:(0,t.jsx)(s.EmIcons,{icon:"SquareView",component:m.icons$SquareView})})})]})}),(0,t.jsx)(m.ui_kit$Col,{children:(0,t.jsx)(m.ui_kit$RadioColorFilter,{defaultValue:"",onChange:n=>f(A=>({...A,color:n.target.value})),options:[{value:"",colorClass:"all-colors",label:b("All")},{value:"black",colorClass:"black-color",label:b("Black")},{value:"black_and_white",colorClass:"bw-color",label:b("Black and White")},{value:"white",colorClass:"white-color",label:b("White")},{value:"orange",colorClass:"orange-color",label:b("Orange")},{value:"red",colorClass:"red-color",label:b("Red")},{value:"purple",colorClass:"purple-color",label:b("Purple")},{value:"magenta",colorClass:"magenta-color",label:b("Magenta")},{value:"green",colorClass:"green-color",label:b("Green")},{value:"teal",colorClass:"teal-color",label:b("Teal")},{value:"blue",colorClass:"blue-color",label:b("Blue")}],tooltipPlacement:"top"})})]})]}),u.length>0&&(0,t.jsx)("div",{className:"blocks-search__divider-wrapper",children:(0,t.jsx)("div",{className:"ant-divider ant-divider-horizontal",role:"separator"})})]}),(0,t.jsx)("div",{className:"serach-output-wrapper",style:{marginRight:-10},children:u.length>0&&(0,t.jsx)("div",{id:"scrollableDiv",style:{width:"100%",height:"calc(84vh - 148px)",overflow:"auto",paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:"0",boxSizing:"unset"},children:(0,t.jsx)(tt,{dataLength:u&&u.length,next:G,hasMore:u,endMessage:(0,t.jsxs)(m.ui_kit$Divider,{plain:!0,children:[b("That`s all we could find.")," 🤐"]}),scrollableTarget:"scrollableDiv",style:{overflow:"visible"},loader:null,children:(0,t.jsx)(Ne,{breakpointCols:{default:3},className:"my-masonry-grid",columnClassName:"my-masonry-grid_column",children:u.map(n=>(0,t.jsxs)("div",{className:"list-item",onClick:()=>P(n.urls,n.links,n.id),children:[(0,t.jsx)("img",{className:W===n.id?"loaded-image":"",width:"322px",src:_(n),alt:n.description,onLoad:B(n),onError:ee(n)}),(0,t.jsxs)("p",{className:"creator-info",onClick:A=>A.stopPropagation(),children:["Photo by"," ",(0,t.jsx)("a",{target:"_blank",href:`${n.user.links.html}?utm_source=${rt}&utm_medium=referral`,rel:"noreferrer",children:n.user.name})," ","on"," ",(0,t.jsx)("a",{target:"_blank",href:`https://unsplash.com/?utm_source=${rt}&utm_medium=referral`,rel:"noreferrer",children:"Unsplash"})]}),W===n.id&&(0,t.jsx)(m.ui_kit$Spin,{className:"ant-spin",size:"small"})]},n.id))})})})})]})};function at(r){return/^(https?:)?\/\//i.test(r.trim())}function Gt(r){const o=r.trim();return at(o)||/^data:/i.test(o)?o:`data:image/jpeg;base64, ${r}`}var Tt=({images:r,transitionDuration:o=1e3})=>{const[i,l]=(0,e.useState)([]);return(0,e.useEffect)(()=>{if(r.length>0){const u=r[r.length-1];l(c=>[...c,{src:u,opacity:0}]),setTimeout(()=>{l(c=>c.map((f,p)=>p===c.length-1?{...f,opacity:1}:f))},1e3)}},[r]),(0,t.jsx)("div",{className:"slideshow-container",children:i.map((u,c)=>(0,t.jsx)("img",{src:Gt(u.src),alt:`Slide ${c+1}`,className:"slideshow-image",style:{opacity:u.opacity,transition:`opacity ${o}ms linear`}},c))})};function Nt({setModalHeight:r,customRequest:o,aiTabRef:i,isImageUploaded:l,setIsImageUploaded:u,aiImageRequest:c,imageAiList:f,setImageAiList:p,isLoadingAi:g,setIsLoadingAi:w,onPluginAiImageLimitExceeded:I,onImageGenerateLimitExceeded:y}){const{__:h}=s.useI18n(),x=s.useAppConfig(),k=s.useNotification(),L=s.usePushToDataLayer(),{blockId:b}=s.useRouteParams(),S=s.useEditorProjectId(),R=s.useRouteEmailId(),[F]=s.useLazySendAiImageRequestQuery(),[Q,{data:D=[]}]=s.useLazyGetAiImageSSEQuery(),G=s.useProjectPlanLimitPreflight(),z=x?.sendAIImageRequest||F,W=x?.trigger||Q,H=x?.handleLimitUsageEmitter||s.useEventEmitter(be.events.ON_LIMIT_ID),[T,q]=(0,e.useState)(0),[V,re]=(0,e.useState)(null),[_,Y]=(0,e.useState)(!1),[N,B]=(0,e.useState)(h("Evaluating the task")),[ee,P]=(0,e.useState)(!1),n=R||b,{limits:A}=x?.limits?x:{limits:{ai_img_limit:0}},{ai_img_limit:j}=A,$=!!(x.limits&&x.counters)&&!0,le=s.useEventEmitter(be.events.AI_IMAGE_REQUEST_ID).hasListeners(),E=ne.shouldCountAiUsage({limitsInPlugin:$,hostedAiActive:le}),ve=!le&&j>0&&T>=j,ae=(0,e.useCallback)(()=>{H.fire({name:"AiImgCount",count:T+1})},[H,T]),pe=(0,e.useMemo)(()=>!ve&&(!E||j===0||T<j),[ve,E,T,j]),Ce=(0,e.useCallback)(async()=>{B(h("Evaluating the task")),c!==""&&!g&&(w(!0),P(!0),p([]),L({event:"submit_form",action:"ai_image_generation",entity_id:R,project_id:S}),z({body:{project_id:S,request:"create-image",connection:"midjourney",message:c}}).then(({data:v,error:J})=>{if(J)throw J;if(v.data.status===401)throw new Error(s.ERROR);if(v?.data?._eventResult){p(v.data.task.images),w(!1),P(!1),B(h("Evaluating the task"));return}v?.data.status===200?(v?.data.task.id&&(B(v.data.task.message),re(v.data.task.id)),v.message&&k.success({id:"AI_IMAGE_SEND_SUCCESS",title:v.message,placement:"bottomRight",data:c}),W({task_id:v?.data.task.id,entity_id:n})):(w(!1),P(!1),k.error({id:"AI_IMAGE_SEND_ERROR",title:v?.message||h("Something went wrong, please try again"),placement:"bottomRight",data:c,innerException:v}))}).catch(v=>{w(!1),P(!1),(v?.error||v?.data)&&k.fromError("AI_IMAGE_SEND_ERROR",c,v.error||v)}))},[c,g,w,P,p,L,R,S,z,k,W,n,h]),U=(0,e.useCallback)(async()=>{pe?(E&&(q(v=>v+1),ae()),Ce()):$&&(I?I():k.error({title:h("The usage limit has been exceeded"),description:h(`The maximum number of requests for the current subscription period has been reached.
|
|
7
7
|
Select the appropriate plan to fulfil more requests`),placement:"bottomRight"}))},[pe,$,le,E,G,y,q,ae,Ce,k,h,I]);(0,e.useEffect)(()=>{$&&q(x?.counters?.ai_img_counter||0)},[x,$]);const Z=s.useEventEmitter(be.events.AI_IMAGE_PROGRESS_ID);(0,e.useEffect)(()=>{const v=Z.event(({progress:J,status:K})=>{B(K||`${Math.round(J)}%`)});return()=>v.dispose()},[Z]);const O=(0,e.useCallback)(async v=>{if(!l){u(!0);try{const J=at(v)?await(await fetch(v)).blob():It.base64ToBlob(v);o({file:new File([J],"image.jpeg",{type:J.type||"image/jpeg"})})}catch{u(!1)}}},[l,u,o]),te=(0,e.useCallback)(v=>{v.status!=="error"&&v.status!=="Canceled"?v.images?(B(v.status),v.progress===100&&(p(v.images),B(h("Evaluating the task")),re(null),P(!1))):(p([v.data]),w(!1)):(w(!1),P(!1),k.error({id:"AI_IMAGE_GET_ERROR",title:h("Something went wrong, please try again"),placement:"bottomRight",data:V}))},[p,B,h,w,r,V,k,P]);return(0,e.useEffect)(()=>{D.length>1&&te(D[D.length-1])},[D,te]),(0,e.useEffect)(()=>{(g||f.length>0)&&setTimeout(()=>{let v=550;i.current&&(v=i.current.offsetHeight+68),r(v)},0)},[i,D,f.length,g,r]),{aiImageCounter:T,setAiImageCounter:q,currentAiImgLimits:j,isFieldsDisabled:ve,canGenerateImage:pe,aiImageRequest:c,imageAiList:f,setImageAiList:p,isLoadingAi:g,setIsLoadingAi:w,loadingDuringGeneration:ee,setLoadingDuringGeneration:P,requestStatus:N,setRequestStatus:B,handleGenerate:U,handleLimitAiImgCount:ae,convertBase64ToFile:O,isShiftPressed:_,setIsShiftPressed:Y,currentReqId:V,setCurrentReqId:re,limitsInPlugin:$}}var Bt=({setModalHeight:r,customRequest:o,aiTabRef:i,inputAiRef:l,isImageUploaded:u,setIsImageUploaded:c,aiImageRequest:f,setAiImageRequest:p,imageAiList:g,setImageAiList:w,isLoadingAi:I,setIsLoadingAi:y})=>{const h=s.useAppNavigate();s.useDispatch();const x=s.useOpenPlanCatalog(),{__:k,_n:L}=s.useI18n(),b=s.useAppConfig(),[S,R]=(0,e.useState)(!1),[F,Q]=(0,e.useState)(null),{aiImageCounter:D,currentAiImgLimits:G,loadingDuringGeneration:z,requestStatus:W,handleGenerate:H,convertBase64ToFile:T,isShiftPressed:q,setIsShiftPressed:V,limitsInPlugin:re}=Nt({setModalHeight:r,customRequest:o,aiTabRef:i,isImageUploaded:u,setIsImageUploaded:c,aiImageRequest:f,imageAiList:g,setImageAiList:w,isLoadingAi:I,setIsLoadingAi:y,onPluginAiImageLimitExceeded:()=>R(!0),onImageGenerateLimitExceeded:Q}),_=S&&G>0?s.getAiTariffUpgradeStep(G):null,Y=_?s.getLimitUpgradePresetDefinition(_.presetId):null,N=F?s.getLimitUpgradePresetDefinition(F.presetId):null,[B,ee]=(0,e.useState)(!1),P=(0,e.useCallback)(()=>ee(!0),[]),n=(0,e.useCallback)(()=>ee(!1),[]),A=(0,e.useCallback)(E=>p(E.target.value),[p]),j=(0,e.useCallback)(E=>{E.key==="Shift"?V(!0):E.key==="Enter"&&!q&&(E.preventDefault(),H())},[q,H,V]),$=(0,e.useCallback)(E=>{E.key==="Shift"&&V(!1)},[V]),le=g[g.length-1];return(0,t.jsxs)("div",{className:"image-ai",children:[Y&&_?(0,t.jsx)(ne.LimitUpgradeModal$1,{open:!0,onClose:()=>R(!1),title:k(Y.titleKey),subtitle:k(Y.subtitleKey),usageResource:Y.usageResource,previousDisplay:s.presetLimitDisplay(_.previousLimit),nextDisplay:s.presetLimitDisplay(_.nextLimit),onChangePlan:()=>{R(!1),x()}}):null,N&&F?(0,t.jsx)(ne.LimitUpgradeModal$1,{open:!0,onClose:()=>Q(null),title:k(N.titleKey),subtitle:k(N.subtitleKey),usageResource:N.usageResource,previousDisplay:s.presetLimitDisplay(F.previousLimit),nextDisplay:s.presetLimitDisplay(F.nextLimit),onChangePlan:()=>{Q(null),x()}}):null,re&&(0,t.jsx)(m.ui_kit$LimitsCounter,{text:`${D} ${k("of")} ${G>0?G:"∞"} images ${L("was used","were used",D)}`,exceeded:G>0&&D>=G,style:{marginTop:-25},extra:(0,t.jsx)("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>h(b.billingPageUrl||s.APP_ROUTES.billing),children:k("Need more?")})}),(0,t.jsx)(m.ui_kit$Row,{gutter:24,className:"image-ai__row",children:(0,t.jsx)(m.ui_kit$Col,{span:24,children:(0,t.jsx)(m.ui_kit$Form.Item,{style:{margin:0},children:(0,t.jsxs)("span",{className:`ant-input-affix-wrapper ant-input-affix-wrapper-lg image-ai__input-affix-wrapper${B?" ant-input-affix-wrapper-focused":""}`,children:[(0,t.jsx)(m.ui_kit$TextArea,{ref:l,onKeyDown:j,onKeyUp:$,onFocus:P,onBlur:n,autoSize:!0,allowClear:!0,className:"text-area-input-hybrid image-ai__textarea",placeholder:k("Generate image"),value:f,onChange:A,spellCheck:"false"}),(0,t.jsx)("span",{className:"ant-input-suffix image-ai__input-suffix",children:I||z?(0,t.jsx)(s.EmIcons,{icon:"LoadingOutlined",component:m.icons$LoadingOutlined,className:"input-icon image-ai__input-icon",spin:!0}):(0,t.jsx)(s.EmIcons,{icon:"AI",component:m.icons$AI,className:"input-icon image-ai__input-icon",onClick:H})})]})})})}),(I||g.length>0)&&(0,t.jsxs)("div",{className:"image-ai__preview",children:[I&&g.length===0&&(0,t.jsx)("div",{className:"image-ai__loading",children:(0,t.jsxs)("div",{className:"spin",children:[(0,t.jsx)(s.EmIcons,{icon:"LoadingOutlined",component:m.icons$LoadingOutlined,style:{fontSize:48},spin:!0}),(0,t.jsx)("p",{className:"status",children:W})]})}),g.length>0&&(0,t.jsxs)("div",{className:"image-ai__image-item",children:[(0,t.jsx)(Tt,{images:g}),(0,t.jsx)("div",{className:"buttons",children:(0,t.jsx)(m.ui_kit$Button,{onClick:()=>T(le),icon:(0,t.jsx)(s.EmIcons,{icon:"CheckOutlined",component:m.icons$CheckOutlined}),children:k("Use this one")})})]})]})]})},mn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII=",Ft=({setNewLink:r,setCurrentImageLink:o,setModalHeight:i,setModalWidth:l,setImageGifList:u,imageGifList:c,currentReqGif:f,setCurrentReqGif:p,inputRef:g,setStockLink:w,customRequest:I})=>{const{__:y}=s.useI18n(),h=s.useAppConfig(),x=s.useIsStandalone(),k=s.useNotification(),[L,b]=(0,e.useState)(null),[S,R]=(0,e.useState)(!1),[F,Q]=(0,e.useState)(25),[D]=s.useLazyGetSearchGifQuery(),G=(0,e.useCallback)(n=>n instanceof Error||typeof n?.message=="string"&&n.message?n.message:typeof n?.error?.message=="string"&&n.error.message?n.error.message:y("Failed to load GIFs through the configured proxy chain."),[y]),z=(0,e.useCallback)(n=>{k.error({id:"STOCK_GIFS_SEARCH_FAILED",title:y("Failed to load GIFs"),description:G(n)})},[y,G,k]),W=async()=>{S||(R(!0),D({query:f,page:F}).then(n=>{if(n?.error){z(n.error),R(!1);return}u(A=>[...A,...n.data.data]),R(!1),Q(A=>A+25)}).catch(()=>{R(!1)}))},H=async()=>{const n=await D({query:f,page:0});if(n?.error){z(n.error),u([]);return}n?.data?.data?.length>0&&(u(n.data.data),setTimeout(()=>{i("84vh"),l(1060)},0))},T=(n,A)=>{b(A),setTimeout(()=>{b(null)},2e3),w(`${n}`),o(`${n}`),I(`${n}`)},q={default:3},V=(0,e.useCallback)(n=>be.getProxiedUrl(n,{config:h,standalone:x,resourceType:"generic",intent:"display"}),[h,x]),re=(0,e.useCallback)(n=>n.id,[]),_=(0,e.useCallback)(n=>n.images.downsized.url,[]),{getDisplaySrc:Y,handleLoad:N,handleError:B}=st({items:c,getItemId:re,getRequestUrl:_,createController:V}),ee=n=>A=>{N(n),A.target.parentNode.classList.add("loaded")},P=n=>()=>{B(n)};return(0,t.jsxs)("div",{className:"stock-tab",children:[(0,t.jsxs)(m.ui_kit$Form,{onValuesChange:H,className:c.length>0?"serach-results":"",children:[(0,t.jsx)(m.ui_kit$Row,{gutter:24,children:(0,t.jsx)(m.ui_kit$Col,{span:c.length>0?"":24,children:(0,t.jsx)(m.ui_kit$Form.Item,{className:"stock-search-input",children:(0,t.jsx)(m.ui_kit$SearchInput,{onSearch:H,allowClear:!0,size:c.length>0?"medium":"large",placeholder:y("Search GIFs"),value:f.keywords,onChange:n=>p(A=>({...A,keywords:n.target.value})),ref:g,spellCheck:"false",enterButton:!1})})})}),c.length>0&&(0,t.jsx)("div",{className:"blocks-search__divider-wrapper",children:(0,t.jsx)("div",{className:"ant-divider ant-divider-horizontal",role:"separator"})})]}),(0,t.jsx)("div",{className:"serach-output-wrapper",style:{marginRight:-10},children:c.length>0&&(0,t.jsx)("div",{id:"scrollableDiv",style:{width:"100%",height:"calc(84vh - 148px)",overflow:"auto",paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:"0",boxSizing:"unset"},children:(0,t.jsx)(tt,{dataLength:c&&c.length,next:W,hasMore:c,endMessage:(0,t.jsxs)(m.ui_kit$Divider,{plain:!0,children:[y("That`s all we could find.")," 🤐"]}),scrollableTarget:"scrollableDiv",style:{overflow:"visible"},loader:(0,t.jsx)(m.ui_kit$Spin,{size:"small"}),children:(0,t.jsx)(Ne,{breakpointCols:q,className:"my-masonry-grid",columnClassName:"my-masonry-grid_column",children:c.map((n,A)=>(0,t.jsxs)("div",{className:"list-item",onClick:()=>T(n.images.downsized.url,n.id),children:[(0,t.jsx)("img",{className:L===n.id?"loaded-image":"",width:"322px",src:Y(n),alt:n.title,onLoad:ee(n),onError:P(n)}),(0,t.jsx)("a",{rel:"noreferrer",href:"https://giphy.com/",target:"_blank",onClick:j=>j.stopPropagation(),children:(0,t.jsx)("div",{className:"overlay-image",style:{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII=)"}})}),L===n.id&&(0,t.jsx)(m.ui_kit$Spin,{className:"ant-spin",size:"small"})]},n.id+A))})})})})]})},ot="IMG",it="BACKGROUND",zt="GALLERY",we="EDITOR",de="UPLOAD",Fe="STOCK",ze="GIF",$e="AI",$t={mode:"select"},Kt={mode:"save"},{Dragger:Wt}=m.ui_kit$Upload,Vt=(r,o="image")=>s.decodeFileNameFromUrl(r)??o,Se=ne.normalizeImageFormatForDisplay,Ht=(r,o)=>{const i=Se(o);return!i||r.includes(".")?r:`${r}.${i}`},Qt=(r,o)=>new File([r],Ht(Vt(o),r.type),{type:r.type||"application/octet-stream"}),lt=({dataProvider:r,usesBuiltInStorage:o})=>{const i=s.useAppConfig(),l=s.useIntegratorConfigValue("compressMaxSize"),u=s.useIsStandalone(),c=s.shouldInsertUploadLinkAsIs(i),{__:f}=s.useI18n(),p=s.useDispatch(),g=s.useEditorProjectId(),[w]=s.useLazyGetImageInfoQuery(),{modal:I}=m.ui_kit$App.useApp(),y=s.useNotification(),h=s.useSelector(s.selectActiveModal$1),{request:x,resolveImagePicker:k}=s.useImagePicker(),[L,b]=(0,e.useState)(""),[S,R]=(0,e.useState)(""),[F,Q]=(0,e.useState)(""),[D,G]=(0,e.useState)(""),[z,W]=(0,e.useState)(de),[H,T]=(0,e.useState)({width:"",height:"",size:"",format:""}),[q,V]=(0,e.useState)("success"),[re,_]=(0,e.useState)(!1),Y=e.default.useRef(null),N=e.default.useRef(null),B=e.default.useRef(null),ee=e.default.useRef(null),P=e.default.useRef(null),n=e.default.useRef(null),A=e.default.useRef(null),j=e.default.useRef(null),$=e.default.useRef(null),[le,E]=(0,e.useState)("auto"),[ve,ae]=(0,e.useState)(572),[pe,Ce]=(0,e.useState)(!1),[U,Z]=(0,e.useState)({keywords:"",color:"",orientation:""}),[O,te]=(0,e.useState)({keywords:""}),[v,J]=(0,e.useState)([]),[K,se]=(0,e.useState)([]),[ct,qt]=(0,e.useState)([]),[ut,dt]=(0,e.useState)(!1),[ft,Ke]=(0,e.useState)(""),[Yt,je]=(0,e.useState)(!1),[Zt,Ue]=(0,e.useState)(0),mt=s.useProjectData(),pt=mt?.id!==void 0?String(mt.id):g||"",ht=s.useEventEmitter(be.events.UPLOAD_EVENT_ID),fe=ne.useImageBlobResolver(),Re=e.default.useRef(""),ye=e.default.useRef(0),ke=e.default.useRef(""),[Jt,gt]=(0,e.useState)(""),[Xt,vt]=(0,e.useState)(null),[en,We]=(0,e.useState)(""),De=(0,e.useCallback)(a=>{if(!(a instanceof Blob))return;ke.current&&URL.revokeObjectURL(ke.current);const d=URL.createObjectURL(a);ke.current=d,gt(d),vt(a)},[]),me=(0,e.useCallback)(()=>{ke.current&&(URL.revokeObjectURL(ke.current),ke.current=""),gt(""),vt(null)},[]),oe=(0,e.useCallback)(()=>{We("")},[]),Ve=s.usePlanFeatureGate("element_ai_image"),He=s.usePlanFeatureGate("stock_photo"),Qe=s.usePlanFeatureGate("stock_gif"),Ct=s.usePlanFeatureGate("image_editor"),Me=(0,e.useRef)(!1),qe=a=>{Me.current=!0,R(a)},tn=a=>{Me.current=!1,R(a.target.value)},Le=(0,e.useCallback)((a,d,C=f("The image could not be uploaded."))=>{const M=d instanceof Error?d.message:C;y.error({id:"IMAGE_UPLOAD_ERROR",data:a,title:f("Upload failed"),description:M})},[f,y]),nn=(0,e.useCallback)(a=>s.fireUploadImageEvent(ht,{file:a,project:pt}),[pt,ht]),Ae=ne.useImageBlobFetch(),sn=(0,e.useCallback)(a=>fe.resolve(ne.canonicalImageUrlKey(a),void 0,Ae),[Ae,fe]),Ye=async a=>{if(a)try{const d=await an(a);d&&Je(d)?await Ie({file:d}):d||Le({url:a},null,f("Failed to download image from URL."))}catch(d){Le({url:a},d,f("Failed to process image URL."))}},yt=(a,d)=>{const C=s.resolveUploadLinkAction(c,d,Me.current);C==="insertAsIs"?(Me.current=!1,Ge({url:a})):C==="upload"&&Ye(a)},Ze=e.default.useRef(yt);Ze.current=yt;const rn=(0,e.useCallback)(()=>{const a=S.trim();a.toLowerCase().startsWith("http")&&Ze.current(a,"enter")},[S]);e.default.useEffect(()=>{if(z!==de||!D)return;const a=S.trim();if(!a||!a.toLowerCase().startsWith("http"))return;const d=setTimeout(()=>{Ze.current(a,"timer")},1e3);return()=>{clearTimeout(d)}},[S,z,D]);const an=async a=>{try{const d=ne.canonicalImageUrlKey(a),C=await fe.resolve(d,void 0,Ae);return Qt(C,d)}catch{}};document.onpaste=function(a){const d=a.clipboardData?.items?.[0];if(z===de&&D){if(d?.type?.indexOf("image")===0&&i.imageCenterLocalUploadEnabled!==!1){const M=d.getAsFile();Je(M);const X={file:M};R(""),Ie(X);return}const C=a.clipboardData?.getData("text/plain");if(C&&C.trim().toLowerCase().startsWith("http")){a.preventDefault(),a.stopPropagation(),qe(C.trim());return}d?.type?.indexOf("text")===0&&d.getAsString(M=>{if(M.trim().toLowerCase().startsWith("http"))qe(M.trim());else if(M.toString().slice(1,5)==="meta"){const X=M.toString().split('"')[1];X&&qe(X)}})}},(0,e.useEffect)(()=>{const a=d=>{let C=null;x?.kind==="background"?(C=it,G(it)):x?.kind==="img"&&(G(ot),C=ot),x?.currentUrl&&C&&(b(x.currentUrl),W(d))};h===s.MODALS.UPLOAD_IMAGE_MODAL||h===s.MODALS.UPLOAD_BACKGROUND_MODAL?a(we):h===s.MODALS.UPLOAD_IMAGE_MODAL_AI||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_AI?(Ve.isLocked?(je(!0),Ue(s.FEATURE_UPSELL_SLIDE.element_ai_image)):a($e),setTimeout(()=>$.current?.focus({cursor:"start"}),100)):h===s.MODALS.UPLOAD_IMAGE_MODAL_UPLOAD||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_UPLOAD?(a(de),setTimeout(()=>n.current?.focus({cursor:"start"}),100)):h===s.MODALS.UPLOAD_IMAGE_MODAL_STOCK||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_STOCK?(He.isLocked?(je(!0),Ue(s.FEATURE_UPSELL_SLIDE.stock_photo)):a(Fe),setTimeout(()=>j.current?.focus({cursor:"start"}),100)):h===s.MODALS.UPLOAD_IMAGE_MODAL_GIF||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_GIF?(Qe.isLocked?(je(!0),Ue(s.FEATURE_UPSELL_SLIDE.stock_gif)):a(ze),setTimeout(()=>A.current?.focus({cursor:"start"}),100)):h===s.MODALS.UPLOAD_IMAGE_MODAL_EDIT||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_EDIT?(Ct.isLocked?(je(!0),Ue(s.FEATURE_UPSELL_SLIDE.image_editor)):a(we),p(s.openSecondModal(s.MODALS.IMAGE_EDITOR_MODAL))):G("")},[h,p,Ve.isLocked,He.isLocked,Qe.isLocked,Ct.isLocked,x]);const Ge=(0,e.useCallback)(({url:a=L||"",meta:d=$t})=>{b(a),k({url:a,meta:d}),setTimeout(()=>{oe(),me(),Z({keywords:"",color:"",orientation:""}),te({keywords:""}),se([]),J([]),G(""),Ke(""),dt(!1),Q(""),R(""),W(de)},200),p(s.closeModal$1()),p(s.closeSecondModal())},[L,oe,p,k,me]),At=(0,e.useCallback)((a,d)=>(E("auto"),_(!1),Ge({url:a,meta:Kt}),y.success({id:"IMAGE_UPLOAD_SUCCESS",data:d,title:f("The image was successfully uploaded.")}),a),[f,Ge,y]);(0,e.useEffect)(()=>{const a=c?"":S,d=a||F,C=ne.canonicalImageUrlKey(d);if(!d||!C){V(""),Re.current&&fe.abandonKey(Re.current),Re.current="",oe(),me();return}const M=Re.current;M&&M!==C&&(fe.abandonKey(M),oe(),me()),Re.current=C;const X=new AbortController,ce=a?800:0,he=++ye.current,un=setTimeout(async()=>{try{const xe=async()=>{const ue=await fe.resolve(C,X.signal,Ae);if(he!==ye.current)return;const{width:ge,height:dn}=await ne.getImageDimensionsFromBlob(ue);he===ye.current&&(T({width:ge,height:dn,size:(ue.size/1024).toFixed(2),format:Se(ue.type)}),oe(),De(ue))};if(u)await xe();else{const ue=await ne.resolveDataProviderPreview(r,C);if(ue?.previewUrl&&he===ye.current){We(ue.previewUrl),me();try{const{data:ge}=await w(C);if(he!==ye.current)return;ge?T({width:ge?.width,height:ge?.height,size:ge?.fileSize!=null?(ge.fileSize/1024).toFixed(2):"",format:Se(ge?.format)}):await xe()}catch{await xe()}}else await xe()}if(he!==ye.current)return;V("success"),b(d),ae(572),setTimeout(()=>{let ue=0;N.current&&(ue=N.current.offsetHeight+62),E(ue)},0)}catch(xe){if(xe?.name==="AbortError"||X.signal.aborted||he!==ye.current)return;oe(),me(),V("error")}},ce);return()=>{clearTimeout(un),X.abort()}},[S,F,c,u,oe,Ae,w,fe,me,r,De]),(0,e.useEffect)(()=>{if(!L||S||F||!h)return;const a=ne.canonicalImageUrlKey(L),d=new AbortController;let C=!1;const M=async()=>{const X=await fe.resolve(a,d.signal,Ae);if(C)return;const{width:ce,height:he}=await ne.getImageDimensionsFromBlob(X);C||(oe(),De(X),T({width:ce,height:he,size:(X.size/1024).toFixed(2),format:Se(X.type)}))};return(async()=>{try{if(!u){const X=await ne.resolveDataProviderPreview(r,a);if(X?.previewUrl&&!C){We(X.previewUrl),me();try{const{data:ce}=await w(a);if(C)return;ce?T({width:ce?.width,height:ce?.height,size:ce?.fileSize!=null?(ce.fileSize/1024).toFixed(2):"",format:Se(ce?.format)}):await M();return}catch{await M()}}}await M()}catch{C||oe()}})(),()=>{C=!0,d.abort()}},[u,h,oe,L,Ae,w,fe,r,S,F,De]);const on=()=>{p(s.closeModal$1()),setTimeout(()=>{oe(),me(),b(""),R(""),se([]),se([]),Z({keywords:"",color:"",orientation:""}),te({keywords:""}),E("auto"),!ut&&Ke(""),ae(572),W(de)},200)},ln=a=>{a===zt?I.success({mask:{closable:!0},centered:!0,title:f("Coming soon"),content:f("The feature is under development."),okText:f("Ok. I'll be waiting"),onOk:()=>{}}):a===we&&L===""?I.warning({mask:{closable:!0},centered:!0,title:f(""),content:f("To preview and edit the uploaded image"),okText:f("Upload Image"),onOk:()=>{W(de)}}):(setTimeout(()=>{let d=0,C=0;a===de&&Y.current?(U.keywords===""&&n.current?.focus({cursor:"start"}),d=300,C=572):a===we&&N.current?(d=N.current.offsetHeight+62,C=572):a===Fe&&B.current?(U.keywords===""&&j.current?.focus({cursor:"start"}),d=130,C=572,K.length>0&&(C=1060,d="84vh")):a===ze&&ee.current?(U.keywords===""&&A.current?.focus({cursor:"start"}),d=130,C=572,v.length>0&&(C=1060,d="84vh")):a===$e&&P.current&&(ft===""&&ct.length===0?($.current?.focus({cursor:"start"}),d=130):d=P.current.offsetHeight+82,C=572),E(d),ae(C)},0),W(a))};(0,e.useEffect)(()=>{U.keywords===""&&(n?.current?.focus({cursor:"start"}),se([]),setTimeout(()=>{E("auto"),ae(572)},0))},[U,se,E,ae]);const Je=a=>{const d=a.type==="image/jpeg"||a.type==="image/png"||a.type==="image/jpg"||a.type==="image/webp"||a.type==="image/gif"||a.type==="image/svg+xml";return d||y.error({id:"IMAGE_UPLOAD_WRONG_FORMAT",data:a,title:"Upload",description:"You can only upload JPG/JPEG/PNG/WEBP/GIF/SVG file!"}),d},bt=(0,e.useRef)(null),Ie=async({file:a})=>{try{Ce(!0);const d=a===bt.current?await s.prepareImageForEditorResult(a,i,void 0,{compressBySize:l!==void 0}):await s.prepareImageForEditorUpload(a,i),C=await nn(d);if(C.url)return At(C.url,d),C.url;if(!s.shouldFallbackToBuiltInUpload(C,{isStandalone:u,targetIsOurBackend:!!o})){Le(d,s.toUploadImageError(C));return}const M=await s.uploadFileViaDataProvider(d,r);if(M?.url)return At(M.url,d),M.url;Le(d,null);return}catch(d){Le(a,d);return}finally{Ce(!1)}},wt=(0,e.useRef)(Ie);wt.current=Ie;const cn=(0,e.useCallback)(a=>(bt.current=a,wt.current({file:a})),[]);let Oe=[{label:f("Upload"),key:de,children:(0,t.jsxs)("div",{ref:Y,style:{paddingBottom:24},children:[i.imageCenterLocalUploadEnabled!==!1&&(0,t.jsxs)(Wt,{showUploadList:!1,name:"Image",beforeUpload:Je,customRequest:Ie,style:{marginBottom:10},multiple:!1,accept:"image/png, image/jpeg, image/jpg, image/webp, image/gif, image/svg+xml",children:[(0,t.jsx)("p",{className:"ant-upload-drag-icon",children:(0,t.jsx)(s.EmIcons,{icon:"InboxOutlined",component:m.icons$InboxOutlined})}),(0,t.jsx)("p",{className:"ant-upload-text",children:f("Click to select, paste from the clipboard, or drag and drop")}),(0,t.jsx)("p",{className:"ant-upload-hint",children:f("Accepted formats: PNG, JPG, WEBP, SVG or GIF.")})]}),(0,t.jsx)(m.ui_kit$Form,{style:{padding:"0 2px 0 2px"},children:(0,t.jsx)(m.ui_kit$Form.Item,{validateStatus:q,children:(0,t.jsx)(m.ui_kit$Input,{ref:n,allowClear:!0,size:"large",placeholder:f("Paste image URL here"),value:S,onChange:tn,onPressEnter:rn,spellCheck:"false"})})})]})}];return i.imageCenterStockEnabled&&!He.isLocked&&Oe.push({label:f("Stock"),key:Fe,children:(0,t.jsx)("div",{ref:B,style:{paddingBottom:24},children:(0,t.jsx)(Mt,{currentReq:U,setCurrentReq:Z,imageStockList:K,setImageStockList:se,setModalWidth:ae,setModalHeight:E,setStockLink:Q,setCurrentImageLink:b,inputRef:j,customRequest:Ye})})}),i.imageCenterGifEnabled&&!Qe.isLocked&&Oe.push({label:f("GIF"),key:ze,children:(0,t.jsx)("div",{ref:ee,style:{paddingBottom:24},children:(0,t.jsx)(Ft,{currentReqGif:O,setCurrentReqGif:te,imageGifList:v,setImageGifList:J,setModalWidth:ae,setModalHeight:E,setStockLink:Q,setCurrentImageLink:b,inputRef:A,customRequest:Ye})})}),i.elementAIimageEnabled&&!Ve.isLocked&&Oe.push({label:f("AI"),key:$e,children:(0,t.jsx)("div",{ref:P,style:{paddingBottom:24},children:(0,t.jsx)(Bt,{setModalHeight:E,customRequest:Ie,aiImageRequest:ft,setAiImageRequest:Ke,imageAiList:ct,setImageAiList:qt,isLoadingAi:ut,setIsLoadingAi:dt,aiTabRef:P,inputAiRef:$,isImageUploaded:re,setIsImageUploaded:_})})}),i.imageCenterEditorEnabled&&Oe.push({label:"",key:we,children:(0,t.jsx)("div",{ref:N,children:(0,t.jsx)(jt,{currentImageLink:L,newLink:S,previewDisplayUrl:en,resolvedPreviewObjectUrl:Jt,resolvedPreviewBlob:Xt,resolveImageBlob:sn,imageSize:H,onSave:cn,uploadImageResultIsLoading:pe||!1})})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.ui_kit$Modal,{width:ve,className:"image-center",title:f("Image Center"),style:{minHeight:390},open:!!D,onOk:Ge,onCancel:on,footer:z===we?(0,t.jsx)(t.Fragment,{}):null,children:(0,t.jsx)(m.ui_kit$Spin,{spinning:pe,children:(0,t.jsx)(m.ui_kit$Tabs,{activeKey:z,onChange:ln,items:Oe,className:"modal-tabs",style:{height:le,minHeight:130}})})}),(0,t.jsx)(s.PlanUpgradePrompt,{open:Yt,onCancel:()=>je(!1),initialSlide:Zt})]})};lt.propTypes={dataProvider:_t.default.object},kt.default=lt});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/40119ab2.js",["require","exports","module","static/core/2ff39ddf.js","static/core/bac4c584.js","static/core/68d98113.js"],function(f,M,it){const D=f("./2ff39ddf.js"),s=f("./bac4c584.js"),h=f("./68d98113.js");var F=1.25,O=80,$=3,k=1,p=16,L="p, div, td, th";function d(t){if(!t)return;const e=parseFloat(t);if(Number.isFinite(e))return t.trim().endsWith("pt")?e*4/3:e}function A(t){return t.style}function l(t){const e=A(t);if(!e)return!1;if(e.display==="none"||e.visibility==="hidden"||e.opacity==="0")return!0;const r=d(e.fontSize);return r!==void 0&&r<=k&&N(t)<=k?!0:d(e.maxHeight)===0}function u(t){for(let e=t;e;e=e.parentElement){const r=d(A(e)?.fontSize);if(r!==void 0)return r}return p}function w(t,e){for(const r of Array.from(t.childNodes)){if(s.isTextNode(r)){const n=r.data.trim().length;if(n){const i=u(r.parentElement);e.set(i,(e.get(i)??0)+n)}continue}!s.isElement(r)||l(r)||w(r,e)}}function b(t){const e=new Map;w(t,e);let r=p,n=0;for(const[i,o]of e)o>n&&(r=i,n=o);return r}function N(t){let e=u(t);for(const r of Array.from(t.querySelectorAll("*")))r.textContent?.trim()&&(e=Math.max(e,u(r)));return e}function j(t,e){return t.querySelector("a")?.textContent?.trim()===e}function q(t){return Array.from(t.querySelectorAll(L)).some(e=>e.textContent?.trim())}function G(t){const e=b(t),r=[];for(const o of Array.from(t.querySelectorAll(L))){if(l(o)||q(o))continue;const a=o.textContent?.trim()??"";if(!a||a.length>O||j(o,a))continue;const c=N(o);c>=e*F&&r.push({elem:o,size:c})}const n=[...new Set(r.map(o=>o.size))].sort((o,a)=>a-o),i=new Map;for(const{elem:o,size:a}of r)i.set(o,Math.min(n.indexOf(a)+1,$));return{headingLevels:i}}var R=D.__exportAll({markdownAnchor:()=>Y,markdownBlock:()=>X,markdownImage:()=>Q,markdownInline:()=>J,markdownOrderedList:()=>Z,markdownStrong:()=>K,markdownUnorderedList:()=>U}),E=h.formatList,_=20;function W(t){return!t||t.includes("%")?NaN:parseFloat(t)}function m(t,e){const r=t.style,n=e==="width"?"maxWidth":"maxHeight";for(const i of[t.getAttribute(e),r?.[e],r?.[n]]){const o=W(i);if(Number.isFinite(o))return o}return NaN}function S(t){return(t.getAttribute("alt")??"").trim()?!1:m(t,"width")<=_||m(t,"height")<=_}function B(t){return t.replace(/ /g,"%20").replace(/\(/g,"%28").replace(/\)/g,"%29")}function x(t){const e=t.getAttribute("href");return!e||e.startsWith("#")?"":e}function g(t){for(const e of Array.from(t.childNodes)){if(s.isTextNode(e)){if(/\S/.test(e.data))return!0;continue}if(!s.isElement(e))continue;const r=e.tagName.toLowerCase();if(r==="img"){if(e.getAttribute("src")&&!S(e))return!0;continue}if(r==="hr"||r==="a"&&x(e)&&v(e)||g(e))return!0}return!1}function v(t){const e=(t.getAttribute("title")??"").trim();if(e)return e;const r=t.querySelector("img");return r?(r.getAttribute("title")??"").trim():""}function y(t,e,r){r.addLiteral("["),e(),r.addLiteral(`](${B(t)})`)}function I(t,e){return t.parentElement?.tagName.toLowerCase()!=="li"?e:{...e,leadingLineBreaks:1,trailingLineBreaks:1}}var U=(t,e,r,n)=>{E(t,e,r,I(t,n),()=>"- ")},Z=(t,e,r,n)=>{let i=Number(t.getAttribute("start")??"1")||1;E(t,e,r,I(t,n),()=>`${i++}. `)},V={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6};function z(t,e){return V[t.tagName.toLowerCase()]??e.metadata?.headingLevels.get(t)}var X=(t,e,r,n)=>{if(l(t)||!g(t))return;const i=z(t,r);r.openBlock({leadingLineBreaks:i?2:n.leadingLineBreaks}),i&&r.addLiteral(`${"#".repeat(i)} `),e(Array.from(t.childNodes),r),r.closeBlock({trailingLineBreaks:i?2:n.trailingLineBreaks})};function P(t,e){for(let r=t.parentElement;r;r=r.parentElement)if(z(r,e))return!0;return!1}function C(t){return s.isTextNode(t)?!/\S/.test(t.data):s.isElement(t)&&t.tagName.toLowerCase()==="br"}var K=(t,e,r)=>{const n=Array.from(t.childNodes);if(P(t,r)){e(n,r);return}let i=0,o=n.length;for(;i<o&&C(n[i]);)i++;for(;o>i&&C(n[o-1]);)o--;const a=n.slice(i,o),c=a.map(nt=>nt.textContent??"").join("");if(!a.length||c!==c.trim()){e(n,r);return}e(n.slice(0,i),r),r.addLiteral("**"),e(a,r),r.addLiteral("**"),e(n.slice(o),r)},J=(t,e,r)=>{l(t)||e(Array.from(t.childNodes),r)};function T(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function H(t,e){const r=m(t,e);return Number.isFinite(r)?` ${e}="${Math.round(r)}"`:""}var Q=(t,e,r)=>{const n=t.getAttribute("src");if(!n||S(t))return;const i=t.getAttribute("alt")??"",o=H(t,"width"),a=H(t,"height");if(o||a){r.addLiteral(`<img src="${T(n)}" alt="${T(i)}"${o}${a}>`);return}r.addLiteral("})`)},Y=(t,e,r)=>{const n=x(t);if(!n){e(Array.from(t.childNodes),r);return}if(g(t)){y(n,()=>e(Array.from(t.childNodes),r),r);return}const i=v(t);i&&y(n,()=>r.addInline(i),r)},tt={"\\":"\\\\","`":"\\`","*":"\\*",_:"\\_","[":"\\[","]":"\\]","#":"\\#",">":"\\>"},et={wordwrap:!1,encodeCharacters:tt,baseElements:{selectors:["body"]},formatters:R,selectors:[{selector:"*",format:"markdownInline"},{selector:"p",format:"markdownBlock",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"div",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"td",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"markdownBlock",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"th",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},...["h1","h2","h3","h4","h5","h6"].map(t=>({selector:t,format:"markdownBlock"})),{selector:"a",format:"markdownAnchor"},{selector:"img",format:"markdownImage"},{selector:"ul",format:"markdownUnorderedList"},{selector:"ol",format:"markdownOrderedList"},{selector:"hr",format:"blockString",options:{string:"---",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"b",format:"markdownStrong"},{selector:"strong",format:"markdownStrong"},{selector:"i",format:"inlineSurround",options:{prefix:"*",suffix:"*"}},{selector:"em",format:"inlineSurround",options:{prefix:"*",suffix:"*"}}]};function rt(t){return h.convert(t,et,G(t))}M.htmlToMarkdown=rt});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/4b44806a.js",["require","exports","module","static/core/2ff39ddf.js","static/core/bac4c584.js"],function(i,p,$){const P=i("./2ff39ddf.js"),u=i("./bac4c584.js");var d={items_per_page:"/ página",jump_to:"Vá até",jump_to_confirm:"confirme",page:"Página",prev_page:"Página anterior",next_page:"Próxima página",prev_5:"5 páginas anteriores",next_5:"5 próximas páginas",prev_3:"3 páginas anteriores",next_3:"3 próximas páginas",page_size:"tamanho da página"};function n(r){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(r)}function l(r,e){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(h){return Object.getOwnPropertyDescriptor(r,h).enumerable})),a.push.apply(a,t)}return a}function c(r){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?l(Object(a),!0).forEach(function(t){v(r,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(a,t))})}return r}function v(r,e,a){return e=b(e),e in r?Object.defineProperty(r,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[e]=a,r}function b(r){var e=f(r,"string");return n(e)=="symbol"?e:String(e)}function f(r,e){if(n(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var t=a.call(r,e||"default");if(n(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var g=c(c({},u.commonLocale),{},{locale:"pt_BR",today:"Hoje",now:"Agora",backToToday:"Voltar para hoje",ok:"OK",clear:"Limpar",week:"Semana",month:"Mês",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Escolher mês",yearSelect:"Escolher ano",decadeSelect:"Escolher década",monthBeforeYear:!1,previousMonth:"Mês anterior (PageUp)",nextMonth:"Próximo mês (PageDown)",previousYear:"Ano anterior (Control + esquerda)",nextYear:"Próximo ano (Control + direita)",previousDecade:"Década anterior",nextDecade:"Próxima década",previousCentury:"Século anterior",nextCentury:"Próximo século",shortWeekDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}),s={placeholder:"Hora",rangePlaceholder:["Hora de início","Hora de término"]},m={lang:{placeholder:"Selecionar data",rangePlaceholder:["Data inicial","Data final"],...g},timePickerLocale:{...s}},x=m,o="${label} não é um ${type} válido",y={locale:"pt-br",Pagination:d,DatePicker:m,TimePicker:s,Calendar:x,global:{placeholder:"Por favor escolha",close:"Fechar",show:"Mostrar",hide:"Ocultar"},Table:{filterTitle:"Menu de Filtro",filterConfirm:"OK",filterReset:"Resetar",filterEmptyText:"Sem filtros",filterCheckAll:"Selecionar todos os itens",filterSearchPlaceholder:"Pesquisar nos filtros",emptyText:"Sem conteúdo",selectAll:"Selecionar página atual",selectInvert:"Inverter seleção",selectNone:"Apagar todo o conteúdo",selectionAll:"Selecionar todo o conteúdo",sortTitle:"Ordenar título",expand:"Expandir linha",collapse:"Colapsar linha",triggerDesc:"Clique organiza por descendente",triggerAsc:"Clique organiza por ascendente",cancelSort:"Clique para cancelar organização"},Tour:{Next:"Próximo",Previous:"Anterior",Finish:"Finalizar"},Modal:{okText:"OK",cancelText:"Cancelar",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Procurar",itemUnit:"item",itemsUnit:"items",remove:"Remover",selectCurrent:"Selecionar página atual",removeCurrent:"Remover página atual",selectAll:"Selecionar todos",removeAll:"Remover todos",selectInvert:"Inverter seleção atual"},Upload:{uploading:"Enviando...",removeFile:"Remover arquivo",uploadError:"Erro no envio",previewFile:"Visualizar arquivo",downloadFile:"Baixar arquivo"},Empty:{description:"Não há dados"},Icon:{icon:"ícone"},Text:{edit:"editar",copy:"copiar",copied:"copiado",expand:"expandir"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Erro ${label} na validação de campo",required:"Por favor, insira ${label}",enum:"${label} deve ser um dos seguinte: [${enum}]",whitespace:"${label} não pode ser um carácter vazio",date:{format:" O formato de data ${label} é inválido",parse:"${label} não pode ser convertido para uma data",invalid:"${label} é uma data inválida"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label} deve possuir ${len} caracteres",min:"${label} deve possuir ao menos ${min} caracteres",max:"${label} deve possuir no máximo ${max} caracteres",range:"${label} deve possuir entre ${min} e ${max} caracteres"},number:{len:"${label} deve ser igual à ${len}",min:"O valor mínimo de ${label} é ${min}",max:"O valor máximo de ${label} é ${max}",range:"${label} deve estar entre ${min} e ${max}"},array:{len:"Deve ser ${len} ${label}",min:"No mínimo ${min} ${label}",max:"No máximo ${max} ${label}",range:"A quantidade de ${label} deve estar entre ${min} e ${max}"},pattern:{mismatch:"${label} não se encaixa no padrão ${pattern}"}}}};p.default=y});
|