(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[320,363],{"6ufP":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isLazyLoadedActive?i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:{src:t.src,loading:t.dataUrl,error:t.dataUrl},expression:"{\n        src: src,\n        loading: dataUrl,\n        error: dataUrl,\n    }"}],style:t.style,attrs:{alt:t.alt}}):i("img",{style:t.style,attrs:{src:t.src,alt:t.alt,fetchpriority:"high"}})};n._withStripped=!0;var o=i("L7nb"),r={props:{src:{type:String,required:!0},colors:{type:Object,default:null},width:{type:Number,default:null},height:{type:Number,default:null},ratio:{type:Number,default:null},alt:{type:String,default:""},focusPoint:{type:Object,default:null},isLazyLoadedActive:{type:Boolean,default:!0}},data:()=>({dataUrl:null,dimensions:{width:null,height:null}}),created(){this.colors&&(this.dataUrl=Object(o.lazyLoadPreviewDataUrl)(this.colors)),this.dimensions.width=this.width,this.dimensions.height=this.height,this.ratio&&this.width&&!this.height&&(this.dimensions.height=this.width/this.ratio),this.ratio&&!this.width&&this.height&&(this.dimensions.width=this.height*this.ratio)},computed:{style(){const t={};return this.dimensions.width&&(t.width=this.dimensions.width+"px"),this.dimensions.height&&(t.height=this.dimensions.height+"px"),this.focusPoint&&(t.objectPosition=`${this.focusPoint.x}% ${this.focusPoint.y}%`),t}}},s=i("KHd+"),a=Object(s.a)(r,n,[],!1,null,null,null);e.default=a.exports},"7yoQ":function(t,e,i){"use strict";(function(t){i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return r}));var n=i("6dQ1");function o(e){return Object(n.b)()?t.from(e,"utf-8").toString("base64"):btoa(e)}function r(e){return Object(n.b)()?t.from(e,"base64").toString("utf-8"):atob(e)}}).call(this,i("tjlA").Buffer)},L7nb:function(t,e,i){"use strict";i.r(e),i.d(e,"lazyLoadPreviewDataUrl",(function(){return l}));var n=function(){var t=this.$createElement;return(this._self._c||t)("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},domProps:{innerHTML:this._s(this.svg)}})};n._withStripped=!0;var o=i("7yoQ");function r(t,e,i,n){return`\n    <radialGradient id="${t}" cx="${e}" cy="${i}" r="1">\n        <stop offset="0" stop-color="${n}" stop-opacity="1" />\n        <stop offset="100%" stop-color="${n}" stop-opacity="0" />\n    </radialGradient>\n`}function s(t){return`\n    <rect x="0" y="0" width="100" height="100" fill="url('#${t}')" />\n`}function a(t){const e=Math.random().toString(26).substr(2);return`\n    ${r(`lazy-${e}-topleft`,0,0,t.topleft)}\n    ${r(`lazy-${e}-topright`,1,0,t.topright)}\n    ${r(`lazy-${e}-bottomleft`,0,1,t.bottomleft)}\n    ${r(`lazy-${e}-bottomright`,1,1,t.bottomright)}\n    ${r(`lazy-${e}-center`,.5,.5,t.center)}\n\n    ${s(`lazy-${e}-topleft`)}\n    ${s(`lazy-${e}-topright`)}\n    ${s(`lazy-${e}-bottomleft`)}\n    ${s(`lazy-${e}-bottomright`)}\n    ${s(`lazy-${e}-center`)}\n`}function l(t){if(!h(t))return"";const e=`\n        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">\n            ${a(t)}\n        </svg>\n    `.trim().replace(/\s+/g," ");return"data:image/svg+xml;base64,"+Object(o.b)(e)}function h(t){const e=["topleft","topright","bottomleft","bottomright","center"],i=[];for(const n of e)t[n]||i.push(n);return!(i.length>0)||(console.warn(`\n        The following colors must be provided: [${e.join(",")}]\n        but the following were not given: [${i.join(",")}]\n    `),!1)}var c={props:{colors:{type:Object,required:!0,validator:h}},data:()=>({svg:""}),watch:{colors:{deep:!0,immediate:!0,handler(t){this.svg=a(t)}}}},u=i("KHd+"),d=Object(u.a)(c,n,[],!1,null,null,null);e.default=d.exports}}]);