(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[161],{"7yoQ":function(t,o,n){"use strict";(function(t){n.d(o,"b",(function(){return r})),n.d(o,"a",(function(){return i}));var e=n("6dQ1");function r(o){return Object(e.a)()?t.from(o,"utf-8").toString("base64"):btoa(o)}function i(o){return Object(e.a)()?t.from(o,"base64").toString("utf-8"):atob(o)}}).call(this,n("tjlA").Buffer)},L7nb:function(t,o,n){"use strict";n.r(o),n.d(o,"lazyLoadPreviewDataUrl",(function(){return l}));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 a(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 l(t){if(!c(t))return"";const o=`\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(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 u={props:{colors:{type:Object,required:!0,validator:c}},data:()=>({svg:""}),watch:{colors:{deep:!0,immediate:!0,handler(t){this.svg=a(t)}}}},f=n("KHd+"),p=Object(f.a)(u,e,[],!1,null,null,null);p.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-lazyload-preview.vue";o.default=p.exports}}]);