@rebilly/revel 6.2.1 → 6.2.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [6.2.2](https://github.com/Rebilly/rebilly/compare/revel-v6.2.1...revel-v6.2.2) (2023-11-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **revel:** Update r-icon.vue to add `data` attribute to icon sprite-sheet ([#2466](https://github.com/Rebilly/rebilly/issues/2466)) ([6f2d5a9](https://github.com/Rebilly/rebilly/commit/6f2d5a98d6bf4242a5a00a1e04722bb56df15245))
7
+
1
8
  ## [6.2.1](https://github.com/Rebilly/rebilly/compare/revel-v6.2.0...revel-v6.2.1) (2023-11-30)
2
9
 
3
10
 
package/dist/revel.mjs CHANGED
@@ -1150,7 +1150,7 @@ const W = {
1150
1150
  mounted() {
1151
1151
  if (!document.getElementById("icon-meter")) {
1152
1152
  const M = document.createElement("div");
1153
- M.style.display = "none", M.innerHTML = Fp, document.body.appendChild(M);
1153
+ M.setAttribute("data-revel", "icon-sprite-sheet"), M.style.display = "none", M.innerHTML = Fp, document.body.appendChild(M);
1154
1154
  }
1155
1155
  },
1156
1156
  methods: {
package/dist/revel.umd.js CHANGED
@@ -966,7 +966,7 @@
966
966
  </svg>
967
967
  </symbol>
968
968
  </svg>
969
- `,C3=Object.freeze(Object.defineProperty({__proto__:null,RIconColors:$3,RIconNames:l,RIconSprites:ib},Symbol.toStringTag,{value:"Module"})),D3=p.defineComponent({name:"RIcon",compatConfig:{MODE:3},customElement:!0,props:{icon:{type:String,default:null},color:{type:String,default:null,validator:M=>["primary","on-surface","success","warning","danger","info"].includes(M)},stopPropagation:{type:Boolean,default:!1}},emits:["click"],computed:{iconName(){return`#icon-${this.icon}`},classes(){return{[`r-icon-${this.color}`]:!!this.color}}},mounted(){if(!document.getElementById("icon-meter")){const M=document.createElement("div");M.style.display="none",M.innerHTML=ib,document.body.appendChild(M)}},methods:{bubbleClick(M){this.stopPropagation&&M.stopPropagation(),this.$emit("click",M)}}}),Jm="",I=(M,b)=>{const z=M.__vccOpts||M;for(const[o,e]of b)z[o]=e;return z},S3=["data-testid"],E3=["xlink:href"];function k3(M,b,z,o,e,O){return p.openBlock(),p.createElementBlock("svg",{class:p.normalizeClass(["r-icon r-icon-20",M.classes]),"data-testid":M.icon,onClick:b[0]||(b[0]=(...c)=>M.bubbleClick&&M.bubbleClick(...c))},[p.createElementVNode("use",{"xlink:href":M.iconName,"xmlns:xlink":"http://www.w3.org/1999/xlink"},null,8,E3)],10,S3)}const Z0=I(D3,[["render",k3]]),rb={mounted(M){M.classList.add("fs-exclude")}},qb={mounted(M,{value:b}){M.clickOutside=z=>{z.target instanceof Node&&!M.contains(z.target)&&b(z)},window.document.addEventListener("mousedown",M.clickOutside,!0)},unmounted(M){M.clickOutside!=null&&(window.document.removeEventListener("mousedown",M.clickOutside),M.clickOutside=null)}},M7="",P3={beforeMount(M,{value:b}){if(b.text){const z=document.createElement("div"),o=document.createElement("div"),e=b.offset||8,O=b.boundaryLeft||0,c=b.boundaryTop||0;z.classList.add("r-tooltip"),o.classList.add("r-tooltip-arrow"),z.innerText=b.text,M.classList.add("r-position-relative");const t=n=>({top:parseFloat(z.style.top.replace("px",""))<c,left:parseFloat(z.style.left.replace("px",""))<O,right:parseFloat(z.style.left.replace("px",""))+n.width>(window.innerWidth||document.documentElement.clientWidth)});M.vTooltipEnter=()=>{document.body.appendChild(z),z.appendChild(o);const n=M.getBoundingClientRect(),A=n.top+window.scrollY,s=z.getBoundingClientRect();z.style.left=`${n.left+n.width/2-s.width/2}px`,z.style.top=`${A-(s.height+e)}px`;const r=t(s);switch(z.style.opacity="1",b.position){case"left":z.classList.add("r-tooltip-left"),z.style.left=`${n.left-s.width-e}px`,z.style.top=`${A-(s.height/2-n.height/2)}px`;break;case"right":z.classList.add("r-tooltip-right"),z.style.left=`${n.right+e}px`,z.style.top=`${A-(s.height/2-n.height/2)}px`;break;case"bottom":z.classList.add("r-tooltip-bottom"),z.style.top=`${A+s.height+e}px`;break;case void 0:r.right?(z.style.left=`${n.left+n.width-s.width}px`,z.classList.add("r-tooltip-out-right")):r.left&&(z.style.left=`${n.left}px`,z.classList.add("r-tooltip-out-left")),r.top&&(z.style.top=`${A+s.height+e}px`,z.classList.add("r-tooltip-out-top")),z.classList.contains("r-tooltip-out-right")?o.style.left=`${s.width-n.width/2}px`:z.classList.contains("r-tooltip-out-left")?o.style.left=`${n.width/2}px`:o.style.left=`${s.width/2}px`;break}},M.vTooltipLeave=()=>{z.style.opacity="0",z.style.left="0",z.style.top="0",z.className="r-tooltip",z.remove()},M.addEventListener("mouseenter",M.vTooltipEnter,!1),M.addEventListener("mouseleave",M.vTooltipLeave,!1)}},unmounted(M){const b=document.querySelector(".r-tooltip");b&&b.remove(),M.vTooltipEnter&&M.vTooltipLeave&&(M.removeEventListener("mouseenter",M.vTooltipEnter),M.removeEventListener("mouseleave",M.vTooltipLeave)),M.vTooltipEnter=null,M.vTooltipLeave=null}},V3={mounted:(M,{modifiers:b})=>{const z=M.parentElement?.className??"",o=b.secondary?"-is-secondary":"-is-primary";M.rContentAddedClass=`${z}${o}`,M.classList.add(`${z}${o}`)},unmounted:M=>{M.classList.remove(M.rContentAddedClass)}},db={beforeMount:M=>{const b=e=>{M&&(M.addEventListener("load",()=>{M.classList.add("r-is-loaded"),e&&e.unobserve(M)}),M.addEventListener("error",()=>console.log("error")),M.dataset.url&&(M.src=M.dataset.url))},z=(e,O)=>{e.forEach(c=>{c.isIntersecting&&b(O)})},o=()=>{const e={root:null,threshold:0};new IntersectionObserver(z,e).observe(M)};window.IntersectionObserver?o():b()}},lb=Object.freeze(Object.defineProperty({__proto__:null,clickOutside:qb,content:V3,fsExclude:rb,lazy:db,tooltip:P3},Symbol.toStringTag,{value:"Module"})),_3=p.defineComponent({name:"RImg",compatConfig:{MODE:3},directives:{lazy:db},props:{src:{type:String,required:!0},alt:{type:String,default:"Image"},lazy:{type:Boolean,default:!1},width:{type:String,default:""},height:{type:String,default:""}},emits:["onload","onerror"],data(){return{loading:!0}},computed:{imgStyle(){return{height:this.height,width:this.width}},wrapperStyle(){return{height:this.height,width:this.width}}},methods:{onload(){this.loading=!1,this.$emit("onload")},onerror(){this.loading=!1,this.$emit("onerror")}}}),b7="",I3=["data-url","alt"],x3=["src","alt"],H3={class:"r-img-loading-spinner"};function F3(M,b,z,o,e,O){const c=p.resolveDirective("lazy");return p.openBlock(),p.createElementBlock("figure",p.mergeProps({class:"r-component r-img"},M.wrapperStyle,{role:"img"}),[M.lazy?p.withDirectives((p.openBlock(),p.createElementBlock("img",p.mergeProps({key:0,class:"r-img-image","data-url":M.src,alt:M.alt},M.imgStyle,{onLoad:b[0]||(b[0]=(...t)=>M.onload&&M.onload(...t)),onError:b[1]||(b[1]=(...t)=>M.onerror&&M.onerror(...t))}),null,16,I3)),[[c]]):(p.openBlock(),p.createElementBlock("img",p.mergeProps({key:1,class:"r-img-image",src:M.src,alt:M.alt},M.imgStyle,{onLoad:b[2]||(b[2]=(...t)=>M.onload&&M.onload(...t)),onError:b[3]||(b[3]=(...t)=>M.onerror&&M.onerror(...t))}),null,16,x3)),p.renderSlot(M.$slots,"loading",{},()=>[p.withDirectives(p.createElementVNode("div",H3,null,512),[[p.vShow,M.loading]])])],16)}const MM=I(_3,[["render",F3]]),Wb=["gray","yellow","green","accent","dark-background"],j3=p.defineComponent({name:"RAvatar",compatConfig:{MODE:3},components:{RIcon:Z0,RImg:MM},customElement:!0,props:{initials:{type:String,validator:M=>M.length>2?(console.warn("RAvatar: should provide only 2 symbols for initials"),!1):!0,default:null},description:{type:String,default:null},image:{type:String,default:null},color:{type:String,default:null},icon:{type:String,default:null}},computed:{initialsColor(){if(this.color)return this.color;const M=this.initials==null?0:this.initials.split("").reduce((b,z)=>b+z.charCodeAt(0),0);return Wb[M%Wb.length]}}}),z7="",Y3={class:"r-avatar-main"},U3={class:"r-avatar-initials-value"},K3={key:1,class:"r-avatar-icon-wrapper"},G3={key:2,class:"r-avatar-image-wrapper"},Z3={key:0,class:"r-avatar-info"};function Q3(M,b,z,o,e,O){const c=p.resolveComponent("r-icon"),t=p.resolveComponent("r-img");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["r-avatar",{"r-avatar-description":M.description}])},[p.createElementVNode("div",Y3,[M.initials?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["r-avatar-initials",["r-avatar-initials-"+M.initialsColor]])},[p.createElementVNode("span",U3,p.toDisplayString(M.initials),1)],2)):p.createCommentVNode("",!0),M.icon?(p.openBlock(),p.createElementBlock("div",K3,[p.createVNode(c,{icon:M.icon,class:"r-avatar-icon"},null,8,["icon"])])):p.createCommentVNode("",!0),M.image?(p.openBlock(),p.createElementBlock("div",G3,[p.createVNode(t,{src:M.image,class:"r-avatar-image"},null,8,["src"])])):p.createCommentVNode("",!0)]),M.description?(p.openBlock(),p.createElementBlock("div",Z3,[p.createElementVNode("p",null,p.toDisplayString(M.description),1),p.renderSlot(M.$slots,"default")])):p.createCommentVNode("",!0)],2)}const fb=I(j3,[["render",Q3]]),J3=p.defineComponent({name:"RBadge",compatConfig:{MODE:3},components:{rIcon:Z0},props:{type:{type:String,default:"default"},close:{type:Boolean,default:!1}},emits:["click","close"],computed:{classes(){const M={"r-badge-has-icon-close":!!this.close};return this.type?M[`r-badge-${this.type}`]=!0:M["r-badge-default"]=!0,M}}}),p7="";function Me(M,b,z,o,e,O){const c=p.resolveComponent("r-icon");return p.openBlock(),p.createElementBlock("span",{class:p.normalizeClass(["r-component r-badge",M.classes]),onClick:b[2]||(b[2]=t=>M.$emit("click"))},[p.renderSlot(M.$slots,"default",{},()=>[p.createTextVNode("Badge")]),M.close?(p.openBlock(),p.createBlock(c,{key:0,"aria-hidden":"true",class:"r-icon-gray r-badge-icon",icon:"close-s",onKeypress:b[0]||(b[0]=p.withKeys(p.withModifiers(t=>M.$emit("close"),["prevent"]),["enter"])),onClickCapture:b[1]||(b[1]=p.withModifiers(t=>M.$emit("close"),["stop"]))})):p.createCommentVNode("",!0)],2)}const ub=I(J3,[["render",Me]]),be=p.defineComponent({name:"RButton",compatConfig:{MODE:3},components:{RIcon:Z0},props:{size:{type:String,default:"regular",validator:M=>["small","regular","large"].includes(M)},link:{type:Boolean,default:!1},type:{type:String,default:"default",validator:M=>["default","primary","danger","positive","plain","unstyled"].includes(M)},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},capitalizeFirstLetter:{type:Boolean,default:!0},iconLeft:{type:String,default:null},iconRight:{type:String,default:null},icon:{type:String,default:null}},data(){return{messages:{loading:"Waiting for response",disabled:"Action is disabled"}}},computed:{classes(){const M={"r-has-icon-left":!!this.iconLeft,"r-has-icon-right":!!this.iconRight,"r-has-icon":!!this.icon};return this.link&&this.type==="unstyled"?{"r-button-type-link":!0,...M}:{[`r-button-size-${this.size}`]:!!this.size,[`r-button-type-${this.type}`]:!!this.type,"r-button-fluid":!!this.fluid,"r-is-active":!!this.active,...M}},title(){return this.disabled?this.messages.disabled:this.loading?this.messages.loading:""},divRole(){return this.title||this.$attrs["aria-label"]?"button":""},href(){return this.$attrs.href}}}),o7="",ze=["href","target"],pe={key:0,class:"r-tt-sentencecase",role:"button"},oe=["role","disabled","title"],ee={key:0,class:"r-tt-sentencecase",role:"button"};function Oe(M,b,z,o,e,O){const c=p.resolveComponent("r-icon");return M.link?(p.openBlock(),p.createElementBlock("a",{key:0,role:"link",class:p.normalizeClass(["r-button",M.classes]),href:M.href,target:M.$attrs.href?"_target":String(M.$attrs.target)||""},[M.iconLeft?(p.openBlock(),p.createBlock(c,{key:0,icon:M.iconLeft},null,8,["icon"])):p.createCommentVNode("",!0),M.icon?(p.openBlock(),p.createBlock(c,{key:1,icon:M.icon},null,8,["icon"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[M.capitalizeFirstLetter?(p.openBlock(),p.createElementBlock("div",pe,[p.renderSlot(M.$slots,"default",{},()=>[p.createTextVNode("Link")])])):p.renderSlot(M.$slots,"default",{key:1},()=>[p.createTextVNode("Apply")])],64)),M.iconRight?(p.openBlock(),p.createBlock(c,{key:3,icon:M.iconRight},null,8,["icon"])):p.createCommentVNode("",!0)],10,ze)):(p.openBlock(),p.createElementBlock("button",p.mergeProps({key:1,role:M.divRole,class:["r-button",M.classes],disabled:M.disabled||M.loading},M.$attrs,{title:M.title}),[M.loading?(p.openBlock(),p.createBlock(c,{key:0,icon:"loading",class:p.normalizeClass(["r-is-spinning r-icon-light-gray",{"r-inline-3":!M.icon}])},null,8,["class"])):p.createCommentVNode("",!0),M.iconLeft&&!M.loading?(p.openBlock(),p.createBlock(c,{key:1,icon:M.iconLeft},null,8,["icon"])):p.createCommentVNode("",!0),M.icon&&!M.loading?(p.openBlock(),p.createBlock(c,{key:2,icon:M.icon},null,8,["icon"])):M.icon?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:3},[M.capitalizeFirstLetter?(p.openBlock(),p.createElementBlock("div",ee,[p.renderSlot(M.$slots,"default",{},()=>[p.createTextVNode("Apply")])])):p.renderSlot(M.$slots,"default",{key:1},()=>[p.createTextVNode("Apply")])],64)),M.iconRight&&!M.loading?(p.openBlock(),p.createBlock(c,{key:4,icon:M.iconRight},null,8,["icon"])):p.createCommentVNode("",!0)],16,oe))}const s2=I(be,[["render",Oe]]),ce=p.defineComponent({name:"RButtonGroup",compatConfig:{MODE:3},props:{fluid:{type:Boolean,default:!1}},computed:{classes(){return{"r-button-group-fluid":!!this.fluid}}}}),e7="";function te(M,b,z,o,e,O){return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["r-button-group",M.classes]),role:"group"},[p.renderSlot(M.$slots,"default",{},()=>[p.createTextVNode("Apply")])],2)}const hb=I(ce,[["render",te]]);let ne="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Q0=(M=21)=>{let b="",z=M;for(;z--;)b+=ne[Math.random()*64|0];return b};const Ae=p.defineComponent({name:"RCheckbox",compatConfig:{MODE:3},components:{RIcon:Z0},props:{label:{type:String,default:""},id:{type:String,default:()=>Q0()},caption:{type:String,default:null},modelValue:{type:[Array,String,Number,Boolean],default:!1},value:{type:[String,Boolean],default:"on"},fuzzy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},validate:{type:Object,default:null}},emits:["update:modelValue"],computed:{isInvalid(){return this.validate?this.validate.$invalid&&this.validate.$dirty:!1},isChecked(){return this.fuzzy?!0:this.modelValue===null?!1:Array.isArray(this.modelValue)?this.modelValue.includes(this.value):this.modelValue===this.value},checkIcon(){return this.fuzzy?"dash-l":"checkbox-checkmark"}},methods:{getNegateInternalState(){if(!Array.isArray(this.modelValue))return!this.isChecked;const M=this.modelValue.slice();return this.isChecked?M.splice(this.modelValue.indexOf(this.value),1):M.push(this.value),M},change(){this.$emit("update:modelValue",this.getNegateInternalState())}}}),O7="",ae=["aria-checked"],se=["for"],ie=["id","disabled","value","checked"],re={class:"r-field-checkbox-style"},qe={key:0,class:"r-field-caption r-field-caption-toggle"};function de(M,b,z,o,e,O){const c=p.resolveComponent("r-icon");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["r-checkbox",{"r-is-error":M.isInvalid}]),role:"checkbox","aria-checked":M.isChecked},[p.createElementVNode("label",{class:p.normalizeClass(["r-field-label r-field-label-toggle",{"r-is-disabled":M.disabled}]),for:M.id},[p.renderSlot(M.$slots,"label",{},()=>[p.createTextVNode(p.toDisplayString(M.label),1)])],10,se),p.createElementVNode("input",{id:M.id,type:"checkbox",class:"r-field-checkbox",disabled:M.disabled,value:M.value,checked:M.isChecked,onChange:b[0]||(b[0]=(...t)=>M.change&&M.change(...t))},null,40,ie),p.createElementVNode("span",re,[p.createVNode(c,{icon:M.checkIcon},null,8,["icon"])]),M.caption?(p.openBlock(),p.createElementBlock("span",qe,p.toDisplayString(M.caption),1)):p.createCommentVNode("",!0)],10,ae)}const Rb=I(Ae,[["render",de]]);function x1(M){var b=M.getBoundingClientRect();return{width:b.width,height:b.height,top:b.top,right:b.right,bottom:b.bottom,left:b.left,x:b.left,y:b.top}}function X0(M){if(M.toString()!=="[object Window]"){var b=M.ownerDocument;return b?b.defaultView:window}return M}function bM(M){var b=X0(M),z=b.pageXOffset,o=b.pageYOffset;return{scrollLeft:z,scrollTop:o}}function H1(M){var b=X0(M).Element;return M instanceof b||M instanceof Element}function P0(M){var b=X0(M).HTMLElement;return M instanceof b||M instanceof HTMLElement}function le(M){return{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}}function We(M){return M===X0(M)||!P0(M)?bM(M):le(M)}function J0(M){return M?(M.nodeName||"").toLowerCase():null}function e1(M){return(H1(M)?M.ownerDocument:M.document).documentElement}function mb(M){return x1(e1(M)).left+bM(M).scrollLeft}function i1(M){return X0(M).getComputedStyle(M)}function zM(M){var b=i1(M),z=b.overflow,o=b.overflowX,e=b.overflowY;return/auto|scroll|overlay|hidden/.test(z+e+o)}function Lb(M,b,z){z===void 0&&(z=!1);var o=e1(b),e=x1(M),O={scrollLeft:0,scrollTop:0},c={x:0,y:0};return z||((J0(b)!=="body"||zM(o))&&(O=We(b)),P0(b)?(c=x1(b),c.x+=b.clientLeft,c.y+=b.clientTop):o&&(c.x=mb(o))),{x:e.left+O.scrollLeft-c.x,y:e.top+O.scrollTop-c.y,width:e.width,height:e.height}}function pM(M){return{x:M.offsetLeft,y:M.offsetTop,width:M.offsetWidth,height:M.offsetHeight}}function gb(M){return J0(M)==="html"?M:M.assignedSlot||M.parentNode||M.host||e1(M)}function Bb(M){return["html","body","#document"].indexOf(J0(M))>=0?M.ownerDocument.body:P0(M)&&zM(M)?M:Bb(gb(M))}function F1(M,b){b===void 0&&(b=[]);var z=Bb(M),o=J0(z)==="body",e=X0(z),O=o?[e].concat(e.visualViewport||[],zM(z)?z:[]):z,c=b.concat(O);return o?c:c.concat(F1(gb(O)))}function fe(M){return["table","td","th"].indexOf(J0(M))>=0}function Nb(M){return!P0(M)||i1(M).position==="fixed"?null:M.offsetParent}function j1(M){for(var b=X0(M),z=Nb(M);z&&fe(z);)z=Nb(z);return z&&J0(z)==="body"&&i1(z).position==="static"?b:z||b}var w0="top",V0="bottom",_0="right",v0="left",i2="auto",Y1=[w0,V0,_0,v0],h1="start",oM="end",ue="clippingParents",yb="viewport",U1="popper",he="reference",Xb=Y1.reduce(function(M,b){return M.concat([b+"-"+h1,b+"-"+oM])},[]),wb=[].concat(Y1,[i2]).reduce(function(M,b){return M.concat([b,b+"-"+h1,b+"-"+oM])},[]),Re="beforeRead",me="read",Le="afterRead",ge="beforeMain",Be="main",Ne="afterMain",ye="beforeWrite",Xe="write",we="afterWrite",eM=[Re,me,Le,ge,Be,Ne,ye,Xe,we];function ve(M){var b=new Map,z=new Set,o=[];M.forEach(function(O){b.set(O.name,O)});function e(O){z.add(O.name);var c=[].concat(O.requires||[],O.requiresIfExists||[]);c.forEach(function(t){if(!z.has(t)){var n=b.get(t);n&&e(n)}}),o.push(O)}return M.forEach(function(O){z.has(O.name)||e(O)}),o}function Te(M){var b=ve(M);return eM.reduce(function(z,o){return z.concat(b.filter(function(e){return e.phase===o}))},[])}function $e(M){var b;return function(){return b||(b=new Promise(function(z){Promise.resolve().then(function(){b=void 0,z(M())})})),b}}function O1(M){for(var b=arguments.length,z=new Array(b>1?b-1:0),o=1;o<b;o++)z[o-1]=arguments[o];return[].concat(z).reduce(function(e,O){return e.replace(/%s/,O)},M)}var r1='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ce='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',De=["name","enabled","phase","fn","effect","requires","options"];function Se(M){M.forEach(function(b){Object.keys(b).forEach(function(z){switch(z){case"name":typeof b.name!="string"&&console.error(O1(r1,String(b.name),'"name"','"string"','"'+String(b.name)+'"'));break;case"enabled":typeof b.enabled!="boolean"&&console.error(O1(r1,b.name,'"enabled"','"boolean"','"'+String(b.enabled)+'"'));case"phase":eM.indexOf(b.phase)<0&&console.error(O1(r1,b.name,'"phase"',"either "+eM.join(", "),'"'+String(b.phase)+'"'));break;case"fn":typeof b.fn!="function"&&console.error(O1(r1,b.name,'"fn"','"function"','"'+String(b.fn)+'"'));break;case"effect":typeof b.effect!="function"&&console.error(O1(r1,b.name,'"effect"','"function"','"'+String(b.fn)+'"'));break;case"requires":Array.isArray(b.requires)||console.error(O1(r1,b.name,'"requires"','"array"','"'+String(b.requires)+'"'));break;case"requiresIfExists":Array.isArray(b.requiresIfExists)||console.error(O1(r1,b.name,'"requiresIfExists"','"array"','"'+String(b.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+b.name+'" modifier, valid properties are '+De.map(function(o){return'"'+o+'"'}).join(", ")+'; but "'+z+'" was provided.')}b.requires&&b.requires.forEach(function(o){M.find(function(e){return e.name===o})==null&&console.error(O1(Ce,String(b.name),o,o))})})})}function Ee(M,b){var z=new Set;return M.filter(function(o){var e=b(o);if(!z.has(e))return z.add(e),!0})}function I0(M){return M.split("-")[0]}function ke(M){var b=M.reduce(function(z,o){var e=z[o.name];return z[o.name]=e?Object.assign({},e,{},o,{options:Object.assign({},e.options,{},o.options),data:Object.assign({},e.data,{},o.data)}):o,z},{});return Object.keys(b).map(function(z){return b[z]})}var vb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Pe="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Tb={placement:"bottom",modifiers:[],strategy:"absolute"};function $b(){for(var M=arguments.length,b=new Array(M),z=0;z<M;z++)b[z]=arguments[z];return!b.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Ve(M){M===void 0&&(M={});var b=M,z=b.defaultModifiers,o=z===void 0?[]:z,e=b.defaultOptions,O=e===void 0?Tb:e;return function(t,n,A){A===void 0&&(A=O);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tb,{},O),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},r=[],W=!1,f={state:s,setOptions:function($){m(),s.options=Object.assign({},O,{},s.options,{},$),s.scrollParents={reference:H1(t)?F1(t):t.contextElement?F1(t.contextElement):[],popper:F1(n)};var y=Te(ke([].concat(o,s.options.modifiers)));if(s.orderedModifiers=y.filter(function(U){return U.enabled}),process.env.NODE_ENV!=="production"){var T=Ee([].concat(y,s.options.modifiers),function(U){var M0=U.name;return M0});if(Se(T),I0(s.options.placement)===i2){var v=s.orderedModifiers.find(function(U){var M0=U.name;return M0==="flip"});v||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var C=i1(n),X=C.marginTop,S=C.marginRight,F=C.marginBottom,Y=C.marginLeft;[X,S,F,Y].some(function(U){return parseFloat(U)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return R(),f.update()},forceUpdate:function(){if(!W){var $=s.elements,y=$.reference,T=$.popper;if(!$b(y,T)){process.env.NODE_ENV!=="production"&&console.error(vb);return}s.rects={reference:Lb(y,j1(T),s.options.strategy==="fixed"),popper:pM(T)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(M0){return s.modifiersData[M0.name]=Object.assign({},M0.data)});for(var v=0,C=0;C<s.orderedModifiers.length;C++){if(process.env.NODE_ENV!=="production"&&(v+=1,v>100)){console.error(Pe);break}if(s.reset===!0){s.reset=!1,C=-1;continue}var X=s.orderedModifiers[C],S=X.fn,F=X.options,Y=F===void 0?{}:F,U=X.name;typeof S=="function"&&(s=S({state:s,options:Y,name:U,instance:f})||s)}}},update:$e(function(){return new Promise(function(L){f.forceUpdate(),L(s)})}),destroy:function(){m(),W=!0}};if(!$b(t,n))return process.env.NODE_ENV!=="production"&&console.error(vb),f;f.setOptions(A).then(function(L){!W&&A.onFirstUpdate&&A.onFirstUpdate(L)});function R(){s.orderedModifiers.forEach(function(L){var $=L.name,y=L.options,T=y===void 0?{}:y,v=L.effect;if(typeof v=="function"){var C=v({state:s,name:$,instance:f,options:T}),X=function(){};r.push(C||X)}})}function m(){r.forEach(function(L){return L()}),r=[]}return f}}var r2={passive:!0};function _e(M){var b=M.state,z=M.instance,o=M.options,e=o.scroll,O=e===void 0?!0:e,c=o.resize,t=c===void 0?!0:c,n=X0(b.elements.popper),A=[].concat(b.scrollParents.reference,b.scrollParents.popper);return O&&A.forEach(function(s){s.addEventListener("scroll",z.update,r2)}),t&&n.addEventListener("resize",z.update,r2),function(){O&&A.forEach(function(s){s.removeEventListener("scroll",z.update,r2)}),t&&n.removeEventListener("resize",z.update,r2)}}const Ie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_e,data:{}};function K1(M){return M.split("-")[1]}function OM(M){return["top","bottom"].indexOf(M)>=0?"x":"y"}function Cb(M){var b=M.reference,z=M.element,o=M.placement,e=o?I0(o):null,O=o?K1(o):null,c=b.x+b.width/2-z.width/2,t=b.y+b.height/2-z.height/2,n;switch(e){case w0:n={x:c,y:b.y-z.height};break;case V0:n={x:c,y:b.y+b.height};break;case _0:n={x:b.x+b.width,y:t};break;case v0:n={x:b.x-z.width,y:t};break;default:n={x:b.x,y:b.y}}var A=e?OM(e):null;if(A!=null){var s=A==="y"?"height":"width";switch(O){case h1:n[A]=Math.floor(n[A])-Math.floor(b[s]/2-z[s]/2);break;case oM:n[A]=Math.floor(n[A])+Math.ceil(b[s]/2-z[s]/2);break}}return n}function xe(M){var b=M.state,z=M.name;b.modifiersData[z]=Cb({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}const He={name:"popperOffsets",enabled:!0,phase:"read",fn:xe,data:{}};var Fe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function je(M){var b=M.x,z=M.y,o=window,e=o.devicePixelRatio||1;return{x:Math.round(b*e)/e||0,y:Math.round(z*e)/e||0}}function Db(M){var b,z=M.popper,o=M.popperRect,e=M.placement,O=M.offsets,c=M.position,t=M.gpuAcceleration,n=M.adaptive,A=je(O),s=A.x,r=A.y,W=O.hasOwnProperty("x"),f=O.hasOwnProperty("y"),R=v0,m=w0,L=window;if(n){var $=j1(z);$===X0(z)&&($=e1(z)),e===w0&&(m=V0,r-=$.clientHeight-o.height,r*=t?1:-1),e===v0&&(R=_0,s-=$.clientWidth-o.width,s*=t?1:-1)}var y=Object.assign({position:c},n&&Fe);if(t){var T;return Object.assign({},y,(T={},T[m]=f?"0":"",T[R]=W?"0":"",T.transform=(L.devicePixelRatio||1)<2?"translate("+s+"px, "+r+"px)":"translate3d("+s+"px, "+r+"px, 0)",T))}return Object.assign({},y,(b={},b[m]=f?r+"px":"",b[R]=W?s+"px":"",b.transform="",b))}function Ye(M){var b=M.state,z=M.options,o=z.gpuAcceleration,e=o===void 0?!0:o,O=z.adaptive,c=O===void 0?!0:O;if(process.env.NODE_ENV!=="production"){var t=i1(b.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(A){return t.indexOf(A)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
969
+ `,C3=Object.freeze(Object.defineProperty({__proto__:null,RIconColors:$3,RIconNames:l,RIconSprites:ib},Symbol.toStringTag,{value:"Module"})),D3=p.defineComponent({name:"RIcon",compatConfig:{MODE:3},customElement:!0,props:{icon:{type:String,default:null},color:{type:String,default:null,validator:M=>["primary","on-surface","success","warning","danger","info"].includes(M)},stopPropagation:{type:Boolean,default:!1}},emits:["click"],computed:{iconName(){return`#icon-${this.icon}`},classes(){return{[`r-icon-${this.color}`]:!!this.color}}},mounted(){if(!document.getElementById("icon-meter")){const M=document.createElement("div");M.setAttribute("data-revel","icon-sprite-sheet"),M.style.display="none",M.innerHTML=ib,document.body.appendChild(M)}},methods:{bubbleClick(M){this.stopPropagation&&M.stopPropagation(),this.$emit("click",M)}}}),Jm="",I=(M,b)=>{const z=M.__vccOpts||M;for(const[o,e]of b)z[o]=e;return z},S3=["data-testid"],E3=["xlink:href"];function k3(M,b,z,o,e,O){return p.openBlock(),p.createElementBlock("svg",{class:p.normalizeClass(["r-icon r-icon-20",M.classes]),"data-testid":M.icon,onClick:b[0]||(b[0]=(...c)=>M.bubbleClick&&M.bubbleClick(...c))},[p.createElementVNode("use",{"xlink:href":M.iconName,"xmlns:xlink":"http://www.w3.org/1999/xlink"},null,8,E3)],10,S3)}const Z0=I(D3,[["render",k3]]),rb={mounted(M){M.classList.add("fs-exclude")}},qb={mounted(M,{value:b}){M.clickOutside=z=>{z.target instanceof Node&&!M.contains(z.target)&&b(z)},window.document.addEventListener("mousedown",M.clickOutside,!0)},unmounted(M){M.clickOutside!=null&&(window.document.removeEventListener("mousedown",M.clickOutside),M.clickOutside=null)}},M7="",P3={beforeMount(M,{value:b}){if(b.text){const z=document.createElement("div"),o=document.createElement("div"),e=b.offset||8,O=b.boundaryLeft||0,c=b.boundaryTop||0;z.classList.add("r-tooltip"),o.classList.add("r-tooltip-arrow"),z.innerText=b.text,M.classList.add("r-position-relative");const t=n=>({top:parseFloat(z.style.top.replace("px",""))<c,left:parseFloat(z.style.left.replace("px",""))<O,right:parseFloat(z.style.left.replace("px",""))+n.width>(window.innerWidth||document.documentElement.clientWidth)});M.vTooltipEnter=()=>{document.body.appendChild(z),z.appendChild(o);const n=M.getBoundingClientRect(),A=n.top+window.scrollY,s=z.getBoundingClientRect();z.style.left=`${n.left+n.width/2-s.width/2}px`,z.style.top=`${A-(s.height+e)}px`;const r=t(s);switch(z.style.opacity="1",b.position){case"left":z.classList.add("r-tooltip-left"),z.style.left=`${n.left-s.width-e}px`,z.style.top=`${A-(s.height/2-n.height/2)}px`;break;case"right":z.classList.add("r-tooltip-right"),z.style.left=`${n.right+e}px`,z.style.top=`${A-(s.height/2-n.height/2)}px`;break;case"bottom":z.classList.add("r-tooltip-bottom"),z.style.top=`${A+s.height+e}px`;break;case void 0:r.right?(z.style.left=`${n.left+n.width-s.width}px`,z.classList.add("r-tooltip-out-right")):r.left&&(z.style.left=`${n.left}px`,z.classList.add("r-tooltip-out-left")),r.top&&(z.style.top=`${A+s.height+e}px`,z.classList.add("r-tooltip-out-top")),z.classList.contains("r-tooltip-out-right")?o.style.left=`${s.width-n.width/2}px`:z.classList.contains("r-tooltip-out-left")?o.style.left=`${n.width/2}px`:o.style.left=`${s.width/2}px`;break}},M.vTooltipLeave=()=>{z.style.opacity="0",z.style.left="0",z.style.top="0",z.className="r-tooltip",z.remove()},M.addEventListener("mouseenter",M.vTooltipEnter,!1),M.addEventListener("mouseleave",M.vTooltipLeave,!1)}},unmounted(M){const b=document.querySelector(".r-tooltip");b&&b.remove(),M.vTooltipEnter&&M.vTooltipLeave&&(M.removeEventListener("mouseenter",M.vTooltipEnter),M.removeEventListener("mouseleave",M.vTooltipLeave)),M.vTooltipEnter=null,M.vTooltipLeave=null}},V3={mounted:(M,{modifiers:b})=>{const z=M.parentElement?.className??"",o=b.secondary?"-is-secondary":"-is-primary";M.rContentAddedClass=`${z}${o}`,M.classList.add(`${z}${o}`)},unmounted:M=>{M.classList.remove(M.rContentAddedClass)}},db={beforeMount:M=>{const b=e=>{M&&(M.addEventListener("load",()=>{M.classList.add("r-is-loaded"),e&&e.unobserve(M)}),M.addEventListener("error",()=>console.log("error")),M.dataset.url&&(M.src=M.dataset.url))},z=(e,O)=>{e.forEach(c=>{c.isIntersecting&&b(O)})},o=()=>{const e={root:null,threshold:0};new IntersectionObserver(z,e).observe(M)};window.IntersectionObserver?o():b()}},lb=Object.freeze(Object.defineProperty({__proto__:null,clickOutside:qb,content:V3,fsExclude:rb,lazy:db,tooltip:P3},Symbol.toStringTag,{value:"Module"})),_3=p.defineComponent({name:"RImg",compatConfig:{MODE:3},directives:{lazy:db},props:{src:{type:String,required:!0},alt:{type:String,default:"Image"},lazy:{type:Boolean,default:!1},width:{type:String,default:""},height:{type:String,default:""}},emits:["onload","onerror"],data(){return{loading:!0}},computed:{imgStyle(){return{height:this.height,width:this.width}},wrapperStyle(){return{height:this.height,width:this.width}}},methods:{onload(){this.loading=!1,this.$emit("onload")},onerror(){this.loading=!1,this.$emit("onerror")}}}),b7="",I3=["data-url","alt"],x3=["src","alt"],H3={class:"r-img-loading-spinner"};function F3(M,b,z,o,e,O){const c=p.resolveDirective("lazy");return p.openBlock(),p.createElementBlock("figure",p.mergeProps({class:"r-component r-img"},M.wrapperStyle,{role:"img"}),[M.lazy?p.withDirectives((p.openBlock(),p.createElementBlock("img",p.mergeProps({key:0,class:"r-img-image","data-url":M.src,alt:M.alt},M.imgStyle,{onLoad:b[0]||(b[0]=(...t)=>M.onload&&M.onload(...t)),onError:b[1]||(b[1]=(...t)=>M.onerror&&M.onerror(...t))}),null,16,I3)),[[c]]):(p.openBlock(),p.createElementBlock("img",p.mergeProps({key:1,class:"r-img-image",src:M.src,alt:M.alt},M.imgStyle,{onLoad:b[2]||(b[2]=(...t)=>M.onload&&M.onload(...t)),onError:b[3]||(b[3]=(...t)=>M.onerror&&M.onerror(...t))}),null,16,x3)),p.renderSlot(M.$slots,"loading",{},()=>[p.withDirectives(p.createElementVNode("div",H3,null,512),[[p.vShow,M.loading]])])],16)}const MM=I(_3,[["render",F3]]),Wb=["gray","yellow","green","accent","dark-background"],j3=p.defineComponent({name:"RAvatar",compatConfig:{MODE:3},components:{RIcon:Z0,RImg:MM},customElement:!0,props:{initials:{type:String,validator:M=>M.length>2?(console.warn("RAvatar: should provide only 2 symbols for initials"),!1):!0,default:null},description:{type:String,default:null},image:{type:String,default:null},color:{type:String,default:null},icon:{type:String,default:null}},computed:{initialsColor(){if(this.color)return this.color;const M=this.initials==null?0:this.initials.split("").reduce((b,z)=>b+z.charCodeAt(0),0);return Wb[M%Wb.length]}}}),z7="",Y3={class:"r-avatar-main"},U3={class:"r-avatar-initials-value"},K3={key:1,class:"r-avatar-icon-wrapper"},G3={key:2,class:"r-avatar-image-wrapper"},Z3={key:0,class:"r-avatar-info"};function Q3(M,b,z,o,e,O){const c=p.resolveComponent("r-icon"),t=p.resolveComponent("r-img");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["r-avatar",{"r-avatar-description":M.description}])},[p.createElementVNode("div",Y3,[M.initials?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["r-avatar-initials",["r-avatar-initials-"+M.initialsColor]])},[p.createElementVNode("span",U3,p.toDisplayString(M.initials),1)],2)):p.createCommentVNode("",!0),M.icon?(p.openBlock(),p.createElementBlock("div",K3,[p.createVNode(c,{icon:M.icon,class:"r-avatar-icon"},null,8,["icon"])])):p.createCommentVNode("",!0),M.image?(p.openBlock(),p.createElementBlock("div",G3,[p.createVNode(t,{src:M.image,class:"r-avatar-image"},null,8,["src"])])):p.createCommentVNode("",!0)]),M.description?(p.openBlock(),p.createElementBlock("div",Z3,[p.createElementVNode("p",null,p.toDisplayString(M.description),1),p.renderSlot(M.$slots,"default")])):p.createCommentVNode("",!0)],2)}const fb=I(j3,[["render",Q3]]),J3=p.defineComponent({name:"RBadge",compatConfig:{MODE:3},components:{rIcon:Z0},props:{type:{type:String,default:"default"},close:{type:Boolean,default:!1}},emits:["click","close"],computed:{classes(){const M={"r-badge-has-icon-close":!!this.close};return this.type?M[`r-badge-${this.type}`]=!0:M["r-badge-default"]=!0,M}}}),p7="";function Me(M,b,z,o,e,O){const c=p.resolveComponent("r-icon");return p.openBlock(),p.createElementBlock("span",{class:p.normalizeClass(["r-component r-badge",M.classes]),onClick:b[2]||(b[2]=t=>M.$emit("click"))},[p.renderSlot(M.$slots,"default",{},()=>[p.createTextVNode("Badge")]),M.close?(p.openBlock(),p.createBlock(c,{key:0,"aria-hidden":"true",class:"r-icon-gray r-badge-icon",icon:"close-s",onKeypress:b[0]||(b[0]=p.withKeys(p.withModifiers(t=>M.$emit("close"),["prevent"]),["enter"])),onClickCapture:b[1]||(b[1]=p.withModifiers(t=>M.$emit("close"),["stop"]))})):p.createCommentVNode("",!0)],2)}const ub=I(J3,[["render",Me]]),be=p.defineComponent({name:"RButton",compatConfig:{MODE:3},components:{RIcon:Z0},props:{size:{type:String,default:"regular",validator:M=>["small","regular","large"].includes(M)},link:{type:Boolean,default:!1},type:{type:String,default:"default",validator:M=>["default","primary","danger","positive","plain","unstyled"].includes(M)},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},capitalizeFirstLetter:{type:Boolean,default:!0},iconLeft:{type:String,default:null},iconRight:{type:String,default:null},icon:{type:String,default:null}},data(){return{messages:{loading:"Waiting for response",disabled:"Action is disabled"}}},computed:{classes(){const M={"r-has-icon-left":!!this.iconLeft,"r-has-icon-right":!!this.iconRight,"r-has-icon":!!this.icon};return this.link&&this.type==="unstyled"?{"r-button-type-link":!0,...M}:{[`r-button-size-${this.size}`]:!!this.size,[`r-button-type-${this.type}`]:!!this.type,"r-button-fluid":!!this.fluid,"r-is-active":!!this.active,...M}},title(){return this.disabled?this.messages.disabled:this.loading?this.messages.loading:""},divRole(){return this.title||this.$attrs["aria-label"]?"button":""},href(){return this.$attrs.href}}}),o7="",ze=["href","target"],pe={key:0,class:"r-tt-sentencecase",role:"button"},oe=["role","disabled","title"],ee={key:0,class:"r-tt-sentencecase",role:"button"};function Oe(M,b,z,o,e,O){const c=p.resolveComponent("r-icon");return M.link?(p.openBlock(),p.createElementBlock("a",{key:0,role:"link",class:p.normalizeClass(["r-button",M.classes]),href:M.href,target:M.$attrs.href?"_target":String(M.$attrs.target)||""},[M.iconLeft?(p.openBlock(),p.createBlock(c,{key:0,icon:M.iconLeft},null,8,["icon"])):p.createCommentVNode("",!0),M.icon?(p.openBlock(),p.createBlock(c,{key:1,icon:M.icon},null,8,["icon"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[M.capitalizeFirstLetter?(p.openBlock(),p.createElementBlock("div",pe,[p.renderSlot(M.$slots,"default",{},()=>[p.createTextVNode("Link")])])):p.renderSlot(M.$slots,"default",{key:1},()=>[p.createTextVNode("Apply")])],64)),M.iconRight?(p.openBlock(),p.createBlock(c,{key:3,icon:M.iconRight},null,8,["icon"])):p.createCommentVNode("",!0)],10,ze)):(p.openBlock(),p.createElementBlock("button",p.mergeProps({key:1,role:M.divRole,class:["r-button",M.classes],disabled:M.disabled||M.loading},M.$attrs,{title:M.title}),[M.loading?(p.openBlock(),p.createBlock(c,{key:0,icon:"loading",class:p.normalizeClass(["r-is-spinning r-icon-light-gray",{"r-inline-3":!M.icon}])},null,8,["class"])):p.createCommentVNode("",!0),M.iconLeft&&!M.loading?(p.openBlock(),p.createBlock(c,{key:1,icon:M.iconLeft},null,8,["icon"])):p.createCommentVNode("",!0),M.icon&&!M.loading?(p.openBlock(),p.createBlock(c,{key:2,icon:M.icon},null,8,["icon"])):M.icon?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:3},[M.capitalizeFirstLetter?(p.openBlock(),p.createElementBlock("div",ee,[p.renderSlot(M.$slots,"default",{},()=>[p.createTextVNode("Apply")])])):p.renderSlot(M.$slots,"default",{key:1},()=>[p.createTextVNode("Apply")])],64)),M.iconRight&&!M.loading?(p.openBlock(),p.createBlock(c,{key:4,icon:M.iconRight},null,8,["icon"])):p.createCommentVNode("",!0)],16,oe))}const s2=I(be,[["render",Oe]]),ce=p.defineComponent({name:"RButtonGroup",compatConfig:{MODE:3},props:{fluid:{type:Boolean,default:!1}},computed:{classes(){return{"r-button-group-fluid":!!this.fluid}}}}),e7="";function te(M,b,z,o,e,O){return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["r-button-group",M.classes]),role:"group"},[p.renderSlot(M.$slots,"default",{},()=>[p.createTextVNode("Apply")])],2)}const hb=I(ce,[["render",te]]);let ne="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Q0=(M=21)=>{let b="",z=M;for(;z--;)b+=ne[Math.random()*64|0];return b};const Ae=p.defineComponent({name:"RCheckbox",compatConfig:{MODE:3},components:{RIcon:Z0},props:{label:{type:String,default:""},id:{type:String,default:()=>Q0()},caption:{type:String,default:null},modelValue:{type:[Array,String,Number,Boolean],default:!1},value:{type:[String,Boolean],default:"on"},fuzzy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},validate:{type:Object,default:null}},emits:["update:modelValue"],computed:{isInvalid(){return this.validate?this.validate.$invalid&&this.validate.$dirty:!1},isChecked(){return this.fuzzy?!0:this.modelValue===null?!1:Array.isArray(this.modelValue)?this.modelValue.includes(this.value):this.modelValue===this.value},checkIcon(){return this.fuzzy?"dash-l":"checkbox-checkmark"}},methods:{getNegateInternalState(){if(!Array.isArray(this.modelValue))return!this.isChecked;const M=this.modelValue.slice();return this.isChecked?M.splice(this.modelValue.indexOf(this.value),1):M.push(this.value),M},change(){this.$emit("update:modelValue",this.getNegateInternalState())}}}),O7="",ae=["aria-checked"],se=["for"],ie=["id","disabled","value","checked"],re={class:"r-field-checkbox-style"},qe={key:0,class:"r-field-caption r-field-caption-toggle"};function de(M,b,z,o,e,O){const c=p.resolveComponent("r-icon");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["r-checkbox",{"r-is-error":M.isInvalid}]),role:"checkbox","aria-checked":M.isChecked},[p.createElementVNode("label",{class:p.normalizeClass(["r-field-label r-field-label-toggle",{"r-is-disabled":M.disabled}]),for:M.id},[p.renderSlot(M.$slots,"label",{},()=>[p.createTextVNode(p.toDisplayString(M.label),1)])],10,se),p.createElementVNode("input",{id:M.id,type:"checkbox",class:"r-field-checkbox",disabled:M.disabled,value:M.value,checked:M.isChecked,onChange:b[0]||(b[0]=(...t)=>M.change&&M.change(...t))},null,40,ie),p.createElementVNode("span",re,[p.createVNode(c,{icon:M.checkIcon},null,8,["icon"])]),M.caption?(p.openBlock(),p.createElementBlock("span",qe,p.toDisplayString(M.caption),1)):p.createCommentVNode("",!0)],10,ae)}const Rb=I(Ae,[["render",de]]);function x1(M){var b=M.getBoundingClientRect();return{width:b.width,height:b.height,top:b.top,right:b.right,bottom:b.bottom,left:b.left,x:b.left,y:b.top}}function X0(M){if(M.toString()!=="[object Window]"){var b=M.ownerDocument;return b?b.defaultView:window}return M}function bM(M){var b=X0(M),z=b.pageXOffset,o=b.pageYOffset;return{scrollLeft:z,scrollTop:o}}function H1(M){var b=X0(M).Element;return M instanceof b||M instanceof Element}function P0(M){var b=X0(M).HTMLElement;return M instanceof b||M instanceof HTMLElement}function le(M){return{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}}function We(M){return M===X0(M)||!P0(M)?bM(M):le(M)}function J0(M){return M?(M.nodeName||"").toLowerCase():null}function e1(M){return(H1(M)?M.ownerDocument:M.document).documentElement}function mb(M){return x1(e1(M)).left+bM(M).scrollLeft}function i1(M){return X0(M).getComputedStyle(M)}function zM(M){var b=i1(M),z=b.overflow,o=b.overflowX,e=b.overflowY;return/auto|scroll|overlay|hidden/.test(z+e+o)}function Lb(M,b,z){z===void 0&&(z=!1);var o=e1(b),e=x1(M),O={scrollLeft:0,scrollTop:0},c={x:0,y:0};return z||((J0(b)!=="body"||zM(o))&&(O=We(b)),P0(b)?(c=x1(b),c.x+=b.clientLeft,c.y+=b.clientTop):o&&(c.x=mb(o))),{x:e.left+O.scrollLeft-c.x,y:e.top+O.scrollTop-c.y,width:e.width,height:e.height}}function pM(M){return{x:M.offsetLeft,y:M.offsetTop,width:M.offsetWidth,height:M.offsetHeight}}function gb(M){return J0(M)==="html"?M:M.assignedSlot||M.parentNode||M.host||e1(M)}function Bb(M){return["html","body","#document"].indexOf(J0(M))>=0?M.ownerDocument.body:P0(M)&&zM(M)?M:Bb(gb(M))}function F1(M,b){b===void 0&&(b=[]);var z=Bb(M),o=J0(z)==="body",e=X0(z),O=o?[e].concat(e.visualViewport||[],zM(z)?z:[]):z,c=b.concat(O);return o?c:c.concat(F1(gb(O)))}function fe(M){return["table","td","th"].indexOf(J0(M))>=0}function Nb(M){return!P0(M)||i1(M).position==="fixed"?null:M.offsetParent}function j1(M){for(var b=X0(M),z=Nb(M);z&&fe(z);)z=Nb(z);return z&&J0(z)==="body"&&i1(z).position==="static"?b:z||b}var w0="top",V0="bottom",_0="right",v0="left",i2="auto",Y1=[w0,V0,_0,v0],h1="start",oM="end",ue="clippingParents",yb="viewport",U1="popper",he="reference",Xb=Y1.reduce(function(M,b){return M.concat([b+"-"+h1,b+"-"+oM])},[]),wb=[].concat(Y1,[i2]).reduce(function(M,b){return M.concat([b,b+"-"+h1,b+"-"+oM])},[]),Re="beforeRead",me="read",Le="afterRead",ge="beforeMain",Be="main",Ne="afterMain",ye="beforeWrite",Xe="write",we="afterWrite",eM=[Re,me,Le,ge,Be,Ne,ye,Xe,we];function ve(M){var b=new Map,z=new Set,o=[];M.forEach(function(O){b.set(O.name,O)});function e(O){z.add(O.name);var c=[].concat(O.requires||[],O.requiresIfExists||[]);c.forEach(function(t){if(!z.has(t)){var n=b.get(t);n&&e(n)}}),o.push(O)}return M.forEach(function(O){z.has(O.name)||e(O)}),o}function Te(M){var b=ve(M);return eM.reduce(function(z,o){return z.concat(b.filter(function(e){return e.phase===o}))},[])}function $e(M){var b;return function(){return b||(b=new Promise(function(z){Promise.resolve().then(function(){b=void 0,z(M())})})),b}}function O1(M){for(var b=arguments.length,z=new Array(b>1?b-1:0),o=1;o<b;o++)z[o-1]=arguments[o];return[].concat(z).reduce(function(e,O){return e.replace(/%s/,O)},M)}var r1='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ce='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',De=["name","enabled","phase","fn","effect","requires","options"];function Se(M){M.forEach(function(b){Object.keys(b).forEach(function(z){switch(z){case"name":typeof b.name!="string"&&console.error(O1(r1,String(b.name),'"name"','"string"','"'+String(b.name)+'"'));break;case"enabled":typeof b.enabled!="boolean"&&console.error(O1(r1,b.name,'"enabled"','"boolean"','"'+String(b.enabled)+'"'));case"phase":eM.indexOf(b.phase)<0&&console.error(O1(r1,b.name,'"phase"',"either "+eM.join(", "),'"'+String(b.phase)+'"'));break;case"fn":typeof b.fn!="function"&&console.error(O1(r1,b.name,'"fn"','"function"','"'+String(b.fn)+'"'));break;case"effect":typeof b.effect!="function"&&console.error(O1(r1,b.name,'"effect"','"function"','"'+String(b.fn)+'"'));break;case"requires":Array.isArray(b.requires)||console.error(O1(r1,b.name,'"requires"','"array"','"'+String(b.requires)+'"'));break;case"requiresIfExists":Array.isArray(b.requiresIfExists)||console.error(O1(r1,b.name,'"requiresIfExists"','"array"','"'+String(b.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+b.name+'" modifier, valid properties are '+De.map(function(o){return'"'+o+'"'}).join(", ")+'; but "'+z+'" was provided.')}b.requires&&b.requires.forEach(function(o){M.find(function(e){return e.name===o})==null&&console.error(O1(Ce,String(b.name),o,o))})})})}function Ee(M,b){var z=new Set;return M.filter(function(o){var e=b(o);if(!z.has(e))return z.add(e),!0})}function I0(M){return M.split("-")[0]}function ke(M){var b=M.reduce(function(z,o){var e=z[o.name];return z[o.name]=e?Object.assign({},e,{},o,{options:Object.assign({},e.options,{},o.options),data:Object.assign({},e.data,{},o.data)}):o,z},{});return Object.keys(b).map(function(z){return b[z]})}var vb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Pe="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Tb={placement:"bottom",modifiers:[],strategy:"absolute"};function $b(){for(var M=arguments.length,b=new Array(M),z=0;z<M;z++)b[z]=arguments[z];return!b.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Ve(M){M===void 0&&(M={});var b=M,z=b.defaultModifiers,o=z===void 0?[]:z,e=b.defaultOptions,O=e===void 0?Tb:e;return function(t,n,A){A===void 0&&(A=O);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tb,{},O),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},r=[],W=!1,f={state:s,setOptions:function($){m(),s.options=Object.assign({},O,{},s.options,{},$),s.scrollParents={reference:H1(t)?F1(t):t.contextElement?F1(t.contextElement):[],popper:F1(n)};var y=Te(ke([].concat(o,s.options.modifiers)));if(s.orderedModifiers=y.filter(function(U){return U.enabled}),process.env.NODE_ENV!=="production"){var T=Ee([].concat(y,s.options.modifiers),function(U){var M0=U.name;return M0});if(Se(T),I0(s.options.placement)===i2){var v=s.orderedModifiers.find(function(U){var M0=U.name;return M0==="flip"});v||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var C=i1(n),X=C.marginTop,S=C.marginRight,F=C.marginBottom,Y=C.marginLeft;[X,S,F,Y].some(function(U){return parseFloat(U)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return R(),f.update()},forceUpdate:function(){if(!W){var $=s.elements,y=$.reference,T=$.popper;if(!$b(y,T)){process.env.NODE_ENV!=="production"&&console.error(vb);return}s.rects={reference:Lb(y,j1(T),s.options.strategy==="fixed"),popper:pM(T)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(M0){return s.modifiersData[M0.name]=Object.assign({},M0.data)});for(var v=0,C=0;C<s.orderedModifiers.length;C++){if(process.env.NODE_ENV!=="production"&&(v+=1,v>100)){console.error(Pe);break}if(s.reset===!0){s.reset=!1,C=-1;continue}var X=s.orderedModifiers[C],S=X.fn,F=X.options,Y=F===void 0?{}:F,U=X.name;typeof S=="function"&&(s=S({state:s,options:Y,name:U,instance:f})||s)}}},update:$e(function(){return new Promise(function(L){f.forceUpdate(),L(s)})}),destroy:function(){m(),W=!0}};if(!$b(t,n))return process.env.NODE_ENV!=="production"&&console.error(vb),f;f.setOptions(A).then(function(L){!W&&A.onFirstUpdate&&A.onFirstUpdate(L)});function R(){s.orderedModifiers.forEach(function(L){var $=L.name,y=L.options,T=y===void 0?{}:y,v=L.effect;if(typeof v=="function"){var C=v({state:s,name:$,instance:f,options:T}),X=function(){};r.push(C||X)}})}function m(){r.forEach(function(L){return L()}),r=[]}return f}}var r2={passive:!0};function _e(M){var b=M.state,z=M.instance,o=M.options,e=o.scroll,O=e===void 0?!0:e,c=o.resize,t=c===void 0?!0:c,n=X0(b.elements.popper),A=[].concat(b.scrollParents.reference,b.scrollParents.popper);return O&&A.forEach(function(s){s.addEventListener("scroll",z.update,r2)}),t&&n.addEventListener("resize",z.update,r2),function(){O&&A.forEach(function(s){s.removeEventListener("scroll",z.update,r2)}),t&&n.removeEventListener("resize",z.update,r2)}}const Ie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_e,data:{}};function K1(M){return M.split("-")[1]}function OM(M){return["top","bottom"].indexOf(M)>=0?"x":"y"}function Cb(M){var b=M.reference,z=M.element,o=M.placement,e=o?I0(o):null,O=o?K1(o):null,c=b.x+b.width/2-z.width/2,t=b.y+b.height/2-z.height/2,n;switch(e){case w0:n={x:c,y:b.y-z.height};break;case V0:n={x:c,y:b.y+b.height};break;case _0:n={x:b.x+b.width,y:t};break;case v0:n={x:b.x-z.width,y:t};break;default:n={x:b.x,y:b.y}}var A=e?OM(e):null;if(A!=null){var s=A==="y"?"height":"width";switch(O){case h1:n[A]=Math.floor(n[A])-Math.floor(b[s]/2-z[s]/2);break;case oM:n[A]=Math.floor(n[A])+Math.ceil(b[s]/2-z[s]/2);break}}return n}function xe(M){var b=M.state,z=M.name;b.modifiersData[z]=Cb({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}const He={name:"popperOffsets",enabled:!0,phase:"read",fn:xe,data:{}};var Fe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function je(M){var b=M.x,z=M.y,o=window,e=o.devicePixelRatio||1;return{x:Math.round(b*e)/e||0,y:Math.round(z*e)/e||0}}function Db(M){var b,z=M.popper,o=M.popperRect,e=M.placement,O=M.offsets,c=M.position,t=M.gpuAcceleration,n=M.adaptive,A=je(O),s=A.x,r=A.y,W=O.hasOwnProperty("x"),f=O.hasOwnProperty("y"),R=v0,m=w0,L=window;if(n){var $=j1(z);$===X0(z)&&($=e1(z)),e===w0&&(m=V0,r-=$.clientHeight-o.height,r*=t?1:-1),e===v0&&(R=_0,s-=$.clientWidth-o.width,s*=t?1:-1)}var y=Object.assign({position:c},n&&Fe);if(t){var T;return Object.assign({},y,(T={},T[m]=f?"0":"",T[R]=W?"0":"",T.transform=(L.devicePixelRatio||1)<2?"translate("+s+"px, "+r+"px)":"translate3d("+s+"px, "+r+"px, 0)",T))}return Object.assign({},y,(b={},b[m]=f?r+"px":"",b[R]=W?s+"px":"",b.transform="",b))}function Ye(M){var b=M.state,z=M.options,o=z.gpuAcceleration,e=o===void 0?!0:o,O=z.adaptive,c=O===void 0?!0:O;if(process.env.NODE_ENV!=="production"){var t=i1(b.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(A){return t.indexOf(A)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
970
970
 
971
971
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
972
972
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/revel",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "CHANGELOG.md"