(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[159],{L7nb:function(t,o,n){"use strict";n.r(o),n.d(o,"lazyLoadPreviewDataUrl",(function(){return a}));var e=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)}})};e._withStripped=!0;var r=n("7yoQ");function i(t,o,n,e){return`\n    <radialGradient id="${t}" cx="${o}" cy="${n}" r="1">\n        <stop offset="0" stop-color="${e}" stop-opacity="1" />\n        <stop offset="100%" stop-color="${e}" 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 l(t){const o=Math.random().toString(26).substr(2);return`\n    ${i(`lazy-${o}-topleft`,0,0,t.topleft)}\n    ${i(`lazy-${o}-topright`,1,0,t.topright)}\n    ${i(`lazy-${o}-bottomleft`,0,1,t.bottomleft)}\n    ${i(`lazy-${o}-bottomright`,1,1,t.bottomright)}\n    ${i(`lazy-${o}-center`,.5,.5,t.center)}\n\n    ${s(`lazy-${o}-topleft`)}\n    ${s(`lazy-${o}-topright`)}\n    ${s(`lazy-${o}-bottomleft`)}\n    ${s(`lazy-${o}-bottomright`)}\n    ${s(`lazy-${o}-center`)}\n`}function a(t){if(!c(t))return"";const o=`\n        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">\n            ${l(t)}\n        </svg>\n    `.trim().replace(/\s+/g," ");return"data:image/svg+xml;base64,"+Object(r.b)(o)}function c(t){const o=["topleft","topright","bottomleft","bottomright","center"],n=[];for(const e of o)t[e]||n.push(e);return!(n.length>0)||(console.warn(`\n        The following colors must be provided: [${o.join(",")}]\n        but the following were not given: [${n.join(",")}]\n    `),!1)}var p={props:{colors:{type:Object,required:!0,validator:c}},data:()=>({svg:""}),watch:{colors:{deep:!0,immediate:!0,handler(t){this.svg=l(t)}}}},u=n("KHd+"),d=Object(u.a)(p,e,[],!1,null,null,null);d.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-lazyload-preview.vue";o.default=d.exports}}]);