Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bimdata/background-color-viewer-plugin

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bimdata/background-color-viewer-plugin - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/backgroundColor.plugin.js

@@ -11,2 +11,2 @@ /**

*/
function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),t}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t,e,i){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(r){var n=Object.getOwnPropertyDescriptor(r,e);return n.get?n.get.call(i):n.value}})(t,e,i||t)}function d(e){return"object"===t(e)&&e.model?e.model:("#"!==e.slice(0,1)||4!==e.length&&7!==e.length)&&("#"!==e.slice(0,1)||6!==e.length&&9!==e.length)?"RGBA"===e.slice(0,4).toUpperCase()||"RGB"===e.slice(0,3).toUpperCase()?"rgb":("HSLA"===e.slice(0,4).toUpperCase()||"HSL"===e.slice(0,3).toUpperCase())&&"hsl":"hex"}function c(t){return isNaN(parseInt(t,16))?0:parseInt(t,16)}function u(t,e){return function(i){return i>=t&&i<=e}}function h(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function p(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;return Number((t*(1-i)+e*i).toFixed(2))}function f(t){return!(void 0===t||isNaN(t)||t<0||t>1)}var m=function(){function i(t){var r=this;e(this,i),this.invalid=!this.validate(t),this.invalid||Object.keys(t).forEach((function(e){r[e]=t[e]})),this.init()}return r(i,[{key:"init",value:function(){}},{key:"validate",value:function(e){return!!e&&"object"===t(e)}}]),i}(),g=function(t){function i(){return e(this,i),l(this,o(i).apply(this,arguments))}return n(i,m),r(i,[{key:"validate",value:function(t){if(!s(o(i.prototype),"validate",this).call(this,t))return!1;var e=u(0,255);return e(t.red)&&e(t.green)&&e(t.blue)}},{key:"init",value:function(){this.model="rgb",this.alpha=f(this.alpha)?this.alpha:1}},{key:"toString",value:function(){return this.invalid?"Invalid Color":u(0,.999)(this.alpha)?"rgba(".concat(this.red,",").concat(this.green,",").concat(this.blue,",").concat(this.alpha,")"):"rgb(".concat(this.red,",").concat(this.green,",").concat(this.blue,")")}}]),i}(),b=function(t){function i(){return e(this,i),l(this,o(i).apply(this,arguments))}return n(i,m),r(i,[{key:"validate",value:function(t){if(!s(o(i.prototype),"validate",this).call(this,t))return!1;var e=u(0,100);return u(0,360)(t.hue)&&e(t.lum)&&e(t.sat)}},{key:"init",value:function(){this.model="hsl",this.alpha=f(this.alpha)?this.alpha:1}},{key:"toString",value:function(){return this.invalid?"Invalid Color":u(0,.999)(this.alpha)?"hsla(".concat(this.hue,",").concat(this.sat,"%,").concat(this.lum,"%,").concat(this.alpha,")"):"hsl(".concat(this.hue,",").concat(this.sat,"%,").concat(this.lum,"%)")}}]),i}(),v=function(t){function i(){return e(this,i),l(this,o(i).apply(this,arguments))}return n(i,m),r(i,[{key:"validate",value:function(t){return!!s(o(i.prototype),"validate",this).call(this,t)&&/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test("#".concat(t.red).concat(t.green).concat(t.blue))}},{key:"init",value:function(){this.model="hex",this.alpha=void 0!==this.alpha?this.alpha:"ff"}},{key:"toString",value:function(){return this.invalid?"Invalid Color":u(0,.999)(c(this.alpha)/255)?"#".concat(this.red).concat(this.green).concat(this.blue).concat(this.alpha):"#".concat(this.red).concat(this.green).concat(this.blue)}}]),i}(),_=Object.freeze({Color:m,RgbColor:g,HslColor:b,HexColor:v});function x(e){if("object"===t(e))return e;var i=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,*\s*(\d*(?:\.\d+)*)*\)/i);return!i||i.length<4?new g:new g({red:Number(i[1]),green:Number(i[2]),blue:Number(i[3]),alpha:Number(i[4])})}function y(e){if("object"===t(e))return e;var i=function(t){var e=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])*$/i;return 5!==t.length&&4!==t.length||!e.test(t)||(t=t.replace(e,(function(t,e,i,r,n){return"#".concat(e).concat(e).concat(i).concat(i).concat(r).concat(r).concat(n?"".concat(n).concat(n):"")}))),t}(e),r=i.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})*/i);return!r||r.length<4?new v:new v({hex:i,red:r[1],green:r[2],blue:r[3],alpha:r[4]})}function C(e){if("object"===t(e))return e;var i=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,*\s*(\d*(?:\.\d+)*)*\)/i);return!i||i.length<4?new b:new b({hue:Number(i[1]),sat:Number(i[2]),lum:Number(i[3]),alpha:Number(i[4])})}function k(t){return t=Math.floor(t),isNaN(t)?"00":("0"+t.toString(16)).slice(-2)}function w(t){if(!t)return new v;var e=[k((t=x(t)).red),k(t.green),k(t.blue),t.alpha?k(255*t.alpha):null];return new v({red:e[0],green:e[1],blue:e[2],alpha:e[3]||"ff"})}function S(t){if(!t)return new b;var e=[(t=x(t)).red/255,t.green/255,t.blue/255,t.alpha],i=e[0],r=e[1],n=e[2],o=e[3],a=0,l=0,s=0,d=Math.min(i,r,n),c=Math.max(i,r,n);return s=(d+c)/2,d!==c&&(l=s>.5?(c-d)/(2-c-d):(c-d)/(c+d)),i>=c&&d!==c&&(a=(r-n)/(c-d)*60),r>=c&&d!==c&&(a=60*(2+(n-i)/(c-d))),n>=c&&d!==c&&(a=60*(4+(i-r)/(c-d))),a=a<0?Math.floor(a+360):Math.floor(a),l=Math.floor(100*l),s=Math.floor(100*s),new b({hue:a,sat:l,lum:s,alpha:o})}function M(t){if(!t)return new g;var e=y(t),i=e.red,r=e.green,n=e.blue,o=e.alpha;return new g({red:c(i),green:c(r),blue:c(n),alpha:void 0===o?1:Number((c(o)/255).toFixed(2))})}function E(t){return Math.min(Math.max(parseInt(t),0),255)}function L(t){if(!t)return new g;var e=[(t=C(t)).hue/360,t.sat/100,t.lum/100,t.alpha],i=e[0],r=e[1],n=e[2],o=e[3],a=0,l=0,s=0;if(0===r&&(a=l=s=E(255*n)),0!==r){var d=n>=50?n+r-n*r:n*(1+r),c=2*n-d,u=function(t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?c+6*(d-c)*t:t<.5?d:t<2/3?c+(d-c)*(2/3-t)*6:c};a=E(255*u(i+1/3)),l=E(255*u(i)),s=E(255*u(i-1/3))}return new g({red:a,green:l,blue:s,alpha:o})}function R(e){var i=d(e);return"hex"===i?M(e):"hsl"===i?L(e):"rgb"===i&&"string"==typeof e?x(e):"rgb"===i&&"object"===t(e)?e:new g}function $(e){var i,r=d(e);return"hex"===r?(i=e)?S(M(i)):new b:"rgb"===r?S(e):"hsl"===r&&"string"==typeof e?C(e):"hsl"===r&&"object"===t(e)?e:new b}function z(e){var i,r=d(e);return"rgb"===r?w(e):"hsl"===r?(i=e)?w(L(i)):new v:"hex"===r&&"string"==typeof e?y(e):"hex"===r&&"object"===t(e)?e:new v}function P(){return"rgb(".concat(h(0,255),", ").concat(h(0,255),", ").concat(h(0,255),")")}function N(t,e,i){t=R(t),e=R(e);var r=Math.floor(p(t.red,e.red,i)),n=Math.floor(p(t.green,e.green,i)),o=Math.floor(p(t.blue,e.blue,i)),a=p(t.alpha,e.alpha,i);return new g({red:r,green:n,blue:o,alpha:a})}function H(t,e){for(var i=[],r=0;r<t;r++){var n="function"==typeof e?e():e;i.push(n)}return i}function j(t,e){for(;t!==document&&null!==t;){if(t===e)return!0;t=t.parentNode}return!1}function V(t,e){return t.reduce((function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t}))}function B(t){console.warn("[Verte]: "+t)}function O(t,e){return function(i){var r=-1!==e.indexOf(i);return r||"production"===process.env.NODE_ENV||B('The "'+t+'" property can be only one of: '+e.map((function(t){return"'"+t+"'"})).join(", ")+"."),r}}function A(t){if(t.type.match(/^touch/i)){var e=t.touches[0];return{x:e.clientX,y:e.clientY}}return t.type.match(/^mouse/i)?{x:t.clientX,y:t.clientY}:{x:0,y:0}}var I={name:"VerteSlider",props:{gradient:Array,classes:Array,colorCode:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},reverse:{type:Boolean,default:!1},label:{type:Boolean,default:!1},trackSlide:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:255},step:{type:Number,default:1},value:{type:Number,default:0},handlesValue:{type:Array,default:function(){return[0]}}},data:function(){return{fill:{translate:0,scale:0},multiple:!1,currentValue:0,handles:[],values:[]}},watch:{gradient:function(t){this.initGradient(t),this.reloadHandlesColor()},values:function(){this.multiple=this.values.length>1,this.fill=!this.multiple&&(this.fill||{})},value:function(t,e){t!==e&&t!==this.currentValue&&this.updateValue(this.value,!0)}},methods:{init:function(){var t,e,i,r=this;this.$emitInputEvent=(t=function(){r.$emit("input",r.currentValue)},void 0===e&&(e=!1),function(){var r=arguments,n=function(){i=null,e||t.apply(void 0,r)},o=e&&!i;window.cancelAnimationFrame(i),i=window.requestAnimationFrame(n),o&&t.apply(void 0,arguments)}),this.multiple=this.values.length>1,this.values=this.handlesValue,this.handles=this.handlesValue.map((function(t,e){return{value:t,position:0,color:"#fff"}})),1===this.values.length&&(this.values[0]=Number(this.value)),this.values.sort(),this.initElements(),this.gradient&&this.initGradient(this.gradient),this.initEvents(),this.values.forEach((function(t,e){r.activeHandle=e,r.updateValue(t,!0)}))},initElements:function(){var t;this.wrapper=this.$refs.wrapper,this.track=this.$refs.track,this.fill=this.$refs.fill,this.wrapper.classList.toggle("slider--editable",this.editable),this.wrapper.classList.toggle("slider--reverse",this.reverse),this.classes&&(t=this.wrapper.classList).add.apply(t,this.classes)},initGradient:function(t){t.length>1?this.fill.style.backgroundImage="linear-gradient(90deg, "+t+")":(this.fill.style.backgroundImage="",this.fill.style.backgroundColor=t[0],this.handles.forEach((function(e){e.style.color=t[0]})))},handleResize:function(){this.updateWidth(),this.updateValue(this.currentValue,!0)},initEvents:function(){window.addEventListener("resize",this.handleResize)},select:function(t){if(t.preventDefault(),t.stopPropagation(),2!==t.buttons){this.updateWidth(),this.track.classList.add("slider--dragging"),this.ticking=!1;var e=this.getStepValue(t);if(this.multiple){var i=V(this.values,e);this.activeHandle=this.values.indexOf(i)}this.updateValue(e),this.tempDrag=this.dragging.bind(this),this.tempRelease=this.release.bind(this),document.addEventListener("mousemove",this.tempDrag),document.addEventListener("touchmove",this.tempDrag),document.addEventListener("touchend",this.tempRelease),document.addEventListener("mouseup",this.tempRelease)}},dragging:function(t){var e=this,i=this.getStepValue(t);this.ticking||(window.requestAnimationFrame((function(){e.updateValue(i),e.ticking=!1})),this.ticking=!0)},release:function(){this.track.classList.remove("slider--dragging"),document.removeEventListener("mousemove",this.tempDrag),document.removeEventListener("touchmove",this.tempDrag),document.removeEventListener("mouseup",this.tempRelease),document.removeEventListener("touchend",this.tempRelease)},getStepValue:function(t){var e=A(t).x-this.currentX,i=parseInt(e/this.stepWidth+.5,10)*this.step+this.min;return this.decimalsCount?Number(i.toFixed(this.decimalsCount)):i},updateWidth:function(){var t=this.track.getBoundingClientRect();this.currentX=t.left,this.width=t.width,this.stepWidth=this.width/(this.max-this.min)*this.step},getPositionPercentage:function(t){return((t-this.min)/(this.max-this.min)).toFixed(2)},normalizeValue:function(t){if(isNaN(Number(t)))return this.value;if(this.multiple){var e=this.values[this.activeHandle-1]||this.min,i=this.values[this.activeHandle+1]||this.max;t=Math.min(Math.max(Number(t),e),i)}return Math.min(Math.max(Number(t),this.min),this.max)},addHandle:function(t){var e=V(this.values,t),i=this.values.indexOf(e),r=this.values[i]<=t?i+1:i;this.handles.splice(r,0,{value:t,position:0,color:"#fff"}),this.values.splice(r,0,t),this.activeHandle=r,this.currentValue=null,this.updateValue(t)},removeHandle:function(t){this.handles.splice(t,1),this.values.splice(t,1),this.activeHandle=0===t?t+1:t-1},getHandleColor:function(t){for(var e=this.gradient.length-1,i=t,r=1;r<=e;r++)if(i>=(r-1)/e&&i<=r/e){var n=(i-(r-1)/e)/(1/e);return N(this.gradient[r-1],this.gradient[r],n)}return"rgb(0, 0, 0)"},reloadHandlesColor:function(){var t=this;this.handles.forEach((function(e,i){var r=t.getPositionPercentage(e.value),n=t.getHandleColor(r);t.handles[i].color=n.toString()}))},updateValue:function(t,e){var i=this;void 0===e&&(e=!1),window.requestAnimationFrame((function(){var r=i.normalizeValue(t),n=i.getPositionPercentage(r);if(i.fill&&(i.fill.translate=n*i.width,i.fill.scale=1-n),i.values[i.activeHandle]=r,i.handles[i.activeHandle].value=r,i.handles[i.activeHandle].position=n*i.width,i.currentValue=r,i.$refs.input.value=i.currentValue,i.gradient){var o=i.getHandleColor(n);i.handles[i.activeHandle].color=o.toString(),i.colorCode&&(i.currentValue=o)}e||i.$emitInputEvent()}))}},created:function(){var t=this.step.toString().split(".")[1];this.currentValue=this.value,this.decimalsCount=t?t.length:0},mounted:function(){var t=this;this.init(),this.$nextTick((function(){t.updateWidth(),t.updateValue(void 0,!0)}))},destroyed:function(){window.removeEventListener("resize",this.handleResize)}},F=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"wrapper",staticClass:"slider"},[i("div",t._g({ref:"track",staticClass:"slider__track"},t.trackSlide?{mousedown:t.select,touchstart:t.select}:{}),[i("div",{ref:"fill",staticClass:"slider__fill"}),t._l(t.handles,(function(e){return i("div",{staticClass:"slider__handle",style:"transform: translate("+e.position+"px, 0); background-color: "+e.color+";",on:{mousedown:t.select,touchstart:t.select}},[t.label?i("div",{staticClass:"slider__label"},[t._v(t._s(e.value))]):t._e()])}))],2),i("input",{directives:[{name:"show",rawName:"v-show",value:t.editable,expression:"editable"}],ref:"input",staticClass:"slider__input",attrs:{type:t.colorCode?"text":"number"},on:{change:function(e){t.updateValue(e.target.value)}}})])};F._withStripped=!0;var T,U,q,D,W,G=(T={render:F,staticRenderFns:[]},q=void 0,D=!1,(W=("function"==typeof(U=I)?U.options:U)||{}).__file="/mnt/c/Users/Abdelrahman/Projects/verte/src/components/Slider.vue",W.render||(W.render=T.render,W.staticRenderFns=T.staticRenderFns,W._compiled=!0,D&&(W.functional=!0)),W._scopeId=q,W),X={name:"VertePicker",components:{Slider:G},props:{mode:{type:String,default:"square"},edge:{type:Number,default:250},diameter:{type:Number,default:180},satSlider:{type:Boolean,default:!0},alpha:{type:Number,default:1},value:{type:String,default:"#fff"}},data:function(){return{currentHue:0,currentSat:0,currentColor:"",cursor:{},preventUpdating:!1,preventEcho:!1}},watch:{value:function(t){this.preventUpdating?this.preventUpdating=!1:this.handleValue(t,!0)},currentSat:function(){this.updateWheelColors(),this.updateColor()},currentHue:function(){this.updateSquareColors(),this.updateColor()}},methods:{initSquare:function(){this.$refs.canvas.width=this.edge,this.$refs.canvas.height=this.edge-100,this.ctx=this.$refs.canvas.getContext("2d"),this.updateSquareColors()},initWheel:function(){this.$refs.canvas.width=this.diameter,this.$refs.canvas.height=this.diameter,this.ctx=this.$refs.canvas.getContext("2d"),this.circle={path:new Path2D,xCords:this.diameter/2,yCords:this.diameter/2,radius:this.diameter/2},this.circle.path.moveTo(this.circle.xCords,this.circle.yCords),this.circle.path.arc(this.circle.xCords,this.circle.yCords,this.circle.radius,0,360),this.circle.path.closePath(),this.updateWheelColors()},handleValue:function(t,e){var i=this.pickerRect,r=i.width,n=i.height;if(this.currentColor=$(t),this.preventEcho=!0,"wheel"===this.mode){var o=(100-this.currentColor.lum)*(this.diameter/200),a=this.diameter/2,l=function(t,e){return{x:t*Math.cos(e*Math.PI*2),y:t*Math.sin(e*Math.PI*2)}}(o,this.currentColor.hue/360);this.cursor={x:l.x+a,y:l.y+a},this.currentSat=this.currentColor.sat}if("square"===this.mode){var s=this.currentColor.sat/100*r,d=(100-this.currentColor.lum)/100*n;this.cursor={x:s,y:d},this.currentHue=this.currentColor.hue}},updateCursorPosition:function(t){var e=t.x,i=t.y,r=this.pickerRect,n=r.left,o=r.top,a=r.width,l=r.height,s={x:Math.min(Math.max(e-n,0),a),y:Math.min(Math.max(i-o,0),l)};("wheel"!==this.mode||this.ctx.isPointInPath(this.circle.path,s.x,s.y))&&(this.cursor=s,this.updateColor())},updateColor:function(t){this.preventEcho?this.preventEcho=!1:(this.currentColor=this.getCanvasColor(),this.preventUpdating=!0,this.$emit("change",this.currentColor),this.$emit("input",this.currentColor))},updateWheelColors:function(){if(this.circle){var t=this.pickerRect,e=t.width,i=t.height,r=this.circle.xCords,n=this.circle.yCords,o=this.circle.radius,a=this.satSlider?this.currentSat:100;this.ctx.clearRect(0,0,e,i);for(var l=0;l<360;l+=1){var s=this.ctx.createRadialGradient(r,n,0,r,n,o),d=(l-2)*Math.PI/180,c=(l+2)*Math.PI/180;this.ctx.beginPath(),this.ctx.moveTo(r,n),this.ctx.arc(r,n,o,d,c),this.ctx.closePath(),s.addColorStop(0,"hsl("+l+", "+a+"%, 100%)"),s.addColorStop(.5,"hsl("+l+", "+a+"%, 50%)"),s.addColorStop(1,"hsl("+l+", "+a+"%, 0%)"),this.ctx.fillStyle=s,this.ctx.fill()}}},updateSquareColors:function(){var t=this.pickerRect,e=t.width,i=t.height;this.ctx.clearRect(0,0,e,i),this.ctx.fillStyle="hsl("+this.currentHue+", 100%, 50%)",this.ctx.fillRect(0,0,e,i);var r=this.ctx.createLinearGradient(0,0,e,0);r.addColorStop(0,"hsl(0, 0%, 50%)"),r.addColorStop(1,"hsla(0, 0%, 50%, 0)"),this.ctx.fillStyle=r,this.ctx.fillRect(0,0,e,i);var n=this.ctx.createLinearGradient(0,0,0,i);n.addColorStop(0,"hsl(0, 0%, 100%)"),n.addColorStop(.5,"hsla(0, 0%, 100%, 0)"),n.addColorStop(.5,"hsla(0, 0%, 0%, 0)"),n.addColorStop(1,"hsl(0, 0%, 0%) "),this.ctx.fillStyle=n,this.ctx.fillRect(0,0,e,i)},getCanvasColor:function(){var t=this.cursor,e=t.x,i=t.y,r=0,n=0,o=0;if("wheel"===this.mode){var a=this.diameter/2,l=function(t,e){return{r:Math.sqrt(t*t+e*e),theta:180*Math.atan2(e,t)/Math.PI}}(e-a,-1*(i-a)),s=l.r,d=l.theta;n=100*(a-s)/a,o=~Math.sign(d)?360-d:-d,r=this.currentSat}if("square"===this.mode){var c=this.pickerRect;r=100*e/c.width,n=100-100*i/c.height,o=this.currentHue}return new _.HslColor({alpha:this.alpha,hue:Math.round(o),sat:Math.round(r),lum:Math.round(n)})},handleSelect:function(t){var e=this;t.preventDefault(),this.pickerRect=this.$refs.canvas.getBoundingClientRect(),this.updateCursorPosition(A(t));var i=function(t){window.requestAnimationFrame((function(){e.updateCursorPosition(A(t))}))},r=function(){document.removeEventListener("mousemove",i),document.removeEventListener("touchmove",i),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r)};document.addEventListener("mousemove",i),document.addEventListener("touchmove",i),document.addEventListener("mouseup",r),document.addEventListener("touchend",r)}},mounted:function(){var t=this;this.pickerRect=this.$refs.canvas.getBoundingClientRect(),"wheel"===this.mode&&this.initWheel(),"square"===this.mode&&this.initSquare(),this.$nextTick((function(){t.handleValue(t.value)}))}},Y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"picker",staticClass:"verte-picker",class:"verte-picker--"+t.mode},[i("div",{ref:"origin",staticClass:"verte-picker__origin"},[i("canvas",{ref:"canvas",staticClass:"verte-picker__canvas",on:{mousedown:t.handleSelect,touchstart:t.handleSelect}}),i("div",{ref:"cursor",staticClass:"verte-picker__cursor",style:"transform: translate3d("+t.cursor.x+"px, "+t.cursor.y+"px, 0)"})]),"square"===t.mode?i("slider",{staticClass:"verte-picker__slider",attrs:{gradient:["#f00","#ff0","#0f0","#0ff","#00f","#f0f","#f00"],editable:!1,max:360},model:{value:t.currentHue,callback:function(e){t.currentHue=e},expression:"currentHue"}}):t._e(),"wheel"===t.mode?i("slider",{staticClass:"verte-picker__slider",attrs:{gradient:["hsl("+t.currentColor.hue+",0%,"+t.currentColor.lum+"%)","hsl("+t.currentColor.hue+",100%,"+t.currentColor.lum+"%)"],editable:!1,max:100},model:{value:t.currentSat,callback:function(e){t.currentSat=e},expression:"currentSat"}}):t._e()],1)};Y._withStripped=!0;var J,Z=function(t,e,i,r,n,o,a,l){var s=("function"==typeof i?i.options:i)||{};return s.__file="/mnt/c/Users/Abdelrahman/Projects/verte/src/components/Picker.vue",s.render||(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0,n&&(s.functional=!0)),s._scopeId=r,s}({render:Y,staticRenderFns:[]},0,X,void 0,!1);function K(t,e){if(J)return J;var i=(e=e||{}).recentColors,r=e.onRecentColorsChange;return J=new t({data:function(){return{recentColors:i||H(6,P)}},methods:{addRecentColor:function(t){this.recentColors.includes(t)||(this.recentColors.length>=6&&this.recentColors.pop(),this.recentColors.unshift(t),r&&r(this.recentColors))}}})}var Q={name:"Verte",components:{Picker:Z,Slider:G},props:{pickerEdge:Number,picker:{type:String,default:"square",validator:O("picker",["wheel","square"])},value:{type:String,default:"#000"},model:{type:String,default:"hsl",validator:O("model",["rgb","hex","hsl"])},display:{type:String,default:"picker",validator:O("display",["picker","widget"])},menuPosition:{type:String,default:"bottom",validator:O("menuPosition",["top","bottom","left","right","center"])},showHistory:{type:Boolean,default:!0},colorHistory:{type:Array,default:null},enableAlpha:{type:Boolean,default:!0},rgbSliders:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0}},data:function(){return{isMenuActive:!0,isLoading:!0,rgb:R("#000"),hex:z("#000"),hsl:$("#000"),delta:{x:0,y:0},currentModel:"",internalColorHistory:[]}},computed:{$_verteStore:function(){return K()},historySource:function(){return this.colorHistory?this.internalColorHistory:this.$_verteStore.recentColors},currentColor:{get:function(){return this[this.model]||"production"===process.env.NODE_ENV?this[this.model].toString():(B('You are using a non-supported color model: "'+this.model+'", the supported models are: "rgb", "hsl" and "hex".'),"rgb(0, 0, 0)")},set:function(t){this.selectColor(t)}},alpha:{get:function(){return this[this.model]?isNaN(this[this.model].alpha)?1:this[this.model].alpha:1},set:function(t){this[this.model].alpha=t,this.selectColor(this[this.model])}},menuOnly:function(){return"widget"===this.display}},watch:{value:function(t,e){t!==e&&t!==this.currentColor&&this.selectColor(t)},rgb:{handler:function(t){this.hex=z(t.toString()),this.$emit("input",this.currentColor)},deep:!0},colorHistory:function(t){this.internalColorHistory!==t&&(this.internalColorHistory=[].concat(t))}},beforeCreate:function(){K(this.$options._base)},install:function(t,e){K(t,e),t.component("Verte",this)},created:function(){this.colorHistory&&(this.internalColorHistory=[].concat(this.colorHistory)),this.selectColor(this.value||"#000",!0),this.currentModel=this.model},mounted:function(){var t=this;this.$nextTick((function(){t.isLoading=!1,t.menuOnly||(t.isMenuActive=!1)}))},methods:{selectColor:function(t,e){void 0===e&&(e=!1),function(t){var e=d(t);return"rgb"===e?!x(t).invalid:"hex"===e?!y(t).invalid:"hsl"===e&&!C(t).invalid}(t)&&(this.rgb=R(t),this.hex=z(t),this.hsl=$(t),e||this.$emit("input",this.currentColor))},switchModel:function(){var t=["hex","rgb","hsl"],e=t.indexOf(this.currentModel);this.currentModel=t[e+1]||t[0]},handleMenuDrag:function(t){var e=this;if(2!==t.button){t.preventDefault();var i=Object.assign({},this.delta),r=A(t),n=function(t){window.requestAnimationFrame((function(){var n=A(t);e.delta.x=i.x+n.x-r.x,e.delta.y=i.y+n.y-r.y}))},o=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",n),document.removeEventListener("touchup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o),document.addEventListener("touchmove",n),document.addEventListener("touchup",o)}},submit:function(){this.$emit("beforeSubmit",this.currentColor),this.addColorToHistory(this.currentColor),this.$emit("input",this.currentColor),this.$emit("submit",this.currentColor)},addColorToHistory:function(t){if(this.colorHistory)return this.internalColorHistory.length>=6&&this.internalColorHistory.pop(),this.internalColorHistory.unshift(t),void this.$emit("update:colorHistory",this.internalColorHistory);this.$_verteStore.addRecentColor(this.currentColor)},inputChanged:function(t,e){var i=t.target;if("hex"!==this.currentModel){var r=Math.min(Math.max(i.value,i.min),i.max);this[this.currentModel][e]=r,this.selectColor(this[this.currentModel])}else this.selectColor(i.value)},toggleMenu:function(){this.isMenuActive?this.closeMenu():this.openMenu()},closeMenu:function(){this.isMenuActive=!1,document.removeEventListener("mousedown",this.closeCallback),this.$emit("close",this.currentColor)},openMenu:function(){var t=this;this.isMenuActive=!0,this.closeCallback=function(e){j(e.target,t.$refs.menu)||j(e.target,t.$refs.guide)||t.closeMenu()},document.addEventListener("mousedown",this.closeCallback)}}},tt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"verte",class:{"verte--loading":t.isLoading}},[t.menuOnly?t._e():i("button",{ref:"guide",staticClass:"verte__guide",style:"color: "+t.currentColor+"; fill: "+t.currentColor+";",attrs:{type:"button"},on:{click:t.toggleMenu}},[t._t("default",[i("svg",{staticClass:"verte__icon",attrs:{viewBox:"0 0 24 24"}},[i("pattern",{attrs:{id:"checkerboard",width:"6",height:"6",patternUnits:"userSpaceOnUse",fill:"FFF"}},[i("rect",{attrs:{fill:"#7080707f",x:"0",width:"3",height:"3",y:"0"}}),i("rect",{attrs:{fill:"#7080707f",x:"3",width:"3",height:"3",y:"3"}})]),i("circle",{attrs:{cx:"12",cy:"12",r:"12",fill:"url(#checkerboard)"}}),i("circle",{attrs:{cx:"12",cy:"12",r:"12"}})])])],2),i("div",{staticClass:"verte__menu-origin",class:["verte__menu-origin--"+t.menuPosition,{"verte__menu-origin--static":t.menuOnly,"verte__menu-origin--active":t.isMenuActive}]},[i("div",{ref:"menu",staticClass:"verte__menu",style:"transform: translate("+t.delta.x+"px, "+t.delta.y+"px)",attrs:{tabindex:"-1"}},[t.menuOnly?t._e():i("button",{staticClass:"verte__close",attrs:{type:"button"},on:{click:t.closeMenu}},[i("svg",{staticClass:"verte__icon verte__icon--small",attrs:{viewBox:"0 0 24 24"}},[i("title",[t._v("Close Icon")]),i("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}})])]),t.draggable&&!t.menuOnly?i("div",{staticClass:"verte__draggable",on:{mousedown:t.handleMenuDrag,touchstart:t.handleMenuDrag}}):t._e(),i("Picker",{attrs:{mode:t.picker,alpha:t.alpha},props:{edge:t.pickerEdge},model:{value:t.currentColor,callback:function(e){t.currentColor=e},expression:"currentColor"}}),i("div",{staticClass:"verte__controller"},[t.enableAlpha?i("Slider",{attrs:{gradient:["rgba("+t.rgb.red+", "+t.rgb.green+", "+t.rgb.blue+", 0)","rgba("+t.rgb.red+", "+t.rgb.green+", "+t.rgb.blue+", 1)"],min:0,max:1,step:.01,editable:!1},model:{value:t.alpha,callback:function(e){t.alpha=e},expression:"alpha"}}):t._e(),t.rgbSliders?[i("Slider",{attrs:{gradient:["rgb(0,"+t.rgb.green+","+t.rgb.blue+")","rgb(255,"+t.rgb.green+","+t.rgb.blue+")"]},model:{value:t.rgb.red,callback:function(e){t.$set(t.rgb,"red",e)},expression:"rgb.red"}}),i("Slider",{attrs:{gradient:["rgb("+t.rgb.red+",0,"+t.rgb.blue+")","rgb("+t.rgb.red+",255,"+t.rgb.blue+")"]},model:{value:t.rgb.green,callback:function(e){t.$set(t.rgb,"green",e)},expression:"rgb.green"}}),i("Slider",{attrs:{gradient:["rgb("+t.rgb.red+","+t.rgb.green+",0)","rgb("+t.rgb.red+","+t.rgb.green+",255)"]},model:{value:t.rgb.blue,callback:function(e){t.$set(t.rgb,"blue",e)},expression:"rgb.blue"}})]:t._e(),i("div",{staticClass:"verte__inputs"},[i("button",{staticClass:"verte__model",attrs:{type:"button"},on:{click:t.switchModel}},[t._v(t._s(t.currentModel))]),"hsl"===t.currentModel?[i("input",{staticClass:"verte__input",attrs:{type:"number",max:"360",min:"0"},domProps:{value:t.hsl.hue},on:{change:function(e){t.inputChanged(e,"hue")}}}),i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"100"},domProps:{value:t.hsl.sat},on:{change:function(e){t.inputChanged(e,"sat")}}}),i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"100"},domProps:{value:t.hsl.lum},on:{change:function(e){t.inputChanged(e,"lum")}}})]:t._e(),"rgb"===t.currentModel?[i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"255"},domProps:{value:t.rgb.red},on:{change:function(e){t.inputChanged(e,"red")}}}),i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"255"},domProps:{value:t.rgb.green},on:{change:function(e){t.inputChanged(e,"green")}}}),i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"255"},domProps:{value:t.rgb.blue},on:{change:function(e){t.inputChanged(e,"blue")}}})]:t._e(),"hex"===t.currentModel?[i("input",{staticClass:"verte__input",attrs:{type:"text"},domProps:{value:t.hex},on:{change:function(e){t.inputChanged(e,"hex")}}})]:t._e(),i("button",{staticClass:"verte__submit",attrs:{type:"button"},on:{click:t.submit}},[i("title",[t._v("Submit Icon")]),i("svg",{staticClass:"verte__icon",attrs:{viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])],2),t.showHistory?i("div",{ref:"recent",staticClass:"verte__recent"},t._l(t.historySource,(function(e){return i("a",{staticClass:"verte__recent-color",style:"color: "+e,attrs:{role:"button",href:"#"},on:{click:function(i){i.preventDefault(),t.selectColor(e)}}})}))):t._e()],2)],1)])])};tt._withStripped=!0;var et=function(t,e,i,r,n,o,a,l){var s=("function"==typeof i?i.options:i)||{};return s.__file="/mnt/c/Users/Abdelrahman/Projects/verte/src/components/Verte.vue",s.render||(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0,n&&(s.functional=!0)),s._scopeId=r,s}({render:tt,staticRenderFns:[]},0,Q,void 0,!1),it={name:"BIMDataButton",props:{width:{type:[Number,String],default:"150px"},height:{type:[Number,String],default:"32px"}}};const rt="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());let nt;const ot={};var at={name:"colorPickerModal",components:{colorPicker:et,BIMDataButton:function(t,e,i,r,n,o,a,l,s,d){"boolean"!=typeof a&&(s=l,l=a,a=!1);const c="function"==typeof i?i.options:i;let u;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),r&&(c._scopeId=r),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):e&&(u=a?function(t){e.call(this,d(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),u)if(c.functional){const t=c.render;c.render=function(e,i){return u.call(i),t(e,i)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,u):[u]}return i}({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"bimdata-btn",style:{"min-width":t.width,height:t.height},on:{click:function(e){return t.$emit("click",e)}}},[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&(t("data-v-96b9e622_0",{source:".bimdata-h1[data-v-96b9e622],.bimdata-h2[data-v-96b9e622],.bimdata-h3[data-v-96b9e622],.bimdata-h4[data-v-96b9e622],.bimdata-h5[data-v-96b9e622],.bimdata-h6[data-v-96b9e622],.bimdata-text[data-v-96b9e622]{margin:.5rem 0}.bimdata-h1[data-v-96b9e622]{font-size:calculateEm(34px)}.bimdata-h2[data-v-96b9e622]{font-size:calculateEm(30px);font-family:robotobold,sans-serif}.bimdata-h3[data-v-96b9e622]{font-size:calculateEm(26px)}.bimdata-h4[data-v-96b9e622]{font-size:calculateEm(24px)}.bimdata-h5[data-v-96b9e622]{font-size:calculateEm(20px)}.bimdata-h6[data-v-96b9e622]{font-size:calculateEm(16px)}.bimdata-text[data-v-96b9e622]{font-size:calculateEm(14px)}.primary-font[data-v-96b9e622]{font-family:robotoregular}.primary-font-medium[data-v-96b9e622]{font-family:robotomedium}.primary-font-bold[data-v-96b9e622]{font-family:robotobold}",map:void 0,media:void 0}),t("data-v-96b9e622_1",{source:".bimdata-btn{padding:0;display:flex;align-items:center;background-color:transparent;border:none;color:#2f374a;cursor:pointer;font-size:.8571428571em;transition:all .1s ease}.bimdata-btn:hover{transition:all .25s ease-in}.bimdata-btn:focus{outline:0}.bimdata-btn svg{margin:0 calc(12px / 2)}.bimdata-btn svg:only-child{margin:0}.bimdata-btn__radius{border-radius:3px}.bimdata-btn__square{border-radius:0}.bimdata-btn__rounded{padding:0;border-radius:50%}.bimdata-btn__fill{justify-content:center}.bimdata-btn__fill--default{box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.bimdata-btn__fill--default:hover{background-color:#f7f7f7}.bimdata-btn__fill--primary{background-color:#2f374a;color:#fff}.bimdata-btn__fill--primary:hover{background-color:#3b455d}.bimdata-btn__fill--secondary{background-color:#f9c72c;color:#2f374a}.bimdata-btn__fill--secondary:hover{background-color:#fad45e}.bimdata-btn__fill--grey{background-color:#7a7a7a;color:#fff}.bimdata-btn__fill--grey:hover{background-color:#939393}.bimdata-btn__fill--red{background-color:#ff3d1e;color:#fff}.bimdata-btn__fill--red:hover{background-color:#ff573d}.bimdata-btn__fill--btn-icon svg{margin:0 6px}.bimdata-btn__fill:disabled{background-color:#bdbdbd;color:#fff}.bimdata-btn__outline{justify-content:center;border:1px solid}.bimdata-btn__outline--default{border-color:#d8d8d8;color:#2f374a}.bimdata-btn__outline--default:hover{background-color:#f7f7f7}.bimdata-btn__outline--primary{border-color:#2f374a;color:#2f374a}.bimdata-btn__outline--primary:hover{background-color:#f8f9fa}.bimdata-btn__outline--secondary{border-color:#f9c72c;color:#2f374a}.bimdata-btn__outline--secondary:hover{background-color:#fffcf2}.bimdata-btn__outline--grey{border-color:#7a7a7a;color:#7a7a7a}.bimdata-btn__outline--grey:hover{background-color:#f7f7f7}.bimdata-btn__outline--red{border-color:#ff3d1e;color:#ff3d1e}.bimdata-btn__outline--red:hover{background-color:#ffedea}.bimdata-btn__outline:disabled{border-color:#bdbdbd;color:#bdbdbd}.bimdata-btn__ghost{justify-content:center}.bimdata-btn__ghost svg{display:flex;align-items:center}.bimdata-btn__ghost--default{color:#2f374a}.bimdata-btn__ghost--default:hover{background-color:#f7f7f7}.bimdata-btn__ghost--primary{color:#2f374a}.bimdata-btn__ghost--primary:hover{background-color:#f8f9fa}.bimdata-btn__ghost--secondary{color:#f9c72c}.bimdata-btn__ghost--secondary:hover{background-color:#fffcf2}.bimdata-btn__ghost--grey{color:#7a7a7a}.bimdata-btn__ghost--grey:hover{background-color:#f7f7f7}.bimdata-btn__ghost--red{color:#ff3d1e}.bimdata-btn__ghost--red:hover{background-color:#ffedea}.bimdata-btn__ghost:disabled{color:#bdbdbd;cursor:auto}",map:void 0,media:void 0}))}),it,"data-v-96b9e622",!1,void 0,!1,(function(t){return(t,e)=>function(t,e){const i=rt?e.media||"default":t,r=ot[i]||(ot[i]={ids:new Set,styles:[]});if(!r.ids.has(t)){r.ids.add(t);let i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",e.media&&r.element.setAttribute("media",e.media),void 0===nt&&(nt=document.head||document.getElementsByTagName("head")[0]),nt.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(i),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{const t=r.ids.size-1,e=document.createTextNode(i),n=r.element.childNodes;n[t]&&r.element.removeChild(n[t]),n.length?r.element.insertBefore(e,n[t]):r.element.appendChild(e)}}}(t,e)}),void 0,void 0)},data:()=>({choosedColor:"rgb(0, 0, 0)"}),methods:{cancelColorPicker(){this.$emit("close")},validateColorPicker(){this.$viewer.globalContext.getPlugins("viewer3d").forEach(t=>{document.getElementById(t.engine3dCanvasId).style.setProperty("background-color",this.choosedColor)}),this.$emit("close")}}};function lt(t,e,i,r,n,o,a,l,s,d){"boolean"!=typeof a&&(s=l,l=a,a=!1);const c="function"==typeof i?i.options:i;let u;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),r&&(c._scopeId=r),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):e&&(u=a?function(t){e.call(this,d(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),u)if(c.functional){const t=c.render;c.render=function(e,i){return u.call(i),t(e,i)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,u):[u]}return i}const st="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function dt(t){return(t,e)=>function(t,e){const i=st?e.media||"default":t,r=ut[i]||(ut[i]={ids:new Set,styles:[]});if(!r.ids.has(t)){r.ids.add(t);let i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",e.media&&r.element.setAttribute("media",e.media),void 0===ct&&(ct=document.head||document.getElementsByTagName("head")[0]),ct.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(i),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{const t=r.ids.size-1,e=document.createTextNode(i),n=r.element.childNodes;n[t]&&r.element.removeChild(n[t]),n.length?r.element.insertBefore(e,n[t]):r.element.appendChild(e)}}}(t,e)}let ct;const ut={};const ht=lt({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"color-picker-modal p-12"},[i("colorPicker",{attrs:{display:"widget",model:"rgb",pickerEdge:155,enableAlpha:!1},model:{value:t.choosedColor,callback:function(e){t.choosedColor=e},expression:"choosedColor"}}),t._v(" "),i("div",{staticClass:"dflex"},[i("BIMDataButton",{staticClass:"bimdata-btn__fill bimdata-btn__fill--primary bimdata-btn__radius",on:{click:t.validateColorPicker}},[t._v(t._s(t.$t("BackgroundColorPlugin.apply")))]),t._v(" "),i("BIMDataButton",{staticClass:"bimdata-btn__ghost bimdata-btn__radius",on:{click:t.cancelColorPicker}},[t._v(t._s(t.$t("BackgroundColorPlugin.close")))])],1)],1)},staticRenderFns:[]},(function(t){t&&t("data-v-634d7898_0",{source:".bg-primary{background-color:#2f374a}.bg-secondary{background-color:#f9c72c}.bg-tertiary{background-color:#d8d8d8}.bg-tertiary-lightest{background-color:#f7f7f7}.bg-tertiary-dark{background-color:#7a7a7a}.bg-tertiary-darkest{background-color:#606060}.bg-white{background-color:#fff}.bg-black{background-color:#000}.bg-neutral{background-color:#205dbd}.bg-success{background-color:#00af50}.bg-disabled{background-color:#bdbdbd}.bg-warning{background-color:#ff9100}.bg-high{background-color:#ff3d1e}.color-primary{color:#2f374a}.color-secondary{color:#f9c72c}.color-tertiary{color:#d8d8d8}.color-tertiary-lightest{color:#f7f7f7}.color-tertiary-dark{color:#7a7a7a}.color-tertiary-darkest{color:#606060}.color-white{color:#fff}.color-black{color:#000}.color-neutral{color:#205dbd}.color-success{color:#00af50}.color-disabled{color:#bdbdbd}.color-warning{color:#ff9100}.color-high{color:#ff3d1e}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.content-start{align-content:flex-start}.content-center{align-content:center}.content-end{align-content:flex-end}.content-between{align-content:between}.content-around{align-content:flex-around}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.bimdata-list{margin:0;padding:0}.bimdata-list li{list-style-type:none}.m-t-6{margin-top:6px}.p-t-6{padding-top:6px}.m-b-6{margin-bottom:6px}.p-b-6{padding-bottom:6px}.m-l-6{margin-left:6px}.p-l-6{padding-left:6px}.m-r-6{margin-right:6px}.p-r-6{padding-right:6px}.m-6{margin:6px}.p-6{padding:6px}.m-x-6{margin-right:6px;margin-left:6px}.p-x-6{padding-right:6px;padding-left:6px}.m-y-6{margin-top:6px;margin-bottom:6px}.p-y-6{padding-top:6px;padding-bottom:6px}.m-t-12{margin-top:12px}.p-t-12{padding-top:12px}.m-b-12{margin-bottom:12px}.p-b-12{padding-bottom:12px}.m-l-12{margin-left:12px}.p-l-12{padding-left:12px}.m-r-12{margin-right:12px}.p-r-12{padding-right:12px}.m-12{margin:12px}.p-12{padding:12px}.m-x-12{margin-right:12px;margin-left:12px}.p-x-12{padding-right:12px;padding-left:12px}.m-y-12{margin-top:12px;margin-bottom:12px}.p-y-12{padding-top:12px;padding-bottom:12px}.m-t-18{margin-top:18px}.p-t-18{padding-top:18px}.m-b-18{margin-bottom:18px}.p-b-18{padding-bottom:18px}.m-l-18{margin-left:18px}.p-l-18{padding-left:18px}.m-r-18{margin-right:18px}.p-r-18{padding-right:18px}.m-18{margin:18px}.p-18{padding:18px}.m-x-18{margin-right:18px;margin-left:18px}.p-x-18{padding-right:18px;padding-left:18px}.m-y-18{margin-top:18px;margin-bottom:18px}.p-y-18{padding-top:18px;padding-bottom:18px}.m-t-24{margin-top:24px}.p-t-24{padding-top:24px}.m-b-24{margin-bottom:24px}.p-b-24{padding-bottom:24px}.m-l-24{margin-left:24px}.p-l-24{padding-left:24px}.m-r-24{margin-right:24px}.p-r-24{padding-right:24px}.m-24{margin:24px}.p-24{padding:24px}.m-x-24{margin-right:24px;margin-left:24px}.p-x-24{padding-right:24px;padding-left:24px}.m-y-24{margin-top:24px;margin-bottom:24px}.p-y-24{padding-top:24px;padding-bottom:24px}.bimdata-h1,.bimdata-h2,.bimdata-h3,.bimdata-h4,.bimdata-h5,.bimdata-h6,.bimdata-text{margin:.5rem 0}.bimdata-h1{font-size:2.4285714286em}.bimdata-h2{font-size:2.1428571429em;font-family:robotobold,sans-serif}.bimdata-h3{font-size:1.8571428571em}.bimdata-h4{font-size:1.7142857143em}.bimdata-h5{font-size:1.4285714286em}.bimdata-h6{font-size:1.1428571429em}.bimdata-text{font-size:1em}.primary-font{font-family:robotoregular}.primary-font-medium{font-family:robotomedium}.primary-font-bold{font-family:robotobold}::after,::before{box-sizing:border-box}.grid{margin-left:auto;margin-right:auto;width:88.5714285714%;max-width:1400px;display:flex;flex-wrap:wrap;box-sizing:border-box}@media screen and (max-width:1020px){.grid{width:88.2352941176%}}@media screen and (max-width:620px){.grid{width:89.6774193548%}}.grid-0{margin-left:auto;margin-right:auto;width:100%;max-width:1400px;display:flex;flex-wrap:wrap;box-sizing:border-box}.col-desk-0{padding-left:1.6129032258%;padding-right:1.6129032258%;width:0%;box-sizing:border-box}.col-desk-shift-0{margin-left:0}.col-desk-1{padding-left:1.6129032258%;padding-right:1.6129032258%;width:8.3333333333%;box-sizing:border-box}.col-desk-shift-1{margin-left:8.3333333333%}.col-desk-2{padding-left:1.6129032258%;padding-right:1.6129032258%;width:16.6666666667%;box-sizing:border-box}.col-desk-shift-2{margin-left:16.6666666667%}.col-desk-3{padding-left:1.6129032258%;padding-right:1.6129032258%;width:25%;box-sizing:border-box}.col-desk-shift-3{margin-left:25%}.col-desk-4{padding-left:1.6129032258%;padding-right:1.6129032258%;width:33.3333333333%;box-sizing:border-box}.col-desk-shift-4{margin-left:33.3333333333%}.col-desk-5{padding-left:1.6129032258%;padding-right:1.6129032258%;width:41.6666666667%;box-sizing:border-box}.col-desk-shift-5{margin-left:41.6666666667%}.col-desk-6{padding-left:1.6129032258%;padding-right:1.6129032258%;width:50%;box-sizing:border-box}.col-desk-shift-6{margin-left:50%}.col-desk-7{padding-left:1.6129032258%;padding-right:1.6129032258%;width:58.3333333333%;box-sizing:border-box}.col-desk-shift-7{margin-left:58.3333333333%}.col-desk-8{padding-left:1.6129032258%;padding-right:1.6129032258%;width:66.6666666667%;box-sizing:border-box}.col-desk-shift-8{margin-left:66.6666666667%}.col-desk-9{padding-left:1.6129032258%;padding-right:1.6129032258%;width:75%;box-sizing:border-box}.col-desk-shift-9{margin-left:75%}.col-desk-10{padding-left:1.6129032258%;padding-right:1.6129032258%;width:83.3333333333%;box-sizing:border-box}.col-desk-shift-10{margin-left:83.3333333333%}.col-desk-11{padding-left:1.6129032258%;padding-right:1.6129032258%;width:91.6666666667%;box-sizing:border-box}.col-desk-shift-11{margin-left:91.6666666667%}.col-desk-12{padding-left:1.6129032258%;padding-right:1.6129032258%;width:100%;box-sizing:border-box}.col-desk-shift-12{margin-left:100%}@media screen and (max-width:1020px){.col-tab-0{padding-left:1.6666666667%;padding-right:1.6666666667%;width:0%;box-sizing:border-box}.col-tab-shift-0{margin-left:0}.col-tab-1{padding-left:1.6666666667%;padding-right:1.6666666667%;width:8.3333333333%;box-sizing:border-box}.col-tab-shift-1{margin-left:8.3333333333%}.col-tab-2{padding-left:1.6666666667%;padding-right:1.6666666667%;width:16.6666666667%;box-sizing:border-box}.col-tab-shift-2{margin-left:16.6666666667%}.col-tab-3{padding-left:1.6666666667%;padding-right:1.6666666667%;width:25%;box-sizing:border-box}.col-tab-shift-3{margin-left:25%}.col-tab-4{padding-left:1.6666666667%;padding-right:1.6666666667%;width:33.3333333333%;box-sizing:border-box}.col-tab-shift-4{margin-left:33.3333333333%}.col-tab-5{padding-left:1.6666666667%;padding-right:1.6666666667%;width:41.6666666667%;box-sizing:border-box}.col-tab-shift-5{margin-left:41.6666666667%}.col-tab-6{padding-left:1.6666666667%;padding-right:1.6666666667%;width:50%;box-sizing:border-box}.col-tab-shift-6{margin-left:50%}.col-tab-7{padding-left:1.6666666667%;padding-right:1.6666666667%;width:58.3333333333%;box-sizing:border-box}.col-tab-shift-7{margin-left:58.3333333333%}.col-tab-8{padding-left:1.6666666667%;padding-right:1.6666666667%;width:66.6666666667%;box-sizing:border-box}.col-tab-shift-8{margin-left:66.6666666667%}.col-tab-9{padding-left:1.6666666667%;padding-right:1.6666666667%;width:75%;box-sizing:border-box}.col-tab-shift-9{margin-left:75%}.col-tab-10{padding-left:1.6666666667%;padding-right:1.6666666667%;width:83.3333333333%;box-sizing:border-box}.col-tab-shift-10{margin-left:83.3333333333%}.col-tab-11{padding-left:1.6666666667%;padding-right:1.6666666667%;width:91.6666666667%;box-sizing:border-box}.col-tab-shift-11{margin-left:91.6666666667%}.col-tab-12{padding-left:1.6666666667%;padding-right:1.6666666667%;width:100%;box-sizing:border-box}.col-tab-shift-12{margin-left:100%}}@media screen and (max-width:620px){.col-mob-0{padding-left:1.7985611511%;padding-right:1.7985611511%;width:0%;box-sizing:border-box}.col-mob-shift-0{margin-left:0}.col-mob-1{padding-left:1.7985611511%;padding-right:1.7985611511%;width:25%;box-sizing:border-box}.col-mob-shift-1{margin-left:25%}.col-mob-2{padding-left:1.7985611511%;padding-right:1.7985611511%;width:50%;box-sizing:border-box}.col-mob-shift-2{margin-left:50%}.col-mob-3{padding-left:1.7985611511%;padding-right:1.7985611511%;width:75%;box-sizing:border-box}.col-mob-shift-3{margin-left:75%}.col-mob-4{padding-left:1.7985611511%;padding-right:1.7985611511%;width:100%;box-sizing:border-box}.col-mob-shift-4{margin-left:100%}}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background-color:rgba(122,122,122,.3)}::-webkit-scrollbar-thumb{background:#2f374a;height:48px}::-webkit-scrollbar-thumb:hover{background:#7a7a7a}.color-picker-modal{width:500px;height:450px;padding:20px}.color-picker-modal .dflex{display:flex;align-items:center;justify-content:center}.color-picker-modal .verte{height:375px}.color-picker-modal .verte__menu-origin{width:100%}.color-picker-modal .verte__menu-origin .verte__menu{width:100%;height:80%;box-shadow:none}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker{margin:0}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker__origin{width:100%;height:250px}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker__origin .verte-picker__canvas{width:100%;height:100%;display:block}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker__origin .verte-picker__cursor{width:17px;height:17px;border:2px solid #fff;box-shadow:none}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker__slider{margin:12px 0}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller{padding:0}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__inputs .verte__model{font-size:11px;font-weight:400}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__inputs .verte__input{font-size:11px;font-weight:400}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__recent{justify-content:space-between}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__recent-color{margin:3px;width:20px;height:20px;border-radius:5px}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__recent-color:first-child{margin-left:0}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__recent-color:last-child{margin-right:0}",map:void 0,media:void 0})}),at,void 0,!1,void 0,!1,dt,void 0,void 0);var pt={name:"BackgroundColorPlugin",startupScript(t){t.contextMenu.registerCommand({get label(){return t.vm.$t("BackgroundColorPlugin.title")},execute:()=>t.globalContext.modals.pushModal(ht)})},i18n:{en:{title:"Change background color",apply:"Apply",close:"Close"},fr:{title:"Changer la couleur de fond",apply:"Appliquer",close:"Fermer"}}};export default pt;
function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),t}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function l(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t,e,i){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(r){var n=Object.getOwnPropertyDescriptor(r,e);return n.get?n.get.call(i):n.value}},s(t,e,i||t)}function d(e){return"object"===t(e)&&e.model?e.model:("#"!==e.slice(0,1)||4!==e.length&&7!==e.length)&&("#"!==e.slice(0,1)||6!==e.length&&9!==e.length)?"RGBA"===e.slice(0,4).toUpperCase()||"RGB"===e.slice(0,3).toUpperCase()?"rgb":("HSLA"===e.slice(0,4).toUpperCase()||"HSL"===e.slice(0,3).toUpperCase())&&"hsl":"hex"}function c(t){return isNaN(parseInt(t,16))?0:parseInt(t,16)}function u(t,e){return function(i){return i>=t&&i<=e}}function p(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function h(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;return Number((t*(1-i)+e*i).toFixed(2))}function f(t){return!(void 0===t||isNaN(t)||t<0||t>1)}var g=function(){function i(t){var r=this;e(this,i),this.invalid=!this.validate(t),this.invalid||Object.keys(t).forEach((function(e){r[e]=t[e]})),this.init()}return r(i,[{key:"init",value:function(){}},{key:"validate",value:function(e){return!!e&&"object"===t(e)}}]),i}(),m=function(t){function i(){return e(this,i),l(this,o(i).apply(this,arguments))}return n(i,g),r(i,[{key:"validate",value:function(t){if(!s(o(i.prototype),"validate",this).call(this,t))return!1;var e=u(0,255);return e(t.red)&&e(t.green)&&e(t.blue)}},{key:"init",value:function(){this.model="rgb",this.alpha=f(this.alpha)?this.alpha:1}},{key:"toString",value:function(){return this.invalid?"Invalid Color":u(0,.999)(this.alpha)?"rgba(".concat(this.red,",").concat(this.green,",").concat(this.blue,",").concat(this.alpha,")"):"rgb(".concat(this.red,",").concat(this.green,",").concat(this.blue,")")}}]),i}(),b=function(t){function i(){return e(this,i),l(this,o(i).apply(this,arguments))}return n(i,g),r(i,[{key:"validate",value:function(t){if(!s(o(i.prototype),"validate",this).call(this,t))return!1;var e=u(0,100);return u(0,360)(t.hue)&&e(t.lum)&&e(t.sat)}},{key:"init",value:function(){this.model="hsl",this.alpha=f(this.alpha)?this.alpha:1}},{key:"toString",value:function(){return this.invalid?"Invalid Color":u(0,.999)(this.alpha)?"hsla(".concat(this.hue,",").concat(this.sat,"%,").concat(this.lum,"%,").concat(this.alpha,")"):"hsl(".concat(this.hue,",").concat(this.sat,"%,").concat(this.lum,"%)")}}]),i}(),v=function(t){function i(){return e(this,i),l(this,o(i).apply(this,arguments))}return n(i,g),r(i,[{key:"validate",value:function(t){return!!s(o(i.prototype),"validate",this).call(this,t)&&/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test("#".concat(t.red).concat(t.green).concat(t.blue))}},{key:"init",value:function(){this.model="hex",this.alpha=void 0!==this.alpha?this.alpha:"ff"}},{key:"toString",value:function(){return this.invalid?"Invalid Color":u(0,.999)(c(this.alpha)/255)?"#".concat(this.red).concat(this.green).concat(this.blue).concat(this.alpha):"#".concat(this.red).concat(this.green).concat(this.blue)}}]),i}(),_=Object.freeze({Color:g,RgbColor:m,HslColor:b,HexColor:v});function x(e){if("object"===t(e))return e;var i=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,*\s*(\d*(?:\.\d+)*)*\)/i);return!i||i.length<4?new m:new m({red:Number(i[1]),green:Number(i[2]),blue:Number(i[3]),alpha:Number(i[4])})}function y(e){if("object"===t(e))return e;var i=function(t){var e=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])*$/i;return 5!==t.length&&4!==t.length||!e.test(t)||(t=t.replace(e,(function(t,e,i,r,n){return"#".concat(e).concat(e).concat(i).concat(i).concat(r).concat(r).concat(n?"".concat(n).concat(n):"")}))),t}(e),r=i.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})*/i);return!r||r.length<4?new v:new v({hex:i,red:r[1],green:r[2],blue:r[3],alpha:r[4]})}function k(e){if("object"===t(e))return e;var i=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,*\s*(\d*(?:\.\d+)*)*\)/i);return!i||i.length<4?new b:new b({hue:Number(i[1]),sat:Number(i[2]),lum:Number(i[3]),alpha:Number(i[4])})}function C(t){return t=Math.floor(t),isNaN(t)?"00":("0"+t.toString(16)).slice(-2)}function w(t){if(!t)return new v;var e=[C((t=x(t)).red),C(t.green),C(t.blue),t.alpha?C(255*t.alpha):null];return new v({red:e[0],green:e[1],blue:e[2],alpha:e[3]||"ff"})}function S(t){if(!t)return new b;var e=[(t=x(t)).red/255,t.green/255,t.blue/255,t.alpha],i=e[0],r=e[1],n=e[2],o=e[3],a=0,l=0,s=0,d=Math.min(i,r,n),c=Math.max(i,r,n);return s=(d+c)/2,d!==c&&(l=s>.5?(c-d)/(2-c-d):(c-d)/(c+d)),i>=c&&d!==c&&(a=(r-n)/(c-d)*60),r>=c&&d!==c&&(a=60*(2+(n-i)/(c-d))),n>=c&&d!==c&&(a=60*(4+(i-r)/(c-d))),a=a<0?Math.floor(a+360):Math.floor(a),l=Math.floor(100*l),s=Math.floor(100*s),new b({hue:a,sat:l,lum:s,alpha:o})}function M(t){if(!t)return new m;var e=y(t),i=e.red,r=e.green,n=e.blue,o=e.alpha;return new m({red:c(i),green:c(r),blue:c(n),alpha:void 0===o?1:Number((c(o)/255).toFixed(2))})}function R(t){return Math.min(Math.max(parseInt(t),0),255)}function E(t){if(!t)return new m;var e=[(t=k(t)).hue/360,t.sat/100,t.lum/100,t.alpha],i=e[0],r=e[1],n=e[2],o=e[3],a=0,l=0,s=0;if(0===r&&(a=l=s=R(255*n)),0!==r){var d=n>=50?n+r-n*r:n*(1+r),c=2*n-d,u=function(t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?c+6*(d-c)*t:t<.5?d:t<2/3?c+(d-c)*(2/3-t)*6:c};a=R(255*u(i+1/3)),l=R(255*u(i)),s=R(255*u(i-1/3))}return new m({red:a,green:l,blue:s,alpha:o})}function L(e){var i=d(e);return"hex"===i?M(e):"hsl"===i?E(e):"rgb"===i&&"string"==typeof e?x(e):"rgb"===i&&"object"===t(e)?e:new m}function $(e){var i,r=d(e);return"hex"===r?(i=e)?S(M(i)):new b:"rgb"===r?S(e):"hsl"===r&&"string"==typeof e?k(e):"hsl"===r&&"object"===t(e)?e:new b}function P(e){var i,r=d(e);return"rgb"===r?w(e):"hsl"===r?(i=e)?w(E(i)):new v:"hex"===r&&"string"==typeof e?y(e):"hex"===r&&"object"===t(e)?e:new v}function z(){return"rgb(".concat(p(0,255),", ").concat(p(0,255),", ").concat(p(0,255),")")}function N(t,e,i){t=L(t),e=L(e);var r=Math.floor(h(t.red,e.red,i)),n=Math.floor(h(t.green,e.green,i)),o=Math.floor(h(t.blue,e.blue,i)),a=h(t.alpha,e.alpha,i);return new m({red:r,green:n,blue:o,alpha:a})}function H(t,e){for(var i=[],r=0;r<t;r++){var n="function"==typeof e?e():e;i.push(n)}return i}function j(t,e){for(;t!==document&&null!==t;){if(t===e)return!0;t=t.parentNode}return!1}function B(t,e){return t.reduce((function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t}))}function V(t){console.warn("[Verte]: "+t)}function O(t,e){return function(i){var r=-1!==e.indexOf(i);return r||"production"===process.env.NODE_ENV||V('The "'+t+'" property can be only one of: '+e.map((function(t){return"'"+t+"'"})).join(", ")+"."),r}}function A(t){if(t.type.match(/^touch/i)){var e=t.touches[0];return{x:e.clientX,y:e.clientY}}return t.type.match(/^mouse/i)?{x:t.clientX,y:t.clientY}:{x:0,y:0}}var I={name:"VerteSlider",props:{gradient:Array,classes:Array,colorCode:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},reverse:{type:Boolean,default:!1},label:{type:Boolean,default:!1},trackSlide:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:255},step:{type:Number,default:1},value:{type:Number,default:0},handlesValue:{type:Array,default:function(){return[0]}}},data:function(){return{fill:{translate:0,scale:0},multiple:!1,currentValue:0,handles:[],values:[]}},watch:{gradient:function(t){this.initGradient(t),this.reloadHandlesColor()},values:function(){this.multiple=this.values.length>1,this.fill=!this.multiple&&(this.fill||{})},value:function(t,e){t!==e&&t!==this.currentValue&&this.updateValue(this.value,!0)}},methods:{init:function(){var t,e,i,r=this;this.$emitInputEvent=(t=function(){r.$emit("input",r.currentValue)},void 0===e&&(e=!1),function(){var r=arguments,n=function(){i=null,e||t.apply(void 0,r)},o=e&&!i;window.cancelAnimationFrame(i),i=window.requestAnimationFrame(n),o&&t.apply(void 0,arguments)}),this.multiple=this.values.length>1,this.values=this.handlesValue,this.handles=this.handlesValue.map((function(t,e){return{value:t,position:0,color:"#fff"}})),1===this.values.length&&(this.values[0]=Number(this.value)),this.values.sort(),this.initElements(),this.gradient&&this.initGradient(this.gradient),this.initEvents(),this.values.forEach((function(t,e){r.activeHandle=e,r.updateValue(t,!0)}))},initElements:function(){var t;this.wrapper=this.$refs.wrapper,this.track=this.$refs.track,this.fill=this.$refs.fill,this.wrapper.classList.toggle("slider--editable",this.editable),this.wrapper.classList.toggle("slider--reverse",this.reverse),this.classes&&(t=this.wrapper.classList).add.apply(t,this.classes)},initGradient:function(t){t.length>1?this.fill.style.backgroundImage="linear-gradient(90deg, "+t+")":(this.fill.style.backgroundImage="",this.fill.style.backgroundColor=t[0],this.handles.forEach((function(e){e.style.color=t[0]})))},handleResize:function(){this.updateWidth(),this.updateValue(this.currentValue,!0)},initEvents:function(){window.addEventListener("resize",this.handleResize)},select:function(t){if(t.preventDefault(),t.stopPropagation(),2!==t.buttons){this.updateWidth(),this.track.classList.add("slider--dragging"),this.ticking=!1;var e=this.getStepValue(t);if(this.multiple){var i=B(this.values,e);this.activeHandle=this.values.indexOf(i)}this.updateValue(e),this.tempDrag=this.dragging.bind(this),this.tempRelease=this.release.bind(this),document.addEventListener("mousemove",this.tempDrag),document.addEventListener("touchmove",this.tempDrag),document.addEventListener("touchend",this.tempRelease),document.addEventListener("mouseup",this.tempRelease)}},dragging:function(t){var e=this,i=this.getStepValue(t);this.ticking||(window.requestAnimationFrame((function(){e.updateValue(i),e.ticking=!1})),this.ticking=!0)},release:function(){this.track.classList.remove("slider--dragging"),document.removeEventListener("mousemove",this.tempDrag),document.removeEventListener("touchmove",this.tempDrag),document.removeEventListener("mouseup",this.tempRelease),document.removeEventListener("touchend",this.tempRelease)},getStepValue:function(t){var e=A(t).x-this.currentX,i=parseInt(e/this.stepWidth+.5,10)*this.step+this.min;return this.decimalsCount?Number(i.toFixed(this.decimalsCount)):i},updateWidth:function(){var t=this.track.getBoundingClientRect();this.currentX=t.left,this.width=t.width,this.stepWidth=this.width/(this.max-this.min)*this.step},getPositionPercentage:function(t){return((t-this.min)/(this.max-this.min)).toFixed(2)},normalizeValue:function(t){if(isNaN(Number(t)))return this.value;if(this.multiple){var e=this.values[this.activeHandle-1]||this.min,i=this.values[this.activeHandle+1]||this.max;t=Math.min(Math.max(Number(t),e),i)}return Math.min(Math.max(Number(t),this.min),this.max)},addHandle:function(t){var e=B(this.values,t),i=this.values.indexOf(e),r=this.values[i]<=t?i+1:i;this.handles.splice(r,0,{value:t,position:0,color:"#fff"}),this.values.splice(r,0,t),this.activeHandle=r,this.currentValue=null,this.updateValue(t)},removeHandle:function(t){this.handles.splice(t,1),this.values.splice(t,1),this.activeHandle=0===t?t+1:t-1},getHandleColor:function(t){for(var e=this.gradient.length-1,i=t,r=1;r<=e;r++)if(i>=(r-1)/e&&i<=r/e){var n=(i-(r-1)/e)/(1/e);return N(this.gradient[r-1],this.gradient[r],n)}return"rgb(0, 0, 0)"},reloadHandlesColor:function(){var t=this;this.handles.forEach((function(e,i){var r=t.getPositionPercentage(e.value),n=t.getHandleColor(r);t.handles[i].color=n.toString()}))},updateValue:function(t,e){var i=this;void 0===e&&(e=!1),window.requestAnimationFrame((function(){var r=i.normalizeValue(t),n=i.getPositionPercentage(r);if(i.fill&&(i.fill.translate=n*i.width,i.fill.scale=1-n),i.values[i.activeHandle]=r,i.handles[i.activeHandle].value=r,i.handles[i.activeHandle].position=n*i.width,i.currentValue=r,i.$refs.input.value=i.currentValue,i.gradient){var o=i.getHandleColor(n);i.handles[i.activeHandle].color=o.toString(),i.colorCode&&(i.currentValue=o)}e||i.$emitInputEvent()}))}},created:function(){var t=this.step.toString().split(".")[1];this.currentValue=this.value,this.decimalsCount=t?t.length:0},mounted:function(){var t=this;this.init(),this.$nextTick((function(){t.updateWidth(),t.updateValue(void 0,!0)}))},destroyed:function(){window.removeEventListener("resize",this.handleResize)}},F=I,T=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"wrapper",staticClass:"slider"},[i("div",t._g({ref:"track",staticClass:"slider__track"},t.trackSlide?{mousedown:t.select,touchstart:t.select}:{}),[i("div",{ref:"fill",staticClass:"slider__fill"}),t._l(t.handles,(function(e){return i("div",{staticClass:"slider__handle",style:"transform: translate("+e.position+"px, 0); background-color: "+e.color+";",on:{mousedown:t.select,touchstart:t.select}},[t.label?i("div",{staticClass:"slider__label"},[t._v(t._s(e.value))]):t._e()])}))],2),i("input",{directives:[{name:"show",rawName:"v-show",value:t.editable,expression:"editable"}],ref:"input",staticClass:"slider__input",attrs:{type:t.colorCode?"text":"number"},on:{change:function(e){t.updateValue(e.target.value)}}})])};T._withStripped=!0;var q,U,D,W,G,X=(q={render:T,staticRenderFns:[]},D=void 0,W=!1,(G=("function"==typeof(U=F)?U.options:U)||{}).__file="/mnt/c/Users/Abdelrahman/Projects/verte/src/components/Slider.vue",G.render||(G.render=q.render,G.staticRenderFns=q.staticRenderFns,G._compiled=!0,W&&(G.functional=!0)),G._scopeId=D,G),Y={name:"VertePicker",components:{Slider:X},props:{mode:{type:String,default:"square"},edge:{type:Number,default:250},diameter:{type:Number,default:180},satSlider:{type:Boolean,default:!0},alpha:{type:Number,default:1},value:{type:String,default:"#fff"}},data:function(){return{currentHue:0,currentSat:0,currentColor:"",cursor:{},preventUpdating:!1,preventEcho:!1}},watch:{value:function(t){this.preventUpdating?this.preventUpdating=!1:this.handleValue(t,!0)},currentSat:function(){this.updateWheelColors(),this.updateColor()},currentHue:function(){this.updateSquareColors(),this.updateColor()}},methods:{initSquare:function(){this.$refs.canvas.width=this.edge,this.$refs.canvas.height=this.edge-100,this.ctx=this.$refs.canvas.getContext("2d"),this.updateSquareColors()},initWheel:function(){this.$refs.canvas.width=this.diameter,this.$refs.canvas.height=this.diameter,this.ctx=this.$refs.canvas.getContext("2d"),this.circle={path:new Path2D,xCords:this.diameter/2,yCords:this.diameter/2,radius:this.diameter/2},this.circle.path.moveTo(this.circle.xCords,this.circle.yCords),this.circle.path.arc(this.circle.xCords,this.circle.yCords,this.circle.radius,0,360),this.circle.path.closePath(),this.updateWheelColors()},handleValue:function(t,e){var i=this.pickerRect,r=i.width,n=i.height;if(this.currentColor=$(t),this.preventEcho=!0,"wheel"===this.mode){var o=(100-this.currentColor.lum)*(this.diameter/200),a=this.diameter/2,l=function(t,e){return{x:t*Math.cos(e*Math.PI*2),y:t*Math.sin(e*Math.PI*2)}}(o,this.currentColor.hue/360);this.cursor={x:l.x+a,y:l.y+a},this.currentSat=this.currentColor.sat}if("square"===this.mode){var s=this.currentColor.sat/100*r,d=(100-this.currentColor.lum)/100*n;this.cursor={x:s,y:d},this.currentHue=this.currentColor.hue}},updateCursorPosition:function(t){var e=t.x,i=t.y,r=this.pickerRect,n=r.left,o=r.top,a=r.width,l=r.height,s={x:Math.min(Math.max(e-n,0),a),y:Math.min(Math.max(i-o,0),l)};("wheel"!==this.mode||this.ctx.isPointInPath(this.circle.path,s.x,s.y))&&(this.cursor=s,this.updateColor())},updateColor:function(t){this.preventEcho?this.preventEcho=!1:(this.currentColor=this.getCanvasColor(),this.preventUpdating=!0,this.$emit("change",this.currentColor),this.$emit("input",this.currentColor))},updateWheelColors:function(){var t=this;if(this.circle){var e=this.pickerRect,i=e.width,r=e.height,n=this.circle.xCords,o=this.circle.yCords,a=this.circle.radius,l=this.satSlider?this.currentSat:100;this.ctx.clearRect(0,0,i,r);for(var s=0;s<360;s+=1){var d=t.ctx.createRadialGradient(n,o,0,n,o,a),c=(s-2)*Math.PI/180,u=(s+2)*Math.PI/180;t.ctx.beginPath(),t.ctx.moveTo(n,o),t.ctx.arc(n,o,a,c,u),t.ctx.closePath(),d.addColorStop(0,"hsl("+s+", "+l+"%, 100%)"),d.addColorStop(.5,"hsl("+s+", "+l+"%, 50%)"),d.addColorStop(1,"hsl("+s+", "+l+"%, 0%)"),t.ctx.fillStyle=d,t.ctx.fill()}}},updateSquareColors:function(){var t=this.pickerRect,e=t.width,i=t.height;this.ctx.clearRect(0,0,e,i),this.ctx.fillStyle="hsl("+this.currentHue+", 100%, 50%)",this.ctx.fillRect(0,0,e,i);var r=this.ctx.createLinearGradient(0,0,e,0);r.addColorStop(0,"hsl(0, 0%, 50%)"),r.addColorStop(1,"hsla(0, 0%, 50%, 0)"),this.ctx.fillStyle=r,this.ctx.fillRect(0,0,e,i);var n=this.ctx.createLinearGradient(0,0,0,i);n.addColorStop(0,"hsl(0, 0%, 100%)"),n.addColorStop(.5,"hsla(0, 0%, 100%, 0)"),n.addColorStop(.5,"hsla(0, 0%, 0%, 0)"),n.addColorStop(1,"hsl(0, 0%, 0%) "),this.ctx.fillStyle=n,this.ctx.fillRect(0,0,e,i)},getCanvasColor:function(){var t=this.cursor,e=t.x,i=t.y,r=0,n=0,o=0;if("wheel"===this.mode){var a=this.diameter/2,l=function(t,e){return{r:Math.sqrt(t*t+e*e),theta:180*Math.atan2(e,t)/Math.PI}}(e-a,-1*(i-a)),s=l.r,d=l.theta;n=100*(a-s)/a,o=~Math.sign(d)?360-d:-d,r=this.currentSat}if("square"===this.mode){var c=this.pickerRect;r=100*e/c.width,n=100-100*i/c.height,o=this.currentHue}return new _.HslColor({alpha:this.alpha,hue:Math.round(o),sat:Math.round(r),lum:Math.round(n)})},handleSelect:function(t){var e=this;t.preventDefault(),this.pickerRect=this.$refs.canvas.getBoundingClientRect(),this.updateCursorPosition(A(t));var i=function(t){window.requestAnimationFrame((function(){e.updateCursorPosition(A(t))}))},r=function(){document.removeEventListener("mousemove",i),document.removeEventListener("touchmove",i),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r)};document.addEventListener("mousemove",i),document.addEventListener("touchmove",i),document.addEventListener("mouseup",r),document.addEventListener("touchend",r)}},mounted:function(){var t=this;this.pickerRect=this.$refs.canvas.getBoundingClientRect(),"wheel"===this.mode&&this.initWheel(),"square"===this.mode&&this.initSquare(),this.$nextTick((function(){t.handleValue(t.value)}))}},J=Y,Z=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"picker",staticClass:"verte-picker",class:"verte-picker--"+t.mode},[i("div",{ref:"origin",staticClass:"verte-picker__origin"},[i("canvas",{ref:"canvas",staticClass:"verte-picker__canvas",on:{mousedown:t.handleSelect,touchstart:t.handleSelect}}),i("div",{ref:"cursor",staticClass:"verte-picker__cursor",style:"transform: translate3d("+t.cursor.x+"px, "+t.cursor.y+"px, 0)"})]),"square"===t.mode?i("slider",{staticClass:"verte-picker__slider",attrs:{gradient:["#f00","#ff0","#0f0","#0ff","#00f","#f0f","#f00"],editable:!1,max:360},model:{value:t.currentHue,callback:function(e){t.currentHue=e},expression:"currentHue"}}):t._e(),"wheel"===t.mode?i("slider",{staticClass:"verte-picker__slider",attrs:{gradient:["hsl("+t.currentColor.hue+",0%,"+t.currentColor.lum+"%)","hsl("+t.currentColor.hue+",100%,"+t.currentColor.lum+"%)"],editable:!1,max:100},model:{value:t.currentSat,callback:function(e){t.currentSat=e},expression:"currentSat"}}):t._e()],1)};Z._withStripped=!0;var K,Q=function(t,e,i,r,n,o,a,l){var s=("function"==typeof i?i.options:i)||{};return s.__file="/mnt/c/Users/Abdelrahman/Projects/verte/src/components/Picker.vue",s.render||(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0,n&&(s.functional=!0)),s._scopeId=r,s}({render:Z,staticRenderFns:[]},0,J,undefined,!1);function tt(t,e){if(K)return K;var i=(e=e||{}).recentColors,r=e.onRecentColorsChange;return K=new t({data:function(){return{recentColors:i||H(6,z)}},methods:{addRecentColor:function(t){this.recentColors.includes(t)||(this.recentColors.length>=6&&this.recentColors.pop(),this.recentColors.unshift(t),r&&r(this.recentColors))}}})}var et={name:"Verte",components:{Picker:Q,Slider:X},props:{pickerEdge:Number,picker:{type:String,default:"square",validator:O("picker",["wheel","square"])},value:{type:String,default:"#000"},model:{type:String,default:"hsl",validator:O("model",["rgb","hex","hsl"])},display:{type:String,default:"picker",validator:O("display",["picker","widget"])},menuPosition:{type:String,default:"bottom",validator:O("menuPosition",["top","bottom","left","right","center"])},showHistory:{type:Boolean,default:!0},colorHistory:{type:Array,default:null},enableAlpha:{type:Boolean,default:!0},rgbSliders:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0}},data:function(){return{isMenuActive:!0,isLoading:!0,rgb:L("#000"),hex:P("#000"),hsl:$("#000"),delta:{x:0,y:0},currentModel:"",internalColorHistory:[]}},computed:{$_verteStore:function(){return tt()},historySource:function(){return this.colorHistory?this.internalColorHistory:this.$_verteStore.recentColors},currentColor:{get:function(){return this[this.model]||"production"===process.env.NODE_ENV?this[this.model].toString():(V('You are using a non-supported color model: "'+this.model+'", the supported models are: "rgb", "hsl" and "hex".'),"rgb(0, 0, 0)")},set:function(t){this.selectColor(t)}},alpha:{get:function(){return this[this.model]?isNaN(this[this.model].alpha)?1:this[this.model].alpha:1},set:function(t){this[this.model].alpha=t,this.selectColor(this[this.model])}},menuOnly:function(){return"widget"===this.display}},watch:{value:function(t,e){t!==e&&t!==this.currentColor&&this.selectColor(t)},rgb:{handler:function(t){this.hex=P(t.toString()),this.$emit("input",this.currentColor)},deep:!0},colorHistory:function(t){this.internalColorHistory!==t&&(this.internalColorHistory=[].concat(t))}},beforeCreate:function(){tt(this.$options._base)},install:function(t,e){tt(t,e),t.component("Verte",this)},created:function(){this.colorHistory&&(this.internalColorHistory=[].concat(this.colorHistory)),this.selectColor(this.value||"#000",!0),this.currentModel=this.model},mounted:function(){var t=this;this.$nextTick((function(){t.isLoading=!1,t.menuOnly||(t.isMenuActive=!1)}))},methods:{selectColor:function(t,e){void 0===e&&(e=!1),function(t){var e=d(t);return"rgb"===e?!x(t).invalid:"hex"===e?!y(t).invalid:"hsl"===e&&!k(t).invalid}(t)&&(this.rgb=L(t),this.hex=P(t),this.hsl=$(t),e||this.$emit("input",this.currentColor))},switchModel:function(){var t=["hex","rgb","hsl"],e=t.indexOf(this.currentModel);this.currentModel=t[e+1]||t[0]},handleMenuDrag:function(t){var e=this;if(2!==t.button){t.preventDefault();var i=Object.assign({},this.delta),r=A(t),n=function(t){window.requestAnimationFrame((function(){var n=A(t);e.delta.x=i.x+n.x-r.x,e.delta.y=i.y+n.y-r.y}))},o=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",n),document.removeEventListener("touchup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o),document.addEventListener("touchmove",n),document.addEventListener("touchup",o)}},submit:function(){this.$emit("beforeSubmit",this.currentColor),this.addColorToHistory(this.currentColor),this.$emit("input",this.currentColor),this.$emit("submit",this.currentColor)},addColorToHistory:function(t){if(this.colorHistory)return this.internalColorHistory.length>=6&&this.internalColorHistory.pop(),this.internalColorHistory.unshift(t),void this.$emit("update:colorHistory",this.internalColorHistory);this.$_verteStore.addRecentColor(this.currentColor)},inputChanged:function(t,e){var i=t.target;if("hex"!==this.currentModel){var r=Math.min(Math.max(i.value,i.min),i.max);this[this.currentModel][e]=r,this.selectColor(this[this.currentModel])}else this.selectColor(i.value)},toggleMenu:function(){this.isMenuActive?this.closeMenu():this.openMenu()},closeMenu:function(){this.isMenuActive=!1,document.removeEventListener("mousedown",this.closeCallback),this.$emit("close",this.currentColor)},openMenu:function(){var t=this;this.isMenuActive=!0,this.closeCallback=function(e){j(e.target,t.$refs.menu)||j(e.target,t.$refs.guide)||t.closeMenu()},document.addEventListener("mousedown",this.closeCallback)}}},it=et,rt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"verte",class:{"verte--loading":t.isLoading}},[t.menuOnly?t._e():i("button",{ref:"guide",staticClass:"verte__guide",style:"color: "+t.currentColor+"; fill: "+t.currentColor+";",attrs:{type:"button"},on:{click:t.toggleMenu}},[t._t("default",[i("svg",{staticClass:"verte__icon",attrs:{viewBox:"0 0 24 24"}},[i("pattern",{attrs:{id:"checkerboard",width:"6",height:"6",patternUnits:"userSpaceOnUse",fill:"FFF"}},[i("rect",{attrs:{fill:"#7080707f",x:"0",width:"3",height:"3",y:"0"}}),i("rect",{attrs:{fill:"#7080707f",x:"3",width:"3",height:"3",y:"3"}})]),i("circle",{attrs:{cx:"12",cy:"12",r:"12",fill:"url(#checkerboard)"}}),i("circle",{attrs:{cx:"12",cy:"12",r:"12"}})])])],2),i("div",{staticClass:"verte__menu-origin",class:["verte__menu-origin--"+t.menuPosition,{"verte__menu-origin--static":t.menuOnly,"verte__menu-origin--active":t.isMenuActive}]},[i("div",{ref:"menu",staticClass:"verte__menu",style:"transform: translate("+t.delta.x+"px, "+t.delta.y+"px)",attrs:{tabindex:"-1"}},[t.menuOnly?t._e():i("button",{staticClass:"verte__close",attrs:{type:"button"},on:{click:t.closeMenu}},[i("svg",{staticClass:"verte__icon verte__icon--small",attrs:{viewBox:"0 0 24 24"}},[i("title",[t._v("Close Icon")]),i("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}})])]),t.draggable&&!t.menuOnly?i("div",{staticClass:"verte__draggable",on:{mousedown:t.handleMenuDrag,touchstart:t.handleMenuDrag}}):t._e(),i("Picker",{attrs:{mode:t.picker,alpha:t.alpha},props:{edge:t.pickerEdge},model:{value:t.currentColor,callback:function(e){t.currentColor=e},expression:"currentColor"}}),i("div",{staticClass:"verte__controller"},[t.enableAlpha?i("Slider",{attrs:{gradient:["rgba("+t.rgb.red+", "+t.rgb.green+", "+t.rgb.blue+", 0)","rgba("+t.rgb.red+", "+t.rgb.green+", "+t.rgb.blue+", 1)"],min:0,max:1,step:.01,editable:!1},model:{value:t.alpha,callback:function(e){t.alpha=e},expression:"alpha"}}):t._e(),t.rgbSliders?[i("Slider",{attrs:{gradient:["rgb(0,"+t.rgb.green+","+t.rgb.blue+")","rgb(255,"+t.rgb.green+","+t.rgb.blue+")"]},model:{value:t.rgb.red,callback:function(e){t.$set(t.rgb,"red",e)},expression:"rgb.red"}}),i("Slider",{attrs:{gradient:["rgb("+t.rgb.red+",0,"+t.rgb.blue+")","rgb("+t.rgb.red+",255,"+t.rgb.blue+")"]},model:{value:t.rgb.green,callback:function(e){t.$set(t.rgb,"green",e)},expression:"rgb.green"}}),i("Slider",{attrs:{gradient:["rgb("+t.rgb.red+","+t.rgb.green+",0)","rgb("+t.rgb.red+","+t.rgb.green+",255)"]},model:{value:t.rgb.blue,callback:function(e){t.$set(t.rgb,"blue",e)},expression:"rgb.blue"}})]:t._e(),i("div",{staticClass:"verte__inputs"},[i("button",{staticClass:"verte__model",attrs:{type:"button"},on:{click:t.switchModel}},[t._v(t._s(t.currentModel))]),"hsl"===t.currentModel?[i("input",{staticClass:"verte__input",attrs:{type:"number",max:"360",min:"0"},domProps:{value:t.hsl.hue},on:{change:function(e){t.inputChanged(e,"hue")}}}),i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"100"},domProps:{value:t.hsl.sat},on:{change:function(e){t.inputChanged(e,"sat")}}}),i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"100"},domProps:{value:t.hsl.lum},on:{change:function(e){t.inputChanged(e,"lum")}}})]:t._e(),"rgb"===t.currentModel?[i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"255"},domProps:{value:t.rgb.red},on:{change:function(e){t.inputChanged(e,"red")}}}),i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"255"},domProps:{value:t.rgb.green},on:{change:function(e){t.inputChanged(e,"green")}}}),i("input",{staticClass:"verte__input",attrs:{type:"number",min:"0",max:"255"},domProps:{value:t.rgb.blue},on:{change:function(e){t.inputChanged(e,"blue")}}})]:t._e(),"hex"===t.currentModel?[i("input",{staticClass:"verte__input",attrs:{type:"text"},domProps:{value:t.hex},on:{change:function(e){t.inputChanged(e,"hex")}}})]:t._e(),i("button",{staticClass:"verte__submit",attrs:{type:"button"},on:{click:t.submit}},[i("title",[t._v("Submit Icon")]),i("svg",{staticClass:"verte__icon",attrs:{viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])],2),t.showHistory?i("div",{ref:"recent",staticClass:"verte__recent"},t._l(t.historySource,(function(e){return i("a",{staticClass:"verte__recent-color",style:"color: "+e,attrs:{role:"button",href:"#"},on:{click:function(i){i.preventDefault(),t.selectColor(e)}}})}))):t._e()],2)],1)])])};rt._withStripped=!0;var nt=function(t,e,i,r,n,o,a,l){var s=("function"==typeof i?i.options:i)||{};return s.__file="/mnt/c/Users/Abdelrahman/Projects/verte/src/components/Verte.vue",s.render||(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0,n&&(s.functional=!0)),s._scopeId=r,s}({render:rt,staticRenderFns:[]},0,it,undefined,!1),ot=Object.freeze(["default","primary","secondary","high","tertiary-darkest"]),at={name:"BIMDataButton",props:{width:{type:String,default:"32px"},height:{type:String,default:"32px"},fill:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},ripple:{type:Boolean,default:!1},radius:{type:Boolean,default:!1},square:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},color:{type:String,default:"default",validator:t=>ot.includes(t)}},emits:["click"],computed:{classes(){return{"bimdata-btn__icon":this.icon,"bimdata-btn__fill":this.fill,"bimdata-btn__outline":this.outline,"bimdata-btn__ghost":this.ghost,"bimdata-btn__ripple":this.ripple,"bimdata-btn__radius":this.radius,"bimdata-btn__square":this.square,"bimdata-btn__rounded":this.rounded,["bimdata-btn__fill--"+this.color]:this.fill&&this.color,["bimdata-btn__outline--"+this.color]:this.outline&&this.color,["bimdata-btn__ghost--"+this.color]:this.ghost&&this.color,["bimdata-btn__ripple--"+this.color]:this.ripple&&this.color}},style(){return{"min-width":""+this.width,"min-height":""+this.height}}}};const lt="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());let st;const dt={},ct=function(t,e,i,r,n,o,a,l,s,d){"boolean"!=typeof a&&(s=l,l=a,a=!1);const c="function"==typeof i?i.options:i;let u;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),r&&(c._scopeId=r),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):e&&(u=a?function(t){e.call(this,d(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),u)if(c.functional){const t=c.render;c.render=function(e,i){return u.call(i),t(e,i)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,u):[u]}return i}({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"bimdata-btn",class:t.classes,style:t.style,attrs:{color:t.color,type:"button"},on:{click:function(e){return t.$emit("click",e)}}},[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&(t("data-v-7f876215_0",{source:".text-left[data-v-7f876215]{text-align:left}.text-center[data-v-7f876215]{text-align:center}.text-right[data-v-7f876215]{text-align:right}.bimdata-link[data-v-7f876215]{color:#2f374a;border-bottom:1px solid #2f374a;font-weight:700}.primary-font[data-v-7f876215]{font-family:robotoregular,sans-serif}.primary-font-medium[data-v-7f876215]{font-family:robotomedium,sans-serif}.primary-font-bold[data-v-7f876215]{font-family:robotobold,sans-serif}",map:void 0,media:void 0}),t("data-v-7f876215_1",{source:'.bimdata-btn{padding:0 12px;height:fit-content;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;color:#2f374a;cursor:pointer;font-family:robotoregular,sans-serif;font-size:12px;transition:all .1s ease}.bimdata-btn:hover{transition:all .25s ease-in}.bimdata-btn:focus{outline:0}.bimdata-btn__icon{padding:0}.bimdata-btn__radius{border-radius:3px}.bimdata-btn__square{border-radius:0}.bimdata-btn__rounded{border-radius:50%}.bimdata-btn__fill{background-color:#fff;justify-content:center}.bimdata-btn__fill--default{box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.bimdata-btn__fill--default:hover{background-color:#f7f7f7}.bimdata-btn__fill--primary{background-color:#2f374a;color:#fff}.bimdata-btn__fill--primary:hover{background-color:#3b455d}.bimdata-btn__fill--secondary{background-color:#f9c72c;color:#2f374a}.bimdata-btn__fill--secondary:hover{background-color:#fad45e}.bimdata-btn__fill--tertiary-darkest{background-color:#7a7a7a;color:#fff}.bimdata-btn__fill--tertiary-darkest:hover{background-color:#939393}.bimdata-btn__fill--high{background-color:#ff3d1e;color:#fff}.bimdata-btn__fill--high:hover{background-color:#ff573d}.bimdata-btn__fill--btn-icon svg{margin:0 6px}.bimdata-btn__fill:disabled{background-color:#bdbdbd;color:#fff;cursor:auto}.bimdata-btn__ripple{background-position:center;transition:background .8s}.bimdata-btn__ripple--default{background-color:transparent;color:#2f374a}.bimdata-btn__ripple--default:hover{background:transparent radial-gradient(circle,transparent 1%,#f7f7f7 1%) center/15000%}.bimdata-btn__ripple--default:active{background-color:#eaeaea;background-size:100%;transition:background 0s}.bimdata-btn__ripple--primary{background-color:#2f374a;color:#fff}.bimdata-btn__ripple--primary:hover{background:#2f374a radial-gradient(circle,transparent 1%,#2f374a 1%) center/15000%}.bimdata-btn__ripple--primary:active{background-color:#434e69;background-size:100%;transition:background 0s}.bimdata-btn__ripple--secondary{background-color:#f9c72c;color:#2f374a}.bimdata-btn__ripple--secondary:hover{background:#f9c72c radial-gradient(circle,transparent 1%,#f9c72c 1%) center/15000%}.bimdata-btn__ripple--secondary:active{background-color:#fad45e;background-size:100%;transition:background 0s}.bimdata-btn__ripple--tertiary-darkest{background-color:#606060;color:#fff}.bimdata-btn__ripple--tertiary-darkest:hover{background:#606060 radial-gradient(circle,transparent 1%,#606060 1%) center/15000%}.bimdata-btn__ripple--tertiary-darkest:active{background-color:#7a7a7a;background-size:100%;transition:background 0s}.bimdata-btn__ripple--high{background-color:#ff3d1e;color:#fff}.bimdata-btn__ripple--high:hover{background:#ff3d1e radial-gradient(circle,transparent 1%,#ff3d1e 1%) center/15000%}.bimdata-btn__ripple--high:active{background-color:#ff7f6b;background-size:100%;transition:background 0s}.bimdata-btn__outline{justify-content:center;border:1px solid}.bimdata-btn__outline--default{border-color:#d8d8d8;color:#2f374a}.bimdata-btn__outline--default:hover{background-color:#f7f7f7}.bimdata-btn__outline--primary{border-color:#2f374a;color:#2f374a}.bimdata-btn__outline--primary:hover{background-color:#f8f9fa}.bimdata-btn__outline--secondary{border-color:#f9c72c;color:#2f374a}.bimdata-btn__outline--secondary:hover{background-color:#fffcf2}.bimdata-btn__outline--tertiary-darkest{border-color:#7a7a7a;color:#7a7a7a}.bimdata-btn__outline--tertiary-darkest:hover{background-color:#f7f7f7}.bimdata-btn__outline--high{border-color:#ff3d1e;color:#ff3d1e}.bimdata-btn__outline--high:hover{background-color:#ffedea}.bimdata-btn__outline:disabled{border-color:#bdbdbd;color:#bdbdbd;cursor:auto}.bimdata-btn__ghost{justify-content:center}.bimdata-btn__ghost svg{display:flex;align-items:center}.bimdata-btn__ghost--default{color:#2f374a}.bimdata-btn__ghost--default:hover{background-color:#f7f7f7}.bimdata-btn__ghost--primary{color:#2f374a}.bimdata-btn__ghost--primary:hover{background-color:#f8f9fa}.bimdata-btn__ghost--secondary{color:#f9c72c}.bimdata-btn__ghost--secondary:hover{background-color:#fffcf2}.bimdata-btn__ghost--tertiary-darkest{color:#7a7a7a}.bimdata-btn__ghost--tertiary-darkest:hover{background-color:#f7f7f7}.bimdata-btn__ghost--high{color:#ff3d1e}.bimdata-btn__ghost--high:hover{background-color:#ffedea}.bimdata-btn__ghost:disabled{color:#bdbdbd;cursor:auto}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--default{position:relative}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--default:focus:before{content:"";width:100%;height:100%;position:absolute;border-radius:100%;animation:darkenRipple .6s}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--default:focus:active:before{content:none}@keyframes darkenRipple{0%{border:20px solid #c4c4c4;opacity:0}100%{border:1px solid transparent}}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--primary{position:relative}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--primary:focus:before{content:"";width:100%;height:100%;position:absolute;border-radius:100%;animation:lightenRipple .6s}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--primary:focus:active:before{content:none}@keyframes lightenRipple{0%{border:20px solid #adb6cb;opacity:0}100%{border:1px solid transparent}}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--secondary{position:relative}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--secondary:focus:before{content:"";width:100%;height:100%;position:absolute;border-radius:100%;animation:lightenRipple .6s}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--secondary:focus:active:before{content:none}@keyframes lightenRipple{0%{border:20px solid #fff;opacity:0}100%{border:1px solid transparent}}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--tertiary-darkest{position:relative}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--tertiary-darkest:focus:before{content:"";width:100%;height:100%;position:absolute;border-radius:100%;animation:lightenRipple .6s}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--tertiary-darkest:focus:active:before{content:none}@keyframes lightenRipple{0%{border:20px solid #e0e0e0;opacity:0}100%{border:1px solid transparent}}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--high{position:relative}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--high:focus:before{content:"";width:100%;height:100%;position:absolute;border-radius:100%;animation:lightenRipple .6s}.bimdata-btn__icon.bimdata-btn__ripple.bimdata-btn__ripple--high:focus:active:before{content:none}@keyframes lightenRipple{0%{border:20px solid #fff;opacity:0}100%{border:1px solid transparent}}',map:void 0,media:void 0}))}),at,"data-v-7f876215",!1,void 0,!1,(function(t){return(t,e)=>function(t,e){const i=lt?e.media||"default":t,r=dt[i]||(dt[i]={ids:new Set,styles:[]});if(!r.ids.has(t)){r.ids.add(t);let i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",e.media&&r.element.setAttribute("media",e.media),void 0===st&&(st=document.head||document.getElementsByTagName("head")[0]),st.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(i),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{const t=r.ids.size-1,e=document.createTextNode(i),n=r.element.childNodes;n[t]&&r.element.removeChild(n[t]),n.length?r.element.insertBefore(e,n[t]):r.element.appendChild(e)}}}(t,e)}),void 0,void 0);var ut={name:"colorPickerModal",components:{colorPicker:nt,BIMDataButton:ct},data:()=>({choosedColor:"rgb(0, 0, 0)"}),methods:{cancelColorPicker(){this.$emit("close")},validateColorPicker(){this.$viewer.globalContext.getPlugins("viewer3d").forEach((t=>{document.getElementById(t.engine3dCanvasId).style.setProperty("background-color",this.choosedColor)})),this.$emit("close")}}};function pt(t,e,i,r,n,o,a,l,s,d){"boolean"!=typeof a&&(s=l,l=a,a=!1);const c="function"==typeof i?i.options:i;let u;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),r&&(c._scopeId=r),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):e&&(u=a?function(t){e.call(this,d(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),u)if(c.functional){const t=c.render;c.render=function(e,i){return u.call(i),t(e,i)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,u):[u]}return i}const ht="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function ft(t){return(t,e)=>function(t,e){const i=ht?e.media||"default":t,r=mt[i]||(mt[i]={ids:new Set,styles:[]});if(!r.ids.has(t)){r.ids.add(t);let i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",e.media&&r.element.setAttribute("media",e.media),void 0===gt&&(gt=document.head||document.getElementsByTagName("head")[0]),gt.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(i),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{const t=r.ids.size-1,e=document.createTextNode(i),n=r.element.childNodes;n[t]&&r.element.removeChild(n[t]),n.length?r.element.insertBefore(e,n[t]):r.element.appendChild(e)}}}(t,e)}let gt;const mt={};const bt=pt({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"color-picker-modal p-12"},[i("colorPicker",{attrs:{display:"widget",model:"rgb",pickerEdge:155,enableAlpha:!1},model:{value:t.choosedColor,callback:function(e){t.choosedColor=e},expression:"choosedColor"}}),t._v(" "),i("div",{staticClass:"dflex"},[i("BIMDataButton",{staticClass:"bimdata-btn__fill bimdata-btn__fill--primary bimdata-btn__radius",on:{click:t.validateColorPicker}},[t._v(t._s(t.$t("BackgroundColorPlugin.apply")))]),t._v(" "),i("BIMDataButton",{staticClass:"bimdata-btn__ghost bimdata-btn__radius",on:{click:t.cancelColorPicker}},[t._v(t._s(t.$t("BackgroundColorPlugin.close")))])],1)],1)},staticRenderFns:[]},(function(t){t&&t("data-v-a282ecc4_0",{source:".bimdata-list{margin:0;padding:0}.bimdata-list li{list-style-type:none}::after,::before{box-sizing:border-box}.bd-grid{margin-left:auto;margin-right:auto;width:88.5714285714%;max-width:1400px;display:flex;flex-wrap:wrap;box-sizing:border-box}@media screen and (max-width:1020px){.bd-grid{width:88.2352941176%}}@media screen and (max-width:620px){.bd-grid{width:89.6774193548%}}.bd-grid-0{margin-left:auto;margin-right:auto;width:100%;max-width:1400px;display:flex;flex-wrap:wrap;box-sizing:border-box}.col-desk-0{padding-left:1.6129032258%;padding-right:1.6129032258%;width:0%;box-sizing:border-box}.col-desk-shift-0{margin-left:0}.col-desk-1{padding-left:1.6129032258%;padding-right:1.6129032258%;width:8.3333333333%;box-sizing:border-box}.col-desk-shift-1{margin-left:8.3333333333%}.col-desk-2{padding-left:1.6129032258%;padding-right:1.6129032258%;width:16.6666666667%;box-sizing:border-box}.col-desk-shift-2{margin-left:16.6666666667%}.col-desk-3{padding-left:1.6129032258%;padding-right:1.6129032258%;width:25%;box-sizing:border-box}.col-desk-shift-3{margin-left:25%}.col-desk-4{padding-left:1.6129032258%;padding-right:1.6129032258%;width:33.3333333333%;box-sizing:border-box}.col-desk-shift-4{margin-left:33.3333333333%}.col-desk-5{padding-left:1.6129032258%;padding-right:1.6129032258%;width:41.6666666667%;box-sizing:border-box}.col-desk-shift-5{margin-left:41.6666666667%}.col-desk-6{padding-left:1.6129032258%;padding-right:1.6129032258%;width:50%;box-sizing:border-box}.col-desk-shift-6{margin-left:50%}.col-desk-7{padding-left:1.6129032258%;padding-right:1.6129032258%;width:58.3333333333%;box-sizing:border-box}.col-desk-shift-7{margin-left:58.3333333333%}.col-desk-8{padding-left:1.6129032258%;padding-right:1.6129032258%;width:66.6666666667%;box-sizing:border-box}.col-desk-shift-8{margin-left:66.6666666667%}.col-desk-9{padding-left:1.6129032258%;padding-right:1.6129032258%;width:75%;box-sizing:border-box}.col-desk-shift-9{margin-left:75%}.col-desk-10{padding-left:1.6129032258%;padding-right:1.6129032258%;width:83.3333333333%;box-sizing:border-box}.col-desk-shift-10{margin-left:83.3333333333%}.col-desk-11{padding-left:1.6129032258%;padding-right:1.6129032258%;width:91.6666666667%;box-sizing:border-box}.col-desk-shift-11{margin-left:91.6666666667%}.col-desk-12{padding-left:1.6129032258%;padding-right:1.6129032258%;width:100%;box-sizing:border-box}.col-desk-shift-12{margin-left:100%}@media screen and (max-width:1020px){.col-tab-0{padding-left:1.6666666667%;padding-right:1.6666666667%;width:0%;box-sizing:border-box}.col-tab-shift-0{margin-left:0}.col-tab-1{padding-left:1.6666666667%;padding-right:1.6666666667%;width:8.3333333333%;box-sizing:border-box}.col-tab-shift-1{margin-left:8.3333333333%}.col-tab-2{padding-left:1.6666666667%;padding-right:1.6666666667%;width:16.6666666667%;box-sizing:border-box}.col-tab-shift-2{margin-left:16.6666666667%}.col-tab-3{padding-left:1.6666666667%;padding-right:1.6666666667%;width:25%;box-sizing:border-box}.col-tab-shift-3{margin-left:25%}.col-tab-4{padding-left:1.6666666667%;padding-right:1.6666666667%;width:33.3333333333%;box-sizing:border-box}.col-tab-shift-4{margin-left:33.3333333333%}.col-tab-5{padding-left:1.6666666667%;padding-right:1.6666666667%;width:41.6666666667%;box-sizing:border-box}.col-tab-shift-5{margin-left:41.6666666667%}.col-tab-6{padding-left:1.6666666667%;padding-right:1.6666666667%;width:50%;box-sizing:border-box}.col-tab-shift-6{margin-left:50%}.col-tab-7{padding-left:1.6666666667%;padding-right:1.6666666667%;width:58.3333333333%;box-sizing:border-box}.col-tab-shift-7{margin-left:58.3333333333%}.col-tab-8{padding-left:1.6666666667%;padding-right:1.6666666667%;width:66.6666666667%;box-sizing:border-box}.col-tab-shift-8{margin-left:66.6666666667%}.col-tab-9{padding-left:1.6666666667%;padding-right:1.6666666667%;width:75%;box-sizing:border-box}.col-tab-shift-9{margin-left:75%}.col-tab-10{padding-left:1.6666666667%;padding-right:1.6666666667%;width:83.3333333333%;box-sizing:border-box}.col-tab-shift-10{margin-left:83.3333333333%}.col-tab-11{padding-left:1.6666666667%;padding-right:1.6666666667%;width:91.6666666667%;box-sizing:border-box}.col-tab-shift-11{margin-left:91.6666666667%}.col-tab-12{padding-left:1.6666666667%;padding-right:1.6666666667%;width:100%;box-sizing:border-box}.col-tab-shift-12{margin-left:100%}}@media screen and (max-width:620px){.col-mob-0{padding-left:1.7985611511%;padding-right:1.7985611511%;width:0%;box-sizing:border-box}.col-mob-shift-0{margin-left:0}.col-mob-1{padding-left:1.7985611511%;padding-right:1.7985611511%;width:25%;box-sizing:border-box}.col-mob-shift-1{margin-left:25%}.col-mob-2{padding-left:1.7985611511%;padding-right:1.7985611511%;width:50%;box-sizing:border-box}.col-mob-shift-2{margin-left:50%}.col-mob-3{padding-left:1.7985611511%;padding-right:1.7985611511%;width:75%;box-sizing:border-box}.col-mob-shift-3{margin-left:75%}.col-mob-4{padding-left:1.7985611511%;padding-right:1.7985611511%;width:100%;box-sizing:border-box}.col-mob-shift-4{margin-left:100%}}.bg-primary{background-color:#2f374a}.bg-secondary{background-color:#f9c72c}.bg-tertiary{background-color:#d8d8d8}.bg-tertiary-lightest{background-color:#f7f7f7}.bg-tertiary-dark{background-color:#7a7a7a}.bg-tertiary-darkest{background-color:#606060}.bg-white{background-color:#fff}.bg-black{background-color:#000}.bg-neutral{background-color:#205dbd}.bg-success{background-color:#00af50}.bg-disabled{background-color:#bdbdbd}.bg-warning{background-color:#ff9100}.bg-high{background-color:#ff3d1e}.color-primary{color:#2f374a}.color-secondary{color:#f9c72c}.color-tertiary{color:#d8d8d8}.color-tertiary-lightest{color:#f7f7f7}.color-tertiary-dark{color:#7a7a7a}.color-tertiary-darkest{color:#606060}.color-white{color:#fff}.color-black{color:#000}.color-neutral{color:#205dbd}.color-success{color:#00af50}.color-disabled{color:#bdbdbd}.color-warning{color:#ff9100}.color-high{color:#ff3d1e}.fill-primary{fill:#2f374a}.fill-secondary{fill:#f9c72c}.fill-tertiary{fill:#d8d8d8}.fill-tertiary-lightest{fill:#f7f7f7}.fill-tertiary-dark{fill:#7a7a7a}.fill-tertiary-darkest{fill:#606060}.fill-white{fill:#fff}.fill-black{fill:#000}.fill-neutral{fill:#205dbd}.fill-success{fill:#00af50}.fill-disabled{fill:#bdbdbd}.fill-warning{fill:#ff9100}.fill-high{fill:#ff3d1e}.stroke-primary{fill:transparent;stroke:#2f374a}.stroke-secondary{fill:transparent;stroke:#f9c72c}.stroke-tertiary{fill:transparent;stroke:#d8d8d8}.stroke-tertiary-lightest{fill:transparent;stroke:#f7f7f7}.stroke-tertiary-dark{fill:transparent;stroke:#7a7a7a}.stroke-tertiary-darkest{fill:transparent;stroke:#606060}.stroke-white{fill:transparent;stroke:#fff}.stroke-black{fill:transparent;stroke:#000}.stroke-neutral{fill:transparent;stroke:#205dbd}.stroke-success{fill:transparent;stroke:#00af50}.stroke-disabled{fill:transparent;stroke:#bdbdbd}.stroke-warning{fill:transparent;stroke:#ff9100}.stroke-high{fill:transparent;stroke:#ff3d1e}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.inline-flex{display:inline-flex}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.content-start{align-content:flex-start}.content-center{align-content:center}.content-end{align-content:flex-end}.content-between{align-content:space-between}.content-around{align-content:space-around}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.grid{display:grid}.m-t-6{margin-top:6px}.p-t-6{padding-top:6px}.m-b-6{margin-bottom:6px}.p-b-6{padding-bottom:6px}.m-l-6{margin-left:6px}.p-l-6{padding-left:6px}.m-r-6{margin-right:6px}.p-r-6{padding-right:6px}.m-6{margin:6px}.p-6{padding:6px}.m-x-6{margin-right:6px;margin-left:6px}.p-x-6{padding-right:6px;padding-left:6px}.m-y-6{margin-top:6px;margin-bottom:6px}.p-y-6{padding-top:6px;padding-bottom:6px}.m-t-12{margin-top:12px}.p-t-12{padding-top:12px}.m-b-12{margin-bottom:12px}.p-b-12{padding-bottom:12px}.m-l-12{margin-left:12px}.p-l-12{padding-left:12px}.m-r-12{margin-right:12px}.p-r-12{padding-right:12px}.m-12{margin:12px}.p-12{padding:12px}.m-x-12{margin-right:12px;margin-left:12px}.p-x-12{padding-right:12px;padding-left:12px}.m-y-12{margin-top:12px;margin-bottom:12px}.p-y-12{padding-top:12px;padding-bottom:12px}.m-t-18{margin-top:18px}.p-t-18{padding-top:18px}.m-b-18{margin-bottom:18px}.p-b-18{padding-bottom:18px}.m-l-18{margin-left:18px}.p-l-18{padding-left:18px}.m-r-18{margin-right:18px}.p-r-18{padding-right:18px}.m-18{margin:18px}.p-18{padding:18px}.m-x-18{margin-right:18px;margin-left:18px}.p-x-18{padding-right:18px;padding-left:18px}.m-y-18{margin-top:18px;margin-bottom:18px}.p-y-18{padding-top:18px;padding-bottom:18px}.m-t-24{margin-top:24px}.p-t-24{padding-top:24px}.m-b-24{margin-bottom:24px}.p-b-24{padding-bottom:24px}.m-l-24{margin-left:24px}.p-l-24{padding-left:24px}.m-r-24{margin-right:24px}.p-r-24{padding-right:24px}.m-24{margin:24px}.p-24{padding:24px}.m-x-24{margin-right:24px;margin-left:24px}.p-x-24{padding-right:24px;padding-left:24px}.m-y-24{margin-top:24px;margin-bottom:24px}.p-y-24{padding-top:24px;padding-bottom:24px}.m-t-30{margin-top:30px}.p-t-30{padding-top:30px}.m-b-30{margin-bottom:30px}.p-b-30{padding-bottom:30px}.m-l-30{margin-left:30px}.p-l-30{padding-left:30px}.m-r-30{margin-right:30px}.p-r-30{padding-right:30px}.m-30{margin:30px}.p-30{padding:30px}.m-x-30{margin-right:30px;margin-left:30px}.p-x-30{padding-right:30px;padding-left:30px}.m-y-30{margin-top:30px;margin-bottom:30px}.p-y-30{padding-top:30px;padding-bottom:30px}.m-t-36{margin-top:36px}.p-t-36{padding-top:36px}.m-b-36{margin-bottom:36px}.p-b-36{padding-bottom:36px}.m-l-36{margin-left:36px}.p-l-36{padding-left:36px}.m-r-36{margin-right:36px}.p-r-36{padding-right:36px}.m-36{margin:36px}.p-36{padding:36px}.m-x-36{margin-right:36px;margin-left:36px}.p-x-36{padding-right:36px;padding-left:36px}.m-y-36{margin-top:36px;margin-bottom:36px}.p-y-36{padding-top:36px;padding-bottom:36px}.m-t-42{margin-top:42px}.p-t-42{padding-top:42px}.m-b-42{margin-bottom:42px}.p-b-42{padding-bottom:42px}.m-l-42{margin-left:42px}.p-l-42{padding-left:42px}.m-r-42{margin-right:42px}.p-r-42{padding-right:42px}.m-42{margin:42px}.p-42{padding:42px}.m-x-42{margin-right:42px;margin-left:42px}.p-x-42{padding-right:42px;padding-left:42px}.m-y-42{margin-top:42px;margin-bottom:42px}.p-y-42{padding-top:42px;padding-bottom:42px}.m-t-48{margin-top:48px}.p-t-48{padding-top:48px}.m-b-48{margin-bottom:48px}.p-b-48{padding-bottom:48px}.m-l-48{margin-left:48px}.p-l-48{padding-left:48px}.m-r-48{margin-right:48px}.p-r-48{padding-right:48px}.m-48{margin:48px}.p-48{padding:48px}.m-x-48{margin-right:48px;margin-left:48px}.p-x-48{padding-right:48px;padding-left:48px}.m-y-48{margin-top:48px;margin-bottom:48px}.p-y-48{padding-top:48px;padding-bottom:48px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.bimdata-link{color:#2f374a;border-bottom:1px solid #2f374a;font-weight:700}.primary-font{font-family:robotoregular,sans-serif}.primary-font-medium{font-family:robotomedium,sans-serif}.primary-font-bold{font-family:robotobold,sans-serif}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background-color:rgba(122,122,122,.3)}::-webkit-scrollbar-thumb{background:#2f374a;height:48px}::-webkit-scrollbar-thumb:hover{background:#7a7a7a}.color-picker-modal{width:500px;height:450px;padding:20px}.color-picker-modal .dflex{display:flex;align-items:center;justify-content:center}.color-picker-modal .verte{height:375px}.color-picker-modal .verte__menu-origin{width:100%}.color-picker-modal .verte__menu-origin .verte__menu{width:100%;height:80%;box-shadow:none}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker{margin:0}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker__origin{width:100%;height:250px}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker__origin .verte-picker__canvas{width:100%;height:100%;display:block}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker__origin .verte-picker__cursor{width:17px;height:17px;border:2px solid #fff;box-shadow:none}.color-picker-modal .verte__menu-origin .verte__menu .verte-picker__slider{margin:12px 0}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller{padding:0}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__inputs .verte__model{font-size:11px;font-weight:400}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__inputs .verte__input{font-size:11px;font-weight:400}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__recent{justify-content:space-between}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__recent-color{margin:3px;width:20px;height:20px;border-radius:5px}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__recent-color:first-child{margin-left:0}.color-picker-modal .verte__menu-origin .verte__menu .verte__controller .verte__recent-color:last-child{margin-right:0}",map:void 0,media:void 0})}),ut,undefined,false,undefined,!1,ft,void 0,void 0);var vt={name:"BackgroundColorPlugin",startupScript(t){t.contextMenu.registerCommand({get label(){return t.vm.$t("BackgroundColorPlugin.title")},execute:()=>t.globalContext.modals.pushModal(bt)})},i18n:{en:{title:"Change background color",apply:"Apply",close:"Close"},fr:{title:"Changer la couleur de fond",apply:"Appliquer",close:"Fermer"}}};export{vt as default};
{
"name": "@bimdata/background-color-viewer-plugin",
"version": "1.0.0",
"version": "1.0.1",
"description": "backgroundColor BIMData Viewer Plugin",

@@ -20,15 +20,14 @@ "scripts": {

],
"dependencies": {
"devDependencies": {
"@bimdata/color-picker": "0.0.3",
"@bimdata/design-system": "0.0.13"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^7.1.3",
"@rollup/plugin-url": "^5.0.0",
"rollup": "^2.10.5",
"@bimdata/design-system": "^0.3.18",
"@rollup/plugin-node-resolve": "^13.0.5",
"@rollup/plugin-url": "^6.0.0",
"rollup": "^2.35.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-scss": "^2.5.0",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-vue": "^5.1.7"
"rollup-plugin-scss": "^3.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^5.1.9",
"sass": "^1.42.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc