@bluepic/embed 0.4.0-next.109 → 0.4.0-next.110
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/dist/bluepic-embed.iife.js +1 -1
- package/dist/bluepic-embed.umd.js +1 -1
- package/dist/components/BxSelect.vue.d.ts +15 -16
- package/dist/main.cjs +1 -1
- package/dist/main.mjs +5 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -141,7 +141,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
141
141
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
142
142
|
`)},_domwindow:function(){return P("domwindow")},_bigint:function(B){return P("bigint:"+B.toString())},_process:function(){return P("process")},_timer:function(){return P("timer")},_pipe:function(){return P("pipe")},_tcp:function(){return P("tcp")},_udp:function(){return P("udp")},_tty:function(){return P("tty")},_statwatcher:function(){return P("statwatcher")},_securecontext:function(){return P("securecontext")},_connection:function(){return P("connection")},_zlib:function(){return P("zlib")},_context:function(){return P("context")},_nodescript:function(){return P("nodescript")},_httpparser:function(){return P("httpparser")},_dataview:function(){return P("dataview")},_signal:function(){return P("signal")},_fsevent:function(){return P("fsevent")},_tlswrap:function(){return P("tlswrap")}}}function _(){return{buf:"",write:function(z){this.buf+=z},end:function(z){this.buf+=z},read:function(){return this.buf}}}a.writeToStream=function(z,A,k){return k===void 0&&(k=A,A={}),E(A=S(z,A),k).dispatch(z)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){(function(v){var y=typeof Uint8Array<"u"?Uint8Array:Array,w=43,x=47,S=48,C=97,E=65,_=45,z=95;function A(k){return k=k.charCodeAt(0),k===w||k===_?62:k===x||k===z?63:k<S?-1:k<S+10?k-S+26+26:k<E+26?k-E:k<C+26?k-C+26:void 0}v.toByteArray=function(k){var P,B;if(0<k.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var T=k.length,T=k.charAt(T-2)==="="?2:k.charAt(T-1)==="="?1:0,F=new y(3*k.length/4-T),p=0<T?k.length-4:k.length,W=0;function Z(q){F[W++]=q}for(P=0;P<p;P+=4,0)Z((16711680&(B=A(k.charAt(P))<<18|A(k.charAt(P+1))<<12|A(k.charAt(P+2))<<6|A(k.charAt(P+3))))>>16),Z((65280&B)>>8),Z(255&B);return T==2?Z(255&(B=A(k.charAt(P))<<2|A(k.charAt(P+1))>>4)):T==1&&(Z((B=A(k.charAt(P))<<10|A(k.charAt(P+1))<<4|A(k.charAt(P+2))>>2)>>8&255),Z(255&B)),F},v.fromByteArray=function(k){var P,B,T,F,p=k.length%3,W="";function Z(q){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q)}for(P=0,T=k.length-p;P<T;P+=3)B=(k[P]<<16)+(k[P+1]<<8)+k[P+2],W+=Z((F=B)>>18&63)+Z(F>>12&63)+Z(F>>6&63)+Z(63&F);switch(p){case 1:W=(W+=Z((B=k[k.length-1])>>2))+Z(B<<4&63)+"==";break;case 2:W=(W=(W+=Z((B=(k[k.length-2]<<8)+k[k.length-1])>>10))+Z(B>>4&63))+Z(B<<2&63)+"="}return W}})(a===void 0?this.base64js={}:a)}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,r,a){(function(o,s,w,l,u,f,m,c,h){var v=n("base64-js"),y=n("ieee754");function w(M,j,R){if(!(this instanceof w))return new w(M,j,R);var J,oe,ie,fe,Ie=typeof M;if(j==="base64"&&Ie=="string")for(M=(fe=M).trim?fe.trim():fe.replace(/^\s+|\s+$/g,"");M.length%4!=0;)M+="=";if(Ie=="number")J=L(M);else if(Ie=="string")J=w.byteLength(M,j);else{if(Ie!="object")throw new Error("First argument needs to be a number, array or string.");J=L(M.length)}if(w._useTypedArrays?oe=w._augment(new Uint8Array(J)):((oe=this).length=J,oe._isBuffer=!0),w._useTypedArrays&&typeof M.byteLength=="number")oe._set(M);else if(D(fe=M)||w.isBuffer(fe)||fe&&typeof fe=="object"&&typeof fe.length=="number")for(ie=0;ie<J;ie++)w.isBuffer(M)?oe[ie]=M.readUInt8(ie):oe[ie]=M[ie];else if(Ie=="string")oe.write(M,0,j);else if(Ie=="number"&&!w._useTypedArrays&&!R)for(ie=0;ie<J;ie++)oe[ie]=0;return oe}function x(M,j,R,J){return w._charsWritten=K(function(oe){for(var ie=[],fe=0;fe<oe.length;fe++)ie.push(255&oe.charCodeAt(fe));return ie}(j),M,R,J)}function S(M,j,R,J){return w._charsWritten=K(function(oe){for(var ie,fe,Ie=[],xe=0;xe<oe.length;xe++)fe=oe.charCodeAt(xe),ie=fe>>8,fe=fe%256,Ie.push(fe),Ie.push(ie);return Ie}(j),M,R,J)}function C(M,j,R){var J="";R=Math.min(M.length,R);for(var oe=j;oe<R;oe++)J+=String.fromCharCode(M[oe]);return J}function E(M,j,R,ie){ie||(re(typeof R=="boolean","missing or invalid endian"),re(j!=null,"missing offset"),re(j+1<M.length,"Trying to read beyond buffer length"));var oe,ie=M.length;if(!(ie<=j))return R?(oe=M[j],j+1<ie&&(oe|=M[j+1]<<8)):(oe=M[j]<<8,j+1<ie&&(oe|=M[j+1])),oe}function _(M,j,R,ie){ie||(re(typeof R=="boolean","missing or invalid endian"),re(j!=null,"missing offset"),re(j+3<M.length,"Trying to read beyond buffer length"));var oe,ie=M.length;if(!(ie<=j))return R?(j+2<ie&&(oe=M[j+2]<<16),j+1<ie&&(oe|=M[j+1]<<8),oe|=M[j],j+3<ie&&(oe+=M[j+3]<<24>>>0)):(j+1<ie&&(oe=M[j+1]<<16),j+2<ie&&(oe|=M[j+2]<<8),j+3<ie&&(oe|=M[j+3]),oe+=M[j]<<24>>>0),oe}function z(M,j,R,J){if(J||(re(typeof R=="boolean","missing or invalid endian"),re(j!=null,"missing offset"),re(j+1<M.length,"Trying to read beyond buffer length")),!(M.length<=j))return J=E(M,j,R,!0),32768&J?-1*(65535-J+1):J}function A(M,j,R,J){if(J||(re(typeof R=="boolean","missing or invalid endian"),re(j!=null,"missing offset"),re(j+3<M.length,"Trying to read beyond buffer length")),!(M.length<=j))return J=_(M,j,R,!0),2147483648&J?-1*(4294967295-J+1):J}function k(M,j,R,J){return J||(re(typeof R=="boolean","missing or invalid endian"),re(j+3<M.length,"Trying to read beyond buffer length")),y.read(M,j,R,23,4)}function P(M,j,R,J){return J||(re(typeof R=="boolean","missing or invalid endian"),re(j+7<M.length,"Trying to read beyond buffer length")),y.read(M,j,R,52,8)}function B(M,j,R,J,oe){if(oe||(re(j!=null,"missing value"),re(typeof J=="boolean","missing or invalid endian"),re(R!=null,"missing offset"),re(R+1<M.length,"trying to write beyond buffer length"),se(j,65535)),oe=M.length,!(oe<=R))for(var ie=0,fe=Math.min(oe-R,2);ie<fe;ie++)M[R+ie]=(j&255<<8*(J?ie:1-ie))>>>8*(J?ie:1-ie)}function T(M,j,R,J,oe){if(oe||(re(j!=null,"missing value"),re(typeof J=="boolean","missing or invalid endian"),re(R!=null,"missing offset"),re(R+3<M.length,"trying to write beyond buffer length"),se(j,4294967295)),oe=M.length,!(oe<=R))for(var ie=0,fe=Math.min(oe-R,4);ie<fe;ie++)M[R+ie]=j>>>8*(J?ie:3-ie)&255}function F(M,j,R,J,oe){oe||(re(j!=null,"missing value"),re(typeof J=="boolean","missing or invalid endian"),re(R!=null,"missing offset"),re(R+1<M.length,"Trying to write beyond buffer length"),me(j,32767,-32768)),M.length<=R||B(M,0<=j?j:65535+j+1,R,J,oe)}function p(M,j,R,J,oe){oe||(re(j!=null,"missing value"),re(typeof J=="boolean","missing or invalid endian"),re(R!=null,"missing offset"),re(R+3<M.length,"Trying to write beyond buffer length"),me(j,2147483647,-2147483648)),M.length<=R||T(M,0<=j?j:4294967295+j+1,R,J,oe)}function W(M,j,R,J,oe){oe||(re(j!=null,"missing value"),re(typeof J=="boolean","missing or invalid endian"),re(R!=null,"missing offset"),re(R+3<M.length,"Trying to write beyond buffer length"),Oe(j,34028234663852886e22,-34028234663852886e22)),M.length<=R||y.write(M,j,R,J,23,4)}function Z(M,j,R,J,oe){oe||(re(j!=null,"missing value"),re(typeof J=="boolean","missing or invalid endian"),re(R!=null,"missing offset"),re(R+7<M.length,"Trying to write beyond buffer length"),Oe(j,17976931348623157e292,-17976931348623157e292)),M.length<=R||y.write(M,j,R,J,52,8)}a.Buffer=w,a.SlowBuffer=w,a.INSPECT_MAX_BYTES=50,w.poolSize=8192,w._useTypedArrays=function(){try{var M=new ArrayBuffer(0),j=new Uint8Array(M);return j.foo=function(){return 42},j.foo()===42&&typeof j.subarray=="function"}catch{return!1}}(),w.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},w.isBuffer=function(M){return!(M==null||!M._isBuffer)},w.byteLength=function(M,j){var R;switch(M+="",j||"utf8"){case"hex":R=M.length/2;break;case"utf8":case"utf-8":R=H(M).length;break;case"ascii":case"binary":case"raw":R=M.length;break;case"base64":R=Y(M).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":R=2*M.length;break;default:throw new Error("Unknown encoding")}return R},w.concat=function(M,j){if(re(D(M),`Usage: Buffer.concat(list, [totalLength])
|
|
143
143
|
list should be an Array.`),M.length===0)return new w(0);if(M.length===1)return M[0];if(typeof j!="number")for(oe=j=0;oe<M.length;oe++)j+=M[oe].length;for(var R=new w(j),J=0,oe=0;oe<M.length;oe++){var ie=M[oe];ie.copy(R,J),J+=ie.length}return R},w.prototype.write=function(M,j,R,J){isFinite(j)?isFinite(R)||(J=R,R=void 0):(xe=J,J=j,j=R,R=xe),j=Number(j)||0;var oe,ie,fe,Ie,xe=this.length-j;switch((!R||xe<(R=Number(R)))&&(R=xe),J=String(J||"utf8").toLowerCase()){case"hex":oe=function(ye,Fe,He,je){He=Number(He)||0;var Ve=ye.length-He;(!je||Ve<(je=Number(je)))&&(je=Ve),re((Ve=Fe.length)%2==0,"Invalid hex string"),Ve/2<je&&(je=Ve/2);for(var Se=0;Se<je;Se++){var Ze=parseInt(Fe.substr(2*Se,2),16);re(!isNaN(Ze),"Invalid hex string"),ye[He+Se]=Ze}return w._charsWritten=2*Se,Se}(this,M,j,R);break;case"utf8":case"utf-8":ie=this,fe=j,Ie=R,oe=w._charsWritten=K(H(M),ie,fe,Ie);break;case"ascii":case"binary":oe=x(this,M,j,R);break;case"base64":ie=this,fe=j,Ie=R,oe=w._charsWritten=K(Y(M),ie,fe,Ie);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":oe=S(this,M,j,R);break;default:throw new Error("Unknown encoding")}return oe},w.prototype.toString=function(M,j,R){var J,oe,ie,fe,Ie=this;if(M=String(M||"utf8").toLowerCase(),j=Number(j)||0,(R=R!==void 0?Number(R):Ie.length)===j)return"";switch(M){case"hex":J=function(xe,ye,Fe){var He=xe.length;(!ye||ye<0)&&(ye=0),(!Fe||Fe<0||He<Fe)&&(Fe=He);for(var je="",Ve=ye;Ve<Fe;Ve++)je+=N(xe[Ve]);return je}(Ie,j,R);break;case"utf8":case"utf-8":J=function(xe,ye,Fe){var He="",je="";Fe=Math.min(xe.length,Fe);for(var Ve=ye;Ve<Fe;Ve++)xe[Ve]<=127?(He+=ae(je)+String.fromCharCode(xe[Ve]),je=""):je+="%"+xe[Ve].toString(16);return He+ae(je)}(Ie,j,R);break;case"ascii":case"binary":J=C(Ie,j,R);break;case"base64":oe=Ie,fe=R,J=(ie=j)===0&&fe===oe.length?v.fromByteArray(oe):v.fromByteArray(oe.slice(ie,fe));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":J=function(xe,ye,Fe){for(var He=xe.slice(ye,Fe),je="",Ve=0;Ve<He.length;Ve+=2)je+=String.fromCharCode(He[Ve]+256*He[Ve+1]);return je}(Ie,j,R);break;default:throw new Error("Unknown encoding")}return J},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.copy=function(M,j,R,J){if(j=j||0,(J=J||J===0?J:this.length)!==(R=R||0)&&M.length!==0&&this.length!==0){re(R<=J,"sourceEnd < sourceStart"),re(0<=j&&j<M.length,"targetStart out of bounds"),re(0<=R&&R<this.length,"sourceStart out of bounds"),re(0<=J&&J<=this.length,"sourceEnd out of bounds"),J>this.length&&(J=this.length);var oe=(J=M.length-j<J-R?M.length-j+R:J)-R;if(oe<100||!w._useTypedArrays)for(var ie=0;ie<oe;ie++)M[ie+j]=this[ie+R];else M._set(this.subarray(R,R+oe),j)}},w.prototype.slice=function(M,j){var R=this.length;if(M=O(M,R,0),j=O(j,R,R),w._useTypedArrays)return w._augment(this.subarray(M,j));for(var J=j-M,oe=new w(J,void 0,!0),ie=0;ie<J;ie++)oe[ie]=this[ie+M];return oe},w.prototype.get=function(M){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(M)},w.prototype.set=function(M,j){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(M,j)},w.prototype.readUInt8=function(M,j){if(j||(re(M!=null,"missing offset"),re(M<this.length,"Trying to read beyond buffer length")),!(M>=this.length))return this[M]},w.prototype.readUInt16LE=function(M,j){return E(this,M,!0,j)},w.prototype.readUInt16BE=function(M,j){return E(this,M,!1,j)},w.prototype.readUInt32LE=function(M,j){return _(this,M,!0,j)},w.prototype.readUInt32BE=function(M,j){return _(this,M,!1,j)},w.prototype.readInt8=function(M,j){if(j||(re(M!=null,"missing offset"),re(M<this.length,"Trying to read beyond buffer length")),!(M>=this.length))return 128&this[M]?-1*(255-this[M]+1):this[M]},w.prototype.readInt16LE=function(M,j){return z(this,M,!0,j)},w.prototype.readInt16BE=function(M,j){return z(this,M,!1,j)},w.prototype.readInt32LE=function(M,j){return A(this,M,!0,j)},w.prototype.readInt32BE=function(M,j){return A(this,M,!1,j)},w.prototype.readFloatLE=function(M,j){return k(this,M,!0,j)},w.prototype.readFloatBE=function(M,j){return k(this,M,!1,j)},w.prototype.readDoubleLE=function(M,j){return P(this,M,!0,j)},w.prototype.readDoubleBE=function(M,j){return P(this,M,!1,j)},w.prototype.writeUInt8=function(M,j,R){R||(re(M!=null,"missing value"),re(j!=null,"missing offset"),re(j<this.length,"trying to write beyond buffer length"),se(M,255)),j>=this.length||(this[j]=M)},w.prototype.writeUInt16LE=function(M,j,R){B(this,M,j,!0,R)},w.prototype.writeUInt16BE=function(M,j,R){B(this,M,j,!1,R)},w.prototype.writeUInt32LE=function(M,j,R){T(this,M,j,!0,R)},w.prototype.writeUInt32BE=function(M,j,R){T(this,M,j,!1,R)},w.prototype.writeInt8=function(M,j,R){R||(re(M!=null,"missing value"),re(j!=null,"missing offset"),re(j<this.length,"Trying to write beyond buffer length"),me(M,127,-128)),j>=this.length||(0<=M?this.writeUInt8(M,j,R):this.writeUInt8(255+M+1,j,R))},w.prototype.writeInt16LE=function(M,j,R){F(this,M,j,!0,R)},w.prototype.writeInt16BE=function(M,j,R){F(this,M,j,!1,R)},w.prototype.writeInt32LE=function(M,j,R){p(this,M,j,!0,R)},w.prototype.writeInt32BE=function(M,j,R){p(this,M,j,!1,R)},w.prototype.writeFloatLE=function(M,j,R){W(this,M,j,!0,R)},w.prototype.writeFloatBE=function(M,j,R){W(this,M,j,!1,R)},w.prototype.writeDoubleLE=function(M,j,R){Z(this,M,j,!0,R)},w.prototype.writeDoubleBE=function(M,j,R){Z(this,M,j,!1,R)},w.prototype.fill=function(M,j,R){if(j=j||0,R=R||this.length,re(typeof(M=typeof(M=M||0)=="string"?M.charCodeAt(0):M)=="number"&&!isNaN(M),"value is not a number"),re(j<=R,"end < start"),R!==j&&this.length!==0){re(0<=j&&j<this.length,"start out of bounds"),re(0<=R&&R<=this.length,"end out of bounds");for(var J=j;J<R;J++)this[J]=M}},w.prototype.inspect=function(){for(var M=[],j=this.length,R=0;R<j;R++)if(M[R]=N(this[R]),R===a.INSPECT_MAX_BYTES){M[R+1]="...";break}return"<Buffer "+M.join(" ")+">"},w.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(w._useTypedArrays)return new w(this).buffer;for(var M=new Uint8Array(this.length),j=0,R=M.length;j<R;j+=1)M[j]=this[j];return M.buffer};var q=w.prototype;function O(M,j,R){return typeof M!="number"?R:j<=(M=~~M)?j:0<=M||0<=(M+=j)?M:0}function L(M){return(M=~~Math.ceil(+M))<0?0:M}function D(M){return(Array.isArray||function(j){return Object.prototype.toString.call(j)==="[object Array]"})(M)}function N(M){return M<16?"0"+M.toString(16):M.toString(16)}function H(M){for(var j=[],R=0;R<M.length;R++){var J=M.charCodeAt(R);if(J<=127)j.push(M.charCodeAt(R));else for(var oe=R,ie=(55296<=J&&J<=57343&&R++,encodeURIComponent(M.slice(oe,R+1)).substr(1).split("%")),fe=0;fe<ie.length;fe++)j.push(parseInt(ie[fe],16))}return j}function Y(M){return v.toByteArray(M)}function K(M,j,R,J){for(var oe=0;oe<J&&!(oe+R>=j.length||oe>=M.length);oe++)j[oe+R]=M[oe];return oe}function ae(M){try{return decodeURIComponent(M)}catch{return"�"}}function se(M,j){re(typeof M=="number","cannot write a non-number as a number"),re(0<=M,"specified a negative value for writing an unsigned value"),re(M<=j,"value is larger than maximum value for type"),re(Math.floor(M)===M,"value has a fractional component")}function me(M,j,R){re(typeof M=="number","cannot write a non-number as a number"),re(M<=j,"value larger than maximum allowed value"),re(R<=M,"value smaller than minimum allowed value"),re(Math.floor(M)===M,"value has a fractional component")}function Oe(M,j,R){re(typeof M=="number","cannot write a non-number as a number"),re(M<=j,"value larger than maximum allowed value"),re(R<=M,"value smaller than minimum allowed value")}function re(M,j){if(!M)throw new Error(j||"Failed assertion")}w._augment=function(M){return M._isBuffer=!0,M._get=M.get,M._set=M.set,M.get=q.get,M.set=q.set,M.write=q.write,M.toString=q.toString,M.toLocaleString=q.toString,M.toJSON=q.toJSON,M.copy=q.copy,M.slice=q.slice,M.readUInt8=q.readUInt8,M.readUInt16LE=q.readUInt16LE,M.readUInt16BE=q.readUInt16BE,M.readUInt32LE=q.readUInt32LE,M.readUInt32BE=q.readUInt32BE,M.readInt8=q.readInt8,M.readInt16LE=q.readInt16LE,M.readInt16BE=q.readInt16BE,M.readInt32LE=q.readInt32LE,M.readInt32BE=q.readInt32BE,M.readFloatLE=q.readFloatLE,M.readFloatBE=q.readFloatBE,M.readDoubleLE=q.readDoubleLE,M.readDoubleBE=q.readDoubleBE,M.writeUInt8=q.writeUInt8,M.writeUInt16LE=q.writeUInt16LE,M.writeUInt16BE=q.writeUInt16BE,M.writeUInt32LE=q.writeUInt32LE,M.writeUInt32BE=q.writeUInt32BE,M.writeInt8=q.writeInt8,M.writeInt16LE=q.writeInt16LE,M.writeInt16BE=q.writeInt16BE,M.writeInt32LE=q.writeInt32LE,M.writeInt32BE=q.writeInt32BE,M.writeFloatLE=q.writeFloatLE,M.writeFloatBE=q.writeFloatBE,M.writeDoubleLE=q.writeDoubleLE,M.writeDoubleBE=q.writeDoubleBE,M.fill=q.fill,M.inspect=q.inspect,M.toArrayBuffer=q.toArrayBuffer,M}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(n,r,a){(function(o,s,v,l,u,f,m,c,h){var v=n("buffer").Buffer,y=4,w=new v(y);w.fill(0),r.exports={hash:function(x,S,C,E){for(var _=S(function(B,T){B.length%y!=0&&(F=B.length+(y-B.length%y),B=v.concat([B,w],F));for(var F,p=[],W=T?B.readInt32BE:B.readInt32LE,Z=0;Z<B.length;Z+=y)p.push(W.call(B,Z));return p}(x=v.isBuffer(x)?x:new v(x),E),8*x.length),S=E,z=new v(C),A=S?z.writeInt32BE:z.writeInt32LE,k=0;k<_.length;k++)A.call(z,_[k],4*k,!0);return z}}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(n,r,a){(function(o,s,v,l,u,f,m,c,h){var v=n("buffer").Buffer,y=n("./sha"),w=n("./sha256"),x=n("./rng"),S={sha1:y,sha256:w,md5:n("./md5")},C=64,E=new v(C);function _(B,T){var F=S[B=B||"sha1"],p=[];return F||z("algorithm:",B,"is not yet supported"),{update:function(W){return v.isBuffer(W)||(W=new v(W)),p.push(W),W.length,this},digest:function(W){var Z=v.concat(p),Z=T?function(q,O,L){v.isBuffer(O)||(O=new v(O)),v.isBuffer(L)||(L=new v(L)),O.length>C?O=q(O):O.length<C&&(O=v.concat([O,E],C));for(var D=new v(C),N=new v(C),H=0;H<C;H++)D[H]=54^O[H],N[H]=92^O[H];return L=q(v.concat([D,L])),q(v.concat([N,L]))}(F,T,Z):F(Z);return p=null,W?Z.toString(W):Z}}}function z(){var B=[].slice.call(arguments).join(" ");throw new Error([B,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
144
|
-
`))}E.fill(0),a.createHash=function(B){return _(B)},a.createHmac=_,a.randomBytes=function(B,T){if(!T||!T.call)return new v(x(B));try{T.call(this,void 0,new v(x(B)))}catch(F){T(F)}};var A,k=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],P=function(B){a[B]=function(){z("sorry,",B,"is not implemented yet")}};for(A in k)P(k[A])}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){var v=n("./helpers");function y(z,A){z[A>>5]|=128<<A%32,z[14+(A+64>>>9<<4)]=A;for(var k=1732584193,P=-271733879,B=-1732584194,T=271733878,F=0;F<z.length;F+=16){var p=k,W=P,Z=B,q=T,k=x(k,P,B,T,z[F+0],7,-680876936),T=x(T,k,P,B,z[F+1],12,-389564586),B=x(B,T,k,P,z[F+2],17,606105819),P=x(P,B,T,k,z[F+3],22,-1044525330);k=x(k,P,B,T,z[F+4],7,-176418897),T=x(T,k,P,B,z[F+5],12,1200080426),B=x(B,T,k,P,z[F+6],17,-1473231341),P=x(P,B,T,k,z[F+7],22,-45705983),k=x(k,P,B,T,z[F+8],7,1770035416),T=x(T,k,P,B,z[F+9],12,-1958414417),B=x(B,T,k,P,z[F+10],17,-42063),P=x(P,B,T,k,z[F+11],22,-1990404162),k=x(k,P,B,T,z[F+12],7,1804603682),T=x(T,k,P,B,z[F+13],12,-40341101),B=x(B,T,k,P,z[F+14],17,-1502002290),k=S(k,P=x(P,B,T,k,z[F+15],22,1236535329),B,T,z[F+1],5,-165796510),T=S(T,k,P,B,z[F+6],9,-1069501632),B=S(B,T,k,P,z[F+11],14,643717713),P=S(P,B,T,k,z[F+0],20,-373897302),k=S(k,P,B,T,z[F+5],5,-701558691),T=S(T,k,P,B,z[F+10],9,38016083),B=S(B,T,k,P,z[F+15],14,-660478335),P=S(P,B,T,k,z[F+4],20,-405537848),k=S(k,P,B,T,z[F+9],5,568446438),T=S(T,k,P,B,z[F+14],9,-1019803690),B=S(B,T,k,P,z[F+3],14,-187363961),P=S(P,B,T,k,z[F+8],20,1163531501),k=S(k,P,B,T,z[F+13],5,-1444681467),T=S(T,k,P,B,z[F+2],9,-51403784),B=S(B,T,k,P,z[F+7],14,1735328473),k=C(k,P=S(P,B,T,k,z[F+12],20,-1926607734),B,T,z[F+5],4,-378558),T=C(T,k,P,B,z[F+8],11,-2022574463),B=C(B,T,k,P,z[F+11],16,1839030562),P=C(P,B,T,k,z[F+14],23,-35309556),k=C(k,P,B,T,z[F+1],4,-1530992060),T=C(T,k,P,B,z[F+4],11,1272893353),B=C(B,T,k,P,z[F+7],16,-155497632),P=C(P,B,T,k,z[F+10],23,-1094730640),k=C(k,P,B,T,z[F+13],4,681279174),T=C(T,k,P,B,z[F+0],11,-358537222),B=C(B,T,k,P,z[F+3],16,-722521979),P=C(P,B,T,k,z[F+6],23,76029189),k=C(k,P,B,T,z[F+9],4,-640364487),T=C(T,k,P,B,z[F+12],11,-421815835),B=C(B,T,k,P,z[F+15],16,530742520),k=E(k,P=C(P,B,T,k,z[F+2],23,-995338651),B,T,z[F+0],6,-198630844),T=E(T,k,P,B,z[F+7],10,1126891415),B=E(B,T,k,P,z[F+14],15,-1416354905),P=E(P,B,T,k,z[F+5],21,-57434055),k=E(k,P,B,T,z[F+12],6,1700485571),T=E(T,k,P,B,z[F+3],10,-1894986606),B=E(B,T,k,P,z[F+10],15,-1051523),P=E(P,B,T,k,z[F+1],21,-2054922799),k=E(k,P,B,T,z[F+8],6,1873313359),T=E(T,k,P,B,z[F+15],10,-30611744),B=E(B,T,k,P,z[F+6],15,-1560198380),P=E(P,B,T,k,z[F+13],21,1309151649),k=E(k,P,B,T,z[F+4],6,-145523070),T=E(T,k,P,B,z[F+11],10,-1120210379),B=E(B,T,k,P,z[F+2],15,718787259),P=E(P,B,T,k,z[F+9],21,-343485551),k=_(k,p),P=_(P,W),B=_(B,Z),T=_(T,q)}return Array(k,P,B,T)}function w(z,A,k,P,B,T){return _((A=_(_(A,z),_(P,T)))<<B|A>>>32-B,k)}function x(z,A,k,P,B,T,F){return w(A&k|~A&P,z,A,B,T,F)}function S(z,A,k,P,B,T,F){return w(A&P|k&~P,z,A,B,T,F)}function C(z,A,k,P,B,T,F){return w(A^k^P,z,A,B,T,F)}function E(z,A,k,P,B,T,F){return w(k^(A|~P),z,A,B,T,F)}function _(z,A){var k=(65535&z)+(65535&A);return(z>>16)+(A>>16)+(k>>16)<<16|65535&k}r.exports=function(z){return v.hash(z,y,16)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){r.exports=function(v){for(var y,w=new Array(v),x=0;x<v;x++)!(3&x)&&(y=4294967296*Math.random()),w[x]=y>>>((3&x)<<3)&255;return w}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){var v=n("./helpers");function y(S,C){S[C>>5]|=128<<24-C%32,S[15+(C+64>>9<<4)]=C;for(var E,_,z,A=Array(80),k=1732584193,P=-271733879,B=-1732584194,T=271733878,F=-1009589776,p=0;p<S.length;p+=16){for(var W=k,Z=P,q=B,O=T,L=F,D=0;D<80;D++){A[D]=D<16?S[p+D]:x(A[D-3]^A[D-8]^A[D-14]^A[D-16],1);var N=w(w(x(k,5),(N=P,_=B,z=T,(E=D)<20?N&_|~N&z:!(E<40)&&E<60?N&_|N&z|_&z:N^_^z)),w(w(F,A[D]),(E=D)<20?1518500249:E<40?1859775393:E<60?-1894007588:-899497514)),F=T,T=B,B=x(P,30),P=k,k=N}k=w(k,W),P=w(P,Z),B=w(B,q),T=w(T,O),F=w(F,L)}return Array(k,P,B,T,F)}function w(S,C){var E=(65535&S)+(65535&C);return(S>>16)+(C>>16)+(E>>16)<<16|65535&E}function x(S,C){return S<<C|S>>>32-C}r.exports=function(S){return v.hash(S,y,20,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){function v(C,E){var _=(65535&C)+(65535&E);return(C>>16)+(E>>16)+(_>>16)<<16|65535&_}function y(C,E){var _,z=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),A=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),k=new Array(64);C[E>>5]|=128<<24-E%32,C[15+(E+64>>9<<4)]=E;for(var P,B,T=0;T<C.length;T+=16){for(var F=A[0],p=A[1],W=A[2],Z=A[3],q=A[4],O=A[5],L=A[6],D=A[7],N=0;N<64;N++)k[N]=N<16?C[N+T]:v(v(v((B=k[N-2],x(B,17)^x(B,19)^S(B,10)),k[N-7]),(B=k[N-15],x(B,7)^x(B,18)^S(B,3))),k[N-16]),_=v(v(v(v(D,x(B=q,6)^x(B,11)^x(B,25)),q&O^~q&L),z[N]),k[N]),P=v(x(P=F,2)^x(P,13)^x(P,22),F&p^F&W^p&W),D=L,L=O,O=q,q=v(Z,_),Z=W,W=p,p=F,F=v(_,P);A[0]=v(F,A[0]),A[1]=v(p,A[1]),A[2]=v(W,A[2]),A[3]=v(Z,A[3]),A[4]=v(q,A[4]),A[5]=v(O,A[5]),A[6]=v(L,A[6]),A[7]=v(D,A[7])}return A}var w=n("./helpers"),x=function(C,E){return C>>>E|C<<32-E},S=function(C,E){return C>>>E};r.exports=function(C){return w.hash(C,y,32,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){a.read=function(v,y,w,x,T){var C,E,_=8*T-x-1,z=(1<<_)-1,A=z>>1,k=-7,P=w?T-1:0,B=w?-1:1,T=v[y+P];for(P+=B,C=T&(1<<-k)-1,T>>=-k,k+=_;0<k;C=256*C+v[y+P],P+=B,k-=8);for(E=C&(1<<-k)-1,C>>=-k,k+=x;0<k;E=256*E+v[y+P],P+=B,k-=8);if(C===0)C=1-A;else{if(C===z)return E?NaN:1/0*(T?-1:1);E+=Math.pow(2,x),C-=A}return(T?-1:1)*E*Math.pow(2,C-x)},a.write=function(v,y,w,x,S,F){var E,_,z=8*F-S-1,A=(1<<z)-1,k=A>>1,P=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=x?0:F-1,T=x?1:-1,F=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(_=isNaN(y)?1:0,E=A):(E=Math.floor(Math.log(y)/Math.LN2),y*(x=Math.pow(2,-E))<1&&(E--,x*=2),2<=(y+=1<=E+k?P/x:P*Math.pow(2,1-k))*x&&(E++,x/=2),A<=E+k?(_=0,E=A):1<=E+k?(_=(y*x-1)*Math.pow(2,S),E+=k):(_=y*Math.pow(2,k-1)*Math.pow(2,S),E=0));8<=S;v[w+B]=255&_,B+=T,_/=256,S-=8);for(E=E<<S|_,z+=S;0<z;v[w+B]=255&E,B+=T,E/=256,z-=8);v[w+B-T]|=128*F}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){var v,y,w;function x(){}(o=r.exports={}).nextTick=(y=typeof window<"u"&&window.setImmediate,w=typeof window<"u"&&window.postMessage&&window.addEventListener,y?function(S){return window.setImmediate(S)}:w?(v=[],window.addEventListener("message",function(S){var C=S.source;C!==window&&C!==null||S.data!=="process-tick"||(S.stopPropagation(),0<v.length&&v.shift()())},!0),function(S){v.push(S),window.postMessage("process-tick","*")}):function(S){setTimeout(S,0)}),o.title="browser",o.browser=!0,o.env={},o.argv=[],o.on=x,o.addListener=x,o.once=x,o.off=x,o.removeListener=x,o.removeAllListeners=x,o.emit=x,o.binding=function(S){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(S){throw new Error("process.chdir is not supported")}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Gw);const eH=Gw.exports,tH=["contenteditable","data-ghost"],nH=["data-paragraph"],rH=i.defineComponent({__name:"RichTextDisplay",props:{paragraphs:null,noLazy:{type:Boolean},ghost:{type:Boolean},debug:{type:Boolean}},emits:["update","focus","blur"],setup(e,{expose:t,emit:n}){const r=e,a=i.ref(),o=i.ref(r.paragraphs);i.watch(()=>r.paragraphs,()=>{r.noLazy&&(o.value=r.paragraphs)},{deep:!0}),i.watchEffect(()=>{r.debug&&console.log("lazyParagraphs",o.value)});const s=f=>{n("update",f)},d=f=>{n("focus",f)},l=f=>{n("blur",f)};zf();const u=f=>{const m=Object.fromEntries(Object.entries(f).filter(([,v])=>v!==void 0)),c=`rich-text-${eH(m)}`;let h=document.querySelector(`[data-rich-text-global-style='${c}']`);return h||(h=document.createElement("style"),h.lang="css",h.setAttribute("data-rich-text-global-style",c),document.head.appendChild(h)),h.innerHTML=`.${c} { ${Object.entries(m).map(([v,y])=>`${v}: ${y};`).join(" ")} }`,c};return t({richTextEditorDivRef:a}),(f,m)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"richTextEditorDivRef",ref:a,class:i.normalizeClass(["rich-text-editor",{ghost:e.ghost}]),contenteditable:!e.ghost,onInput:s,onFocus:d,onBlur:l,"data-ghost":e.ghost},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(c,h)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:h},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c,(v,y)=>i.renderSlot(f.$slots,"feature",{key:y,text:v.text,format:v.format,cssclass:u},void 0,!0)),128)),h<o.value.length-1?(i.openBlock(),i.createElementBlock("br",{key:0,"data-custom-br":"true","data-paragraph":JSON.stringify(c)},null,8,nH)):i.createCommentVNode("",!0)],64))),128))],42,tH))}}),Xw=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},r7=Xw(rH,[["__scopeId","data-v-8803d25a"]]),aH={class:"rich-text-wrapper"},oH=["data-feature-format"],iH=["data-feature-format"],sH=i.defineComponent({__name:"RichText",props:{value:null,selection:null,userAgentRichText:{type:Boolean},renderFeatureInlineStyle:null,maxLength:null,maxLengthPerLine:null,maxLines:null,multiline:{type:Boolean,default:!0}},emits:["update:value","update:visible-value","update:selection","update:warning-message","update:focus"],setup(e,{expose:t,emit:n}){const r=e;i.computed(()=>!r.multiline);const a=i.ref(),o=i.ref(),s=i.computed(()=>{var E;return(E=a.value)==null?void 0:E.richTextEditorDivRef}),{handleInputEvent:d,paragraphs:l,visibleParagraphs:u,manipulationState:f,applyFormat:m,resolveFeatures:c,selection:h}=Kq(s,i.toRef(r,"value"),{maxLength:r.maxLength,maxLengthPerLine:r.maxLengthPerLine,maxLines:r.maxLines}),v=E=>{r.multiline||E.key==="Enter"&&E.preventDefault()},y=i.computed(()=>tc.isEqual(l.value,u.value)?void 0:"Text is too long");i.watchEffect(()=>{n("update:warning-message",y.value)});const w=i.ref(!1);i.watch(w,()=>{n("update:focus",w.value)},{immediate:!0});const x=()=>{w.value=!0},S=()=>{w.value=!1};i.watch(s,(E,_)=>{_&&(_.removeEventListener("focus",x),_.removeEventListener("blur",S)),E&&(E.addEventListener("focus",x),E.addEventListener("blur",S))}),i.watch(h,()=>{var E;tc.isEqual(h.value,r.selection)||n("update:selection",(E=h.value)!=null?E:void 0)}),i.watch(l,()=>{tc.isEqual(l.value,r.value)||n("update:value",l.value)}),i.watch(u,()=>{n("update:visible-value",u.value)}),window.addEventListener("touchmove",E=>{h.value&&E.preventDefault()});let C;return i.onMounted(()=>{var E;if(!((E=o.value)!=null&&E.richTextEditorDivRef))return;const _=(z,A)=>{var k,P;(k=a.value)==null||k.richTextEditorDivRef,(P=o.value)==null||P.richTextEditorDivRef;for(const B of z);};C=new MutationObserver(_),C.observe(o.value.richTextEditorDivRef,{attributes:!0,childList:!0,subtree:!0})}),i.onUnmounted(()=>{C.disconnect()}),t({applyFormat:m,resolveFeatures:c}),(E,_)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["rich-text",{focus:w.value}])},[i.createElementVNode("div",aH,[i.createVNode(r7,{ref_key:"richTextDisplayGhostInstance",ref:o,paragraphs:i.unref(u),"no-lazy":"",ghost:"",debug:!1},{feature:i.withCtx(z=>[i.createElementVNode("span",{"data-feature-format":JSON.stringify(z.format),class:i.normalizeClass(["feature-wrapper feature-wrapper-ghost",{[z.cssclass(e.renderFeatureInlineStyle(z.format))]:!0,"line-overflow":!!z.format.lineOverflow,overflow:!!z.format.overflow}])},i.toDisplayString(z.text),11,oH)]),_:1},8,["paragraphs"]),(i.openBlock(),i.createBlock(r7,{ref_key:"richTextDisplayInstance",ref:a,key:i.unref(f),paragraphs:i.unref(l),onUpdate:i.unref(d),onKeydown:v,style:i.normalizeStyle({"-webkit-user-modify":e.userAgentRichText?"read-write":"read-write-plaintext-only"})},{feature:i.withCtx(z=>[i.createElementVNode("span",{"data-feature-format":JSON.stringify(z.format),class:i.normalizeClass(["feature-wrapper",{[z.cssclass(e.renderFeatureInlineStyle(z.format))]:!0}])},i.toDisplayString(z.text),11,iH)]),_:1},8,["paragraphs","onUpdate","style"]))])],2))}}),lH=Xw(sH,[["__scopeId","data-v-0c32d373"]]),cH=i.defineComponent({__name:"BxRichtextInput",props:i.mergeModels({userAgentRichText:{type:Boolean,default:!0},multiline:{type:Boolean,default:!0},maxLength:{default:1/0},maxLengthPerLine:{default:1/0},maxLines:{default:1/0},ariaLabel:{},ariaLabelledby:{}},{modelValue:{required:!0},modelModifiers:{},selection:{required:!0},selectionModifiers:{}}),emits:i.mergeModels(["update:raw-text","update:focus"],["update:modelValue","update:selection"]),setup(e,{expose:t,emit:n}){const r=i.useModel(e,"modelValue"),a=e,o=n,s=i.useModel(e,"selection"),d=x=>x.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),l=x=>{const S=(()=>{if(x.customClass){if(x.customClassUIRepresentation==="bold")return{"font-weight":600};if(x.customClassUIRepresentation==="italic")return{"font-style":"italic"};if(x.customClassUIRepresentation==="textColor")return{color:x.customClassUIRepresentationColor??"#ff0000"};if(x.customClassUIRepresentation==="backgroundColor")return{"background-color":x.customClassUIRepresentationColor??"#ff0000",color:Mn(x.customClassUIRepresentationColor??"#ff0000").isDark()?"white":"black"}}else return{}})();return{...Object.fromEntries(Object.entries({...x,...x.customClass==="list-item"?{display:"block",marginLeft:"1em"}:{}}).map(([E,_])=>{const z=d(E);return[z,z==="font-size"&&typeof _=="number"?`${_}px`:_]})),...S}},u=i.ref(y1(typeof r.value=="string"?[{text:r.value,format:{}}]:r.value));i.watch(u,x=>{const S=Wv(x);rr(S,r.value)||(r.value=S)}),i.watch(r,()=>{const x=y1(typeof r.value=="string"?[{text:r.value,format:{}}]:r.value);rr(x,r.value)||(u.value=x)});const f=i.ref(u.value),m=i.computed(()=>w1(f.value));i.watch(m,()=>{o("update:raw-text",m.value)},{immediate:!0});const c=i.ref(),h=i.ref();function v(){var C,E;const x=(C=h.value)==null?void 0:C.$el,S=(E=x==null?void 0:x.querySelector)==null?void 0:E.call(x,'.rich-text-editor[contenteditable="true"]');S&&(S.setAttribute("role","textbox"),S.setAttribute("aria-multiline",String(a.multiline)),S.hasAttribute("tabindex")||S.setAttribute("tabindex","0"),a.ariaLabelledby?(S.setAttribute("aria-labelledby",a.ariaLabelledby),S.removeAttribute("aria-label")):a.ariaLabel?(S.setAttribute("aria-label",a.ariaLabel),S.removeAttribute("aria-labelledby")):(S.removeAttribute("aria-label"),S.removeAttribute("aria-labelledby")))}let y;i.onMounted(()=>{var C,E;i.nextTick(v);const x=(C=h.value)==null?void 0:C.$el,S=(E=x==null?void 0:x.querySelector)==null?void 0:E.call(x,".rich-text-wrapper");S&&(y=new MutationObserver(()=>v()),y.observe(S,{childList:!0,subtree:!0}))}),i.onBeforeUnmount(()=>y==null?void 0:y.disconnect()),i.watch(()=>[a.ariaLabel,a.ariaLabelledby,a.multiline],()=>i.nextTick(v));const w=i.ref(!1);return i.watch(w,()=>{o("update:focus",w.value)},{immediate:!0}),t({richTextInstance:h}),(x,S)=>(i.openBlock(),i.createBlock(i.unref(lH),{ref_key:"richTextInstance",ref:h,selection:s.value,"onUpdate:selection":S[0]||(S[0]=C=>s.value=C),value:u.value,"onUpdate:value":S[1]||(S[1]=C=>u.value=C),"onUpdate:visibleValue":S[2]||(S[2]=C=>f.value=C),"render-feature-inline-style":l,"user-agent-rich-text":e.userAgentRichText,"max-length":e.maxLength,"max-length-per-line":e.maxLengthPerLine,"max-lines":e.maxLines,multiline:e.multiline,"onUpdate:warningMessage":S[3]||(S[3]=C=>c.value=C),focus:w.value,"onUpdate:focus":S[4]||(S[4]=C=>w.value=C),class:i.normalizeClass({warning:!!c.value})},null,8,["selection","value","user-agent-rich-text","max-length","max-length-per-line","max-lines","multiline","focus","class"]))}}),Yw=Ue(cH,[["__scopeId","data-v-c41191d8"]]),uH=i.defineComponent({__name:"BxPopover",props:{show:{type:Boolean},trigger:{},customStyles:{},customClasses:{},darkenBackground:{type:Boolean,default:!0},floatingPadding:{},allowedPlacements:{default:()=>["top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]},arrow:{type:Boolean,default:!0},showLeazyness:{default:0},leaveLazyness:{default:200},overflowVisible:{type:Boolean,default:!1},closeOnClickOutside:{type:Boolean,default:!0},transitionDuration:{},role:{default:"popover"},killExistingRoleEntriesOnHoverShow:{type:Boolean,default:!1},maxPopoverHeight:{}},emits:["update:show"],setup(e,{expose:t,emit:n}){const r=e,a=n,o=i.useSlots(),s=Pn(),{setSlotRef:d,slotElements:l,vNodes:u}=wp(o.trigger),f=i.ref(!1);i.watch(f,()=>{f.value!==r.show&&a("update:show",f.value)},{immediate:!0}),i.watch(()=>r.show,()=>{r.show!==f.value&&(f.value=r.show)},{immediate:!0});const m=i.computed(()=>l.value[0]),c=i.ref(!1),h=i.ref(!1);function v(){r.trigger==="click"&&(f.value=!f.value)}function y(){c.value=!0}function w(){c.value=!1}i.watch(c,()=>{r.trigger==="hover"&&(c.value?z():A())}),i.watch(h,F=>{r.trigger==="hover"&&(F||A())});let x,S;function C(){x!==void 0&&(clearTimeout(x),x=void 0),S!==void 0&&(clearTimeout(S),S=void 0)}function E(){if(!c.value)return;const F=f.value&&!P.overlayProviderRef.isVisible(s);if(!f.value||F){if(r.killExistingRoleEntriesOnHoverShow)for(const p of[...P.overlayProviderRef.entries])p.id!==s&&p.role===r.role&&p.close();F?T():f.value=!0}}function _(){!c.value&&!h.value&&(f.value=!1)}function z(){C(),r.showLeazyness>0?x=setTimeout(()=>{x=void 0,E()},r.showLeazyness):E()}function A(){C(),r.leaveLazyness>0?S=setTimeout(()=>{S=void 0,_()},r.leaveLazyness):_()}let k=[];i.onUnmounted(()=>{for(const F of k)F.removeEventListener("click",v),F.removeEventListener("mouseenter",y),F.removeEventListener("mouseleave",w)}),i.watch(l,(F,p)=>{if(p)for(const W of p)W.removeEventListener("click",v),W.removeEventListener("mouseenter",y),W.removeEventListener("mouseleave",w);for(const W of F)W.addEventListener("click",v),W.addEventListener("mouseenter",y),W.addEventListener("mouseleave",w),W.nodeType===Node.ELEMENT_NODE&&(W.dataset.bxTargetPopoverId=s);k=F});const P=window.bluepicPopupProvider;i.onMounted(()=>{var p;const F=document.querySelector(Mc);F&&(F.classList.add("bluepic-popup-app-wrapper"),(p=F.parentElement)==null||p.classList.add("bluepic-popup-body"))}),i.onUnmounted(()=>{for(const F of l.value)F.removeEventListener("click",v);C(),P.overlayProviderRef.pull(s)});const B=ol();function T(){P.overlayProviderRef.pushPopover(s,()=>i.h(jw,{floatingElement:m.value,styles:{...r.customStyles},floatingPadding:r.floatingPadding,customClasses:r.customClasses??[],onClose(){f.value=!1},arrow:r.arrow,allowedPlacements:r.allowedPlacements,bxPopoverId:s,noPointerEvents:r.trigger==="hover"||r.trigger==="manual"&&!r.closeOnClickOutside,overflowVisible:r.overflowVisible,capturedContext:B,popoverMaxHeight:r.maxPopoverHeight?`${r.maxPopoverHeight}px`:void 0,onMouseenter(){h.value=!0},onMouseleave(){h.value=!1}},{default:()=>o.content()}),{darkenBackground:r.darkenBackground,handleClickOutside(){(r.trigger==="click"||r.trigger==="manual"&&r.closeOnClickOutside)&&(f.value=!1)},role:r.role,transitionDuration:r.transitionDuration??Hv,close(){f.value=!1}})}return i.watch(f,()=>{f.value?T():(h.value=!1,P.overlayProviderRef.pull(s))}),t({id:s,close(){f.value=!1},show(){f.value=!0},destroy(){f.value=!1,P.overlayProviderRef.pull(s)}}),(F,p)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),(W,Z)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(W),{ref_for:!0,ref:i.unref(d)(Z)},null,512))),256))}}),Ic=Ue(uH,[["__scopeId","data-v-40abf6ca"]]),dH=["role"],fH=["onClick","title","role","tabindex","aria-selected","aria-disabled"],pH={key:0,class:"icon-wrapper"},mH={key:1,class:"icon-wrapper"},hH={key:4},gH={key:6,class:"active-symbol"},vH={key:0,class:"bx-menu__divider"},bH=i.defineComponent({__name:"BxMenu",props:{items:{},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},showActiveSymbol:{type:Boolean,default:!0},divided:{type:Boolean,default:!1},ariaRole:{},autofocusItem:{type:Boolean}},emits:["action","close"],setup(e,{emit:t}){const n=e,r=i.computed(()=>n.ariaRole==="listbox"?"option":n.ariaRole==="menu"?"menuitem":void 0),a=i.ref(),o=i.ref([]);function s(v,y){o.value[y]=v}const d=i.computed(()=>{const v=n.items.findIndex(y=>y.isActive&&!y.disabled);return v>=0?v:n.items.findIndex(y=>!y.disabled)});function l(){return n.items.map((v,y)=>({item:v,index:y})).filter(v=>!v.item.disabled)}function u(v){var y;(y=o.value[v])==null||y.focus()}function f(v){if(!n.ariaRole)return;const y=l();if(y.length===0)return;const w=y.findIndex(S=>o.value[S.index]===document.activeElement);let x;switch(v.key){case"ArrowDown":case"ArrowRight":x=w<0?0:(w+1)%y.length;break;case"ArrowUp":case"ArrowLeft":x=w<0?y.length-1:(w-1+y.length)%y.length;break;case"Home":x=0;break;case"End":x=y.length-1;break;case"Enter":case" ":w>=0&&(v.preventDefault(),h(y[w].item));return;case"Escape":v.preventDefault(),m("close");return;default:return}v.preventDefault(),u(y[x].index)}i.onMounted(()=>{n.autofocusItem&&n.ariaRole&&i.nextTick(()=>{const v=d.value;v>=0&&u(v)})});const m=t,c=i.useSlots();function h(v){v.disabled||m("action",v)}return(v,y)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"menuRef",ref:a,class:i.normalizeClass(["bx-menu",{primary:e.primary,secondary:e.secondary,divided:e.divided}]),role:e.ariaRole,onKeydown:f},[c["render-items"]?i.renderSlot(v.$slots,"render-items",{items:e.items},void 0,!0,0):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.items,(w,x)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:x},[i.createElementVNode("div",{ref_for:!0,ref:S=>s(S,x),onClick:S=>h(w),class:i.normalizeClass(["bx-menu__item",{active:w.isActive===!0,disabled:w.disabled===!0}]),style:i.normalizeStyle({"--menu-item-disabled-opacity":w.disabledOpacity}),title:w.title,role:r.value,tabindex:r.value?x===d.value?0:-1:void 0,"aria-selected":e.ariaRole==="listbox"?w.isActive===!0:void 0,"aria-disabled":r.value&&w.disabled===!0?"true":void 0},[c["render-item-icon"]?(i.openBlock(),i.createElementBlock("div",pH,[i.renderSlot(v.$slots,"render-item-icon",{item:w,isActive:w.isActive===!0},void 0,!0)])):w.icon?(i.openBlock(),i.createElementBlock("div",mH,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.icon())))])):i.createCommentVNode("",!0),c["render-item-label"]?i.renderSlot(v.$slots,"render-item-label",{item:w,isActive:w.isActive===!0,index:x},void 0,!0,2):typeof w.label=="function"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.label()),{key:3})):(i.openBlock(),i.createElementBlock("span",hH,i.toDisplayString(w.label),1)),w.suffix?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.suffix()),{key:5})):i.createCommentVNode("",!0),e.showActiveSymbol?(i.openBlock(),i.createElementBlock("div",gH,[c["render-item-active-symbol"]?i.renderSlot(v.$slots,"render-item-active-symbol",{item:w,isActive:w.isActive===!0},void 0,!0,0):(i.openBlock(),i.createBlock(qe,{key:1,size:14,style:i.normalizeStyle({opacity:w.isActive===!0?1:0})},{default:i.withCtx(()=>[i.createVNode(i.unref(xw))]),_:1},8,["style"]))])):i.createCommentVNode("",!0)],14,fH),x<e.items.length-1&&e.divided?(i.openBlock(),i.createElementBlock("div",vH)):i.createCommentVNode("",!0)],64))),128))],42,dH))}}),Kw=Ue(bH,[["__scopeId","data-v-7820eb6d"]]),yH=["tabindex","aria-expanded","aria-disabled","aria-label","aria-labelledby"],wH={key:0,class:"prefix-wrapper"},xH={key:1,class:"prefix-wrapper"},CH=["title"],SH={class:"suffix-wrapper"},_H="24px",kH=i.defineComponent({__name:"BxSelect",props:i.mergeModels({modelValue:{},multiple:{type:Boolean},size:{default:"medium"},trigger:{default:"click"},options:{},disabled:{type:Boolean,default:!1},placeholderActiveLabel:{},showSelectedSymbol:{type:Boolean,default:!0},allowedPlacements:{default:()=>["bottom","top"]},autoCloseOnSelect:{type:Boolean,default:!0},divided:{type:Boolean,default:!1},popoverHasTriggerMaxWidth:{type:Boolean,default:!1},closeOnClickOutside:{type:Boolean,default:!0},maxPopoverHeight:{},bordered:{type:Boolean,default:!1},ariaLabel:{},ariaLabelledby:{}},{show:{type:Boolean,required:!1,default:!1},showModifiers:{}}),emits:i.mergeModels(["update:modelValue"],["update:show"]),setup(e,{expose:t,emit:n}){const r=e,a=n,o=i.useSlots(),s=i.ref(),{width:d}=Ef(s),l=i.ref(),u=i.useModel(e,"show"),f=i.computed(()=>{if(r.multiple){const C=r.options.filter(_=>v(_));if(C.length===0)return;const E=C.map(_=>_.label).filter(_=>typeof _=="string");return E.length===C.length&&C.length<=3?E.join(", "):`${C.length} selected`}const S=r.options.find(C=>v(C));return S==null?void 0:S.label}),m=i.computed(()=>{if(r.multiple)return;const S=r.options.find(C=>v(C));if(S)return o["render-option-icon"]?()=>o["render-option-icon"]({option:S,isActive:v(S)}):S.icon}),c=i.computed(()=>r.multiple?Array.isArray(r.modelValue)?r.modelValue:[]:r.modelValue===void 0?[]:[r.modelValue]);function h(S,C){return S===C||JSON.stringify(S)===JSON.stringify(C)}function v(S){return c.value.some(C=>h(S.value,C))}i.watch(()=>r.modelValue,()=>{var S;r.multiple||(S=l.value)==null||S.close()});function y(S){var C,E;if(!(r.disabled||x.value.length===0))switch(S.key){case"Enter":case" ":case"ArrowDown":case"ArrowUp":S.preventDefault(),(C=l.value)==null||C.show();break;case"Escape":(E=l.value)==null||E.close();break}}i.watch(u,(S,C)=>{C&&!S&&i.nextTick(()=>{var E,_;(_=(E=s.value)==null?void 0:E.querySelector(".select-trigger"))==null||_.focus()})});const w=S=>{var E;const C=r.options[Number(S.key)];if(C){if(r.multiple){const _=c.value,z=_.some(A=>h(C.value,A))?_.filter(A=>!h(C.value,A)):[..._,C.value];a("update:modelValue",z);return}a("update:modelValue",C.value),r.autoCloseOnSelect&&((E=l.value)==null||E.close())}};t({closePopover(){var S;(S=l.value)==null||S.close()},showPopover(){var S;(S=l.value)==null||S.show()}});const x=i.computed(()=>r.options.map((S,C)=>({label:S.label,key:C,icon:S.icon,isActive:v(S),disabled:S.disabled,disabledOpacity:S.disabledOpacity,title:S.tooltip})));return i.watchEffect(()=>{x.value.length===0&&(u.value=!1)}),(S,C)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"bxSelectMainRef",ref:s,class:i.normalizeClass(["bx-select",{disabled:e.disabled,bordered:e.bordered,["size-"+e.size]:e.size}]),style:i.normalizeStyle({"--icon-size":_H})},[i.createVNode(Ic,{ref_key:"popoverRef",ref:l,trigger:x.value.length>0&&!e.disabled?e.trigger:"manual","allowed-placements":e.allowedPlacements,arrow:!1,"darken-background":!1,"custom-classes":["bx-select-popover"],"floating-padding":0,"close-on-click-outside":e.closeOnClickOutside,show:u.value,"onUpdate:show":C[1]||(C[1]=E=>u.value=E),"transition-duration":0,role:"dropdown","kill-existing-role-entries-on-hover-show":!0,"max-popover-height":e.maxPopoverHeight},{trigger:i.withCtx(()=>[o.trigger?i.renderSlot(S.$slots,"trigger",{},void 0,!0,0):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["select-trigger",{focus:u.value}]),role:"combobox",tabindex:e.disabled?-1:0,"aria-haspopup":"listbox","aria-expanded":u.value?"true":"false","aria-disabled":e.disabled?"true":void 0,"aria-label":e.ariaLabelledby?void 0:e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onKeydown:y},[o.prefix?(i.openBlock(),i.createElementBlock("div",wH,[i.renderSlot(S.$slots,"prefix",{},void 0,!0)])):m.value?(i.openBlock(),i.createElementBlock("div",xH,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(m.value)))])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"select-value",title:typeof f.value=="string"?f.value:void 0},[i.createElementVNode("span",{class:i.normalizeClass({placeholder:f.value===void 0})},[o.label?i.renderSlot(S.$slots,"label",{label:f.value??e.placeholderActiveLabel,value:e.modelValue},void 0,!0,0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[typeof f.value=="function"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.value),{key:0})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(f.value??e.placeholderActiveLabel),1)],64))],64))],2)],8,CH),i.createElementVNode("div",SH,[o.suffix?i.renderSlot(S.$slots,"suffix",{},void 0,!0,0):(i.openBlock(),i.createBlock(qe,{key:1,size:e.size==="tiny"?12:14},{default:i.withCtx(()=>[i.createVNode(i.unref(Rv))]),_:1},8,["size"]))])],42,yH))]),content:i.withCtx(()=>[i.createVNode(Kw,{items:x.value,"show-active-symbol":e.showSelectedSymbol,"aria-role":"listbox","autofocus-item":"",secondary:"",onAction:w,onClose:C[0]||(C[0]=E=>{var _;return(_=l.value)==null?void 0:_.close()}),style:i.normalizeStyle({"min-width":`calc(${i.unref(d)}px - 8px)`,"max-width":r.popoverHasTriggerMaxWidth?`calc(${i.unref(d)}px - 8px)`:"none"}),divided:e.divided},i.createSlots({_:2},[o["render-option-label"]?{name:"render-item-label",fn:i.withCtx(({item:E,isActive:_,index:z})=>[i.renderSlot(S.$slots,"render-option-label",{option:e.options[z],isActive:_},void 0,!0)]),key:"0"}:void 0]),1032,["items","show-active-symbol","style","divided"])]),_:3},8,["trigger","allowed-placements","close-on-click-outside","show","max-popover-height"])],6))}}),Zo=Ue(kH,[["__scopeId","data-v-f305342c"]]),EH=["id"],zH=300,IH=i.defineComponent({__name:"BxTooltip",props:i.mergeModels({trigger:{},allowedPlacements:{},customPopoverClasses:{},customThresholdDelay:{}},{show:{type:Boolean,required:!1,default:!1},showModifiers:{}}),emits:["update:show"],setup(e){const t=i.useModel(e,"show"),n=e,r=i.useSlots(),a=window.bluepicPopupProvider,o=i.ref(),s=i.computed(()=>a.overlayProviderRef.entries.some(C=>C.role==="tooltip")),d=i.ref(s.value);i.watch(s,C=>{C?d.value=!0:setTimeout(()=>{s.value||(d.value=!1)},zH)});const l=i.computed(()=>n.customThresholdDelay??(d.value?0:1e3)),{setSlotRef:u,slotElements:f,vNodes:m}=wp(r.trigger),c=Vi("bx-tooltip-content"),h=["BUTTON","A","INPUT","SELECT","TEXTAREA"];function v(C){return C.hasAttribute("tabindex")||h.includes(C.tagName)}function y(){n.trigger!=="manual"&&(t.value=!0)}function w(){n.trigger!=="manual"&&(t.value=!1)}let x=[];i.watch(f,(C,E)=>{for(const _ of E??[])_.removeEventListener("focusin",y),_.removeEventListener("focusout",w);x=[];for(const _ of C)_ instanceof HTMLElement&&(v(_)||(_.tabIndex=0),_.setAttribute("aria-describedby",c),_.addEventListener("focusin",y),_.addEventListener("focusout",w),x.push(_))},{immediate:!0});function S(C){C.key==="Escape"&&t.value&&(t.value=!1,C.stopPropagation())}return i.watch(t,C=>{C?window.addEventListener("keydown",S,!0):window.removeEventListener("keydown",S,!0)}),i.onUnmounted(()=>{for(const C of x)C.removeEventListener("focusin",y),C.removeEventListener("focusout",w);window.removeEventListener("keydown",S,!0)}),(C,E)=>(i.openBlock(),i.createBlock(Ic,{ref_key:"popover",ref:o,show:t.value,"onUpdate:show":E[0]||(E[0]=_=>t.value=_),trigger:e.trigger,"darken-background":!1,"allowed-placements":e.allowedPlacements,"custom-classes":["tooltip-popover",...n.customPopoverClasses??[]],"overflow-visible":!0,"show-leazyness":l.value,"leave-lazyness":0,"transition-duration":0,arrow:!0,role:"tooltip","kill-existing-role-entries-on-hover-show":!0},{trigger:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),(_,z)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(_),{key:z,ref_for:!0,ref:i.unref(u)(z)},null,512))),128))]),content:i.withCtx(()=>[i.createElementVNode("div",{id:i.unref(c),class:"tooltip-wrapper",role:"tooltip"},[i.renderSlot(C.$slots,"content",{},void 0,!0)],8,EH)]),_:3},8,["show","trigger","allowed-placements","custom-classes","show-leazyness"]))}}),$0=Ue(IH,[["__scopeId","data-v-28ebc62d"]]),BH={key:0,class:"bx-input__prefix"},AH=["placeholder","readonly","title","aria-label","aria-labelledby","aria-invalid","aria-describedby"],OH=["readonly","placeholder","type","title","aria-label","aria-labelledby","aria-invalid","aria-describedby"],LH=["data-suffix"],MH={key:0,class:"bx-input__loading-wrapper"},PH=["id"],DH={class:"text-overflow-errors"},$H={key:0,class:"text-err"},TH={class:"overflow-label"},jH={key:1,class:"text-err"},NH={class:"overflow-label"},RH={key:2,class:"text-err"},FH={class:"index-label"},VH={class:"overflow-label"},UH=i.defineComponent({__name:"BxInput",props:i.mergeModels({size:{default:"medium"},loading:{type:Boolean,default:!1},round:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inputProps:{default:()=>({})},placeholder:{},validator:{},maxLength:{default:1/0},maxLineLength:{default:1/0},maxLines:{default:1/0},showWordCount:{type:Boolean,default:!1},type:{default:"text"},state:{default:"default"},ghost:{type:Boolean,default:!1},ring:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},resizeable:{type:Boolean,default:!0},richtext:{},maxHeight:{default:"100px"},minHeight:{},readonly:{type:Boolean,default:!1},readonlyMessage:{default:"This field is read-only"},bordered:{type:Boolean,default:!1},ariaLabel:{},ariaLabelledby:{}},{modelValue:{type:[String,Number,Boolean,Array],required:!1,default:""},modelModifiers:{}}),emits:i.mergeModels(["enter","focus","blur"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const r=e,a=n,o=i.useSlots(),s=i.useModel(e,"modelValue"),d=i.ref(s.value),l=i.ref([]),u=i.ref(0),f=i.ref(0),m=i.computed(()=>{if(l.value.length>0||u.value>0||f.value>0)return{lineOverflows:l.value.length>0?l.value:void 0,overlowingLines:u.value>0?u.value:void 0,overflowingCharacters:f.value>0?f.value:void 0}}),c=i.computed({get(){return m.value!==void 0},set(K){}}),h=i.computed(()=>typeof d.value=="object"?t7(d.value,0,r.maxLength):String(d.value).split(`
|
|
144
|
+
`))}E.fill(0),a.createHash=function(B){return _(B)},a.createHmac=_,a.randomBytes=function(B,T){if(!T||!T.call)return new v(x(B));try{T.call(this,void 0,new v(x(B)))}catch(F){T(F)}};var A,k=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],P=function(B){a[B]=function(){z("sorry,",B,"is not implemented yet")}};for(A in k)P(k[A])}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){var v=n("./helpers");function y(z,A){z[A>>5]|=128<<A%32,z[14+(A+64>>>9<<4)]=A;for(var k=1732584193,P=-271733879,B=-1732584194,T=271733878,F=0;F<z.length;F+=16){var p=k,W=P,Z=B,q=T,k=x(k,P,B,T,z[F+0],7,-680876936),T=x(T,k,P,B,z[F+1],12,-389564586),B=x(B,T,k,P,z[F+2],17,606105819),P=x(P,B,T,k,z[F+3],22,-1044525330);k=x(k,P,B,T,z[F+4],7,-176418897),T=x(T,k,P,B,z[F+5],12,1200080426),B=x(B,T,k,P,z[F+6],17,-1473231341),P=x(P,B,T,k,z[F+7],22,-45705983),k=x(k,P,B,T,z[F+8],7,1770035416),T=x(T,k,P,B,z[F+9],12,-1958414417),B=x(B,T,k,P,z[F+10],17,-42063),P=x(P,B,T,k,z[F+11],22,-1990404162),k=x(k,P,B,T,z[F+12],7,1804603682),T=x(T,k,P,B,z[F+13],12,-40341101),B=x(B,T,k,P,z[F+14],17,-1502002290),k=S(k,P=x(P,B,T,k,z[F+15],22,1236535329),B,T,z[F+1],5,-165796510),T=S(T,k,P,B,z[F+6],9,-1069501632),B=S(B,T,k,P,z[F+11],14,643717713),P=S(P,B,T,k,z[F+0],20,-373897302),k=S(k,P,B,T,z[F+5],5,-701558691),T=S(T,k,P,B,z[F+10],9,38016083),B=S(B,T,k,P,z[F+15],14,-660478335),P=S(P,B,T,k,z[F+4],20,-405537848),k=S(k,P,B,T,z[F+9],5,568446438),T=S(T,k,P,B,z[F+14],9,-1019803690),B=S(B,T,k,P,z[F+3],14,-187363961),P=S(P,B,T,k,z[F+8],20,1163531501),k=S(k,P,B,T,z[F+13],5,-1444681467),T=S(T,k,P,B,z[F+2],9,-51403784),B=S(B,T,k,P,z[F+7],14,1735328473),k=C(k,P=S(P,B,T,k,z[F+12],20,-1926607734),B,T,z[F+5],4,-378558),T=C(T,k,P,B,z[F+8],11,-2022574463),B=C(B,T,k,P,z[F+11],16,1839030562),P=C(P,B,T,k,z[F+14],23,-35309556),k=C(k,P,B,T,z[F+1],4,-1530992060),T=C(T,k,P,B,z[F+4],11,1272893353),B=C(B,T,k,P,z[F+7],16,-155497632),P=C(P,B,T,k,z[F+10],23,-1094730640),k=C(k,P,B,T,z[F+13],4,681279174),T=C(T,k,P,B,z[F+0],11,-358537222),B=C(B,T,k,P,z[F+3],16,-722521979),P=C(P,B,T,k,z[F+6],23,76029189),k=C(k,P,B,T,z[F+9],4,-640364487),T=C(T,k,P,B,z[F+12],11,-421815835),B=C(B,T,k,P,z[F+15],16,530742520),k=E(k,P=C(P,B,T,k,z[F+2],23,-995338651),B,T,z[F+0],6,-198630844),T=E(T,k,P,B,z[F+7],10,1126891415),B=E(B,T,k,P,z[F+14],15,-1416354905),P=E(P,B,T,k,z[F+5],21,-57434055),k=E(k,P,B,T,z[F+12],6,1700485571),T=E(T,k,P,B,z[F+3],10,-1894986606),B=E(B,T,k,P,z[F+10],15,-1051523),P=E(P,B,T,k,z[F+1],21,-2054922799),k=E(k,P,B,T,z[F+8],6,1873313359),T=E(T,k,P,B,z[F+15],10,-30611744),B=E(B,T,k,P,z[F+6],15,-1560198380),P=E(P,B,T,k,z[F+13],21,1309151649),k=E(k,P,B,T,z[F+4],6,-145523070),T=E(T,k,P,B,z[F+11],10,-1120210379),B=E(B,T,k,P,z[F+2],15,718787259),P=E(P,B,T,k,z[F+9],21,-343485551),k=_(k,p),P=_(P,W),B=_(B,Z),T=_(T,q)}return Array(k,P,B,T)}function w(z,A,k,P,B,T){return _((A=_(_(A,z),_(P,T)))<<B|A>>>32-B,k)}function x(z,A,k,P,B,T,F){return w(A&k|~A&P,z,A,B,T,F)}function S(z,A,k,P,B,T,F){return w(A&P|k&~P,z,A,B,T,F)}function C(z,A,k,P,B,T,F){return w(A^k^P,z,A,B,T,F)}function E(z,A,k,P,B,T,F){return w(k^(A|~P),z,A,B,T,F)}function _(z,A){var k=(65535&z)+(65535&A);return(z>>16)+(A>>16)+(k>>16)<<16|65535&k}r.exports=function(z){return v.hash(z,y,16)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){r.exports=function(v){for(var y,w=new Array(v),x=0;x<v;x++)!(3&x)&&(y=4294967296*Math.random()),w[x]=y>>>((3&x)<<3)&255;return w}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){var v=n("./helpers");function y(S,C){S[C>>5]|=128<<24-C%32,S[15+(C+64>>9<<4)]=C;for(var E,_,z,A=Array(80),k=1732584193,P=-271733879,B=-1732584194,T=271733878,F=-1009589776,p=0;p<S.length;p+=16){for(var W=k,Z=P,q=B,O=T,L=F,D=0;D<80;D++){A[D]=D<16?S[p+D]:x(A[D-3]^A[D-8]^A[D-14]^A[D-16],1);var N=w(w(x(k,5),(N=P,_=B,z=T,(E=D)<20?N&_|~N&z:!(E<40)&&E<60?N&_|N&z|_&z:N^_^z)),w(w(F,A[D]),(E=D)<20?1518500249:E<40?1859775393:E<60?-1894007588:-899497514)),F=T,T=B,B=x(P,30),P=k,k=N}k=w(k,W),P=w(P,Z),B=w(B,q),T=w(T,O),F=w(F,L)}return Array(k,P,B,T,F)}function w(S,C){var E=(65535&S)+(65535&C);return(S>>16)+(C>>16)+(E>>16)<<16|65535&E}function x(S,C){return S<<C|S>>>32-C}r.exports=function(S){return v.hash(S,y,20,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){function v(C,E){var _=(65535&C)+(65535&E);return(C>>16)+(E>>16)+(_>>16)<<16|65535&_}function y(C,E){var _,z=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),A=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),k=new Array(64);C[E>>5]|=128<<24-E%32,C[15+(E+64>>9<<4)]=E;for(var P,B,T=0;T<C.length;T+=16){for(var F=A[0],p=A[1],W=A[2],Z=A[3],q=A[4],O=A[5],L=A[6],D=A[7],N=0;N<64;N++)k[N]=N<16?C[N+T]:v(v(v((B=k[N-2],x(B,17)^x(B,19)^S(B,10)),k[N-7]),(B=k[N-15],x(B,7)^x(B,18)^S(B,3))),k[N-16]),_=v(v(v(v(D,x(B=q,6)^x(B,11)^x(B,25)),q&O^~q&L),z[N]),k[N]),P=v(x(P=F,2)^x(P,13)^x(P,22),F&p^F&W^p&W),D=L,L=O,O=q,q=v(Z,_),Z=W,W=p,p=F,F=v(_,P);A[0]=v(F,A[0]),A[1]=v(p,A[1]),A[2]=v(W,A[2]),A[3]=v(Z,A[3]),A[4]=v(q,A[4]),A[5]=v(O,A[5]),A[6]=v(L,A[6]),A[7]=v(D,A[7])}return A}var w=n("./helpers"),x=function(C,E){return C>>>E|C<<32-E},S=function(C,E){return C>>>E};r.exports=function(C){return w.hash(C,y,32,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){a.read=function(v,y,w,x,T){var C,E,_=8*T-x-1,z=(1<<_)-1,A=z>>1,k=-7,P=w?T-1:0,B=w?-1:1,T=v[y+P];for(P+=B,C=T&(1<<-k)-1,T>>=-k,k+=_;0<k;C=256*C+v[y+P],P+=B,k-=8);for(E=C&(1<<-k)-1,C>>=-k,k+=x;0<k;E=256*E+v[y+P],P+=B,k-=8);if(C===0)C=1-A;else{if(C===z)return E?NaN:1/0*(T?-1:1);E+=Math.pow(2,x),C-=A}return(T?-1:1)*E*Math.pow(2,C-x)},a.write=function(v,y,w,x,S,F){var E,_,z=8*F-S-1,A=(1<<z)-1,k=A>>1,P=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=x?0:F-1,T=x?1:-1,F=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(_=isNaN(y)?1:0,E=A):(E=Math.floor(Math.log(y)/Math.LN2),y*(x=Math.pow(2,-E))<1&&(E--,x*=2),2<=(y+=1<=E+k?P/x:P*Math.pow(2,1-k))*x&&(E++,x/=2),A<=E+k?(_=0,E=A):1<=E+k?(_=(y*x-1)*Math.pow(2,S),E+=k):(_=y*Math.pow(2,k-1)*Math.pow(2,S),E=0));8<=S;v[w+B]=255&_,B+=T,_/=256,S-=8);for(E=E<<S|_,z+=S;0<z;v[w+B]=255&E,B+=T,E/=256,z-=8);v[w+B-T]|=128*F}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(n,r,a){(function(o,s,d,l,u,f,m,c,h){var v,y,w;function x(){}(o=r.exports={}).nextTick=(y=typeof window<"u"&&window.setImmediate,w=typeof window<"u"&&window.postMessage&&window.addEventListener,y?function(S){return window.setImmediate(S)}:w?(v=[],window.addEventListener("message",function(S){var C=S.source;C!==window&&C!==null||S.data!=="process-tick"||(S.stopPropagation(),0<v.length&&v.shift()())},!0),function(S){v.push(S),window.postMessage("process-tick","*")}):function(S){setTimeout(S,0)}),o.title="browser",o.browser=!0,o.env={},o.argv=[],o.on=x,o.addListener=x,o.once=x,o.off=x,o.removeListener=x,o.removeAllListeners=x,o.emit=x,o.binding=function(S){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(S){throw new Error("process.chdir is not supported")}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Gw);const eH=Gw.exports,tH=["contenteditable","data-ghost"],nH=["data-paragraph"],rH=i.defineComponent({__name:"RichTextDisplay",props:{paragraphs:null,noLazy:{type:Boolean},ghost:{type:Boolean},debug:{type:Boolean}},emits:["update","focus","blur"],setup(e,{expose:t,emit:n}){const r=e,a=i.ref(),o=i.ref(r.paragraphs);i.watch(()=>r.paragraphs,()=>{r.noLazy&&(o.value=r.paragraphs)},{deep:!0}),i.watchEffect(()=>{r.debug&&console.log("lazyParagraphs",o.value)});const s=f=>{n("update",f)},d=f=>{n("focus",f)},l=f=>{n("blur",f)};zf();const u=f=>{const m=Object.fromEntries(Object.entries(f).filter(([,v])=>v!==void 0)),c=`rich-text-${eH(m)}`;let h=document.querySelector(`[data-rich-text-global-style='${c}']`);return h||(h=document.createElement("style"),h.lang="css",h.setAttribute("data-rich-text-global-style",c),document.head.appendChild(h)),h.innerHTML=`.${c} { ${Object.entries(m).map(([v,y])=>`${v}: ${y};`).join(" ")} }`,c};return t({richTextEditorDivRef:a}),(f,m)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"richTextEditorDivRef",ref:a,class:i.normalizeClass(["rich-text-editor",{ghost:e.ghost}]),contenteditable:!e.ghost,onInput:s,onFocus:d,onBlur:l,"data-ghost":e.ghost},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(c,h)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:h},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c,(v,y)=>i.renderSlot(f.$slots,"feature",{key:y,text:v.text,format:v.format,cssclass:u},void 0,!0)),128)),h<o.value.length-1?(i.openBlock(),i.createElementBlock("br",{key:0,"data-custom-br":"true","data-paragraph":JSON.stringify(c)},null,8,nH)):i.createCommentVNode("",!0)],64))),128))],42,tH))}}),Xw=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},r7=Xw(rH,[["__scopeId","data-v-8803d25a"]]),aH={class:"rich-text-wrapper"},oH=["data-feature-format"],iH=["data-feature-format"],sH=i.defineComponent({__name:"RichText",props:{value:null,selection:null,userAgentRichText:{type:Boolean},renderFeatureInlineStyle:null,maxLength:null,maxLengthPerLine:null,maxLines:null,multiline:{type:Boolean,default:!0}},emits:["update:value","update:visible-value","update:selection","update:warning-message","update:focus"],setup(e,{expose:t,emit:n}){const r=e;i.computed(()=>!r.multiline);const a=i.ref(),o=i.ref(),s=i.computed(()=>{var E;return(E=a.value)==null?void 0:E.richTextEditorDivRef}),{handleInputEvent:d,paragraphs:l,visibleParagraphs:u,manipulationState:f,applyFormat:m,resolveFeatures:c,selection:h}=Kq(s,i.toRef(r,"value"),{maxLength:r.maxLength,maxLengthPerLine:r.maxLengthPerLine,maxLines:r.maxLines}),v=E=>{r.multiline||E.key==="Enter"&&E.preventDefault()},y=i.computed(()=>tc.isEqual(l.value,u.value)?void 0:"Text is too long");i.watchEffect(()=>{n("update:warning-message",y.value)});const w=i.ref(!1);i.watch(w,()=>{n("update:focus",w.value)},{immediate:!0});const x=()=>{w.value=!0},S=()=>{w.value=!1};i.watch(s,(E,_)=>{_&&(_.removeEventListener("focus",x),_.removeEventListener("blur",S)),E&&(E.addEventListener("focus",x),E.addEventListener("blur",S))}),i.watch(h,()=>{var E;tc.isEqual(h.value,r.selection)||n("update:selection",(E=h.value)!=null?E:void 0)}),i.watch(l,()=>{tc.isEqual(l.value,r.value)||n("update:value",l.value)}),i.watch(u,()=>{n("update:visible-value",u.value)}),window.addEventListener("touchmove",E=>{h.value&&E.preventDefault()});let C;return i.onMounted(()=>{var E;if(!((E=o.value)!=null&&E.richTextEditorDivRef))return;const _=(z,A)=>{var k,P;(k=a.value)==null||k.richTextEditorDivRef,(P=o.value)==null||P.richTextEditorDivRef;for(const B of z);};C=new MutationObserver(_),C.observe(o.value.richTextEditorDivRef,{attributes:!0,childList:!0,subtree:!0})}),i.onUnmounted(()=>{C.disconnect()}),t({applyFormat:m,resolveFeatures:c}),(E,_)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["rich-text",{focus:w.value}])},[i.createElementVNode("div",aH,[i.createVNode(r7,{ref_key:"richTextDisplayGhostInstance",ref:o,paragraphs:i.unref(u),"no-lazy":"",ghost:"",debug:!1},{feature:i.withCtx(z=>[i.createElementVNode("span",{"data-feature-format":JSON.stringify(z.format),class:i.normalizeClass(["feature-wrapper feature-wrapper-ghost",{[z.cssclass(e.renderFeatureInlineStyle(z.format))]:!0,"line-overflow":!!z.format.lineOverflow,overflow:!!z.format.overflow}])},i.toDisplayString(z.text),11,oH)]),_:1},8,["paragraphs"]),(i.openBlock(),i.createBlock(r7,{ref_key:"richTextDisplayInstance",ref:a,key:i.unref(f),paragraphs:i.unref(l),onUpdate:i.unref(d),onKeydown:v,style:i.normalizeStyle({"-webkit-user-modify":e.userAgentRichText?"read-write":"read-write-plaintext-only"})},{feature:i.withCtx(z=>[i.createElementVNode("span",{"data-feature-format":JSON.stringify(z.format),class:i.normalizeClass(["feature-wrapper",{[z.cssclass(e.renderFeatureInlineStyle(z.format))]:!0}])},i.toDisplayString(z.text),11,iH)]),_:1},8,["paragraphs","onUpdate","style"]))])],2))}}),lH=Xw(sH,[["__scopeId","data-v-0c32d373"]]),cH=i.defineComponent({__name:"BxRichtextInput",props:i.mergeModels({userAgentRichText:{type:Boolean,default:!0},multiline:{type:Boolean,default:!0},maxLength:{default:1/0},maxLengthPerLine:{default:1/0},maxLines:{default:1/0},ariaLabel:{},ariaLabelledby:{}},{modelValue:{required:!0},modelModifiers:{},selection:{required:!0},selectionModifiers:{}}),emits:i.mergeModels(["update:raw-text","update:focus"],["update:modelValue","update:selection"]),setup(e,{expose:t,emit:n}){const r=i.useModel(e,"modelValue"),a=e,o=n,s=i.useModel(e,"selection"),d=x=>x.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),l=x=>{const S=(()=>{if(x.customClass){if(x.customClassUIRepresentation==="bold")return{"font-weight":600};if(x.customClassUIRepresentation==="italic")return{"font-style":"italic"};if(x.customClassUIRepresentation==="textColor")return{color:x.customClassUIRepresentationColor??"#ff0000"};if(x.customClassUIRepresentation==="backgroundColor")return{"background-color":x.customClassUIRepresentationColor??"#ff0000",color:Mn(x.customClassUIRepresentationColor??"#ff0000").isDark()?"white":"black"}}else return{}})();return{...Object.fromEntries(Object.entries({...x,...x.customClass==="list-item"?{display:"block",marginLeft:"1em"}:{}}).map(([E,_])=>{const z=d(E);return[z,z==="font-size"&&typeof _=="number"?`${_}px`:_]})),...S}},u=i.ref(y1(typeof r.value=="string"?[{text:r.value,format:{}}]:r.value));i.watch(u,x=>{const S=Wv(x);rr(S,r.value)||(r.value=S)}),i.watch(r,()=>{const x=y1(typeof r.value=="string"?[{text:r.value,format:{}}]:r.value);rr(x,r.value)||(u.value=x)});const f=i.ref(u.value),m=i.computed(()=>w1(f.value));i.watch(m,()=>{o("update:raw-text",m.value)},{immediate:!0});const c=i.ref(),h=i.ref();function v(){var C,E;const x=(C=h.value)==null?void 0:C.$el,S=(E=x==null?void 0:x.querySelector)==null?void 0:E.call(x,'.rich-text-editor[contenteditable="true"]');S&&(S.setAttribute("role","textbox"),S.setAttribute("aria-multiline",String(a.multiline)),S.hasAttribute("tabindex")||S.setAttribute("tabindex","0"),a.ariaLabelledby?(S.setAttribute("aria-labelledby",a.ariaLabelledby),S.removeAttribute("aria-label")):a.ariaLabel?(S.setAttribute("aria-label",a.ariaLabel),S.removeAttribute("aria-labelledby")):(S.removeAttribute("aria-label"),S.removeAttribute("aria-labelledby")))}let y;i.onMounted(()=>{var C,E;i.nextTick(v);const x=(C=h.value)==null?void 0:C.$el,S=(E=x==null?void 0:x.querySelector)==null?void 0:E.call(x,".rich-text-wrapper");S&&(y=new MutationObserver(()=>v()),y.observe(S,{childList:!0,subtree:!0}))}),i.onBeforeUnmount(()=>y==null?void 0:y.disconnect()),i.watch(()=>[a.ariaLabel,a.ariaLabelledby,a.multiline],()=>i.nextTick(v));const w=i.ref(!1);return i.watch(w,()=>{o("update:focus",w.value)},{immediate:!0}),t({richTextInstance:h}),(x,S)=>(i.openBlock(),i.createBlock(i.unref(lH),{ref_key:"richTextInstance",ref:h,selection:s.value,"onUpdate:selection":S[0]||(S[0]=C=>s.value=C),value:u.value,"onUpdate:value":S[1]||(S[1]=C=>u.value=C),"onUpdate:visibleValue":S[2]||(S[2]=C=>f.value=C),"render-feature-inline-style":l,"user-agent-rich-text":e.userAgentRichText,"max-length":e.maxLength,"max-length-per-line":e.maxLengthPerLine,"max-lines":e.maxLines,multiline:e.multiline,"onUpdate:warningMessage":S[3]||(S[3]=C=>c.value=C),focus:w.value,"onUpdate:focus":S[4]||(S[4]=C=>w.value=C),class:i.normalizeClass({warning:!!c.value})},null,8,["selection","value","user-agent-rich-text","max-length","max-length-per-line","max-lines","multiline","focus","class"]))}}),Yw=Ue(cH,[["__scopeId","data-v-c41191d8"]]),uH=i.defineComponent({__name:"BxPopover",props:{show:{type:Boolean},trigger:{},customStyles:{},customClasses:{},darkenBackground:{type:Boolean,default:!0},floatingPadding:{},allowedPlacements:{default:()=>["top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]},arrow:{type:Boolean,default:!0},showLeazyness:{default:0},leaveLazyness:{default:200},overflowVisible:{type:Boolean,default:!1},closeOnClickOutside:{type:Boolean,default:!0},transitionDuration:{},role:{default:"popover"},killExistingRoleEntriesOnHoverShow:{type:Boolean,default:!1},maxPopoverHeight:{}},emits:["update:show"],setup(e,{expose:t,emit:n}){const r=e,a=n,o=i.useSlots(),s=Pn(),{setSlotRef:d,slotElements:l,vNodes:u}=wp(o.trigger),f=i.ref(!1);i.watch(f,()=>{f.value!==r.show&&a("update:show",f.value)},{immediate:!0}),i.watch(()=>r.show,()=>{r.show!==f.value&&(f.value=r.show)},{immediate:!0});const m=i.computed(()=>l.value[0]),c=i.ref(!1),h=i.ref(!1);function v(){r.trigger==="click"&&(f.value=!f.value)}function y(){c.value=!0}function w(){c.value=!1}i.watch(c,()=>{r.trigger==="hover"&&(c.value?z():A())}),i.watch(h,F=>{r.trigger==="hover"&&(F||A())});let x,S;function C(){x!==void 0&&(clearTimeout(x),x=void 0),S!==void 0&&(clearTimeout(S),S=void 0)}function E(){if(!c.value)return;const F=f.value&&!P.overlayProviderRef.isVisible(s);if(!f.value||F){if(r.killExistingRoleEntriesOnHoverShow)for(const p of[...P.overlayProviderRef.entries])p.id!==s&&p.role===r.role&&p.close();F?T():f.value=!0}}function _(){!c.value&&!h.value&&(f.value=!1)}function z(){C(),r.showLeazyness>0?x=setTimeout(()=>{x=void 0,E()},r.showLeazyness):E()}function A(){C(),r.leaveLazyness>0?S=setTimeout(()=>{S=void 0,_()},r.leaveLazyness):_()}let k=[];i.onUnmounted(()=>{for(const F of k)F.removeEventListener("click",v),F.removeEventListener("mouseenter",y),F.removeEventListener("mouseleave",w)}),i.watch(l,(F,p)=>{if(p)for(const W of p)W.removeEventListener("click",v),W.removeEventListener("mouseenter",y),W.removeEventListener("mouseleave",w);for(const W of F)W.addEventListener("click",v),W.addEventListener("mouseenter",y),W.addEventListener("mouseleave",w),W.nodeType===Node.ELEMENT_NODE&&(W.dataset.bxTargetPopoverId=s);k=F});const P=window.bluepicPopupProvider;i.onMounted(()=>{var p;const F=document.querySelector(Mc);F&&(F.classList.add("bluepic-popup-app-wrapper"),(p=F.parentElement)==null||p.classList.add("bluepic-popup-body"))}),i.onUnmounted(()=>{for(const F of l.value)F.removeEventListener("click",v);C(),P.overlayProviderRef.pull(s)});const B=ol();function T(){P.overlayProviderRef.pushPopover(s,()=>i.h(jw,{floatingElement:m.value,styles:{...r.customStyles},floatingPadding:r.floatingPadding,customClasses:r.customClasses??[],onClose(){f.value=!1},arrow:r.arrow,allowedPlacements:r.allowedPlacements,bxPopoverId:s,noPointerEvents:r.trigger==="hover"||r.trigger==="manual"&&!r.closeOnClickOutside,overflowVisible:r.overflowVisible,capturedContext:B,popoverMaxHeight:r.maxPopoverHeight?`${r.maxPopoverHeight}px`:void 0,onMouseenter(){h.value=!0},onMouseleave(){h.value=!1}},{default:()=>o.content()}),{darkenBackground:r.darkenBackground,handleClickOutside(){(r.trigger==="click"||r.trigger==="manual"&&r.closeOnClickOutside)&&(f.value=!1)},role:r.role,transitionDuration:r.transitionDuration??Hv,close(){f.value=!1}})}return i.watch(f,()=>{f.value?T():(h.value=!1,P.overlayProviderRef.pull(s))}),t({id:s,close(){f.value=!1},show(){f.value=!0},destroy(){f.value=!1,P.overlayProviderRef.pull(s)}}),(F,p)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),(W,Z)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(W),{ref_for:!0,ref:i.unref(d)(Z)},null,512))),256))}}),Ic=Ue(uH,[["__scopeId","data-v-40abf6ca"]]),dH=["role"],fH=["onClick","title","role","tabindex","aria-selected","aria-disabled"],pH={key:0,class:"icon-wrapper"},mH={key:1,class:"icon-wrapper"},hH={key:4},gH={key:6,class:"active-symbol"},vH={key:0,class:"bx-menu__divider"},bH=i.defineComponent({__name:"BxMenu",props:{items:{},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},showActiveSymbol:{type:Boolean,default:!0},divided:{type:Boolean,default:!1},ariaRole:{},autofocusItem:{type:Boolean}},emits:["action","close"],setup(e,{emit:t}){const n=e,r=i.computed(()=>n.ariaRole==="listbox"?"option":n.ariaRole==="menu"?"menuitem":void 0),a=i.ref(),o=i.ref([]);function s(v,y){o.value[y]=v}const d=i.computed(()=>{const v=n.items.findIndex(y=>y.isActive&&!y.disabled);return v>=0?v:n.items.findIndex(y=>!y.disabled)});function l(){return n.items.map((v,y)=>({item:v,index:y})).filter(v=>!v.item.disabled)}function u(v){var y;(y=o.value[v])==null||y.focus()}function f(v){if(!n.ariaRole)return;const y=l();if(y.length===0)return;const w=y.findIndex(S=>o.value[S.index]===document.activeElement);let x;switch(v.key){case"ArrowDown":case"ArrowRight":x=w<0?0:(w+1)%y.length;break;case"ArrowUp":case"ArrowLeft":x=w<0?y.length-1:(w-1+y.length)%y.length;break;case"Home":x=0;break;case"End":x=y.length-1;break;case"Enter":case" ":w>=0&&(v.preventDefault(),h(y[w].item));return;case"Escape":v.preventDefault(),m("close");return;default:return}v.preventDefault(),u(y[x].index)}i.onMounted(()=>{n.autofocusItem&&n.ariaRole&&i.nextTick(()=>{const v=d.value;v>=0&&u(v)})});const m=t,c=i.useSlots();function h(v){v.disabled||m("action",v)}return(v,y)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"menuRef",ref:a,class:i.normalizeClass(["bx-menu",{primary:e.primary,secondary:e.secondary,divided:e.divided}]),role:e.ariaRole,onKeydown:f},[c["render-items"]?i.renderSlot(v.$slots,"render-items",{items:e.items},void 0,!0,0):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.items,(w,x)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:x},[i.createElementVNode("div",{ref_for:!0,ref:S=>s(S,x),onClick:S=>h(w),class:i.normalizeClass(["bx-menu__item",{active:w.isActive===!0,disabled:w.disabled===!0}]),style:i.normalizeStyle({"--menu-item-disabled-opacity":w.disabledOpacity}),title:w.title,role:r.value,tabindex:r.value?x===d.value?0:-1:void 0,"aria-selected":e.ariaRole==="listbox"?w.isActive===!0:void 0,"aria-disabled":r.value&&w.disabled===!0?"true":void 0},[c["render-item-icon"]?(i.openBlock(),i.createElementBlock("div",pH,[i.renderSlot(v.$slots,"render-item-icon",{item:w,isActive:w.isActive===!0},void 0,!0)])):w.icon?(i.openBlock(),i.createElementBlock("div",mH,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.icon())))])):i.createCommentVNode("",!0),c["render-item-label"]?i.renderSlot(v.$slots,"render-item-label",{item:w,isActive:w.isActive===!0,index:x},void 0,!0,2):typeof w.label=="function"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.label()),{key:3})):(i.openBlock(),i.createElementBlock("span",hH,i.toDisplayString(w.label),1)),w.suffix?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w.suffix()),{key:5})):i.createCommentVNode("",!0),e.showActiveSymbol?(i.openBlock(),i.createElementBlock("div",gH,[c["render-item-active-symbol"]?i.renderSlot(v.$slots,"render-item-active-symbol",{item:w,isActive:w.isActive===!0},void 0,!0,0):(i.openBlock(),i.createBlock(qe,{key:1,size:14,style:i.normalizeStyle({opacity:w.isActive===!0?1:0})},{default:i.withCtx(()=>[i.createVNode(i.unref(xw))]),_:1},8,["style"]))])):i.createCommentVNode("",!0)],14,fH),x<e.items.length-1&&e.divided?(i.openBlock(),i.createElementBlock("div",vH)):i.createCommentVNode("",!0)],64))),128))],42,dH))}}),Kw=Ue(bH,[["__scopeId","data-v-7820eb6d"]]),yH=["tabindex","aria-expanded","aria-disabled","aria-label","aria-labelledby"],wH={key:0,class:"prefix-wrapper"},xH={key:1,class:"prefix-wrapper"},CH=["title"],SH={class:"suffix-wrapper"},_H="24px",kH=i.defineComponent({__name:"BxSelect",props:i.mergeModels({modelValue:{},multiple:{type:Boolean},values:{},size:{default:"medium"},trigger:{default:"click"},options:{},disabled:{type:Boolean,default:!1},placeholderActiveLabel:{},showSelectedSymbol:{type:Boolean,default:!0},allowedPlacements:{default:()=>["bottom","top"]},autoCloseOnSelect:{type:Boolean,default:!0},divided:{type:Boolean,default:!1},popoverHasTriggerMaxWidth:{type:Boolean,default:!1},closeOnClickOutside:{type:Boolean,default:!0},maxPopoverHeight:{},bordered:{type:Boolean,default:!1},ariaLabel:{},ariaLabelledby:{}},{show:{type:Boolean,required:!1,default:!1},showModifiers:{}}),emits:i.mergeModels(["update:modelValue","update:values"],["update:show"]),setup(e,{expose:t,emit:n}){const r=e,a=n,o=i.useSlots(),s=i.ref(),{width:d}=Ef(s),l=i.ref(),u=i.useModel(e,"show"),f=i.computed(()=>{if(r.multiple){const C=r.options.filter(_=>v(_));if(C.length===0)return;const E=C.map(_=>_.label).filter(_=>typeof _=="string");return E.length===C.length&&C.length<=3?E.join(", "):`${C.length} selected`}const S=r.options.find(C=>v(C));return S==null?void 0:S.label}),m=i.computed(()=>{if(r.multiple)return;const S=r.options.find(C=>v(C));if(S)return o["render-option-icon"]?()=>o["render-option-icon"]({option:S,isActive:v(S)}):S.icon}),c=i.computed(()=>r.multiple?r.values??[]:r.modelValue===void 0?[]:[r.modelValue]);function h(S,C){return S===C||JSON.stringify(S)===JSON.stringify(C)}function v(S){return c.value.some(C=>h(S.value,C))}i.watch(()=>r.modelValue,()=>{var S;r.multiple||(S=l.value)==null||S.close()});function y(S){var C,E;if(!(r.disabled||x.value.length===0))switch(S.key){case"Enter":case" ":case"ArrowDown":case"ArrowUp":S.preventDefault(),(C=l.value)==null||C.show();break;case"Escape":(E=l.value)==null||E.close();break}}i.watch(u,(S,C)=>{C&&!S&&i.nextTick(()=>{var E,_;(_=(E=s.value)==null?void 0:E.querySelector(".select-trigger"))==null||_.focus()})});const w=S=>{var E;const C=r.options[Number(S.key)];if(C){if(r.multiple){const _=c.value,z=_.some(A=>h(C.value,A))?_.filter(A=>!h(C.value,A)):[..._,C.value];a("update:values",z);return}a("update:modelValue",C.value),r.autoCloseOnSelect&&((E=l.value)==null||E.close())}};t({closePopover(){var S;(S=l.value)==null||S.close()},showPopover(){var S;(S=l.value)==null||S.show()}});const x=i.computed(()=>r.options.map((S,C)=>({label:S.label,key:C,icon:S.icon,isActive:v(S),disabled:S.disabled,disabledOpacity:S.disabledOpacity,title:S.tooltip})));return i.watchEffect(()=>{x.value.length===0&&(u.value=!1)}),(S,C)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"bxSelectMainRef",ref:s,class:i.normalizeClass(["bx-select",{disabled:e.disabled,bordered:e.bordered,["size-"+e.size]:e.size}]),style:i.normalizeStyle({"--icon-size":_H})},[i.createVNode(Ic,{ref_key:"popoverRef",ref:l,trigger:x.value.length>0&&!e.disabled?e.trigger:"manual","allowed-placements":e.allowedPlacements,arrow:!1,"darken-background":!1,"custom-classes":["bx-select-popover"],"floating-padding":0,"close-on-click-outside":e.closeOnClickOutside,show:u.value,"onUpdate:show":C[1]||(C[1]=E=>u.value=E),"transition-duration":0,role:"dropdown","kill-existing-role-entries-on-hover-show":!0,"max-popover-height":e.maxPopoverHeight},{trigger:i.withCtx(()=>[o.trigger?i.renderSlot(S.$slots,"trigger",{},void 0,!0,0):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["select-trigger",{focus:u.value}]),role:"combobox",tabindex:e.disabled?-1:0,"aria-haspopup":"listbox","aria-expanded":u.value?"true":"false","aria-disabled":e.disabled?"true":void 0,"aria-label":e.ariaLabelledby?void 0:e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onKeydown:y},[o.prefix?(i.openBlock(),i.createElementBlock("div",wH,[i.renderSlot(S.$slots,"prefix",{},void 0,!0)])):m.value?(i.openBlock(),i.createElementBlock("div",xH,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(m.value)))])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"select-value",title:typeof f.value=="string"?f.value:void 0},[i.createElementVNode("span",{class:i.normalizeClass({placeholder:f.value===void 0})},[o.label?i.renderSlot(S.$slots,"label",{label:f.value??e.placeholderActiveLabel,value:e.modelValue},void 0,!0,0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[typeof f.value=="function"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.value),{key:0})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(f.value??e.placeholderActiveLabel),1)],64))],64))],2)],8,CH),i.createElementVNode("div",SH,[o.suffix?i.renderSlot(S.$slots,"suffix",{},void 0,!0,0):(i.openBlock(),i.createBlock(qe,{key:1,size:e.size==="tiny"?12:14},{default:i.withCtx(()=>[i.createVNode(i.unref(Rv))]),_:1},8,["size"]))])],42,yH))]),content:i.withCtx(()=>[i.createVNode(Kw,{items:x.value,"show-active-symbol":e.showSelectedSymbol,"aria-role":"listbox","autofocus-item":"",secondary:"",onAction:w,onClose:C[0]||(C[0]=E=>{var _;return(_=l.value)==null?void 0:_.close()}),style:i.normalizeStyle({"min-width":`calc(${i.unref(d)}px - 8px)`,"max-width":r.popoverHasTriggerMaxWidth?`calc(${i.unref(d)}px - 8px)`:"none"}),divided:e.divided},i.createSlots({_:2},[o["render-option-label"]?{name:"render-item-label",fn:i.withCtx(({item:E,isActive:_,index:z})=>[i.renderSlot(S.$slots,"render-option-label",{option:e.options[z],isActive:_},void 0,!0)]),key:"0"}:void 0]),1032,["items","show-active-symbol","style","divided"])]),_:3},8,["trigger","allowed-placements","close-on-click-outside","show","max-popover-height"])],6))}}),Zo=Ue(kH,[["__scopeId","data-v-0ebbff1f"]]),EH=["id"],zH=300,IH=i.defineComponent({__name:"BxTooltip",props:i.mergeModels({trigger:{},allowedPlacements:{},customPopoverClasses:{},customThresholdDelay:{}},{show:{type:Boolean,required:!1,default:!1},showModifiers:{}}),emits:["update:show"],setup(e){const t=i.useModel(e,"show"),n=e,r=i.useSlots(),a=window.bluepicPopupProvider,o=i.ref(),s=i.computed(()=>a.overlayProviderRef.entries.some(C=>C.role==="tooltip")),d=i.ref(s.value);i.watch(s,C=>{C?d.value=!0:setTimeout(()=>{s.value||(d.value=!1)},zH)});const l=i.computed(()=>n.customThresholdDelay??(d.value?0:1e3)),{setSlotRef:u,slotElements:f,vNodes:m}=wp(r.trigger),c=Vi("bx-tooltip-content"),h=["BUTTON","A","INPUT","SELECT","TEXTAREA"];function v(C){return C.hasAttribute("tabindex")||h.includes(C.tagName)}function y(){n.trigger!=="manual"&&(t.value=!0)}function w(){n.trigger!=="manual"&&(t.value=!1)}let x=[];i.watch(f,(C,E)=>{for(const _ of E??[])_.removeEventListener("focusin",y),_.removeEventListener("focusout",w);x=[];for(const _ of C)_ instanceof HTMLElement&&(v(_)||(_.tabIndex=0),_.setAttribute("aria-describedby",c),_.addEventListener("focusin",y),_.addEventListener("focusout",w),x.push(_))},{immediate:!0});function S(C){C.key==="Escape"&&t.value&&(t.value=!1,C.stopPropagation())}return i.watch(t,C=>{C?window.addEventListener("keydown",S,!0):window.removeEventListener("keydown",S,!0)}),i.onUnmounted(()=>{for(const C of x)C.removeEventListener("focusin",y),C.removeEventListener("focusout",w);window.removeEventListener("keydown",S,!0)}),(C,E)=>(i.openBlock(),i.createBlock(Ic,{ref_key:"popover",ref:o,show:t.value,"onUpdate:show":E[0]||(E[0]=_=>t.value=_),trigger:e.trigger,"darken-background":!1,"allowed-placements":e.allowedPlacements,"custom-classes":["tooltip-popover",...n.customPopoverClasses??[]],"overflow-visible":!0,"show-leazyness":l.value,"leave-lazyness":0,"transition-duration":0,arrow:!0,role:"tooltip","kill-existing-role-entries-on-hover-show":!0},{trigger:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),(_,z)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(_),{key:z,ref_for:!0,ref:i.unref(u)(z)},null,512))),128))]),content:i.withCtx(()=>[i.createElementVNode("div",{id:i.unref(c),class:"tooltip-wrapper",role:"tooltip"},[i.renderSlot(C.$slots,"content",{},void 0,!0)],8,EH)]),_:3},8,["show","trigger","allowed-placements","custom-classes","show-leazyness"]))}}),$0=Ue(IH,[["__scopeId","data-v-28ebc62d"]]),BH={key:0,class:"bx-input__prefix"},AH=["placeholder","readonly","title","aria-label","aria-labelledby","aria-invalid","aria-describedby"],OH=["readonly","placeholder","type","title","aria-label","aria-labelledby","aria-invalid","aria-describedby"],LH=["data-suffix"],MH={key:0,class:"bx-input__loading-wrapper"},PH=["id"],DH={class:"text-overflow-errors"},$H={key:0,class:"text-err"},TH={class:"overflow-label"},jH={key:1,class:"text-err"},NH={class:"overflow-label"},RH={key:2,class:"text-err"},FH={class:"index-label"},VH={class:"overflow-label"},UH=i.defineComponent({__name:"BxInput",props:i.mergeModels({size:{default:"medium"},loading:{type:Boolean,default:!1},round:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inputProps:{default:()=>({})},placeholder:{},validator:{},maxLength:{default:1/0},maxLineLength:{default:1/0},maxLines:{default:1/0},showWordCount:{type:Boolean,default:!1},type:{default:"text"},state:{default:"default"},ghost:{type:Boolean,default:!1},ring:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},resizeable:{type:Boolean,default:!0},richtext:{},maxHeight:{default:"100px"},minHeight:{},readonly:{type:Boolean,default:!1},readonlyMessage:{default:"This field is read-only"},bordered:{type:Boolean,default:!1},ariaLabel:{},ariaLabelledby:{}},{modelValue:{type:[String,Number,Boolean,Array],required:!1,default:""},modelModifiers:{}}),emits:i.mergeModels(["enter","focus","blur"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const r=e,a=n,o=i.useSlots(),s=i.useModel(e,"modelValue"),d=i.ref(s.value),l=i.ref([]),u=i.ref(0),f=i.ref(0),m=i.computed(()=>{if(l.value.length>0||u.value>0||f.value>0)return{lineOverflows:l.value.length>0?l.value:void 0,overlowingLines:u.value>0?u.value:void 0,overflowingCharacters:f.value>0?f.value:void 0}}),c=i.computed({get(){return m.value!==void 0},set(K){}}),h=i.computed(()=>typeof d.value=="object"?t7(d.value,0,r.maxLength):String(d.value).split(`
|
|
145
145
|
`).slice(0,r.maxLines??1/0).map(se=>se.slice(0,r.maxLineLength??1/0)).join(`
|
|
146
146
|
`).slice(0,r.maxLength??1/0));i.watch(s,K=>{rr(K,h.value)||(d.value=K)}),i.watch(d,K=>{if(typeof K=="object"&&K!==null){const ae=t7(K,0,r.maxLength);s.value=ae}else{const se=String(K).split(`
|
|
147
147
|
`);s.value!==h.value&&(s.value=h.value),r.maxLineLength!==1/0&&r.maxLineLength!==null&&(l.value=se.filter(me=>me.length>(r.maxLineLength??1/0)).map(me=>({index:se.indexOf(me),length:me.length}))),r.maxLines!==1/0&&r.maxLines!==null&&(u.value=Math.max(0,String(K).split(`
|
package/dist/main.mjs
CHANGED
|
@@ -34484,6 +34484,7 @@ const oH = Ax.exports, sH = ["contenteditable", "data-ghost"], lH = ["data-parag
|
|
|
34484
34484
|
props: /* @__PURE__ */ Kt({
|
|
34485
34485
|
modelValue: {},
|
|
34486
34486
|
multiple: { type: Boolean },
|
|
34487
|
+
values: {},
|
|
34487
34488
|
size: { default: "medium" },
|
|
34488
34489
|
trigger: { default: "click" },
|
|
34489
34490
|
options: {},
|
|
@@ -34503,7 +34504,7 @@ const oH = Ax.exports, sH = ["contenteditable", "data-ghost"], lH = ["data-parag
|
|
|
34503
34504
|
show: { type: Boolean, required: !1, default: !1 },
|
|
34504
34505
|
showModifiers: {}
|
|
34505
34506
|
}),
|
|
34506
|
-
emits: /* @__PURE__ */ Kt(["update:modelValue"], ["update:show"]),
|
|
34507
|
+
emits: /* @__PURE__ */ Kt(["update:modelValue", "update:values"], ["update:show"]),
|
|
34507
34508
|
setup(e, { expose: t, emit: n }) {
|
|
34508
34509
|
const r = e, a = n, i = En(), o = he(), { width: u } = af(o), s = he(), c = on(e, "show"), d = ue(() => {
|
|
34509
34510
|
if (r.multiple) {
|
|
@@ -34519,7 +34520,7 @@ const oH = Ax.exports, sH = ["contenteditable", "data-ghost"], lH = ["data-parag
|
|
|
34519
34520
|
const C = r.options.find((x) => g(x));
|
|
34520
34521
|
if (C)
|
|
34521
34522
|
return i["render-option-icon"] ? () => i["render-option-icon"]({ option: C, isActive: g(C) }) : C.icon;
|
|
34522
|
-
}), l = ue(() => r.multiple ?
|
|
34523
|
+
}), l = ue(() => r.multiple ? r.values ?? [] : r.modelValue === void 0 ? [] : [r.modelValue]);
|
|
34523
34524
|
function h(C, x) {
|
|
34524
34525
|
return C === x || JSON.stringify(C) === JSON.stringify(x);
|
|
34525
34526
|
}
|
|
@@ -34560,7 +34561,7 @@ const oH = Ax.exports, sH = ["contenteditable", "data-ghost"], lH = ["data-parag
|
|
|
34560
34561
|
if (x) {
|
|
34561
34562
|
if (r.multiple) {
|
|
34562
34563
|
const _ = l.value, z = _.some((A) => h(x.value, A)) ? _.filter((A) => !h(x.value, A)) : [..._, x.value];
|
|
34563
|
-
a("update:
|
|
34564
|
+
a("update:values", z);
|
|
34564
34565
|
return;
|
|
34565
34566
|
}
|
|
34566
34567
|
a("update:modelValue", x.value), r.autoCloseOnSelect && ((k = s.value) == null || k.close());
|
|
@@ -34692,7 +34693,7 @@ const oH = Ax.exports, sH = ["contenteditable", "data-ghost"], lH = ["data-parag
|
|
|
34692
34693
|
}, 8, ["trigger", "allowed-placements", "close-on-click-outside", "show", "max-popover-height"])
|
|
34693
34694
|
], 6));
|
|
34694
34695
|
}
|
|
34695
|
-
}), Ts = /* @__PURE__ */ nt($H, [["__scopeId", "data-v-
|
|
34696
|
+
}), Ts = /* @__PURE__ */ nt($H, [["__scopeId", "data-v-0ebbff1f"]]), PH = ["id"], MH = 300, DH = /* @__PURE__ */ Be({
|
|
34696
34697
|
__name: "BxTooltip",
|
|
34697
34698
|
props: /* @__PURE__ */ Kt({
|
|
34698
34699
|
trigger: {},
|