(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[269,368],{"7yoQ":function(t,n,o){"use strict";(function(t){o.d(n,"b",(function(){return r})),o.d(n,"a",(function(){return i}));var e=o("6dQ1");function r(n){return Object(e.b)()?t.from(n,"utf-8").toString("base64"):btoa(n)}function i(n){return Object(e.b)()?t.from(n,"base64").toString("utf-8"):atob(n)}}).call(this,o("tjlA").Buffer)},"KHd+":function(t,n,o){"use strict";function e(t,n,o,e,r,i,s,a){var l,c="function"==typeof t?t.options:t;if(n&&(c.render=n,c.staticRenderFns=o,c._compiled=!0),e&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(l=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,n){return l.call(n),u(t,n)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:c}}o.d(n,"a",(function(){return e}))},L7nb:function(t,n,o){"use strict";o.r(n),o.d(n,"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=o("7yoQ");function i(t,n,o,e){return`\n    <radialGradient id="${t}" cx="${n}" cy="${o}" 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 n=Math.random().toString(26).substr(2);return`\n    ${i(`lazy-${n}-topleft`,0,0,t.topleft)}\n    ${i(`lazy-${n}-topright`,1,0,t.topright)}\n    ${i(`lazy-${n}-bottomleft`,0,1,t.bottomleft)}\n    ${i(`lazy-${n}-bottomright`,1,1,t.bottomright)}\n    ${i(`lazy-${n}-center`,.5,.5,t.center)}\n\n    ${s(`lazy-${n}-topleft`)}\n    ${s(`lazy-${n}-topright`)}\n    ${s(`lazy-${n}-bottomleft`)}\n    ${s(`lazy-${n}-bottomright`)}\n    ${s(`lazy-${n}-center`)}\n`}function l(t){if(!c(t))return"";const n=`\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)(n)}function c(t){const n=["topleft","topright","bottomleft","bottomright","center"],o=[];for(const e of n)t[e]||o.push(e);return!(o.length>0)||(console.warn(`\n        The following colors must be provided: [${n.join(",")}]\n        but the following were not given: [${o.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=o("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";n.default=p.exports}}]);