Files
appco_dist/.output/public/_nuxt/CwoPIi9F.js
T

38 lines
252 KiB
JavaScript
Raw Normal View History

2026-03-03 20:40:54 +03:30
import{B as Bn}from"./DAaUah2x.js";import{d as Xn,J as nr,r as Gt,H as Qn,a0 as rr,af as Cn,z as Ne,G as Jn,E as Ft,B as jt,D as Ot,K as xt,F as ir,C as Mn,S as Pe,Q as Rn,u as or,o as ar,A as qn,a3 as lr,a1 as Fn,a2 as Un,T as ur,c_ as sr}from"./CE4SaZgW.js";import{_ as fr,a as cr}from"./C-nwmc8e.js";import{B as hr}from"./DJir2CeY.js";import{_ as dr}from"./DvWNwIUf.js";import{B as jn}from"./5PiJbsaQ.js";import{I as vr}from"./CkKbv3Ni.js";import{B as pr}from"./g9otGdDE.js";import{u as yr,c as gr,g as mr,d as br}from"./73mfAfc8.js";import{c as Wt}from"./CE1G-McA.js";import{B as _r}from"./CSzw-WNk.js";import{F as Or}from"./C6Lfa4XD.js";import{_ as Er}from"./DSWAPs-i.js";import{_ as Ar}from"./DlAUqK2U.js";import{F as wr}from"./DQtr8B_M.js";import"./032LL7yb.js";import"./DNQpC0YG.js";/* empty css */import"./CscEAC8U.js";import"./GIvwLoBE.js";import"./C9-mKqzf.js";import"./CjPHwh7J.js";import"./cA5fh2lg.js";import"./BD2G5fvF.js";import"./B2MUeQ_z.js";import"./BQKhYWGC.js";import"./ogsyABxJ.js";import"./PGC92_Sj.js";import"./DFL6LqjW.js";import"./0N7JoioX.js";import"./CDDBg3Y_.js";import"./Dmy9LQHx.js";import"./ssSX8W6r.js";import"./BK6U06JP.js";import"./B5RoG9wW.js";import"./Cj99RmFE.js";import"./B0tUBnBT.js";import"./DZnIL_2I.js";import"./CxVR7ht-.js";import"./CCrciQyb.js";import"./D_wgKPen.js";import"./DjvBa-1E.js";import"./UfKM_8Ux.js";var Ve={exports:{}};var Tr=Ve.exports,Hn;function kr(){return Hn||(Hn=1,(function(st,ft){(function(O,g){st.exports=g()})(typeof self<"u"?self:Tr,function(){return(function(B){var O={};function g(P){if(O[P])return O[P].exports;var S=O[P]={i:P,l:!1,exports:{}};return B[P].call(S.exports,S,S.exports,g),S.l=!0,S.exports}return g.m=B,g.c=O,g.d=function(P,S,k){g.o(P,S)||Object.defineProperty(P,S,{configurable:!1,enumerable:!0,get:k})},g.n=function(P){var S=P&&P.__esModule?function(){return P.default}:function(){return P};return g.d(S,"a",S),S},g.o=function(P,S){return Object.prototype.hasOwnProperty.call(P,S)},g.p="",g(g.s=109)})([(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(17),S=g(18),k=g(19),p=g(45),d=g(46),s=g(47),i=g(48),t=g(49),e=g(12),h=g(32),u=g(33),c=g(31),a=g(1),o={Scope:a.Scope,create:a.create,find:a.find,query:a.query,register:a.register,Container:P.default,Format:S.default,Leaf:k.default,Embed:i.default,Scroll:p.default,Block:s.default,Inline:d.default,Text:t.default,Attributor:{Attribute:e.default,Class:h.default,Style:u.default,Store:c.default}};O.default=o}),(function(B,O,g){var P=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var r in o)o.hasOwnProperty(r)&&(a[r]=o[r])};return function(a,o){c(a,o);function r(){this.constructor=a}a.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=(function(c){P(a,c);function a(o){var r=this;return o="[Parchment] "+o,r=c.call(this,o)||this,r.message=o,r.name=r.constructor.name,r}return a})(Error);O.ParchmentError=S;var k={},p={},d={},s={};O.DATA_KEY="__blot";var i;(function(c){c[c.TYPE=3]="TYPE",c[c.LEVEL=12]="LEVEL",c[c.ATTRIBUTE=13]="ATTRIBUTE",c[c.BLOT=14]="BLOT",c[c.INLINE=7]="INLINE",c[c.BLOCK=11]="BLOCK",c[c.BLOCK_BLOT=10]="BLOCK_BLOT",c[c.INLINE_BLOT=6]="INLINE_BLOT",c[c.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",c[c.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",c[c.ANY=15]="ANY"})(i=O.Scope||(O.Scope={}));function t(c,a){var o=h(c);if(o==null)throw new S("Unable to create "+c+" blot");var r=o,n=c instanceof Node||c.nodeType===Node.TEXT_NODE?c:r.create(a);return new r(n,a)}O.create=t;function e(c,a){return a===void 0&&(a=!1),c==null?null:c[O.DATA_KEY]!=null?c[O.DATA_KEY].blot:a?e(c.parentNode,a):null}O.find=e;function h(c,a){a===void 0&&(a=i.ANY);var o;if(typeof c=="string")o=s[c]||k[c];else if(c instanceof Text||c.nodeType===Node.TEXT_NODE)o=s.text;else if(typeof c=="number")c&i.LEVEL&i.BLOCK?o=s.block:c&i.LEVEL&i.INLINE&&(o=s.inline);else if(c instanceof HTMLElement){var r=(c.getAttribute("class")||"").split(/\s+/);for(var n in r)if(o=p[r[n]],o)
2026-02-22 12:27:05 +03:30
`;for(var e=p.iterator(this.ops),h=new s,u=0;e.hasNext();){if(e.peekType()!=="insert")return;var c=e.peek(),a=p.length(c)-e.peekLength(),o=typeof c.insert=="string"?c.insert.indexOf(t,a)-a:-1;if(o<0)h.push(e.next());else if(o>0)h.push(e.next(o));else{if(i(h,e.next(1).attributes||{},u)===!1)return;u+=1,h=new s}}h.length()>0&&i(h,{},u)},s.prototype.transform=function(i,t){if(t=!!t,typeof i=="number")return this.transformPosition(i,t);for(var e=p.iterator(this.ops),h=p.iterator(i.ops),u=new s;e.hasNext()||h.hasNext();)if(e.peekType()==="insert"&&(t||h.peekType()!=="insert"))u.retain(p.length(e.next()));else if(h.peekType()==="insert")u.push(h.next());else{var c=Math.min(e.peekLength(),h.peekLength()),a=e.next(c),o=h.next(c);if(a.delete)continue;o.delete?u.push(o):u.retain(c,p.attributes.transform(a.attributes,o.attributes,t))}return u.chop()},s.prototype.transformPosition=function(i,t){t=!!t;for(var e=p.iterator(this.ops),h=0;e.hasNext()&&h<=i;){var u=e.peekLength(),c=e.peekType();if(e.next(),c==="delete"){i-=Math.min(u,i-h);continue}else c==="insert"&&(h<i||!t)&&(i+=u);h+=u}return i},B.exports=s}),(function(B,O){var g=Object.prototype.hasOwnProperty,P=Object.prototype.toString,S=Object.defineProperty,k=Object.getOwnPropertyDescriptor,p=function(e){return typeof Array.isArray=="function"?Array.isArray(e):P.call(e)==="[object Array]"},d=function(e){if(!e||P.call(e)!=="[object Object]")return!1;var h=g.call(e,"constructor"),u=e.constructor&&e.constructor.prototype&&g.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!h&&!u)return!1;var c;for(c in e);return typeof c>"u"||g.call(e,c)},s=function(e,h){S&&h.name==="__proto__"?S(e,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):e[h.name]=h.newValue},i=function(e,h){if(h==="__proto__")if(g.call(e,h)){if(k)return k(e,h).value}else return;return e[h]};B.exports=function t(){var e,h,u,c,a,o,r=arguments[0],n=1,l=arguments.length,E=!1;for(typeof r=="boolean"&&(E=r,r=arguments[1]||{},n=2),(r==null||typeof r!="object"&&typeof r!="function")&&(r={});n<l;++n)if(e=arguments[n],e!=null)for(h in e)u=i(r,h),c=i(e,h),r!==c&&(E&&c&&(d(c)||(a=p(c)))?(a?(a=!1,o=u&&p(u)?u:[]):o=u&&d(u)?u:{},s(r,{name:h,newValue:t(E,o,c)})):typeof c<"u"&&s(r,{name:h,newValue:c}));return r}}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var P=(function(){function v(_,w){for(var x=0;x<w.length;x++){var I=w[x];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}return function(_,w,x){return w&&v(_.prototype,w),x&&v(_,x),_}})(),S=function v(_,w,x){_===null&&(_=Function.prototype);var I=Object.getOwnPropertyDescriptor(_,w);if(I===void 0){var U=Object.getPrototypeOf(_);return U===null?void 0:v(U,w,x)}else{if("value"in I)return I.value;var z=I.get;return z===void 0?void 0:z.call(x)}},k=g(3),p=r(k),d=g(2),s=r(d),i=g(0),t=r(i),e=g(16),h=r(e),u=g(6),c=r(u),a=g(7),o=r(a);function r(v){return v&&v.__esModule?v:{default:v}}function n(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function l(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:v}function E(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);v.prototype=Object.create(_&&_.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(v,_):v.__proto__=_)}var b=1,m=(function(v){E(_,v);function _(){return n(this,_),l(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return P(_,[{key:"attach",value:function(){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new s.default().insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(x,I){var U=t
2026-01-27 16:02:45 +03:30
`)){var z=t.default.create(T.blotName);this.parent.insertBefore(z,x===0?this:this.next),z.insertAt(0,I.slice(0,-1))}else S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,x,I,U)}}]),_})(t.default.Embed);m.scope=t.default.Scope.BLOCK_BLOT;var T=(function(v){E(_,v);function _(w){n(this,_);var x=l(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w));return x.cache={},x}return P(_,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(x,I){return I.length()===0?x:x.insert(I.value(),y(I))},new s.default).insert(`
`,y(this))),this.cache.delta}},{key:"deleteAt",value:function(x,I){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,x,I),this.cache={}}},{key:"formatAt",value:function(x,I,U,z){I<=0||(t.default.query(U,t.default.Scope.BLOCK)?x+I===this.length()&&this.format(U,z):S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,x,Math.min(I,this.length()-x-1),U,z),this.cache={})}},{key:"insertAt",value:function(x,I,U){if(U!=null)return S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,x,I,U);if(I.length!==0){var z=I.split(`
2026-02-22 12:27:05 +03:30
`),W=z.shift();W.length>0&&(x<this.length()-1||this.children.tail==null?S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,Math.min(x,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var F=this;z.reduce(function(R,A){return F=F.split(R,!0),F.insertAt(0,A),A.length},x+W.length)}}},{key:"insertBefore",value:function(x,I){var U=this.children.head;S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,x,I),U instanceof h.default&&U.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"length",this).call(this)+b),this.cache.length}},{key:"moveChildren",value:function(x,I){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"moveChildren",this).call(this,x,I),this.cache={}}},{key:"optimize",value:function(x){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,x),this.cache={}}},{key:"path",value:function(x){return S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,x,!0)}},{key:"removeChild",value:function(x){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"removeChild",this).call(this,x),this.cache={}}},{key:"split",value:function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(x===0||x>=this.length()-b)){var U=this.clone();return x===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{var z=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,x,I);return this.cache={},z}}}]),_})(t.default.Block);T.blotName="block",T.tagName="P",T.defaultChild="break",T.allowedChildren=[c.default,t.default.Embed,o.default];function y(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v==null||(typeof v.formats=="function"&&(_=(0,p.default)(_,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?_:y(v.parent,_)}O.bubbleFormats=y,O.BlockEmbed=m,O.default=T}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},S=(function(){function F(R,A){var q=[],j=!0,H=!1,M=void 0;try{for(var L=R[Symbol.iterator](),C;!(j=(C=L.next()).done)&&(q.push(C.value),!(A&&q.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&L.return&&L.return()}finally{if(H)throw M}}return q}return function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return F(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function F(R,A){for(var q=0;q<A.length;q++){var j=A[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(R,j.key,j)}}return function(R,A,q){return A&&F(R.prototype,A),q&&F(R,q),R}})();g(50);var p=g(2),d=y(p),s=g(14),i=y(s),t=g(8),e=y(t),h=g(9),u=y(h),c=g(0),a=y(c),o=g(15),r=y(o),n=g(3),l=y(n),E=g(10),b=y(E),m=g(34),T=y(m);function y(F){return F&&F.__esModule?F:{default:F}}function v(F,R,A){return R in F?Object.defineProperty(F,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):F[R]=A,F}function _(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}var w=(0,b.default)("quill"),x=(function(){k(F,null,[{key:"debug",value:function(A){A===!0&&(A="log"),b.default.level(A)}},{key:"find",value:function(A){return A.__quill||a.default.find(A)}},{key:"import",value:function(A){return this.imports[A]==null&&w.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof A!="string"){var M=A.attrName||A.blotName;typeof M=="string"?this.register("formats/"+M,A,q):Object.keys
`&&(q.editor.deleteText(q.getLength()-1,1),L.delete(1));var K=M.compose(L);return K},j)}},{key:"setSelection",value:function(A,q,j){if(A==null)this.selection.setRange(null,q||F.sources.API);else{var H=z(A,q,j),M=S(H,4);A=M[0],q=M[1],j=M[3],this.selection.setRange(new o.Range(A,q),j),j!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,j=new d.default().insert(A);return this.setContents(j,q)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,q=this.scroll.update(A);return this.selection.update(A),q}},{key:"updateContents",value:function(A){var q=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return U.call(this,function(){return A=new d.default(A),q.editor.applyDelta(A,j)},j,!0)}}]),F})();x.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},x.events=e.default.events,x.sources=e.default.sources,x.version="1.3.7",x.imports={delta:d.default,parchment:a.default,"core/module":u.default,"core/theme":T.default};function I(F,R){if(R=(0,l.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===x.DEFAULTS.theme)R.theme=T.default;else if(R.theme=x.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var A=(0,l.default)(!0,{},R.theme.DEFAULTS);[A,R].forEach(function(H){H.modules=H.modules||{},Object.keys(H.modules).forEach(function(M){H.modules[M]===!0&&(H.modules[M]={})})});var q=Object.keys(A.modules).concat(Object.keys(R.modules)),j=q.reduce(function(H,M){var L=x.import("modules/"+M);return L==null?w.error("Cannot load "+M+" module. Are you sure you registered it?"):H[M]=L.DEFAULTS||{},H},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,l.default)(!0,{},x.DEFAULTS,{modules:j},A,R),["bounds","container","scrollingContainer"].forEach(function(H){typeof R[H]=="string"&&(R[H]=document.querySelector(R[H]))}),R.modules=Object.keys(R.modules).reduce(function(H,M){return R.modules[M]&&(H[M]=R.modules[M]),H},{}),R}function U(F,R,A,q){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new d.default;var j=A==null?null:this.getSelection(),H=this.editor.delta,M=F();if(j!=null&&(A===!0&&(A=j.index),q==null?j=W(j,M,R):q!==0&&(j=W(j,A,q,R)),this.setSelection(j,e.default.sources.SILENT)),M.length()>0){var L,C=[e.default.events.TEXT_CHANGE,M,H,R];if((L=this.emitter).emit.apply(L,[e.default.events.EDITOR_CHANGE].concat(C)),R!==e.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,C)}}return M}function z(F,R,A,q,j){var H={};return typeof F.index=="number"&&typeof F.length=="number"?typeof R!="number"?(j=q,q=A,A=R,R=F.length,F=F.index):(R=F.length,F=F.index):typeof R!="number"&&(j=q,q=A,A=R,R=0),(typeof A>"u"?"undefined":P(A))==="object"?(H=A,j=q):typeof A=="string"&&(q!=null?H[A]=q:j=A),j=j||e.default.sources.API,[F,R,H,j]}function W(F,R,A,q){if(F==null)return null;var j=void 0,H=void 0;if(R instanceof d.default){var M=[F.index,F.index+F.length].map(function(G){return R.transformPosition(G,q!==e.default.sources.USER)}),L=S(M,2);j=L[0],H=L[1]}else{var C=[F.index,F.index+F.length].map(function(G){return G<R||G===R&&q===e.default.sources.USER?G:A>=0?G+A:Math.max(R,G+A)}),K=S(C,2);j=K[0],H=K[1]}return new o.Range(j,H-j)}O.expandConfig=I,O.overload=z,O.default=x}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function c(a,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,o);if(n===void 0){var l=Object.getPrototypeOf(a);retu
2026-01-27 16:02:45 +03:30
`)&&(_=_.slice(0,-1)),_.split(`
`).reduce(function(w,x){return w.insert(x).insert(`
2026-02-22 12:27:05 +03:30
`,v.formats())},new d.default)}},{key:"format",value:function(v,_){if(!(v===this.statics.blotName&&_)){var w=this.descendant(a.default,this.length()-1),x=P(w,1),I=x[0];I?.deleteAt(I.length()-1,1),k(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"format",this).call(this,v,_)}}},{key:"formatAt",value:function(v,_,w,x){if(_!==0&&!(i.default.query(w,i.default.Scope.BLOCK)==null||w===this.statics.blotName&&x===this.statics.formats(this.domNode))){var I=this.newlineIndex(v);if(!(I<0||I>=v+_)){var U=this.newlineIndex(v,!0)+1,z=I-U+1,W=this.isolate(U,z),F=W.next;W.format(w,x),F instanceof T&&F.formatAt(0,v-U+_-z,w,x)}}}},{key:"insertAt",value:function(v,_,w){if(w==null){var x=this.descendant(a.default,v),I=P(x,2),U=I[0],z=I[1];U.insertAt(z,_)}}},{key:"length",value:function(){var v=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
2026-01-27 16:02:45 +03:30
`)?v:v+1}},{key:"newlineIndex",value:function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_)return this.domNode.textContent.slice(0,v).lastIndexOf(`
`);var w=this.domNode.textContent.slice(v).indexOf(`
`);return w>-1?v+w:-1}},{key:"optimize",value:function(v){this.domNode.textContent.endsWith(`
`)||this.appendChild(i.default.create("text",`
2026-02-22 12:27:05 +03:30
`)),k(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,v);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===_.statics.formats(_.domNode)&&(_.optimize(v),_.moveChildren(this),_.remove())}},{key:"replace",value:function(v){k(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){var w=i.default.find(_);w==null?_.parentNode.removeChild(_):w instanceof i.default.Embed?w.remove():w.unwrap()})}}],[{key:"create",value:function(v){var _=k(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,v);return _.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),T})(e.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",O.Code=E,O.default=b}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},S=(function(){function F(R,A){var q=[],j=!0,H=!1,M=void 0;try{for(var L=R[Symbol.iterator](),C;!(j=(C=L.next()).done)&&(q.push(C.value),!(A&&q.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&L.return&&L.return()}finally{if(H)throw M}}return q}return function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return F(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function F(R,A){for(var q=0;q<A.length;q++){var j=A[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(R,j.key,j)}}return function(R,A,q){return A&&F(R.prototype,A),q&&F(R,q),R}})(),p=g(2),d=_(p),s=g(20),i=_(s),t=g(0),e=_(t),h=g(13),u=_(h),c=g(24),a=_(c),o=g(4),r=_(o),n=g(16),l=_(n),E=g(21),b=_(E),m=g(11),T=_(m),y=g(3),v=_(y);function _(F){return F&&F.__esModule?F:{default:F}}function w(F,R,A){return R in F?Object.defineProperty(F,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):F[R]=A,F}function x(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}var I=/^[ -~]*$/,U=(function(){function F(R){x(this,F),this.scroll=R,this.delta=this.getDelta()}return k(F,[{key:"applyDelta",value:function(A){var q=this,j=!1;this.scroll.update();var H=this.scroll.length();return this.scroll.batchStart(),A=W(A),A.reduce(function(M,L){var C=L.retain||L.delete||L.insert.length||1,K=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var G=L.insert;G.endsWith(`
2026-02-01 17:38:39 +03:30
`)&&j&&(j=!1,G=G.slice(0,-1)),M>=H&&!G.endsWith(`
`)&&(j=!0),q.scroll.insertAt(M,G);var X=q.scroll.line(M),tt=S(X,2),nt=tt[0],it=tt[1],ut=(0,v.default)({},(0,o.bubbleFormats)(nt));if(nt instanceof r.default){var ct=nt.descendant(e.default.Leaf,it),mt=S(ct,1),gt=mt[0];ut=(0,v.default)(ut,(0,o.bubbleFormats)(gt))}K=i.default.attributes.diff(ut,K)||{}}else if(P(L.insert)==="object"){var V=Object.keys(L.insert)[0];if(V==null)return M;q.scroll.insertAt(M,V,L.insert[V])}H+=C}return Object.keys(K).forEach(function(Y){q.scroll.formatAt(M,C,Y,K[Y])}),M+C},0),A.reduce(function(M,L){return typeof L.delete=="number"?(q.scroll.deleteAt(M,L.delete),M):M+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(A)}},{key:"deleteText",value:function(A,q){return this.scroll.deleteAt(A,q),this.update(new d.default().retain(A).delete(q))}},{key:"formatLine",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(H).forEach(function(M){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[M])){var L=j.scroll.lines(A,Math.max(q,1)),C=q;L.forEach(function(K){var G=K.length();if(!(K instanceof u.default))K.format(M,H[M]);else{var X=A-K.offset(j.scroll),tt=K.newlineIndex(X+C)-X+1;K.formatAt(X,tt,M,H[M])}C-=G})}}),this.scroll.optimize(),this.update(new d.default().retain(A).retain(q,(0,b.default)(H)))}},{key:"formatText",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(H).forEach(function(M){j.scroll.formatAt(A,q,M,H[M])}),this.update(new d.default().retain(A).retain(q,(0,b.default)(H)))}},{key:"getContents",value:function(A,q){return this.delta.slice(A,A+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(A,q){return A.concat(q.delta())},new d.default)}},{key:"getFormat",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],H=[];q===0?this.scroll.path(A).forEach(function(L){var C=S(L,1),K=C[0];K instanceof r.default?j.push(K):K instanceof e.default.Leaf&&H.push(K)}):(j=this.scroll.lines(A,q),H=this.scroll.descendants(e.default.Leaf,A,q));var M=[j,H].map(function(L){if(L.length===0)return{};for(var C=(0,o.bubbleFormats)(L.shift());Object.keys(C).length>0;){var K=L.shift();if(K==null)return C;C=z((0,o.bubbleFormats)(K),C)}return C});return v.default.apply(v.default,M)}},{key:"getText",value:function(A,q){return this.getContents(A,q).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(A,q,j){return this.scroll.insertAt(A,q,j),this.update(new d.default().retain(A).insert(w({},q,j)))}},{key:"insertText",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q=q.replace(/\r\n/g,`
2026-01-27 16:02:45 +03:30
`).replace(/\r/g,`
2026-02-01 17:38:39 +03:30
`),this.scroll.insertAt(A,q),Object.keys(H).forEach(function(M){j.scroll.formatAt(A,q.length,M,H[M])}),this.update(new d.default().retain(A).insert(q,(0,b.default)(H)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var A=this.scroll.children.head;return A.statics.blotName!==r.default.blotName||A.children.length>1?!1:A.children.head instanceof l.default}},{key:"removeFormat",value:function(A,q){var j=this.getText(A,q),H=this.scroll.line(A+q),M=S(H,2),L=M[0],C=M[1],K=0,G=new d.default;L!=null&&(L instanceof u.default?K=L.newlineIndex(C)-C+1:K=L.length()-C,G=L.delta().slice(C,C+K-1).insert(`
`));var X=this.getContents(A,q+K),tt=X.diff(new d.default().insert(j).concat(G)),nt=new d.default().retain(A).concat(tt);return this.applyDelta(nt)}},{key:"update",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,H=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(I)&&e.default.find(q[0].target)){var M=e.default.find(q[0].target),L=(0,o.bubbleFormats)(M),C=M.offset(this.scroll),K=q[0].oldValue.replace(a.default.CONTENTS,""),G=new d.default().insert(K),X=new d.default().insert(M.value()),tt=new d.default().retain(C).concat(G.diff(X,j));A=tt.reduce(function(nt,it){return it.insert?nt.insert(it.insert,L):nt.push(it)},new d.default),this.delta=H.compose(A)}else this.delta=this.getDelta(),(!A||!(0,T.default)(H.compose(A),this.delta))&&(A=H.diff(this.delta,j));return A}}]),F})();function z(F,R){return Object.keys(R).reduce(function(A,q){return F[q]==null||(R[q]===F[q]?A[q]=R[q]:Array.isArray(R[q])?R[q].indexOf(F[q])<0&&(A[q]=R[q].concat([F[q]])):A[q]=[R[q],F[q]]),A},{})}function W(F){return F.reduce(function(R,A){if(A.insert===1){var q=(0,b.default)(A.attributes);return delete q.image,R.insert({image:A.attributes.image},q)}if(A.attributes!=null&&(A.attributes.list===!0||A.attributes.bullet===!0)&&(A=(0,b.default)(A),A.attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),typeof A.insert=="string"){var j=A.insert.replace(/\r\n/g,`
2026-01-27 16:02:45 +03:30
`).replace(/\r/g,`
2026-02-22 12:27:05 +03:30
`);return R.insert(j,A.attributes)}return R.push(A)},new d.default)}O.default=U}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=(function(){function m(T,y){var v=[],_=!0,w=!1,x=void 0;try{for(var I=T[Symbol.iterator](),U;!(_=(U=I.next()).done)&&(v.push(U.value),!(y&&v.length===y));_=!0);}catch(z){w=!0,x=z}finally{try{!_&&I.return&&I.return()}finally{if(w)throw x}}return v}return function(T,y){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return m(T,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function m(T,y){for(var v=0;v<y.length;v++){var _=y[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(T,_.key,_)}}return function(T,y,v){return y&&m(T.prototype,y),v&&m(T,v),T}})(),k=g(0),p=a(k),d=g(21),s=a(d),i=g(11),t=a(i),e=g(8),h=a(e),u=g(10),c=a(u);function a(m){return m&&m.__esModule?m:{default:m}}function o(m){if(Array.isArray(m)){for(var T=0,y=Array(m.length);T<m.length;T++)y[T]=m[T];return y}else return Array.from(m)}function r(m,T){if(!(m instanceof T))throw new TypeError("Cannot call a class as a function")}var n=(0,c.default)("quill:selection"),l=function m(T){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;r(this,m),this.index=T,this.length=y},E=(function(){function m(T,y){var v=this;r(this,m),this.emitter=y,this.scroll=T,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new l(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){v.mouseDown||setTimeout(v.update.bind(v,h.default.sources.USER),1)}),this.emitter.on(h.default.events.EDITOR_CHANGE,function(_,w){_===h.default.events.TEXT_CHANGE&&w.length()>0&&v.update(h.default.sources.SILENT)}),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var _=v.getNativeRange();_!=null&&_.start.node!==v.cursor.textNode&&v.emitter.once(h.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(_.start.node,_.start.offset,_.end.node,_.end.offset)}catch{}})}}),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,function(_,w){if(w.range){var x=w.range,I=x.startNode,U=x.startOffset,z=x.endNode,W=x.endOffset;v.setNativeRange(I,U,z,W)}}),this.update(h.default.sources.SILENT)}return S(m,[{key:"handleComposition",value:function(){var y=this;this.root.addEventListener("compositionstart",function(){y.composing=!0}),this.root.addEventListener("compositionend",function(){if(y.composing=!1,y.cursor.parent){var v=y.cursor.restore();if(!v)return;setTimeout(function(){y.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){var y=this;this.emitter.listenDOM("mousedown",document.body,function(){y.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){y.mouseDown=!1,y.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(y,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[y])){this.scroll.update();var _=this.getNativeRange();if(!(_==null||!_.native.collapsed||p.default.query(y,p.default.Scope.BLOCK))){if(_.start.node!==this.cursor.textNode){var w=p.default.find(_.start.node,!1);if(w==null)return;if(w instanceof p.default.Leaf){var x=w.split(_.start.offset);w.parent.insertBefore(this.cursor,x)}else w.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(y,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=this.scroll.length();y=Math.min(y,_-1),v=Math.min(y+v,_-1)-y;var w=void 0,x=this.scroll.leaf(y),I=P(x,2),U=I[0],z=I[1];if(U==null)return null;var W=U.position(z,!0),F=P(W,2);w=F[0],z=F[1];var R=document.createRange();if(v>0){R.setStart(w,z);var A=this.scroll.
`)&&(x=x.slice(0,-1)),U.insertAt(0,x,I)}else{var z=d.default.create(x,I);this.appendChild(z)}else k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,w,x,I);this.optimize()}}},{key:"insertBefore",value:function(w,x){if(w.statics.scope===d.default.Scope.INLINE_BLOT){var I=d.default.create(this.statics.defaultChild);I.appendChild(w),w=I}k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,w,x)}},{key:"leaf",value:function(w){return this.path(w).pop()||[null,-1]}},{key:"line",value:function(w){return w===this.length()?this.line(w-1):this.descendant(m,w)}},{key:"lines",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function U(z,W,F){var R=[],A=F;return z.children.forEachAt(W,F,function(q,j,H){m(q)?R.push(q):q instanceof d.default.Container&&(R=R.concat(U(q,j,A))),A-=H}),R};return I(this,w,x)}},{key:"optimize",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,w,x),w.length>0&&this.emitter.emit(i.default.events.SCROLL_OPTIMIZE,w,x))}},{key:"path",value:function(w){return k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,w).slice(1)}},{key:"update",value:function(w){if(this.batch!==!0){var x=i.default.sources.USER;typeof w=="string"&&(x=w),Array.isArray(w)||(w=this.observer.takeRecords()),w.length>0&&this.emitter.emit(i.default.events.SCROLL_BEFORE_UPDATE,x,w),k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,w.concat([])),w.length>0&&this.emitter.emit(i.default.events.SCROLL_UPDATE,x,w)}}}]),v})(d.default.Scroll);T.blotName="scroll",T.className="ql-editor",T.tagName="DIV",T.defaultChild="block",T.allowedChildren=[e.default,t.BlockEmbed,r.default],O.default=T}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},S=(function(){function L(C,K){var G=[],X=!0,tt=!1,nt=void 0;try{for(var it=C[Symbol.iterator](),ut;!(X=(ut=it.next()).done)&&(G.push(ut.value),!(K&&G.length===K));X=!0);}catch(ct){tt=!0,nt=ct}finally{try{!X&&it.return&&it.return()}finally{if(tt)throw nt}}return G}return function(C,K){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return L(C,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function L(C,K){for(var G=0;G<K.length;G++){var X=K[G];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(C,X.key,X)}}return function(C,K,G){return K&&L(C.prototype,K),G&&L(C,G),C}})(),p=g(21),d=y(p),s=g(11),i=y(s),t=g(3),e=y(t),h=g(2),u=y(h),c=g(20),a=y(c),o=g(0),r=y(o),n=g(5),l=y(n),E=g(10),b=y(E),m=g(9),T=y(m);function y(L){return L&&L.__esModule?L:{default:L}}function v(L,C,K){return C in L?Object.defineProperty(L,C,{value:K,enumerable:!0,configurable:!0,writable:!0}):L[C]=K,L}function _(L,C){if(!(L instanceof C))throw new TypeError("Cannot call a class as a function")}function w(L,C){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:L}function x(L,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);L.prototype=Object.create(C&&C.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(L,C):L.__proto__=C)}var I=(0,b.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=(function(L){x(C,L),k(C,null,[{key:"match",value:function(G,X){return X=M(X),["altKey","ctrlKey","metaKey","s
2026-02-01 17:38:39 +03:30
`,nt).retain(X.length()-tt-1).retain(1,{list:"unchecked"});this.quill.updateContents(it,l.default.sources.USER),this.quill.setSelection(C.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(C,K){var G=this.quill.getLine(C.index),X=S(G,2),tt=X[0],nt=X[1],it=new u.default().retain(C.index).insert(`
`,K.format).retain(tt.length()-nt-1).retain(1,{header:null});this.quill.updateContents(it,l.default.sources.USER),this.quill.setSelection(C.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(C,K){var G=K.prefix.length,X=this.quill.getLine(C.index),tt=S(X,2),nt=tt[0],it=tt[1];if(it>G)return!0;var ut=void 0;switch(K.prefix.trim()){case"[]":case"[ ]":ut="unchecked";break;case"[x]":ut="checked";break;case"-":case"*":ut="bullet";break;default:ut="ordered"}this.quill.insertText(C.index," ",l.default.sources.USER),this.quill.history.cutoff();var ct=new u.default().retain(C.index-it).delete(G+1).retain(nt.length()-2-it).retain(1,{list:ut});this.quill.updateContents(ct,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index-G,l.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(C){var K=this.quill.getLine(C.index),G=S(K,2),X=G[0],tt=G[1],nt=new u.default().retain(C.index+X.length()-tt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(nt,l.default.sources.USER)}},"embed left":W(z.keys.LEFT,!1),"embed left shift":W(z.keys.LEFT,!0),"embed right":W(z.keys.RIGHT,!1),"embed right shift":W(z.keys.RIGHT,!0)}};function W(L,C){var K,G=L===z.keys.LEFT?"prefix":"suffix";return K={key:L,shiftKey:C,altKey:null},v(K,G,/^$/),v(K,"handler",function(tt){var nt=tt.index;L===z.keys.RIGHT&&(nt+=tt.length+1);var it=this.quill.getLeaf(nt),ut=S(it,1),ct=ut[0];return ct instanceof r.default.Embed?(L===z.keys.LEFT?C?this.quill.setSelection(tt.index-1,tt.length+1,l.default.sources.USER):this.quill.setSelection(tt.index-1,l.default.sources.USER):C?this.quill.setSelection(tt.index,tt.length+1,l.default.sources.USER):this.quill.setSelection(tt.index+tt.length+1,l.default.sources.USER),!1):!0}),K}function F(L,C){if(!(L.index===0||this.quill.getLength()<=1)){var K=this.quill.getLine(L.index),G=S(K,1),X=G[0],tt={};if(C.offset===0){var nt=this.quill.getLine(L.index-1),it=S(nt,1),ut=it[0];if(ut!=null&&ut.length()>1){var ct=X.formats(),mt=this.quill.getFormat(L.index-1,1);tt=a.default.attributes.diff(ct,mt)||{}}}var gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(C.prefix)?2:1;this.quill.deleteText(L.index-gt,gt,l.default.sources.USER),Object.keys(tt).length>0&&this.quill.formatLine(L.index-gt,gt,tt,l.default.sources.USER),this.quill.focus()}}function R(L,C){var K=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(C.suffix)?2:1;if(!(L.index>=this.quill.getLength()-K)){var G={},X=0,tt=this.quill.getLine(L.index),nt=S(tt,1),it=nt[0];if(C.offset>=it.length()-1){var ut=this.quill.getLine(L.index+1),ct=S(ut,1),mt=ct[0];if(mt){var gt=it.formats(),V=this.quill.getFormat(L.index,1);G=a.default.attributes.diff(gt,V)||{},X=mt.length()}}this.quill.deleteText(L.index,K,l.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(L.index+X-1,K,G,l.default.sources.USER)}}function A(L){var C=this.quill.getLines(L),K={};if(C.length>1){var G=C[0].formats(),X=C[C.length-1].formats();K=a.default.attributes.diff(X,G)||{}}this.quill.deleteText(L,l.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(L.index,1,K,l.default.sources.USER),this.quill.setSelection(L.index,l.default.sources.SILENT),this.quill.focus()}function q(L,C){var K=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var G=Object.keys(C.format).reduce(function(X,tt){return r.default.query(tt,r.default.Scope.BLOCK)&&!Array.isArray(C.format[tt])&&(X[tt]=C.format[tt]),X},{});this.quill.insertText(L.index,`
`,G,l.default.sources.USER),this.quill.setSelection(L.index+1,l.default.sources.SILENT),this.quill.focus(),Object.keys(C.format).forEach(function(X){G[X]==null&&(Array.isArray(C.format[X])||X!=="link"&&K.quill.format(X,C.format[X],l.default.sources.USER))})}function j(L){return{key:z.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(K){var G=r.default.query("code-block"),X=K.index,tt=K.length,nt=this.quill.scroll.descendant(G,X),it=S(nt,2),ut=it[0],ct=it[1];if(ut!=null){var mt=this.quill.getIndex(ut),gt=ut.newlineIndex(ct,!0)+1,V=ut.newlineIndex(mt+ct+tt),Y=ut.domNode.textContent.slice(gt,V).split(`
2026-02-22 12:27:05 +03:30
`);ct=0,Y.forEach(function(J,$){L?(ut.insertAt(gt+ct,G.TAB),ct+=G.TAB.length,$===0?X+=G.TAB.length:tt+=G.TAB.length):J.startsWith(G.TAB)&&(ut.deleteAt(gt+ct,G.TAB.length),ct-=G.TAB.length,$===0?X-=G.TAB.length:tt-=G.TAB.length),ct+=J.length+1}),this.quill.update(l.default.sources.USER),this.quill.setSelection(X,tt,l.default.sources.SILENT)}}}}function H(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(K,G){this.quill.format(L,!G.format[L],l.default.sources.USER)}}}function M(L){if(typeof L=="string"||typeof L=="number")return M({key:L});if((typeof L>"u"?"undefined":P(L))==="object"&&(L=(0,d.default)(L,!1)),typeof L.key=="string")if(z.keys[L.key.toUpperCase()]!=null)L.key=z.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[U]=L.shortKey,delete L.shortKey),L}O.default=z,O.SHORTKEY=U}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function a(o,r){var n=[],l=!0,E=!1,b=void 0;try{for(var m=o[Symbol.iterator](),T;!(l=(T=m.next()).done)&&(n.push(T.value),!(r&&n.length===r));l=!0);}catch(y){E=!0,b=y}finally{try{!l&&m.return&&m.return()}finally{if(E)throw b}}return n}return function(o,r){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return a(o,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=function a(o,r,n){o===null&&(o=Function.prototype);var l=Object.getOwnPropertyDescriptor(o,r);if(l===void 0){var E=Object.getPrototypeOf(o);return E===null?void 0:a(E,r,n)}else{if("value"in l)return l.value;var b=l.get;return b===void 0?void 0:b.call(n)}},k=(function(){function a(o,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,r,n){return r&&a(o.prototype,r),n&&a(o,n),o}})(),p=g(0),d=t(p),s=g(7),i=t(s);function t(a){return a&&a.__esModule?a:{default:a}}function e(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function h(a,o){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:a}function u(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}var c=(function(a){u(o,a),k(o,null,[{key:"value",value:function(){}}]);function o(r,n){e(this,o);var l=h(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,r));return l.selection=n,l.textNode=document.createTextNode(o.CONTENTS),l.domNode.appendChild(l.textNode),l._length=0,l}return k(o,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,l){if(this._length!==0)return S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,n,l);for(var E=this,b=0;E!=null&&E.statics.scope!==d.default.Scope.BLOCK_BLOT;)b+=E.offset(E.parent),E=E.parent;E!=null&&(this._length=o.CONTENTS.length,E.optimize(),E.formatAt(b,o.CONTENTS.length,n,l),this._length=0)}},{key:"index",value:function(n,l){return n===this.textNode?0:S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,n,l)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,l=this.selection.getNativeRange(),E=void 0,b=void 0,m=void 0;if(l!=null&&l.start.node===n&&l.end.node===n){var T=[n,l.start.offset,l.end.offset];E=T[0],b=T[1],m=T[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNo
`):n.attributes!=null?Object.keys(n.attributes).some(function(l){return k.default.query(l,k.default.Scope.BLOCK)!=null}):!1}function o(r){var n=r.reduce(function(E,b){return E+=b.delete||0,E},0),l=r.length()-n;return a(r)&&(l-=1),l}O.default=c,O.getLastChangeIndex=o}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=(function(){function q(j,H){for(var M=0;M<H.length;M++){var L=H[M];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(j,L.key,L)}}return function(j,H,M){return H&&q(j.prototype,H),M&&q(j,M),j}})(),S=function q(j,H,M){j===null&&(j=Function.prototype);var L=Object.getOwnPropertyDescriptor(j,H);if(L===void 0){var C=Object.getPrototypeOf(j);return C===null?void 0:q(C,H,M)}else{if("value"in L)return L.value;var K=L.get;return K===void 0?void 0:K.call(M)}},k=g(3),p=T(k),d=g(2),s=T(d),i=g(8),t=T(i),e=g(23),h=T(e),u=g(34),c=T(u),a=g(59),o=T(a),r=g(60),n=T(r),l=g(28),E=T(l),b=g(61),m=T(b);function T(q){return q&&q.__esModule?q:{default:q}}function y(q,j){if(!(q instanceof j))throw new TypeError("Cannot call a class as a function")}function v(q,j){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:q}function _(q,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);q.prototype=Object.create(j&&j.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(q,j):q.__proto__=j)}var w=[!1,"center","right","justify"],x=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],I=[!1,"serif","monospace"],U=["1","2","3",!1],z=["small",!1,"large","huge"],W=(function(q){_(j,q);function j(H,M){y(this,j);var L=v(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,M)),C=function K(G){if(!document.body.contains(H.root))return document.body.removeEventListener("click",K);L.tooltip!=null&&!L.tooltip.root.contains(G.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(X){X.container.contains(G.target)||X.close()})};return H.emitter.listenDOM("click",document.body,C),L}return P(j,[{key:"addModule",value:function(M){var L=S(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(M,L){M.forEach(function(C){var K=C.getAttribute("class")||"";K.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),L[G]!=null))if(G==="direction")C.innerHTML=L[G][""]+L[G].rtl;else if(typeof L[G]=="string")C.innerHTML=L[G];else{var X=C.value||"";X!=null&&L[G][X]&&(C.innerHTML=L[G][X])}})})}},{key:"buildPickers",value:function(M,L){var C=this;this.pickers=M.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&A(G,w),new n.default(G,L.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var X=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&A(G,x,X==="background"?"#ffffff":"#000000"),new o.default(G,L[X])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?A(G,I):G.classList.contains("ql-header")?A(G,U):G.classList.contains("ql-size")&&A(G,z)),new E.default(G)});var K=function(){C.pickers.forEach(function(X){X.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,K)}}]),j})(c.default);W.DEFAULTS=(0,p.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,H=this.container.querySelector("inpu
2026-02-01 17:38:39 +03:30
`)&&pt.ops[pt.ops.length-1].attributes==null&&(pt=pt.compose(new i.default().retain(pt.length()-1).delete(1))),z.log("convert",this.container.innerHTML,pt),this.container.innerHTML="",pt}},{key:"dangerouslyPasteHTML",value:function($,Q){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof $=="string")this.quill.setContents(this.convert($),Q),this.quill.setSelection(0,u.default.sources.SILENT);else{var rt=this.convert(Q);this.quill.updateContents(new i.default().retain($).concat(rt),at),this.quill.setSelection($+rt.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function($){var Q=this;if(!($.defaultPrevented||!this.quill.isEnabled())){var at=this.quill.getSelection(),rt=new i.default().retain(at.index),ot=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){rt=rt.concat(Q.convert()).delete(at.length),Q.quill.updateContents(rt,u.default.sources.USER),Q.quill.setSelection(rt.length()-at.length,u.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=ot,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var $=this,Q=[],at=[];return this.matchers.forEach(function(rt){var ot=S(rt,2),Tt=ot[0],Et=ot[1];switch(Tt){case Node.TEXT_NODE:at.push(Et);break;case Node.ELEMENT_NODE:Q.push(Et);break;default:[].forEach.call($.container.querySelectorAll(Tt),function(pt){pt[W]=pt[W]||[],pt[W].push(Et)});break}}),[Q,at]}}]),Y})(r.default);q.DEFAULTS={matchers:[],matchVisual:!0};function j(V,Y,J){return(typeof Y>"u"?"undefined":P(Y))==="object"?Object.keys(Y).reduce(function($,Q){return j($,Q,Y[Q])},V):V.reduce(function($,Q){return Q.attributes&&Q.attributes[Y]?$.push(Q):$.insert(Q.insert,(0,d.default)({},w({},Y,J),Q.attributes))},new i.default)}function H(V){if(V.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return V[Y]||(V[Y]=window.getComputedStyle(V))}function M(V,Y){for(var J="",$=V.ops.length-1;$>=0&&J.length<Y.length;--$){var Q=V.ops[$];if(typeof Q.insert!="string")break;J=Q.insert+J}return J.slice(-1*Y.length)===Y}function L(V){if(V.childNodes.length===0)return!1;var Y=H(V);return["block","list-item"].indexOf(Y.display)>-1}function C(V,Y,J){return V.nodeType===V.TEXT_NODE?J.reduce(function($,Q){return Q(V,$)},new i.default):V.nodeType===V.ELEMENT_NODE?[].reduce.call(V.childNodes||[],function($,Q){var at=C(Q,Y,J);return Q.nodeType===V.ELEMENT_NODE&&(at=Y.reduce(function(rt,ot){return ot(Q,rt)},at),at=(Q[W]||[]).reduce(function(rt,ot){return ot(Q,rt)},at)),$.concat(at)},new i.default):new i.default}function K(V,Y,J){return j(J,V,!0)}function G(V,Y){var J=e.default.Attributor.Attribute.keys(V),$=e.default.Attributor.Class.keys(V),Q=e.default.Attributor.Style.keys(V),at={};return J.concat($).concat(Q).forEach(function(rt){var ot=e.default.query(rt,e.default.Scope.ATTRIBUTE);ot!=null&&(at[ot.attrName]=ot.value(V),at[ot.attrName])||(ot=R[rt],ot!=null&&(ot.attrName===rt||ot.keyName===rt)&&(at[ot.attrName]=ot.value(V)||void 0),ot=A[rt],ot!=null&&(ot.attrName===rt||ot.keyName===rt)&&(ot=A[rt],at[ot.attrName]=ot.value(V)||void 0))}),Object.keys(at).length>0&&(Y=j(Y,at)),Y}function X(V,Y){var J=e.default.query(V);if(J==null)return Y;if(J.prototype instanceof e.default.Embed){var $={},Q=J.value(V);Q!=null&&($[J.blotName]=Q,Y=new i.default().insert($,J.formats(V)))}else typeof J.formats=="function"&&(Y=j(Y,J.blotName,J.formats(V)));return Y}function tt(V,Y){return M(Y,`
`)||Y.insert(`
`),Y}function nt(){return new i.default}function it(V,Y){var J=e.default.query(V);if(J==null||J.blotName!=="list-item"||!M(Y,`
`))return Y;for(var $=-1,Q=V.parentNode;!Q.classList.contains("ql-clipboard");)(e.default.query(Q)||{}).blotName==="list"&&($+=1),Q=Q.parentNode;return $<=0?Y:Y.compose(new i.default().retain(Y.length()-1).retain(1,{indent:$}))}function ut(V,Y){return M(Y,`
`)||(L(V)||Y.length()>0&&V.nextSibling&&L(V.nextSibling))&&Y.insert(`
`),Y}function ct(V,Y){if(L(V)&&V.nextElementSibling!=null&&!M(Y,`
2026-01-27 16:02:45 +03:30
2026-02-01 17:38:39 +03:30
`)){var J=V.offsetHeight+parseFloat(H(V).marginTop)+parseFloat(H(V).marginBottom);V.nextElementSibling.offsetTop>V.offsetTop+J*1.5&&Y.insert(`
2026-02-22 12:27:05 +03:30
`)}return Y}function mt(V,Y){var J={},$=V.style||{};return $.fontStyle&&H(V).fontStyle==="italic"&&(J.italic=!0),$.fontWeight&&(H(V).fontWeight.startsWith("bold")||parseInt(H(V).fontWeight)>=700)&&(J.bold=!0),Object.keys(J).length>0&&(Y=j(Y,J)),parseFloat($.textIndent||0)>0&&(Y=new i.default().insert(" ").concat(Y)),Y}function gt(V,Y){var J=V.data;if(V.parentNode.tagName==="O:P")return Y.insert(J.trim());if(J.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))return Y;if(!H(V.parentNode).whiteSpace.startsWith("pre")){var $=function(at,rt){return rt=rt.replace(/[^\u00a0]/g,""),rt.length<1&&at?" ":rt};J=J.replace(/\r\n/g," ").replace(/\n/g," "),J=J.replace(/\s\s+/g,$.bind($,!0)),(V.previousSibling==null&&L(V.parentNode)||V.previousSibling!=null&&L(V.previousSibling))&&(J=J.replace(/^\s+/,$.bind($,!1))),(V.nextSibling==null&&L(V.parentNode)||V.nextSibling!=null&&L(V.nextSibling))&&(J=J.replace(/\s+$/,$.bind($,!1)))}return Y.insert(J)}O.default=q,O.matchAttributor=G,O.matchBlot=X,O.matchNewline=ut,O.matchSpacing=ct,O.matchText=gt}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(a)}},k=g(6),p=d(k);function d(h){return h&&h.__esModule?h:{default:h}}function s(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var e=(function(h){t(u,h);function u(){return s(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return P(u,[{key:"optimize",value:function(a){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,a),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return S(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),u})(p.default);e.blotName="bold",e.tagName=["STRONG","B"],O.default=e}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void 0;var P=(function(){function v(_,w){var x=[],I=!0,U=!1,z=void 0;try{for(var W=_[Symbol.iterator](),F;!(I=(F=W.next()).done)&&(x.push(F.value),!(w&&x.length===w));I=!0);}catch(R){U=!0,z=R}finally{try{!I&&W.return&&W.return()}finally{if(U)throw z}}return x}return function(_,w){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return v(_,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function v(_,w){for(var x=0;x<w.length;x++){var I=w[x];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}return function(_,w,x){return w&&v(_.prototype,w),x&&v(_,x),_}})(),k=g(2),p=a(k),d=g(0),s=a(d),i=g(5),t=a(i),e=g(10),h=a(e),u=g(9),c=a(u);function a(v){return v&&v.__esModule?v:{default:v}}function o(v,_,w){return _ in v?Object.defineProperty(v,_,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[_]=w,v}function r(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function n(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="obje
2026-02-22 22:14:30 +03:30
`);for(var i=P.default.iterator(this.ops),t=new p,e=0;i.hasNext();){if(i.peekType()!=="insert")return;var h=i.peek(),u=P.default.length(h)-i.peekLength(),c=typeof h.insert=="string"?h.insert.indexOf(s,u)-u:-1;if(c<0)t.push(i.next());else if(c>0)t.push(i.next(c));else{if(d(t,i.next(1).attributes||{},e)===!1)return;e+=1,t=new p}}t.length()>0&&d(t,{},e)},p.prototype.invert=function(d){var s=new p;return this.reduce(function(i,t){if(t.insert)s.delete(P.default.length(t));else{if(t.retain&&t.attributes==null)return s.retain(t.retain),i+t.retain;if(t.delete||t.retain&&t.attributes){var e=t.delete||t.retain,h=d.slice(i,i+e);return h.forEach(function(u){t.delete?s.push(u):t.retain&&t.attributes&&s.retain(P.default.length(u),g.default.invert(t.attributes,u.attributes))}),i+e}}return i},0),s.chop()},p.prototype.transform=function(d,s){if(s===void 0&&(s=!1),s=!!s,typeof d=="number")return this.transformPosition(d,s);for(var i=d,t=P.default.iterator(this.ops),e=P.default.iterator(i.ops),h=new p;t.hasNext()||e.hasNext();)if(t.peekType()==="insert"&&(s||e.peekType()!=="insert"))h.retain(P.default.length(t.next()));else if(e.peekType()==="insert")h.push(e.next());else{var u=Math.min(t.peekLength(),e.peekLength()),c=t.next(u),a=e.next(u);if(c.delete)continue;a.delete?h.push(a):h.retain(u,g.default.transform(c.attributes,a.attributes,s))}return h.chop()},p.prototype.transformPosition=function(d,s){s===void 0&&(s=!1),s=!!s;for(var i=P.default.iterator(this.ops),t=0;i.hasNext()&&t<=d;){var e=i.peekLength(),h=i.peekType();if(i.next(),h==="delete"){d-=Math.min(e,d-t);continue}else h==="insert"&&(t<d||!s)&&(d+=e);t+=e}return d},p.Op=P.default,p.AttributeMap=g.default,p})();return ke=k,ke}Pr();const Lr={flex:"","justify-center":"","items-center":"","flex-col":"","p-2":""},Rr={class:"flex justify-center"},qr={"mt-3":"","font-semibold":""},jr={class:"absolute end-0"},Ir={class:"max-h-85vh overflow-y-auto px-2 mt3 pb-10"},Mr={class:"flex justify-center"},Dr=Xn({__name:"BrandAddEdit",props:{open:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},data:{}},emits:["update:open","update:isEdit","success"],setup(st,{emit:ft}){const B=nr({}),O=Gt([]),g=Gt(),P=Qn(),S=Gt(null),k=st,p=ft,d=()=>{O.value=[],Object.assign(B,{title:"",image:null,active:!0})},s=()=>{console.log(k.data),Object.assign(B,k.data),B.image?.length&&(O.value=[],O.value.push({src:P.useDataStorage(B.image),thumbUrl:P.useDataStorage(B.image)}))},i=async()=>{g.value.validateFields().then(async()=>{try{if(console.log("brandImage.value ===>",O.value),Pe.value=!0,B.image=O.value[0]?.subUrl,k.isEdit&&k.data){const h=k.data;await yr(h.id,B),p("update:isEdit",!1),Rn.success(P.useString("editedSuccessfully"))}else await gr(B),Rn.success(P.useString("addedSuccessfully"));p("update:visible",!1),p("success"),await e()}catch(h){Pe.value=!1,console.log("error",h),Rn.error(P.useString("errorInSubmittingData"))}})};rr(k,h=>{h.open?t():e(),k.isEdit?s():d()});async function t(){await Cn(),await S.value?.setOpen()}async function e(){await Cn(),await S.value?.setClose(),p("update:open",!1)}return(h,u)=>{const c=Er,a=Or;return Ne(),Jn(hr,{title:"",ref_key:"sheetRef",ref:S,headerCls:"",closeOnClickOutside:"",onOnClickOutside:u[5]||(u[5]=o=>p("update:open",!1)),onOnClose:u[6]||(u[6]=o=>p("update:open",!1))},{header:Ft(()=>[jt("div",Lr,[u[7]||(u[7]=jt("div",{"bg-gray-500":"","h-2px":"","w-2.5rem":""},null,-1)),jt("div",Rr,[jt("div",qr,Mn(h.isEdit?xt(P).useString("editBrand"):xt(P).useString("addBrand")),1),jt("div",jr,[Ot(dr,{class:"w-1rem mt-2 me-5",onClick:e})])])])]),default:Ft(()=>[jt("div",Ir,[Ot(a,{model:B,ref_key:"formRef",ref:g},{default:Ft(()=>[Ot(c,{label:xt(P).useString("image")},{default:Ft(()=>[jt("div",Mr,[Ot(vr,{"file-list":O.value,"onUpdate:fileList":u[0]||(u[0]=o=>O.value=o)},null,8,["file-list"])])]),_:1},8,["label"]),Ot(c,{label:xt(P).useString("title"),name:"title"},{default:Ft(()=>[Ot(jn,{value:B.title,"onUpdate:value":u[1]||(u[1]=o=>B.title=o),"place-holder":xt(P).useString("title")},null,8,["value","place-holder"])]),_:1},8,["label"]),Ot(c,{name:"seo_title",label:xt(P).useString