PageSourceSearch

https://reworkflow.com/_nuxt/D4MmR4Tl.js

js reworkflow.com collected 2026-10-04 07:47:39 UTC 29,066 bytes, 115 lines download raw bytes

1import Ue from"./BkfsOhHC.js";import pe from"./Ns4brE-P.js";import Me from"./Hkr3mXmI.js";import{E as ge,d as be,G as z,H as ye,r as D,s as X,v as We,I as Ge,J as ze,h as ee,o as j,K as Fe,q as te,L as He,M as J,N as Ye,D as ve,B as Je,w as ne,e as v,b as P,u as p,j as he,O as qe,c as V,f as Qe,P as Ze,F as ue,g as Xe,t as ce,Q as M,T as et,_ as tt}from"./Bc5KZKYm.js";import{A,B as nt}from"./CyrQeNbK.js";import{a as oe}from"./CPoGsu_z.js";import{a as N,b as re,f as ot}from"./DmPQg_Th.js";import{a as rt,u as it,g as at,d as st,p as lt}from"./pk2oUhqG.js";import ut from"./DkR1-SAo.js";import ct from"./wzxxEnPQ.js";import dt from"./D6NnFoJo.js";import"./CuZxRUNO.js";import"./BBJvUJGK.js";import"./CNXnCbMI.js";import"./BTebQXAm.js";import"./DCCA6NxS.js";import"./Cl8adg_w.js";import"./CBOemh4Q.js";import"./B4r6F1wk.js";import"./Bkvnvl2t.js";import"./D6CxFzFT.js";import"./DTjHJUl8.js";import"./rRdLuS5b.js";import"./SD4q2UyP.js";import"./CATNkhOj.js";import"./DV58RWE6.js";import"./CZ6Bs6LW.js";import"./CdfUUWk3.js";import"./DPW4Kf3c.js";import"./BNm86rzn.js";import"./B7jxCu41.js";import"./Dr-iffJV.js";import"./P3BXYEkV.js";import"./BgYBwkkx.js";import"./C2oPdaLs.js";import"./QPhgt4Z2.js";import"./BiXsHYqe.js";import"./DbPIMFNS.js";import"./CFedghoO.js";var ft=typeof global=="object"&&global&&global.Object===Object&&global,mt=typeof self=="object"&&self&&self.Object===Object&&self,we=ft||mt||Function("return this")(),F=we.Symbol,ke=Object.prototype,pt=ke.hasOwnProperty,gt=ke.toString,$=F?F.toStringTag:void 0;function bt(e){var t=pt.call(e,$),n=e[$];try{e[$]=void 0;var o=!0}catch{}var r=gt.call(e);return o&&(t?e[$]=n:delete e[$]),r}var yt=Object.prototype,vt=yt.toString;function ht(e){return vt.call(e)}var wt="[object Null]",kt="[object Undefined]",de=F?F.toStringTag:void 0;function Ct(e){return e==null?e===void 0?kt:wt:de&&de in Object(e)?bt(e):ht(e)}function Et(e){return e!=null&&typeof e=="object"}var It="[object Symbol]";function Tt(e){return typeof e=="symbol"||Et(e)&&Ct(e)==It}var jt=/\s/;function Dt(e){for(var t=e.length;t--&&jt.test(e.charAt(t)););return t}var Pt=/^\s+/;function Ot(e){return e&&e.slice(0,Dt(e)+1).replace(Pt,"")}function ie(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fe=NaN,Vt=/^[-+]0x[0-9a-f]+$/i,_t=/^0b[01]+$/i,xt=/^0o[0-7]+$/i,St=parseInt;function me(e){if(typeof e=="number")return e;if(Tt(e))return fe;if(ie(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ie(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ot(e);var n=_t.test(e);return n||xt.test(e)?St(e.slice(2),n?2:8):Vt.test(e)?fe:+e}var q=function(){return we.Date.now()},At="Expected a function",Bt=Math.max,Rt=Math.min;function $t(e,t,n){var o,r,l,i,a,u,c=0,h=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(At);t=me(t)||0,ie(n)&&(h=!0,f="maxWait"in n,l=f?Bt(me(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g);function C(y){var T=o,O=r;return o=r=void 0,c=y,i=e.apply(O,T),i}function _(y){return c=y,a=setTimeout(b,t),h?C(y):i}function w(y){var T=y-u,O=y-c,B=t-T;return f?Rt(B,l-O):B}function d(y){var T=y-u,O=y-c;return u===void 0||T>=t||T<0||f&&O>=l}function b(){var y=q();if(d(y))return I(y);a=setTimeout(b,w(y))}function I(y){return a=void 0,g&&o?C(y):(o=r=void 0,i)}function m(){a!==void 0&&clearTimeout(a),c=0,o=u=r=a=void 0}function s(){return a===void 0?i:I(q())}function S(){var y=q(),T=d(y);if(o=arguments,r=this,u=y,T){if(a===void 0)return _(u);if(f)return clearTimeout(a),a=setTimeout(b,t),C(u)}return a===void 0&&(a=setTimeout(b,t)),i}return S.cancel=m,S.flush=s,S}/**
2 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4 *//**
5 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7 */function Nt(e,{timeOutAfter:t=500,retryAfter:n=100}={}){return new Promise((o,r)=>{const l=Date.now();let i=null;const a=setTimeout(()=>{r(i??new Error("Timeout"))},t),u=async()=>{try{const c=await e();clearTimeout(a),o(c)}catch(c){i=c,Date.now()-l>t?r(c):setTimeout(u,n)}};
7u()})}/**
8 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
9 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
10 */const W=new Map;function Ce(e,{attributes:t}={}){if(W.has(e))return W.get(e);const n=document.querySelector(`script[src="${e}"]`);n&&(console.warn(`Script with "${e}" src is already present in DOM!`),n.remove());const o=new Promise((r,l)=>{const i=document.createElement("script");i.onerror=l,i.onload=()=>{r()};for(const[u,c]of Object.entries(t||{}))i.setAttribute(u,c);i.setAttribute("data-injected-by","ckeditor-integration"),i.type="text/javascript",i.async=!0,i.src=e,document.head.appendChild(i);const a=new MutationObserver(u=>{u.flatMap(h=>Array.from(h.removedNodes)).includes(i)&&(W.delete(e),a.disconnect())});a.observe(document.head,{childList:!0,subtree:!0})});return W.set(e,o),o}async function Ee(e,t){await Promise.all(e.map(n=>Ce(n,t)))}/**
11 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
12 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
13 */const G=new Map;function Kt({href:e,placementInHead:t="start",attributes:n={}}){if(G.has(e))return G.get(e);const o=document.querySelector(`link[href="${e}"][rel="stylesheet"]`);o&&(console.warn(`Stylesheet with "${e}" href is already present in DOM!`),o.remove());const r=i=>{const a=Array.from(document.head.querySelectorAll('link[data-injected-by="ckeditor-integration"]'));switch(t){case"start":a.length?a.slice(-1)[0].after(i):document.head.insertBefore(i,document.head.firstChild);break;case"end":document.head.appendChild(i);break}},l=new Promise((i,a)=>{const u=document.createElement("link");for(const[h,f]of Object.entries(n||{}))u.setAttribute(h,f);u.setAttribute("data-injected-by","ckeditor-integration"),u.rel="stylesheet",u.href=e,u.onerror=a,u.onload=()=>{i()},r(u);const c=new MutationObserver(h=>{h.flatMap(g=>Array.from(g.removedNodes)).includes(u)&&(G.delete(e),c.disconnect())});c.observe(document.head,{childList:!0,subtree:!0})});return G.set(e,l),l}/**
14 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
15 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
16 */function Lt(e,{attributes:t}={}){if(document.head.querySelector(`link[href="${e}"][rel="preload"]`))return;const n=document.createElement("link");for(const[o,r]of Object.entries(t||{}))n.setAttribute(o,r);n.setAttribute("data-injected-by","ckeditor-integration"),n.rel="preload",n.as=Ut(e),n.href=e,document.head.insertBefore(n,document.head.firstChild)}function Ut(e){switch(!0){case/\.css$/.test(e):return"style";case/\.js$/.test(e):return"script";default:return"fetch"}}/**
17 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
18 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
19 */const k=new Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function Mt(){const[e,t,n,o]=crypto.getRandomValues(new Uint32Array(4));return"e"+k[e>>0&255]+k[e>>8&255]+k[e>>16&255]+k[e>>24&255]+k[t>>0&255]+k[t>>8&255]+k[t>>16&255]+k[t>>24&255]+k[n>>0&255]+k[n>>8&255]+k[n>>16&255]+k[n>>24&255]+k[o>>0&255]+k[o>>8&255]+k[o>>16&255]+k[o>>24&255]}/**
20 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
21 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
22 */function Q(e){return Array.from(new Set(e))}/**
23 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
24 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
25 */async function H(e,t){const n=()=>e.map(o=>window[o]).filter(Boolean)[0];return Nt(()=>{const o=n();if(!o)throw new Error(`Window entry "${e.join(",")}" not found.`);return o},t)}/**
26 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
27 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
28 */function Wt(e,t){const n=Object.entries(e).filter(([o,r])=>t(r,o));return Object.fromEntries(n)}/**
29 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
30 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
31 */function Gt(e){return Wt(e,t=>t!=null)}/**
32 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
33 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
34 */function Ie(e,t){const n=Object.entries(e).map(([o,r])=>[o,t(r,o)]);return Object.fromEntries(n)}/**
35 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
36 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
37 */function ae(e,t){return t.filter(n=>!e.includes(n))}/**
38 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
39 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
40 */function zt(e,t){const n=e.extraPlugins||[];return{...e,extraPlugins:[...n,...t.filter(o=>!n.includes(o))]}}/**
41 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
42 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
43 */function se(e){return!!e&&/^\d+\.\d+\.\d+/.test(e)}/**
44 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
45 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
46 */function Y(e){return e?["nightly","alpha","internal","nightly-","
46staging"].some(t=>e.includes(t)):!1}function Ft(e){return se(e)||Y(e)}/**
47 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
48 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
49 */function Te(e){if(!se(e))throw new Error(`Invalid semantic version: ${e||"<blank>"}.`);const[t,n,o]=e.split(".");return{major:Number.parseInt(t,10),minor:Number.parseInt(n,10),patch:Number.parseInt(o,10)}}/**
50 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
51 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
52 */function je(e){if(Y(e))return 3;const{major:t}=Te(e);switch(!0){case t>=44:return 3;case t>=38:return 2;default:return 1}}/**
53 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
54 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
55 */function De(){const{CKEDITOR_VERSION:e,CKEDITOR:t}=window;return Ft(e)?{source:t?"cdn":"npm",version:e}:null}/**
56 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
57 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
58 */function Ht(){const e=De();return e?je(e.version):null}/**
59 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
60 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
61 */function Pe(e,t){switch(t||(t=Ht()||void 0),t){case 1:case 2:return e===void 0;case 3:return e==="GPL";default:return!1}}/**
62 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
63 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
64 */function Yt(e,t){return function(o){Pe(o.config.get("licenseKey"))||o.on("collectUsageData",(r,{setUsageData:l})=>{l(`integration.${e}`,t)})}}/**
65 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
66 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
67 */const Jt="https://cdn.ckeditor.com";function Oe(e,t,n){return`${Jt}/${e}/${n}/${t}`}/**
68 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
69 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
70 */const qt="https://cdn.ckbox.io";function Qt(e,t,n){return`${qt}/${e}/${n}/${t}`}/**
71 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
72 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
73 */const Zt="https://ckeditor.com/docs/ckeditor5";function Xt(e,t="latest"){return`${Zt}/${t}/${e}`}/**
74 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
75 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
76 */function en({version:e,translations:t,createCustomCdnUrl:n=Oe}){const o={scripts:[n("ckeditor5","ckeditor5.umd.js",e),...ae(["en"],t||[]).map(r=>n("ckeditor5",`translations/${r}.umd.js`,e))],stylesheets:[n("ckeditor5","ckeditor5.css",e)]};return{preload:[...o.stylesheets,...o.scripts],scripts:[async r=>Ee(o.scripts,r)],stylesheets:o.stylesheets,checkPluginLoaded:async()=>H(["CKEDITOR"]),beforeInject:()=>{const r=De();switch(r==null?void 0:r.source){case"npm":throw new Error("CKEditor 5 is already loaded from npm. Check the migration guide for more details: "+Xt("updating/migration-to-cdn/vanilla-js.html"));case"cdn":if(r.version!==e)throw new Error(`CKEditor 5 is already loaded from CDN in version ${r.version}. Remove the old <script> and <link> tags loading CKEditor 5 to allow loading the ${e} version.`);break}}}}/**
77 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
78 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
79 */function tn({version:e,translations:t,createCustomCdnUrl:n=Oe}){const o={scripts:[n("ckeditor5-premium-features","ckeditor5-premium-features.umd.js",e),...ae(["en"],t||[]).map(r=>n("ckeditor5-premium-features",`translations/${r}.umd.js`,e))],stylesheets:[n("ckeditor5-premium-features","ckeditor5-premium-features.css",e)]};return{preload:[...o.stylesheets,...o.scripts],scripts:[async r=>Ee(o.scripts,r)],stylesheets:o.stylesheets,checkPluginLoaded:async()=>H(["CKEDITOR_PREMIUM_FEATURES"])}}/**
80 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
81 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
82 */async function nn(e){let{htmlAttributes:t={},scripts:n=[],stylesheets:o=[],preload:r,beforeInject:l,checkPluginLoaded:i}=le(e);l==null||l(),r||(r=Q([...o.filter(a=>
82typeof a=="string"),...n.filter(a=>typeof a=="string")]));for(const a of r)Lt(a,{attributes:t});await Promise.all(Q(o).map(a=>Kt({href:a,attributes:t,placementInHead:"start"})));for(const a of Q(n)){const u={attributes:t};typeof a=="string"?await Ce(a,u):await a(u)}return i==null?void 0:i()}function le(e){return Array.isArray(e)?{scripts:e.filter(t=>typeof t=="function"||t.endsWith(".js")),stylesheets:e.filter(t=>t.endsWith(".css"))}:typeof e=="function"?{checkPluginLoaded:e}:e}/**
83 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
84 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
85 */function Ve(e){const t=Ie(Gt(e),le);return{...Object.values(t).reduce((l,i)=>(l.scripts.push(...i.scripts??[]),l.stylesheets.push(...i.stylesheets??[]),l.preload.push(...i.preload??[]),l),{preload:[],scripts:[],stylesheets:[]}),beforeInject:()=>{var l;for(const i of Object.values(t))(l=i.beforeInject)==null||l.call(i)},checkPluginLoaded:async()=>{var i;const l=Object.create(null);for(const[a,u]of Object.entries(t))l[a]=await((i=u==null?void 0:u.checkPluginLoaded)==null?void 0:i.call(u));return l}}}/**
86 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
87 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
88 */function on(){var t;const e=(t=window.CKBox)==null?void 0:t.version;return se(e)?{source:"cdn",version:e}:null}/**
89 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
90 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
91 */function rn({version:e,theme:t="lark",translations:n,createCustomCdnUrl:o=Qt}){return{scripts:[o("ckbox","ckbox.js",e),...ae(["en"],n||[]).map(r=>o("ckbox",`translations/${r}.js`,e))],...t&&{stylesheets:[o("ckbox",`styles/themes/${t}.css`,e)]},checkPluginLoaded:async()=>H(["CKBox"]),beforeInject:()=>{const r=on();if(r&&r.version!==e)throw new Error(`CKBox is already loaded from CDN in version ${r.version}. Remove the old <script> and <link> tags loading CKBox to allow loading the ${e} version.`)}}}/**
92 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
93 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
94 */function an(e){if(Y(e))return!0;const{major:t}=Te(e);switch(je(e)){case 3:return!0;default:return t===43}}/**
95 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
96 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
97 */function sn(e){const t=Ie(e,(n,o)=>{if(!n)return;const r=le(n);return{checkPluginLoaded:async()=>H([o]),...r}});return Ve(t)}/**
98 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
99 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
100 */function ln(e){const{version:t,translations:n,plugins:o,premium:r,ckbox:l,createCustomCdnUrl:i,injectedHtmlElementsAttributes:a={crossorigin:"anonymous"}}=e;un(t);const u=Ve({CKEditor:en({version:t,translations:n,createCustomCdnUrl:i}),...r&&{CKEditorPremiumFeatures:tn({version:t,translations:n,createCustomCdnUrl:i})},...l&&{CKBox:rn(l)},loadedPlugins:sn(o??{})});return nn({...u,htmlAttributes:a})}function un(e){if(Y(e)&&console.warn("You are using a testing version of CKEditor 5. Please remember that it is not suitable for production environments."),!an(e))throw new Error(`The CKEditor 5 CDN can't be used with the given editor version: ${e}. Please make sure you are using at least the CKEditor 5 version 44.`)}/**
101 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
102 * For licensing, see LICENSE.md.
103 */const cn=Yt("vue",{version:"7.3.0",frameworkVersion:ge});/**
104 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
105 * For licensing, see LICENSE.md.
106 */function dn(e){return Pe(e.licenseKey)?e:zt(e,[cn])}const Z="Lock from Vue integration (@ckeditor/ckeditor5-vue)",fn=300,mn=be({name:"CKEditor",__name:"ckeditor",props:z({editor:{},config:{default:()=>({})},tagName:{default:"div"},disabled:{type:Boolean,default:!1},disableTwoWayDataBinding:{type:Boolean,default:!1}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:z(["ready","destroy","blur","focus","input","update:modelValue"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const o=ye(e,"modelValue"),r=e,l=n,i=D(),a=D(),u=D();t({instance:a,lastEditorData:u}),X(o,f=>{a.value&&f!==u.value&&a.value.data.set(f)}),X(()=>r.disabled,f=>{f?a.value.enableReadOnlyMode(Z):a.value.disableReadOnlyMode(Z)});function c(){const f=window.CKEDITOR_VERSION;if(!f)return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');const[g]=f.split(".").map(Number);g>=42||f.startsWith("0.0.0")||console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.")}function h(f){const g=$t(C=>{if(r.disableTwoWayDataBinding)return;const _=u.value=f.data.get();l("update:modelValue",_,C,f),l("input",_,C,f)},fn,{leading:!0});f.model.document.on("change:data",g),f.editing.view.document.on("focus",C=>{l("focus",C,f)}),f.editing.view.document.on("blur",C=>{l("blur",C,f)})}return c(),We(()=>{const f=dn(Object.assign({},r.config));o.value&&(f.initialData=o.value),r.editor.create(i.value,f).then(g=>{a.value=Ge(g),h(g),o.value!==f.initialData&&g.data.set(o.value),r.disabled&&g.enableReadOnlyMode(Z),l("ready",g)}).catch(g=>{console.error(g)})}),ze(()=>
106{a.value&&(a.value.destroy(),a.value=void 0),l("destroy")}),(f,g)=>(j(),ee(Fe(f.tagName),{ref_key:"element",ref:i},null,512))}});/**
107 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
108 * For licensing, see LICENSE.md.
109 */const pn=e=>{const t=D(null),n=D(null),o=D(null),r=te(()=>t.value!==null);return He(async()=>{const l=Mt();t.value=l,o.value=null,n.value=null;const i=()=>t.value!==l;try{const a=await e();i()||(o.value=a)}catch(a){i()||(n.value=a)}finally{i()||(t.value=null)}}),{loading:J(r),data:J(o),error:J(n)}};/**
110 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
111 * For licensing, see LICENSE.md.
112 */function gn(e){return pn(()=>ln(Ye(e)))}/**
113 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
114 * For licensing, see LICENSE.md.
115 *//* istanbul ignore if -- @preserve */if(!ge.startsWith("3."))throw new Error("The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html");const bn={class:"flex flex-col mb-4"},yn={class:"grid grid-cols-2 mb-4 gap-4"},vn={class:"flex flex-col"},hn={class:"flex flex-col"},wn={class:"mb-4"},kn={class:"editor !max-w-[unset]"},Cn={class:"flex justify-end gap-2"},En={__name:"AddEdit",props:z(["action","blogData"],{modelValue:{default:!1},modelModifiers:{}}),emits:z(["reload"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=ve(),l=ye(e,"modelValue"),i=gn({version:"44.3.0",premium:!1}),a=te(()=>i.data.value?i.data.value.CKEditor.ClassicEditor:null),u=te(()=>{if(!i.data.value)return null;const{Essentials:w,Paragraph:d,Bold:b,Italic:I,List:m,Strikethrough:s,Superscript:S,Font:y,Subscript:T,Code:O,Link:B,BlockQuote:R,CodeBlock:K,Alignment:L,Heading:E,Indent:x,Image:U,ImageResizeEditing:_e,ImageResizeHandles:xe,ImageToolbar:Se,ImageCaption:Ae,ImageStyle:Be,ImageResize:Re,LinkImage:$e,ImageInsert:Ne,ImageInsertViaUrl:Ke,Base64UploadAdapter:Le}=i.data.value.CKEditor;return{licenseKey:"eyJhbGciOiJFUzI1NiJ9.eyJleHAiOjE3NzM5NjQ3OTksImp0aSI6IjA0NWYzN2IxLTgyMTgtNDg2OC05NTA0LTE4NjM3ZjQ4NzUwYyIsInVzYWdlRW5kcG9pbnQiOiJodHRwczovL3Byb3h5LWV2ZW50LmNrZWRpdG9yLmNvbSIsImRpc3RyaWJ1dGlvbkNoYW5uZWwiOlsiY2xvdWQiLCJkcnVwYWwiXSwiZmVhdHVyZXMiOlsiRFJVUCJdLCJ2YyI6IjhiODczZjdiIn0.P78OAebw-5OqB7yYxR0RLOvflCVw468YjCKud1jwVCm-GNRnDuYyxPcigpalw43rl_EaZTTyi9mkGUipcjVhzQ",plugins:[w,d,b,I,m,s,S,y,T,O,B,R,K,L,E,x,U,_e,xe,Se,Ae,Be,Re,$e,Ne,Ke,Le],toolbar:{items:["undo","redo","|","heading","|","fontsize","fontColor","fontBackgroun
115dColor","|","bold","italic","strikethrough","subscript","superscript","code","|","link","insertImage","blockQuote","codeBlock","|","alignment","|","bulletedList","numberedList","indent"],shouldNotGroupWhenFull:!0},image:{toolbar:["toggleImageCaption","imageTextAlternative","|","linkImage"]}}}),c=Je({title:{value:"",error:!1},route:{value:"",error:!1},author:{value:"",error:!1},content:{value:"",error:!1},id:{value:"",error:!1}});X(l,()=>{l&&(n.action===A.EDIT&&h(n.blogData),n.action===A.ADD&&_())});const h=w=>{if(w)for(const d in c)c[d].value=n.blogData[d]},f=()=>{let w=!0;for(const d in c)d!=="id"&&(c[d].error=!c[d].value,c[d].error&&(w=!1));return w},g=oe("loading"),C=async()=>{if(!f()){r.add(N("You have not filled in the required fields"));return}const w={content:"",author:"",title:"",id:"",index:0,route:"",publish_time:0,created_time:0};for(const I in c)w[I]=c[I].value;const d=n.action===A.ADD?rt:it;g.value=!0;const b=await d(w);if(g.value=!1,!(b!=null&&b.success)){r.add(N((b==null?void 0:b.message)||"Unknown error. Please try again"));return}r.add(re(`ReView ${n.action===A.ADD?"added":"edited"} successfully.`)),l.value=!1,o("reload")},_=()=>{for(const w in c)c[w].error=!1,c[w].value=""};return(w,d)=>{const b=Me,I=pe,m=Ue;return j(),ee(m,{visible:l.value,"onUpdate:visible":d[5]||(d[5]=s=>l.value=s),modal:"",header:`${e.action} ReView`,class:"p-dialog-maximized",loading:""},{default:ne(()=>[v("label",bn,[d[6]||(d[6]=v("span",{class:"font-semibold"}," Title ",-1)),P(b,{modelValue:p(c).title.value,"onUpdate:modelValue":d[0]||(d[0]=s=>p(c).title.value=s),invalid:p(c).title.error,class:"flex-auto",autocomplete:"off"},null,8,["modelValue","invalid"])]),v("div",yn,[v("label",vn,[d[7]||(d[7]=v("span",{class:"font-semibold"}," Author name ",-1)),P(b,{modelValue:p(c).author.value,"onUpdate:modelValue":d[1]||(d[1]=s=>p(c).author.value=s),invalid:p(c).author.error,class:"flex-auto",autocomplete:"off"},null,8,["modelValue","invalid"])]),v("label",hn,[d[8]||(d[8]=v("span",{class:"font-semibold"}," Permalink ",-1)),P(b,{modelValue:p(c).route.value,"onUpdate:modelValue":d[2]||(d[2]=s=>p(c).route.value=s),invalid:p(c).route.error,class:"flex-auto",autocomplete:"off"},null,8,["modelValue","invalid"])])]),v("div",wn,[d[9]||(d[9]=v("span",{class:"font-semibold"}," Content ",-1)),v("div",kn,[p(a)?(j(),ee(p(mn),{key:0,modelValue:p(c).content.value,"onUpdate:modelValue":d[3]||(d[3]=s=>p(c).content.value=s),editor:p(a),config:p(u)},null,8,["modelValue","editor","config"])):he("",!0)])]),v("div",Cn,[P(I,{type:"button",label:"Cancel",severity:"secondary",onClick:d[4]||(d[4]=s=>l.value=!1)}),P(I,{type:"button",label:"Save",onClick:C,loading:p(g)},null,8,["loading"])])]),_:1},8,["visible","header"])}}},In={class:"space-y-3"},Tn={class:"flex justify-end"},jn={class:"line-clamp-2"},Dn={key:0},Pn={key:1,class:"flex items-center gap-x-2 action"},On={disabled:""},Vn=["onClick"],_n=["onClick"],xn=["onClick"],Sn={key:2},An=be({__name:"reviews",setup(e){const t=D(!1),n=D(A.ADD),o=D(),r=async()=>{n.value=A.ADD,t.value=!0},l=async m=>{n.value=A.EDIT,t.value=!0,o.value=m},i=oe("blogs"),a=[{field:"index",header:"No.",isIndex:!0},{field:"title",header:"Title"},{field:"author",header:"Author"},{field:"route",header:"Permalink"},{field:"created_time",header:"Created At",isTime:!0},{field:"publish_time",header:"Published At",isTime:!0},{field:"",header:"Action",isAction:!0}],u=oe("loading"),c=qe(),h=ve(),f=m=>{c.require({message:"Are you sure you want to delete this ReView?",header:"Confirmation",rejectProps:{label:"Cancel",severity:"secondary",outlined:!0},acceptProps:{label:"Confirm"},accept:()=>{g(m)}})},g=async m=>{u.value=!0;const s=await st({id:m});if(u.value=!1,!(s!=null&&s.success)){h.add(N((s==null?void 0:s.message)||"Unknown error. Please try again"));return}h.add(re("ReView deleted successfully.")),await b(1)},C=m=>{c.require({message:"Are you sure you want to publish this ReView?",header:"Confirmation",rejectProps:{label:"Cancel",severity:"secondary",outlined:!0},acceptProps:{label:"Confirm"},accept:()=>{_(m)}})},_=async m=>{u.value=!0;const s=await lt({id:m});if(u.value=!1,!(s!=null&&s.success)){h.add(N((s==null?void 0:s.message)||"Unknown error. Please try again"));return}h.add(re("ReView published successfully.")),await b(1)},w=D(1),d=D(!1),b=async m=>{d.value=!0;const s=await at(m);if(d.value=!1,!(s!=null&&s.success)){h.add(N((s==null?void 0:s.message)||"Unknown error. Please try again"));return}w.value=m},I=({page:m})=>{b(m+1)};return b(1),(m,s)=>{var K,L;const S=pe,y=dt,T=ct,O=En,B=ut,R=et;return j(),V(ue,null,[v("div",In,[v("div",Tn,[P(S,{label:"Add ReView",onClick:r})]),s[7]||(s[7]=v("h1",{class:"rew-font rew-text-brown text-3xl text-center"},[v("span",{class:"rew-text-green"},"Re"),Qe("Views ")],-1)),P(T,{value:(K=p(i))==null?void 0:K.blogs,scrollable:"",scrollHeight:"calc(100vh - 120px)",removableSort:"",rowHover:"",stripedRows:"",loading:p(d),lazy:"",paginator:"",rows:"BLOG_PAGE_LIMIT"in m?m.BLOG_PAGE_LIMIT:p(nt),totalRecords:(L=p(i))==null?void 0:L.total,onPage:s[0]||(s[0]=E=>I(E))},{default:ne(()=>[(j(),V(ue,null,Xe(a,E=>P(y,{key:E.field,field:E.field,header:E.header},{body:ne(x=>[v("div",jn,[E.isTime?(j(),V("span",Dn,ce(("formatDate"in m?m.formatDate:p(ot))(x.data[E.field])),1)):E.isAction?(j(),V("div",Pn,[M((j(),V("button",On,s[3]||(s[3]=[v("i",{class:"pi pi-eye"},null,-1)]))),[[R,"Preview function will be implemented later",void 0,{bottom:!0}]]),M((j(),V("button",{onClick:U=>l(x.data)},s[4]||(s[4]=[v("i",{class:"pi pi-pencil"},null,-1)]),8,Vn)),[[R,"Edit",void 0,{bottom:!0}]]),x.data.is_published?he("",!0):M((j(),V("button",{key:0,onClick:U=>C(x.data.id)},s[5]||(s[5]=[v("i",{class:"pi pi-angle-double-up"},null,-1)]),8,_n)),[[R,"Publish",void 0,{bottom:!0}]]),M((j(),V("button",{onClick:U=>f(x.data.id)},s[6]||(s[6]=[v("i",{class:"pi pi-trash"},null,-1)]),8,xn)),[[R,"Delete",void 0,{bottom:!0}]])])):(j(),V("span",Sn,ce(x.data[E.field]),1))])]),_:2},1032,["field","header"])),64))]),_:1},8,["value","loading","rows","totalRecords"])]),P(O,{modelValue:p(t),"onUpdate:modelValue":s[1]||(s[1]=E=>Ze(t)?t.value=E:null),action:p(n),blogData:p(o),onReload:s[2]||(s[2]=()=>b(p(w)))},null,8,["modelValue","action","blogData"]),P(B)],64)}}}),Co=tt(An,[["__scopeId","data-v-cbe88508"]]);export{Co as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.