1"use strict";(self.webpackChunkhomify_de=self.webpackChunkhomify_de||[]).push([[8549],{1043:function(e,t,n){n.d(t,{Ak:function(){return W},Bq:function(){return D},DJ:function(){return j},D_:function(){return E},E9:function(){return R},Eh:function(){return H},FR:function(){return B},G8:function(){return A},Gn:function(){return U},HF:function(){return T},Hn:function(){return k},I6:function(){return v},NF:function(){return b},Ni:function(){return ne},Qc:function(){return Z},SL:function(){return P},Sh:function(){return O},Tj:function(){return C},Ul:function(){return S},Up:function(){return d},WI:function(){return M},XI:function(){return te},Xl:function(){return $},Yk:function(){return G},au:function(){return q},c2:function(){return L},cJ:function(){return m},e8:function(){return V},fV:function(){return Y},i6:function(){return ee},iV:function(){return _},kW:function(){return y},kg:function(){return Q},ku:function(){return g},mm:function(){return K},nF:function(){return N},s7:function(){return J},sb:function(){return w},vp:function(){return X},xV:function(){return F},xv:function(){return I},y1:function(){return x}});var r=n(5556),o=n.n(r),i=n(4353),a=n.n(i),u=n(1757);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var n=new Set(Array.isArray(t)?t:[t]);return Object.keys(e).reduce(function(t,r){return n.has(r)||(t[r]=e[r]),t},{})}function d(e,t){return(Array.isArray(t)?t:[t]).reduce(function(t,n){return n in e&&(t[n]=e[n]),t},{})}function y(e){return e&&"string"==typeof e?e.replace(/(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8
1E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase():e}var h=0;function b(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+ ++h}function g(e,t){return e.filter(function(e){return!t(e)})}function v(e,t){return e.find(t)}function D(e){return e?e.trim():e}function E(e){return e}function w(e){return l(new Set(e))}function _(e){return e.replace(/(\d\d):(\d\d\d)Z/,"$1.$2Z")}function F(e){return e?e.replace(/[^a-z0-9áéÃóúñü .,_-]/gim,"").trim():e}function O(e){return a()(_(e.created_at))}function A(e){if(!function(){try{if(window)return!1}catch(e){return!0}}()&&"function"==typeof e)return e()}function j(e){if(e){var t=document.createElement("span"),n=!0;return t.innerHTML=e,["img","iframe","embed","video"].forEach(function(e){t.querySelector(e)&&(n=!1)}),!(t.textContent||t.innerText).trim().replace(/[\u200B-\u200D\uFEFF]/g,"").length&&n}return!0}function C(e,t){return Array.isArray(e)?e.map(t):[]}function P(e,t){if(!Array.isArray(e))return-1;if("function"==typeof t)return e.findIndex(t);if("object"===p(t)&&!Array.isArray(t))return e.findIndex(function(e){return Object.keys(t).every(function(n){return e[n]===t[n]})});if(Array.isArray(t)&&2===t.length){var n=c(t,2),r=n[0],o=n[1];return e.findIndex(function(e){return e[r]===o})}return"string"==typeof t?e.findIndex(function(e){return e[t]}):-1}function S(e,t){if(!Array.isArray(e))return[];var n=Array.isArray(t)?t:[t],r=function(e,t){return"function"==typeof t?t(e):"string"==typeof t?t.split(".").reduce(function(e,t){return null!=e?e[t]:void 0},e):void 0};return l(e).sort(function(e,t){var o,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,u=r(e,a),c=r(t,a);if(null!=u||null!=c){if(null==u)return 1;if(null==c)return-1;if(u<c)return-1;if(u>c)return 1}}}catch(e){i.e(e)}finally{i.f()}return 0})}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=e,e=0),"number"!=typeof e||"number"!=typeof t||"number"!=typeof n)return[];if(0===n||e<t&&n<0||e>t&&n>0)return[];var r=[];if(n>0)for(var o=e;o<t;o+=n)r.push(o);else for(var i=e;i>t;i+=n)r.push(i);return r}function k(e,t){if("number"!=typeof e||e<0||!Number.isInteger(e))return[];if("function"!=typeof t)return Array.from({length:e},function(e,t){return t});for(var n=[],r=0;r<e;r++)n.push(t(r));return n}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("function"!=typeof e)throw new TypeError("Expected a function");var r,o=null,i=0,a=null,u=null,c=!1!==n.leading,l=!1!==n.trailing;function s(t){var n=a,o=u;return a=u=null,i=t,r=e.apply(o,n)}function f(e,t){return setTimeout(e,t)}function p(e){clearTimeout(e)}function m(){var e=Date.now();if(d(e))return function(e){return o=null,l&&a?s(e):(a=u=null,r)}(e);o=f(m,t-(e-i))}function d(e){var n=e-i;return 0===i||n>=t||n<0}function y(){for(var e=Date.now(),n=d(e),l=arguments.length,p=new Array(l),y=0;y<l;y++)p[y]=arguments[y];if(a=p,u=this,n){if(null===o&&c)return i=e,o=f(m,t),s(e);null===o&&(o=f(m,t))}return null===o&&(o=f(m,t)),r}return y.cancel=function(){null!==o&&p(o),i=0,a=u=o=null},y.flush=function(){if(null!==o){var e=Date.now();if(p(o),o=null,a)return s(e)}return r},y}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"string"!=typeof e)return e||"";var n=void 0!==t.length?t.length:30,r=void 0!==t.omission?t.omission:"...",o=t.separator;if(e.length<=n)return e;var i=n-r.length;if(i<1)return r;var a=e.slice(0,i);if(void 0!==o)if("string"==typeof o){var u=a.lastIndexOf(o);u>-1&&(a=a.slice(0,u))}else if(o instanceof RegExp){var c=a.match(o);if(c){var l=c[c.length-1],s=a.lastIndexOf(l);s>-1&&(a=a.slice(0,s))}}return a+r}function B(e){return e.photos&&e.photos.length?{type:"PHOTO",media:e.photos[0]}:e.videos&&e.videos.length?{type:"VIDEO",media:e.videos[0]}:null}function T(e,t){var n,r=t+(e=(n=e)&&"string"==typeof n?n.charAt(0).toUpperCase()+n.slice(1):n)+"Path";if(r in u){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return u[r].apply(null,i)}throw new Error('Unknown localized route "'.concat(r,'"'))}function R(e){var t=I18n.getDomainByLocale(e),n=window&&window.homify.env;return"".concat({local:"http://local.homify.",development:"http://local.homify.",staging:"https://staging.homify.",production:"https://homify."}[n]).concat(t)}function z(e){return"".concat(window.location.origin).concat(e)}function q(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=(arguments.length>1?arguments[1]:void 0)||("function"==typeof u.diyProjectsPath?u.diyProjectsPath():"/diy"),r=y((e=K(t||"")).normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e);return r?"".concat(n.replace(/\/$/,""),"/").concat(encodeURIComponent(r)):n}function M(e,t){return z(T(e,"speakingProject",t,y((arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").replace(/'/g,"-"))))}function L(e,t){return z(T(e,"speakingIdeaBook",t,y(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"")))}function U(e){return z(T(e,"magazine"))}function H(e,t,n,r,o){var i=r.name,a=T(o,"fullscreenIdeaBookPhoto",t.id,y(K(t.t
1itle)),y(i)),u=t.image_alt_text,c=Z(t.image,{width:316,height:316}),l=Z(t.image,{width:632,height:632}),s=function(e,t){return z(T(e,"speakingProfessional",t,y(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"")))}(o,t.user_id,i),f="tr"===I18n.locale?"":I18n.t("photos.index.by"),p=t.title,m=i;return ContextMenu.show(e,a,u,c,l,s,f,p,m,!1)}function G(e){for(var t=[],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach(function(e){var n;null!=(n=e)&&"function"!=typeof n&&"number"==typeof n.length&&n.length>=0?t=t.concat(e):function(e){var t=p(e);return null!=e&&("object"===t||"function"===t)}(e)?t=t.concat(Object.keys(e)):t.push(e)}),m(e,t)}function $(e){return e&&(e.admin||e.editor)}function V(e){var t=c(e.split(" "),2),n=t[0],r=t[1];return 1===parseInt(n)?I18n.t("datetime.distance_in_words.x_".concat(r,".one")):I18n.t("datetime.distance_in_words.x_".concat(r,".other"),{count:n})}var W={Locale:o().string,CloudinaryUpload:o().shape({bytes:o().number,created_at:o().string,etag:o().string,format:o().string,height:o().number,original_extension:o().string,original_filename:o().string,path:o().string,placeholder:o().bool,public_id:o().string,resource_type:o().string,secure_url:o().string,signature:o().string,tags:o().array,thumbnail_url:o().string,type:o().string,url:o().string,version:o().number,width:o().number}),User:o().shape({name:o().string.isRequired,id:o().number.isRequired,admin:o().bool,editor:o().bool,avatar:o().shape({url:o().string})})};function Q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto";if(e){if(e.includes("/upload/")){e=e.replace("http:","https:");var i="auto"!==r?",e_blur:1000":"";return t>0?e.replace("/upload/","/upload/c_scale,w_".concat(t,",q_").concat(r,",f_").concat(o).concat(i,"/")):e.replace("/upload/","/upload/c_scale,h_".concat(n,",q_").concat(r,",f_").concat(o).concat(i,"/"))}if(e.includes("media.homify.com")){if(e.includes("media.homify.com/tr:"))return e;var a="auto"!==r?",q-".concat(r,",bl-50"):"";return t>0?e.replace("media.homify.com/","media.homify.com/tr:f-auto,w-".concat(t).concat(a,"/")):e.replace("media.homify.com/","media.homify.com/tr:f-auto,h-".concat(n).concat(a,"/"))}}return e}var Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return/^v[0-9]+/.test(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,r=t.height,o=t.crop,i=t.quality,a=t.rotation,u=t.forceZeroAsFullTurn,c=t.format,l=t.crop_x,s=t.crop_y,f=t.crop_h,p=t.crop_w,m=Number(a),d=Number.isFinite(m),y=d?(m%360+360)%360:void 0,h=d&&0===y&&0!==m||d&&0===y&&u?360:y,b="crop"===o,g=90===y||270===y,v={width:(g?r:n)?"w_".concat(g?r:n):"",height:(g?n:r)?"h_".concat(g?n:r):"",crop:b?"c_fill":"c_".concat(o||"fill")},D={width:(g?f:p)?"w_".concat(g?f:p):"",height:(g?p:f)?"h_".concat(g?p:f):"",crop_x:"x_".concat(l||"0"),crop_y:"y_".concat(s||"0"),crop:"c_crop"},E={quality:"q_".concat(i||"auto"),rotation:d?"a_".concat(h):"",format:"f_".concat(c||"auto")},w=function(e){return Object.values(e).filter(function(e){return e}).join(",")},_=b?"".concat(w(D),",").concat(w(E),"/").concat(w(v)):"".concat(w(v),",").concat(w(E));return"".concat("https://images.homify.com/").concat(_,"/").concat(e)}(e,t):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,r=t.height,o=t.crop,i=t.quality,a=t.rotation,u=t.format,c=t.crop_x,l=t.crop_y,s=t.crop_h,f=t.crop_w,p=Number(a),m=Number.isFinite(p)?(p%360+360)%360:0,d="crop"===o,y=90===m||270===m,h={width:(y?r:n)?"w-".concat(y?r:n):"",height:(y?n:r)?"h-".concat(y?n:r):"",crop:d?"cm-extract":"c-maintain_ratio"},b={width:(y?s:f)?"w-".concat(y?s:f):"",height:(y?f:s)?"h-".concat(y?f:s):"",crop_x:"x-".concat(c||"0"),crop_y:"y-".concat(l||"0"),crop:"cm-extract"},g={quality:"q-".concat(i||"auto"),rotation:"rt-".concat(m),format:"f-".concat(u||"auto")},v=function(e){return Object.values(e).filter(function(e){return e}).join(",")},D=d?"".concat(v(b),",").concat(v(g)):"".concat(v(h),",").concat(v(g));return"".concat("https://media.homify.com/","tr:").concat(D,"/").concat(e)}(e,t)},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return"";var n=e.replace("https://images.homify.com/image/upload/","").replace("https://media.homify.com/","");return t?n.replace("tr:c-maintain_ratio,h-#height,w-#width,q-70,f-auto,rt-0/","").replace("a_0,c_fill,h_#height,q_70,w_#width/",""):n},J=function(e){return/^v[0-9]+/.test(e)?"https://images.homify.com/".concat(e):"https://media.homify.com/".concat(e)};function X(e){return e.sort(function(){return Math.random()-.5})}function K(e){return"string"!=typeof e?"":e.replace(/[äÃöÃüÃÃ
1]/g,function(e){switch(e){case"ä":case"Ã":return"ae";case"ö":case"Ã":return"oe";case"ü":case"Ã":return"ue";case"Ã":return"ss";default:return e}})}function ee(e){return e.startsWith("https://")||e.startsWith("http://")?e:"https://".concat(e)}function te(e){return e&&"{}"!==e&&"string"!=typeof e&&"object"===p(e)?Object.keys(e):[]}function ne(e){return e&&"{}"!==e&&"string"!=typeof e&&"object"===p(e)?e:{}}},4879:function(e,t,n){var r=n(5556),o=n.n(r),i=n(6540),a=n(8195),u=n(3804),c=n(1043),l=n(6104),s=n(6540);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var b=function(e){var t=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return s.createElement("div",{className:"-cover-media-item"},this.getCoverMedia(this.props.steps))}},{key:"getCoverMedia",value:function(e){var t=null;return e.forEach(function(e,n){var r=(0,c.FR)(e);if(r&&r.media.is_cover_media){if("VIDEO"===r.type){var o=u.A.getProvider(r.media.url);t=s.createElement(o,{videoWidth:"723",videoHeight:"463",video:r.media.url})}else t=s.createElement(l.A,{url:r.media.url,alt:e.step_title,viewports:{xs:{width:720,height:250},sm:{width:360,height:250},md:{width:320,height:250},default:{width:400,height:250}},loading:n>=11?"lazy":void 0});return t}}),t}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Component);return e=t,t.propTypes={steps:o().arrayOf(a.A.ProjectStep),bigCover:o().bool,loadOnScroll:o().bool},e}({});t.A=b},8195:function(e,t,n){var r,o,i,a,u,c,l,s,f,p,m,d,y,h,b,g,v=n(5556),D=n.n(v),E=n(4353),w=n.n(E),_=(r=D().shape({label:D().string.isRequired,key:D().string.isRequired}),o=D().shape({url:D().string}),i=D().shape({name:D().string.isRequired,id:D().number.isRequired,admin:D().boolean,editor:D().boolean,head_editor:D().boolean,avatar:o}),a=D().shape({display_name:D().string.isRequired,id:D().number.isRequired,avatar:D().any}),u=D().shape({id:D().number,url:D().string}),c=D().shape({id:D().number,url:D().string}),l=D().shape({type:D().oneOf(["PHOTO","VIDEO"]).isRequired,media:D().oneOfType([u,c]).isRequired}),f=(s=["PENDING","APPROVED","DISAPPROVED"]).concat("ALL"),p=D().oneOf(s),m=D().oneOf(f),d=D().shape({id:D().number.isRequired,title:D().string.isRequired,description:D().string.isRequired,questionState:p.isRequired,views_count:D().number,answers_count:D().number,categoryId:D().number}),y=D().oneOf(["EASY","MEDIUM","HARD"]),h=D().oneOf([1,2,3,4]),b=D().oneOf(["minutes","hours","days"]),g=D().shape({id:D().number,text:D().string.isRequired}),{QuestionsFilter:r,User:i,Question:d,Project:D().shape({approved:D().boolean,author:a.isRequired,category_id:D().number,comments_count:D().number,cost:h.isRequired,created_at:D().string.isRequired,description:D().string,difficulty:y,id:D().number.isRequired,locale:D().string.isRequired,materials:D().arrayOf(g),title:D().string.isRequired,views_count:D().number,projectState:p}),Category:D().shape({id:D().number.isRequired,name:D().string,order_no:D().number,language:D().string}),Author:a,ApprovalStatus:p,ApprovalStatusFilter:m,ApprovalStatusFilterValues:f,MediaItem:l,Reply:D().shape({id:D().number.isRequired,text:D().string.isRequired,author:a}),Difficulty:y,Material:g,ProjectStep:D().shape({id:D().number,text:D().string,photos:D().arrayOf(u),videos:D().arrayOf(c),step_title:D().string}),Filters:D().shape({categoryId:D().number,state:m}),DateType:D().oneOfType([Date,function(e,t,n){if(!w().isDayjs(e[t]))return new Error('Prop "'.concat(t,'" passed to ').concat(n," is [").concat(e[t],"], expected momentjs object"))}]),DurationUnit:b});t.A=_},3804:function(e,t,n){n.d(t,{A:function(){return D}});var r=n(5556),o=n.n(r),i=n(6540),a=n(6540);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
1function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(){var e=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=f(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),function(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"render",value:function(){if(!this.props.video)return null;var e=t.getVideoId(this.props.video);return e?a.createElement("iframe",{width:this.props.videoWidth||"320",height:this.props.videoHeight||"180",src:"https://www.youtube-nocookie.com/embed/".concat(e,"?showinfo=0"),frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0}):null}}],[{key:"validate",value:function(e){return!!this.getVideoId(e)}},{key:"getVideoId",value:function(e){var t=/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/.*watch\?(?:[^/])*v=([^&]+)/.exec(e);return t||(t=/^(?:https?:\/\/)?(?:www\.)?youtu\.be\/([^?/]+)/.exec(e)),t?t[1]:null}}])}(i.Component);return e.propTypes={video:o().string.isRequired},e}(),d=m,y=n(1043);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function g(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}var v,D=(v=[d],function(){return function(e,t,n){return n&&b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},0,[{key:"getProvider",value:function(e){return(0,y.I6)(v,function(t){return t.validate(e)})||d}},{key:"validate",value:function(e){return!!this.getProvider(e)}}])}())},6470:function(e,t,n){var r=n(3358),o=n(6540);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var u,c=((u={}).getHeadlineText=function(e,t,n,r){var o=[];return-1!==["tr","pl","ru"].indexOf(t)?(n&&o.push(n,":"),r&&o.push(r,"-"),n||r||o.push(I18n.t("professionals.index.title"),":"),o.push(e)):"jp"===t?(n&&o.push(n,"ã®"),r&&o.push(r),o.push(e),o.push("人")):(o.push(r?I18n.t("professionals.search.category_with_quantity",{count:e,category:r}):I18n.t("professionals.search.headline_count",{count:e})),n&&o.push(I18n.t("professionals.search.location"),n)),o.join(" ")},u.getResizedImageUrl=function(e,t){var n=Math.floor(Math.random()*Math.floor(3))+1,r={avatar:{width:83,height:83,default:null},thumb:{width:144,height:144,default:"https://media.homify.com/tr:f-auto/assets/premium_cards/listing_page/".concat(n,".png")},squared:{width:316,height:316},cover:{width:402,height:220,default:"https://media.homify.com/tr:f-auto/assets/premium_cards/listing_page/top.png"},big:{width:804,height:440}}[t],o=e;return"object"===a(e)&&(o=e.url),o?o.replace("#width",r.width).replace("#height",r.height):r.default},u.ratingStars=function(e,t){return o.createElement("div",{className:"rating average-rating"},(n=Array(5).keys(),function(e){if(Array.isArray(e))return i(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(t){return o.createElement(r.A,{name:t+1<=e?"star-orange":"star-gray",key:t})}),o.createElement("span",{className:"reviews-count"},"(".concat(t,")")));var n},u.decodeHtml=function(e){if(!e)return"";var t=document.createElement("textarea");t.innerHTML=e;var n=t.value;return t.remove(),n},u);t.A=c},3358:function(e,t,n){var r=n(5556),o=n.n(r),i=n(1043),a=n(1757),u=n(6540
1);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}var l,s,f=(l=function(e){return'<use xlink:href="'.concat(function(e){return(0,a.rootPath)()+"assets/icons.svg#".concat(e)}(e),'" />')},(s=function(e){var t=(0,i.Yk)(e,s.propTypes,"dangerouslySetInnerHTML");return u.createElement("svg",c({className:"icon ".concat(e.className||""),dangerouslySetInnerHTML:{__html:l(e.name)}},t))}).propTypes={name:o().string.isRequired,className:o().string},s);t.A=f},4659:function(e,t,n){n.d(t,{A:function(){return A}});var r=n(6540),o=n(8071),i=n(6470),a=n(6540);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=f(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.professional,u=n.isMobile,c=n.index,l=n.onClickHandler,s=n.locale;return a.createElement("div",{className:"premium-card suggested-professional",onClick:l.bind(this,c+1,r.id),role:"link",tabIndex:0,style:{cursor:"pointer"},onKeyPress:function(e){"Enter"===e.key&&l.bind(t,c+1,r.id)()}},a.createElement("a",{href:r.resourcePath,rel:"nofollow",className:"suggested-professional--main-link",style:{display:"block",textDecoration:"none",color:"inherit"}},a.createElement("div",{className:"suggested-professional--details -horizontal-"},a.createElement("div",{className:"top-label"}," ".concat(I18n.t("premium.title")," ")),a.createElement("div",{className:"suggested-professional--cover"},r.cover_photo&&r.cover_photo.image?a.createElement("img",{src:i.A.getResizedImageUrl(r.cover_photo.image.url,"cover"),alt:r.public_name||r.short_description,loading:"lazy"}):a.createElement("img",{src:this.props.defaultCoverPhotoUrl,alt:r.public_name||r.short_description,loading:"lazy"})),a.createElement("div",{className:"suggested-professional-info--wrapper"},a.createElement("div",{className:"-col-1-"},a.createElement(o.A,{alt:r.display_name,size:u?"medium":"large",url:r.avatar?i.A.getResizedImageUrl(null===(e=r.avatar)||void 0===e?void 0:e.url,"thumb"):null}),a.createElement("div",{className:"suggested-professional--name"},r.display_name),a.createElement("div",{className:"suggested-professional--rating"},i.A.ratingStars(r.review_average,r.reviews_count))),a.createElement("div",{className:"-col-2-"},a.createElement("div",{className:"suggested-professional--location"},a.createElement("span",{className:"suggested-professional--category-link"},r.company_category_name),a.createElement("span",{className:"suggested-professional--city-link"},i.A.getHeadlineText("",s,r.city,r.company_category_name).replace(r.company_category_name,"")))),a.createElement("div",{className:"suggested-professional-link"},a.createElement("button",{"aria-label":I18n.t("professionals.premium_cards.show_profile"),className:"button -primary",typ:"button"},I18n.t("professionals.premium_cards.show_profile")))))))}}],r&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),d=m,y=n(1757),h=n(5556),b=n.n(h),g=n(6540);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E(r.key),r)}}function E(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}
1function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}var O=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=_(t),function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}(this,t,[e])).state={hasPrevious:!1,hasNext:!1,activeSlidesIndexes:Array.from(Array(n.props.cards_count).keys()),isMobile:!1,isTablet:!1,loading:!0,swipeSetup:!1,professionals:[]},n.updateDimensions=n.updateDimensions.bind(n),n.getDesktopIndexes=n.getDesktopIndexes.bind(n),n.getTabletIndexes=n.getTabletIndexes.bind(n),n.getMobileIndexes=n.getMobileIndexes.bind(n),n.setupSwipe=n.setupSwipe.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){"undefined"!=typeof window&&(this.getProfessionals(),this.setupSwipe(),window.addEventListener("resize",this.updateDimensions))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions),this.state.swipeSetup&&(document.removeEventListener("swipe-left",this.goToNextSlide),document.removeEventListener("swipe-right",this.goToPrevSlide))}},{key:"setupSwipe",value:function(){this.state.swipeSetup||(document.addEventListener("swipe-left",this.goToNextSlide),document.addEventListener("swipe-right",this.goToPrevSlide),this.setState({swipeSetup:!0}))}},{key:"getProfessionals",value:function(){var e=this,t={company_category:this.props.company_category};$.ajax({url:(0,y.premiumCardsPath)(),type:"GET",data:t,success:function(t){return e.onGetProfessionalsSuccess(t)},error:function(){e.setState({loading:!1,professionals:[]})}})}},{key:"onGetProfessionalsSuccess",value:function(e){var t=this,n=e.total,r=this.props.cards_count,o=this.professionalsToBeShown(n,r);this.setState({loading:!1,professionals:e.result||[],hasNext:n>o},function(){t.updateDimensions(),(t.state.professionals||[]).map(function(e){window.trackGA("event","Premium","premium profile impression",e.id,0,!0)})})}},{key:"professionalsToBeShown",value:function(e,t){return e>t-1?t-1:e-1}},{key:"getDefaultCoverPhotoUrl",value:function(e){var t=["https://media.homify.com/tr:f-auto/assets/premium_cards/desktop_cover1_3x.png","https://media.homify.com/tr:f-auto/assets/premium_cards/desktop_cover2_3x.png","https://media.homify.com/tr:f-auto/assets/premium_cards/desktop_cover3_3x.png"];return t[e%t.length]}},{key:"getDesktopIndexes",value:function(){return Array.from(Array(this.props.cards_count).keys())}},{key:"getTabletIndexes",value:function(){return[0,1]}},{key:"getMobileIndexes",value:function(){return[0]}}
1,{key:"updateDimensions",value:function(){var e=$(window).width()<767&&!this.state.isMobile,t=$(window).width()>767&&$(window).width()<1268&&!this.state.isTablet,n=$(window).width()>1267&&(this.state.isMobile||this.state.isTablet);if(e||t||n){var r=this.state.professionals||[],o=this.getMobileIndexes();t?o=this.getTabletIndexes():n&&(o=this.getDesktopIndexes()),this.setState({isMobile:e,isTablet:t,activeSlidesIndexes:o,hasNext:o[o.length-1]<r.length,hasPrevious:!1})}}},{key:"goToNextSlide",value:function(e){e.preventDefault(),window.trackGA("event","Premium Cards","clicked right arrow",this.props.page_name,0),this.setState(function(e){var t=e.activeSlidesIndexes.map(function(e){return e+1});return{hasPrevious:!0,activeSlidesIndexes:t,hasNext:t[t.length-1]<e.professionals.length}})}},{key:"goToPrevSlide",value:function(e){e.preventDefault(),window.trackGA("event","Premium Cards","clicked left arrow",this.props.page_name,0),this.setState(function(e){var t=e.activeSlidesIndexes.map(function(e){return e-1});return{hasPrevious:t[0]>0,activeSlidesIndexes:t,hasNext:!0}})}},{key:"sendGaOnClick",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;"number"==typeof e?window.trackGA("event","Premium Cards","clicked premium card ".concat(e),t,0):window.trackGA("event","Premium Cards","clicked premium card default",this.props.page_name,0)}},{key:"render",value:function(){var e=this,t=this.state,n=t.loading,r=t.professionals,o=void 0===r?[]:r;return g.createElement("span",null,n?void 0:!!o.length&&g.createElement("span",null,this.props.premiumCardsTitle&&g.createElement("h2",{className:"sectiontitle -centered- !margin-t-xxl"},I18n.t(this.props.premiumCardsTitle)),g.createElement("section",{className:"premium-cards"},g.createElement("div",{className:this.state.isMobile?"mobile-cards":"-spaced-horizontal- -spaced-vertical-xs-"},this.state.hasPrevious&&g.createElement("a",{"aria-label":I18n.t("views.pagination.previous"),href:"#",rel:"nofollow",className:"arrows left-arrow",onClick:function(t){return e.goToPrevSlide(t)}},g.createElement("i",null)),o.map(function(t,n){return e.state.activeSlidesIndexes.indexOf(n)>-1&&g.createElement(d,{defaultCoverPhotoUrl:e.getDefaultCoverPhotoUrl(n),index:n,isMobile:e.state.isMobile,key:t.id,onClickHandler:e.sendGaOnClick,professional:t,professionalsPath:e.props.more_professionals_path})}),!this.state.hasNext&&g.createElement("a",{href:this.props.more_professionals_path,target:"_blank",rel:"nofollow",className:"premium-card suggested-professional find-more",onClick:this.sendGaOnClick.bind(this),"aria-label":I18n.t("professionals.premium_cards.find_more.heading")},g.createElement("div",{className:"-flex- find-more-professionals"},g.createElement("div",{className:"find-more-professionals--title !margin-b-xxs"},I18n.t("professionals.premium_cards.find_more.heading")),g.createElement("div",{className:"!margin-b-xxs !margin-t-xxs"},I18n.t("professionals.premium_cards.find_more.subheading"))),g.createElement("div",{className:"suggested-professional--cover find-more-professionals-cover"},g.createElement("span",null,g.createElement("img",{src:"https://media.homify.com/tr:f-auto/assets/find_more_professionals.png",loading:"lazy",alt:I18n.t("professionals.premium_cards.find_more.heading")}))),g.createElement("div",{className:"suggested-professional-link"},g.createElement("button",{className:"button -primary","aria-label":I18n.t("professionals.premium_cards.find_more.button")},I18n.t("professionals.premium_cards.find_more.button")))),this.state.hasNext&&g.createElement("a",{"aria-label":I18n.t("views.pagination.next"),href:"#",rel:"nofollow",className:"arrows right-arrow",onClick:function(t){return e.goToNextSlide(t)}},g.createElement("i",null))))))}}],r&&D(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component);O.propTypes={company_category:b().any,cards_count:b().number.isRequired,more_professionals_path:b().string.isRequired,premiumCardsTitle:b().string,page_name:b().string.isRequired};var A=O},6104:function(e,t,n){var r=n(5556),o=n.n(r),i=n(1043),a=n(6540);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var c=["width","height"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={xs:"(max-width: 767px)",md:"(max-width: 1267px)",default:""},m=function(e,t){var n=t.width,r=t.height,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,c);return"".concat((0,i.Qc)(e,s({width:2*n,height:2*r},o))," 2x, ").concat((0,i.Qc)(e,s({width:n,height:r},o)))},d=function(){var e=function(e){var t=e.url,n=e.viewports,r=e.className,o=e.alt,u=e.options,c=e.loading,l=t.includes("images.homify.")||t.includes("media.homify."),f=(0,i.fV)(t),d=l?t:(0,i.s7)(f);return a.createElement("picture",null,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(t).map(function(r){return a.createElement("source",{key:r,media:p[r],srcSet:m(e,s({width:t[r].width,height:t[r].height},n))})})}(f,n,u),a.createElement("img",{className:r,alt:o,loading:c,width:n.default.width,height:n.default.height,src:d}))};return e.propTypes={url:o().string.isRequired},e}();t.A=d},8071:function(e,n,r){var o=r(5556),i=r.n(o),a=r(6540),u=function(){var e=function(e){var n=e.url,r=e.size,o=e.alt,i=e.loading;r=r||"tiny";var u=o+" "+I18n.t("admin.export.avatar")||t("admin.export.avatar"),c=(n||"https://media.homify.com/tr:h-136,f-auto,w-136/assets/default/avatar_default_original.png").replace("http://","https://");return a.createElement("span",{className:"avatar -".concat(r)},a.createElement("img",{className:"avatar--image",alt:u,src:c,loading:i}))};return e.propTypes={url:i().string,size:i().oneOf(["tiny","small","medium","large","extra-large"]),alt:i().string},e}();n.A=u},582:function(e,t,n){var r=n(6540),o=n(4659),i=n(3358),a=n(6540);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=f(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return a.createElement("div",null,a.createElement("a",{href:this.props.showMoreLink,className:"landing-page--section-title",rel:"nofollow"},I18n.t("landing_page.explore_images.title")),a.createElement("div",{className:"!margin-b-s landing-page--section-subtitle"},I18n.t("landing_page.explore_images.subtitle")),a.createElement("div",{className:"-horizontal- landing-section-content"},this.props.data.map(function(e,t){return a.createElement("a",{className:"-vertical- -flex-1- onboarding-photo-container ".concat(3===t?"-up-from-lg-":""),key:t,href:e.path,rel:"nofollow"},a.createElement("div",{className:"onboarding-photo"},a.createElement("div",{className:"onboarding-photo-overlay"}),a.createElement("img",{src:e.image,alt:e.name,className:"landing-page--photo",loading:"lazy"}),a.createElement("span",{className:"onboarding-photo-text"},e.name)))})),a.createElement("div",{className:"-horizontal- -a-centered- -end- landing-page--section-footer"},a.createElement("a",{href:this.props.showMoreLink,className:"button -text landing-show-more-link",rel:"nofollow"},I18n.t("landing_page.shared.show_more"),a.createElement(i.A,{name:"arrow-back-ios",className:"-green- icon--tiny"}))))}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),d=m,y=n(6540);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function g(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}
1function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}var w=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=D(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],D(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e,t=(e=this.props,[{order:1,imageUrl:"https://media.homify.com/tr:f-auto/assets/landing_page/landing_page_onboarding_1.png",text:I18n.t("landing_page.onboarding.tip_1"),link:e.roomsPath},{order:2,imageUrl:"https://media.homify.com/tr:f-auto/assets/landing_page/landing_page_onboarding_2.png",text:I18n.t("landing_page.onboarding.tip_2"),link:e.professionalsPath},{order:3,imageUrl:"https://media.homify.com/tr:f-auto/assets/landing_page/landing_page_onboarding_3.png",text:I18n.t("landing_page.onboarding.tip_3"),link:e.professionalsPath}]).map(function(e){return y.createElement("div",{className:"-vertical- onboarding-photo-container",key:e.text},y.createElement("div",{className:"!margin-b-xxs onboarding-photo"},y.createElement("a",{href:e.link,"aria-label":e.text,rel:"nofollow"},y.createElement("img",{src:e.imageUrl,className:"landing-page--photo",alt:e.text,height:424,width:257,loading:"lazy"}))),y.createElement("div",{className:"onboarding-text"},y.createElement("div",{className:"onboarding-text--index"},e.order),e.text))});return y.createElement("div",{className:"landing-page-section"},y.createElement("div",{className:"landing-page--section-title -nolink"},I18n.t("landing_page.onboarding.title")),y.createElement("div",{className:"landing-page--section-subtitle"},I18n.t("landing_page.onboarding.subtitle")),y.createElement("div",{className:"-horizontal- -vertical-xs-"},t),y.createElement("div",{className:"-horizontal- -centered-"},y.createElement("button",{"aria-label":I18n.t("landing_page.onboarding.start_now"),type:"button",className:"button -medium onboarding-start-now",onClick:function(){return window.User.askToSignup(function(){window.location.reload()})}},I18n.t("landing_page.onboarding.start_now"))))}}])&&b(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),_=w,F=n(6540);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j(r.key),r)}}function j(e){var t=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}var x=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=P(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],P(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return F.createElement("div",null,F.createElement("a",{href:this.props.showMoreLink,className:"landing-page--section-title",rel:"nofollow"},I18n.t("landing_page.find_professionals.title")),F.createElement("div",{className:"landing-page--section-subtitle"},I18n.t("landing_page.find_professionals.subtitle")),F.createElement("div",{className:"-horizontal- landing-section-content"},this.props.data.map(function(e,t){return F.createElement("a",{className:"-vertical- -flex-1- onboarding-photo-container ".concat(3===t?"-up-from-lg-":""),key:t,href:e.path,rel:"nofollow"},F.createElement("div",{className:"onboarding-photo"},F.createElement("div",{className:"onboarding-photo-overlay"}),F.createElement("img",{src:e.image,alt:e.name,className:"landing-page--photo",loading:"lazy"}),F.createElement("span",{className:"onboarding-photo-text"},e.name)))})),F.createElement("div",{className:"-horizontal- -a-centered- -end- landing-page--section-footer"},F.createElement("a",{href:this.props.showMoreLink,className:"button -text landing-show-more-link",rel:"nofollow"},I18n.t("landing_page.shared.show_more"),F.createElement(i.A,{name:"arrow-back-ios",className:"-green- icon--tiny"}))))}}])&&A(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),k=x,N=n(8071),I=n(6540);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R(r.key),r)}}function R(e){var t=function(e){if("object"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==B(t)?t:t+""}function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(z=function(){return!!e})()}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}
1function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}var L=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=q(t),function(e,t){if(t&&("object"==B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,z()?Reflect.construct(t,n||[],q(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return I.createElement("div",null,I.createElement("a",{href:this.props.showMoreLink,className:"landing-page--section-title",rel:"nofollow"},I18n.t("landing_page.top_pictures.title")),I.createElement("div",{className:"landing-page--section-subtitle"},I18n.t("landing_page.top_pictures.subtitle")),I.createElement("div",{className:"-horizontal- landing-section-content"},this.props.data.map(function(e,t){var n;return I.createElement("a",{href:e.path_to_image,rel:"nofollow",className:"-vertical- -flex-1- onboarding-photo-container ".concat(3===t?"-up-from-lg-":""),key:t},I.createElement("div",{className:"onboarding-photo"},I.createElement("img",{src:e.image_url,className:"landing-page--photo",alt:"".concat(null===(n=e.user)||void 0===n?void 0:n.name," photo")})),I.createElement("div",{className:"-horizontal- -a-centered- onboarding-photo--user"},I.createElement(N.A,{alt:e.user.name,size:"small",url:e.user.avatar}),I.createElement("div",{className:"landing-top-photos--user-name"},e.user.name)))})),I.createElement("div",{className:"-horizontal- -a-centered- -end- landing-page--section-footer"},I.createElement("a",{href:this.props.showMoreLink,className:"button -text landing-show-more-link",rel:"nofollow"},I18n.t("landing_page.shared.show_more"),I.createElement(i.A,{name:"arrow-back-ios",className:"-green- icon--tiny"}))))}}])&&T(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),U=L,H=n(1043),G=n(6540);function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W(r.key),r)}}function W(e){var t=function(e){if("object"!=$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(t)?t:t+""}function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Q=function(){return!!e})()}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}var J=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Z(t),function(e,t){if(t&&("object"==$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Q()?Reflect.construct(t,n||[],Z(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(t,e),n=t,(r=[{key:"getCampaignImage",value:function(){var e=this.props.campaign;return e&&e.visible?G.createElement("a",{href:(0,H.i6)(e.link),className:"landing-page--box-with-photo onboarding-photo-container campaign-link",rel:"nofollow"},G.createElement("img",{src:e.image.url,alt:e.name,className:"campaign-image",loading:"lazy"})):null}},{key:"render",value:function(){var e=this;return G.createElement("div",null,G.createElement("a",{href:this.props.showMoreLink,className:"landing-page--section-title",rel:"nofollow"},I18n.t("landing_page.magazine.title")),G.createElement("div",{className:"landing-page--section-subtitle"}
1,I18n.t("landing_page.magazine.subtitle")),G.createElement("div",{className:"-horizontal- -a-centered- -centered- landing-section-content"},this.props.data.map(function(t,n){return e.props.campaign&&e.props.campaign.visible&&1===n?e.getCampaignImage():G.createElement("a",{className:"-vertical- landing-page--box-with-photo onboarding-photo-container ".concat(2===n?"-up-from-md-":""),key:n,href:t.request_path,rel:"nofollow"},G.createElement("img",{src:t.teaser_image,className:"landing-page--photo",loading:"lazy",alt:t.teaser_headline}),G.createElement("div",{className:"box-with-photo--text"},G.createElement("div",{className:"box-with-photo--text-heading"},t.teaser_headline),G.createElement("div",{className:"box-with-photo--text-subheading",dangerouslySetInnerHTML:{__html:t.text}})))})),G.createElement("div",{className:"-horizontal- -a-centered- -end- landing-page--section-footer"},G.createElement("a",{href:this.props.showMoreLink,className:"button -text landing-show-more-link",rel:"nofollow"},I18n.t("landing_page.shared.show_more"),G.createElement(i.A,{name:"arrow-back-ios",className:"-green- icon--tiny"}))))}}])&&V(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),X=J,K=n(4879),ee=n(1757),te=n(6540);function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oe(r.key),r)}}function oe(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ie=function(){return!!e})()}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}function ue(e,t){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ue(e,t)}var ce=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=ae(t),function(e,t){if(t&&("object"==ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ie()?Reflect.construct(t,n||[],ae(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(t,e),n=t,(r=[{key:"getSerializedData",value:function(){var e=this;return this.props.data.map(function(t){var n;return{userAvatar:null!==(n=t.author.avatar)&&void 0!==n&&n.url?t.author.avatar.url.replace(/#height|#width/g,136):"assets/default/avatar_default_original.png",userName:t.author.display_name,title:t.title,steps:t.steps,id:t.id,slugged:t.slugged,categoryName:t.category_name,categoryPath:t.category_slugged?(0,H.au)(t.category_slugged):e.props.diyProjectsPath||"/diy"}})}},{key:"render",value:function(){var e=this.getSerializedData();return te.createElement("div",null,te.createElement("a",{href:this.props.diyLandingPath,className:"landing-page--section-title",rel:"nofollow"},I18n.t("landing_page.diy_projects.title")),te.createElement("div",{className:"landing-page--section-subtitle"},I18n.t("landing_page.diy_projects.subtitle")),te.createElement("div",{className:"-horizontal- -a-centered- -centered- landing-section-content"},e.map(function(e,t){return te.createElement("a",{className:"-vertical- landing-page--box-with-photo onboarding-photo-container",key:t,href:(0,ee.diyProjectPath)(e.id,e.slugged),rel:"nofollow"},te.createElement("div",{className:"landing-page--photo__diy"},te.createElement(K.A,{steps:e.steps,loadOnScroll:!1,bigCover:!1})),te.createElement("div",{className:"box-with-photo--text -vertical-"},te.createElement("div",{className:"-flex- -a-centered- -horizontal- box-with-photo--info-bar"},te.createElement("div",{className:"-flex-1- -start- info-bar--left !ellipsis"},te.createElement(N.A,{alt:e.userName,size:"small",url:(0,H.kg)("http://images.homify.com/"+e.userAvatar,26,26)}),te.createElement("div",{className:"landing-top-photos--user-name"},e.userName)),te.createElement("span",{className:"info-bar--right project-category -category-badge button !ellipsis"},e.categoryName)),te.createElement("div",{className:"box-with-photo--text-heading"},e.title)))})),te.createElement("div",{className:"-horizontal- -a-centered- -end- landing-page--section-footer"},te.createElement("a",{href:this.props.showMoreLink,className:"button -text landing-show-more-link",rel:"nofollow"},I18n.t("landing_page.diy_projects.show_more"),te.createElement(i.A,{name:"arrow-back-ios",className:"-green- icon--tiny"}))))}}])&&re(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),le=ce,se=n(6540);function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,de(r.key),r)}}function de(e){var t=function(e){if("object"!=fe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fe(t)?t:t+""}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ye=function(){return!!e})()}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}var ge=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=he(t),function(e,t){if(t&&("object"==fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ye()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}(this,t,[e])).state={imageBaseUrl:"https://media.homify.com/tr:w-200,f-webp/assets/landing_page/app_banner/",iosAppImage:"https://media.homify.com/tr:w-250,h-80/assets/icons/store_badges/apple/download_app_icon_ios_".concat(I18n.locale,".png"),androidAppImage:"https://media.homify.com/assets/icons/store_badges/google/download_app_icon_google_".concat(I18n.locale,".png"),appIconUrl:"https://media.homify.com/assets/logos/homify-Icon_RoundShape.svg"},n.newDomains2023=["be","bg","cz","se","si","sk","fi","hr","no","rs","dk","hu","gr"],n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e,t=this;return se.createElement("div",{className:"container -horizontal- -a-centered- app-banner-section"},se.createElement("div",{className:"app-banner--left"},se.createElement("div",{className:"-vertical- app-banner-infos"},se.createElement("div",{className:"homify-logo"},se.createElement(i.A,{name:"homify-house"})),se.createElement("div",{className:"homify-logo_with-name"},se.createElement(i.A,{name:"homify"})),se.createElement("div",{className:"app-banner--description"},I18n.t("landing_page.app_banner.text")),se.createElement("div",{className:"-horizontal- -a-centered- -vertical-xs- download-app-links"},se.createElement("a",{href:this.props.iosLink,className:"download-app-link ios-app-link"},se.createElement("img",{src:this.state.iosAppImage,loading:"lazy",alt:"iOS App"})),se.createElement("a",{href:this.props.androidLink,className:"download-app-link android-app-link"},se.createElement("img",{src:this.state.androidAppImage,loading:"lazy",alt:"Android App"}))))),se.createElement("div",{className:"app-banner--right"},se.createElement("div",{className:"-horizontal- app-banner-images-container"},(e=Array(3),function(e){if(Array.isArray(e))return pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,n){return se.createElement("div",{className:"app-banner-image-container -a-centered-",key:n},se.createElement("img",{className:"app-banner-screenshot app-banner-screenshot_".concat(n+1),src:t.newDomains2023.includes(I18n.locale)?"".concat(t.state.imageBaseUrl,"en_app_banner_").concat(n+1,".png"):"".concat(t.state.imageBaseUrl).concat(I18n.locale,"_app_banner_").concat(n+1,".png"),loading:"lazy",alt:"Screenshot ".concat(n+1)}))}))))}}])&&me(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),ve=n(6942),De=n.n(ve),Ee=n(6540);function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fe(r.key),r)}}function Fe(e){var t=function(e){if("object"!=we(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=we(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==we(t)?t:t+""}function Oe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Oe=function(){return!!e})()}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}function je(e,t){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},je(e,t)}var Ce=["en","ca","eg","hk","hu","in","sa","my","pk","ph","sg","za","tw","th","tr","ae","us","ve"],Pe=["ar","cl","co","hr","es","fi","fr","gr","id","mx","nl","pe","pl","rs","si","sk"],Se=["br","pt","ru","ua"],xe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=Ae(t),function(e,t){if(t&&("object"==we(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oe()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(t,e),n=t,(r=[{key:"getContainerLocaleClass",value:function(){var e=this.props.locale;return Ce.includes(e)?"landing-page--container_short":Pe.includes(e)?"landing-page--container_long":Se.includes(e)?"landing-page--container_extra-long":""}},{key:"render",value:function(){var e=this.getContainerLocaleClass();return Ee.createElement("div",{className:De()("landing-page--container",e),"data-locale":this.props.locale},Ee.createElement("div",{className:"container onboarding-container"},Ee.createElement(_,{professionalsPath:this.props.more_professionals_path,roomsPath:this.props.roomsPath})),Ee.createElement("div",{className:"container section--margin explore-images-container"},Ee.createElement(d,{data:this.props.spaceCategories,showMoreLink:this.props.roomsPath})),Ee.createElement("div",{className:"container section--margin find-professionals-container"},Ee.createElement(k,{data:this.props.companyCategories,showMoreLink:this.props.more_professionals_path})),Ee.createElement("div",{className:"container section--margin top-pictures-container"},Ee.createElement(U,{data:this.props.topPictures,showMoreLink:this.props.roomsPath})),Ee.createElement("div",{className:"container section--margin top-professionals-container"},Ee.createElement("div",{className:"landing-page--section-title -nolink"},I18n.t("landing_page.top_professionals.title")),Ee.createElement("div",{className:"landing-page--section-subtitle"},I18n.t("landing_page.top_professionals.subtitle")),Ee.createElement("div",{className:"premium-cards-container"},Ee.createElement(o.A,{locale:this.props.locale,more_professionals_path:this.props.more_professionals_path,cards_count:3,page_name:"homepage"}))),Ee.createElement("div",{className:"container section--margin top-magazine-container"},Ee.createElement(X,{data:this.props.topArticles,showMoreLink:this.props.magazinePath,campaign:this.props.magazineHighlightsAd})),this.props.diyLive&&Ee.createElement("div",{className:"container section--margin top-diy-container"},Ee.createElement(le,{data:this.props.newDiyProjects,diyLandingPath:this.props.diyLandingPath,showMoreLink:this.props.diyProjectsPath})),Ee.createElement("div",{className:"app-banner-container"},Ee.createElement("div",{className:"app-banner--overlay"},Ee.createElement(ge,{iosLink:this.props.iosLink,androidLink:this.props.androidLink}))))}}])&&_e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Component),ke=xe;window.LandingPage=ke}},function(e){e.O(0,[4644,4121,7957],function(){return e(e.s=582)}),e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.