!function(){var t,e={16150:function(t,e,n){window.HeaderMedia=n(61055)},22118:function(t,e,n){var r=n(67294);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n2?r-2:0),i=2;i2&&void 0!==arguments[2]?arguments[2]:"";return this.absolutePath(this.localizedPath(t,"speakingProject",e,f(n)))},o.getProfessionalPathURL=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.absolutePath(this.localizedPath(t,"speakingProfessional",e,f(n)))},o.getRoomPathURL=function(t){return this.absolutePath(this.localizedPath(t,"spacePhotos"))},o.getIdeabookPath=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.absolutePath(this.localizedPath(t,"speakingIdeaBook",e,f(n)))},o.getMagazinePath=function(t){return this.absolutePath(this.localizedPath(t,"magazine"))},o.getProjectContextMenu=function(t,e,n,r,o){var i=r.name,a=this.localizedPath(o,"fullscreenIdeaBookPhoto",e.id,f(this.subUmlaute(e.title)),f(i)),c=e.image_alt_text,u=this.getOptimizedImageUrl(e.image,{width:316,height:316}),s=this.getOptimizedImageUrl(e.image,{width:632,height:632}),l=this.getProfessionalPathURL(o,e.user_id,i),p="tr"===I18n.locale?"":I18n.t("photos.index.by"),d=e.title,h=i;return ContextMenu.show(t,a,c,u,s,l,p,d,h,!1)},o.rejectKeys=function(t){for(var e=[],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o3&&void 0!==arguments[3]?arguments[3]:"auto",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto";if(t){if(t.includes("/upload/")){t=t.replace("http:","https:");var i="auto"!==r?",e_blur:1000":"";return e>0?t.replace("/upload/","/upload/c_scale,w_".concat(e,",q_").concat(r,",f_").concat(o).concat(i,"/")):t.replace("/upload/","/upload/c_scale,h_".concat(n,",q_").concat(r,",f_").concat(o).concat(i,"/"))}if(t.includes("media.homify.com")){if(t.includes("media.homify.com/tr:"))return t;var a="auto"!==r?",q-".concat(r,",bl-50"):"";return e>0?t.replace("media.homify.com/","media.homify.com/tr:f-auto,w-".concat(e).concat(a,"/")):t.replace("media.homify.com/","media.homify.com/tr:f-auto,h-".concat(n).concat(a,"/"))}}return t},o.getOptimizedImageUrl=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return/^v[0-9]+/.test(t)?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.width,r=e.height,o=e.crop,i=e.quality,a=e.rotation,c=e.format,u=e.crop_x,s=e.crop_y,l=e.crop_h,f=e.crop_w,p="crop"===o,d=90===a||270===a,h={width:(d?r:n)?"w_".concat(d?r:n):"",height:(d?n:r)?"h_".concat(d?n:r):"",crop:p?"c_fill":"c_".concat(o||"fill")},m={width:(d?l:f)?"w_".concat(d?l:f):"",height:(d?f:l)?"h_".concat(d?f:l):"",crop_x:"x_".concat(u||"0"),crop_y:"y_".concat(s||"0"),crop:"c_crop"},y={quality:"q_".concat(i||"auto"),rotation:a?"a_".concat(a):"",format:"f_".concat(c||"auto")},g=function(t){return Object.values(t).filter((function(t){return t})).join(",")},b=p?"".concat(g(m),",").concat(g(y),"/").concat(g(h)):"".concat(g(h),",").concat(g(y));return"".concat("https://images.homify.com/").concat(b,"/").concat(t)}(t,e):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.width,r=e.height,o=e.crop,i=e.quality,a=e.rotation,c=e.format,u=e.crop_x,s=e.crop_y,l=e.crop_h,f=e.crop_w,p="crop"===o,d=90===a||270===a,h={width:(d?r:n)?"w-".concat(d?r:n):"",height:(d?n:r)?"h-".concat(d?n:r):"",crop:p?"cm-extract":"c-maintain_ratio"},m={width:(d?l:f)?"w-".concat(d?l:f):"",height:(d?f:l)?"h-".concat(d?f:l):"",crop_x:"x-".concat(u||"0"),crop_y:"y-".concat(s||"0"),crop:"cm-extract"},y={quality:"q-".concat(i||"auto"),rotation:"rt-".concat(a||0),format:"f-".concat(c||"auto")},g=function(t){return Object.values(t).filter((function(t){return t})).join(",")},b=p?"".concat(g(m),",").concat(g(y)):"".concat(g(h),",").concat(g(y));return"".concat("https://media.homify.com/","tr:").concat(b,"/").concat(t)}(t,e)},o.getAgnosticImageUrl=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return"";var n=t.replace("https://images.homify.com/image/upload/","").replace("https://media.homify.com/","");return e?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},o.getFullImageUrlFromAgnostic=function(t){return/^v[0-9]+/.test(t)?"https://images.homify.com/".concat(t):"https://media.homify.com/".concat(t)},o.randomiseAds=function(t){return t.sort((function(){return Math.random()-.5}))},o.removeEmptyHTMLLines=function(t){return t.replaceAll("


","")},o.subUmlaute=function(t){return"string"!=typeof t?"":t.replace(/[äÄöÖüÜß]/g,(function(t){switch(t){case"ä":case"Ä":return"ae";case"ö":case"Ö":return"oe";case"ü":case"Ü":return"ue";case"ß":return"ss";default:return t}}))},o.getExternalLink=function(t){return t.startsWith("https://")||t.startsWith("http://")?t:"https://".concat(t)},o);t.exports&&(t.exports=p)},9926:function(t,e,n){var r,o,i,a,c,u,s,l,f,p,d,h,m,y,g,b,v=n(81161),w=n(24035),_=(r=v.shape({label:v.string.isRequired,key:v.string.isRequired}),o=v.shape({url:v.string}),i=v.shape({name:v.string.isRequired,id:v.number.isRequired,admin:v.boolean,editor:v.boolean,avatar:o}),a=v.shape({display_name:v.string.isRequired,id:v.number.isRequired,avatar:v.any}),c=v.shape({id:v.number,url:v.string}),u=v.shape({id:v.number,url:v.string}),s=v.shape({type:v.oneOf(["PHOTO","VIDEO"]).isRequired,media:v.oneOfType([c,u]).isRequired}),f=(l=["PENDING","APPROVED","DISAPPROVED"]).concat("ALL"),p=v.oneOf(l),d=v.oneOf(f),h=v.shape({id:v.number.isRequired,title:v.string.isRequired,description:v.string.isRequired,questionState:p.isRequired,views_count:v.number,answers_count:v.number,categoryId:v.number}),m=v.oneOf(["EASY","MEDIUM","HARD"]),y=v.oneOf([1,2,3,4]),g=v.oneOf(["minutes","hours","days"]),b=v.shape({id:v.number,text:v.string.isRequired}),{QuestionsFilter:r,User:i,Question:h,Project:v.shape({approved:v.boolean,author:a.isRequired,category_id:v.number,comments_count:v.number,cost:y.isRequired,created_at:v.string.isRequired,description:v.string,difficulty:m,id:v.number.isRequired,locale:v.string.isRequired,materials:v.arrayOf(b),title:v.string.isRequired,views_count:v.number,projectState:p}),Category:v.shape({id:v.number.isRequired,name:v.string,order_no:v.number,language:v.string}),Author:a,ApprovalStatus:p,ApprovalStatusFilter:d,ApprovalStatusFilterValues:f,MediaItem:s,Reply:v.shape({id:v.number.isRequired,text:v.string.isRequired,author:a}),Difficulty:m,Material:b,ProjectStep:v.shape({id:v.number,text:v.string,photos:v.arrayOf(c),videos:v.arrayOf(u),step_title:v.string}),Filters:v.shape({categoryId:v.number,state:d}),DateType:v.oneOfType([Date,function(t,e,n){if(!w.isMoment(t[e]))return new Error('Prop "'.concat(e,'" passed to ').concat(n," is [").concat(t[e],"], expected momentjs object"))}]),DurationUnit:g});t.exports&&(t.exports=_)},61055:function(t,e,n){var r=n(67294);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var n=0;n=i)&&Object.keys(r.O).every((function(t){return r.O[t](n[u])}))?n.splice(u--,1):(c=!1,i0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[n,o,i]},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r.j=836,function(){var t={836:0};r.O.j=function(e){return 0===t[e]};var e=function(e,n){var o,i,a=n[0],c=n[1],u=n[2],s=0;if(a.some((function(e){return 0!==t[e]}))){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(u)var l=u(r)}for(e&&e(n);s