webpackJsonp([0],[,,,,function(t,e,n){"use strict";var r,i,o,a,s,l,c,u,d;n.d(e,"b",function(){return r}),n.d(e,"d",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"g",function(){return l}),n.d(e,"i",function(){return c}),n.d(e,"f",function(){return u}),n.d(e,"h",function(){return d}),e.j=function(){var t={alpha:!0,depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0},e=document.createElement("canvas"),n=e.getContext("webgl2",t);if(n)return!0;return!!(n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t))},function(t){t.MAPS_API_KEY="AIzaSyAXTQ17l7luOH5zFe90K93ENFUoEeS6GIA"}(r||(r={})),function(t){t.POPUP_FOCUS_LOSS_TIMEOUT="400",t.REM_SIZE=16,t.MEDIUM_SCREEN_BREAK=640,t.CLIENT_SCREEN_BREAK=850,t.LARGE_SCREEN_BREAK=1024,t.XLARGE_SCREEN_BREAK=1200,t.XXLARGE_SCREEN_BREAK=1440,t.COMMENT_MAX_LENGTH=280,t.ITEM_DESCRIPTION_MAX_LENGTH=1e3,t.ITEM_TITLE_MAX_LENGTH=100,t.DEFAULT_KEYWORDS="3D,model,3D model,collection,free,download,upload,sketchup",t.POLLING_TIME=15e3,t.POLLING_LIMIT=6e5,t.POLLING_COUNT_LIMIT=40,t.INFINITE_SCROLL_SET_TIMEOUT=5e3,t.INFINITE_SCROLL_MAX_ATTEMPTS=10,t.DEBOUNCE_SHORT=250,t.DEBOUNCE_MEDIUM=500,t.DEBOUNCE_LONG=3e3,t.MINIMUM_MAJOR_VERSION=14}(i||(i={})),function(t){t.ACCORDION_EXPAND_TIME=250}(o||(o={})),function(t){t.BROWSE_ITEMS_OPEN="browse-items-open",t.COMMENT_REQUEST="comment-request",t.COMMENT_RESOLVE="comment-resolve",t.MENU_ACTION="menu-action",t.MODEL_QUICK_VIEW="model-quick-view",t.PAGE_HEADER_CLICK="page-header-click",t.PAGE_OVERLAY_CLICK="page-overlay-click",t.TOGGLE_MAIN_OVERLAY="toggle-main-overlay",t.TOGGLE_LEFT_PANEL="toggle-left-panel",t.SHOW_GEOLOCATION="show-geolocation",t.UPLOAD_START="upload-start",t.UPLOAD_ERROR="upload-error",t.SIGN_IN_GUARD="sign-in-guard"}(a||(a={})),function(t){t.Components="components",t.Geolocation="geolocation",t.Materials="materials",t.Reviews="reviews",t.CreatorModels="creator-models",t.RelatedModels="related-models",t.CreatorCollections="creator-collections",t.ContainingCollections="containing-collections"}(s||(s={})),function(t){t.EditModelPage="edit-model-page",t.ModelAnalytics="model-analytics"}(l||(l={})),function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure",t[t.LoadingIndeterminate=2]="LoadingIndeterminate",t[t.LoadingDeterminate=3]="LoadingDeterminate"}(c||(c={})),function(t){t[t.ERROR_READING_FILE=1]="ERROR_READING_FILE",t[t.FILE_TOO_LARGE=2]="FILE_TOO_LARGE",t[t.GENERIC=3]="GENERIC",t[t.UNSUPPORTED_FILETYPE=4]="UNSUPPORTED_FILETYPE",t[t.TOO_MANY_FILES=5]="TOO_MANY_FILES"}(u||(u={})),function(t){t.COLLECTION="collection",t.INDEX="index",t.MATERIAL="material",t.MODEL="model",t.MODEL_EDIT="modeledit",t.SEARCH="search"}(d||(d={}))},,,function(t,e,n){"use strict";e.x=function(t,e){(e||window).location.href=t},e.s=m,e.i=function(t){return m(t||window.location.href)},e.k=function(t,e){var n=new s.a(m(""));n.path("/redirect.html"),n.addSearch("redirect",encodeURIComponent(t)),e&&n.addSearch("source",e);return n.href()},e.m=function(t){return"/search/?"+function(t){var e=y(p.Q,t.searchTerms,"","");e+=y(p.SEARCH_TAB,t.searchTab,""),e+=y(p.CREATOR_ID,t.creatorId,""),e+=y(p.CREATE_USER_DISPLAY_NAME,t.creatorName,""),e+=y(p.IS_DYNAMIC_COMPONENT,t.isDynamicComponent,!1),e+=y(p.IS_GEO_LOCATED,t.isGeoLocated,!1),e+=y(p.IS_CATALOG,t.isCatalog,!1),e+=y(p.IS_PRODUCT,t.isProduct,!1),e+=v(p.MODIFY_FROM_DATE,t.modifyFromDate,""),e+=v(p.MODIFY_TO_DATE,t.modifyToDate,""),e+=y(p.POLYGONS_MIN,t.polygonsMin,d.a.POLYGONS_MIN_BOUND),e+=y(p.POLYGONS_MAX,t.polygonsMax,d.a.POLYGONS_MAX_BOUND),e+=y(p.FILESIZE_MIN,t.fileSizeMin,d.a.FILESIZE_MIN_BOUND),e+=y(p.FILESIZE_MAX,t.fileSizeMax,d.a.FILESIZE_MAX_BOUND),e+=y(p.MATERIAL_FILESIZE_MIN,t.matFileSizeMin,d.a.MATERIAL_FILESIZE_MIN_BOUND),e+=y(p.MATERIAL_FILESIZE_MAX,t.matFileSizeMax,d.a.MATERIAL_FILESIZE_MAX_BOUND),e+=y(p.TITLE,t.title,""),e+=y(p.SORT_BY,t.sortBy,d.a.DEFAULT_SORT_BY),e+=y(p.USE_ELASTICSEARCH,t.searchElasticsearch,!1),t.adminParams&&!t.adminParams.defaultValues&&(e+=y(p.ADMIN_PARAMS,JSON.stringify(t.adminParams),"{}"));return e}(t)},e.e=function(t,e,n){var r="/embed.html?mid="+t;e&&(r+="&etp="+e);n&&(r+="&noEmbedWatermark=true");return r},e.h=function(t,e,n,r,i,o){var a="warehouse",s="",l="",c=h[e];void 0===c?(s="getbinary",l="subjectId="+encodeURIComponent(t)+"&subjectClass="+encodeURIComponent(e)+"&name="+encodeURIComponent(n.toString()),r&&(l+="&fn="+encodeURIComponent(r))):(a+="/v1.0",s=c+"/"+t+"/binaries/"+n,l="download="+!!o);return"/"+a+"/"+s+"?"+(l+="&recordEvent="+!!i)},e.q=function(t){return"/user/"+t},e.g=function(t,e){return"/model/"+t+"/"+e},e.f=function(t){return"/edit/model/"+t},e.b=function(t){return"/collection/"+t},e.j=function(t){return"/material/"+t},e.n=function(t,e,n){var r=O(n),i=new s.a(t);i.setQuery("login","true");var o=(l=i,d=b(l.toString()),p=new s.a(m(l.toString())),p.path(c.e+"/authorizecb"),p.setQuery("url",d),p.toString()),a=new s.a(e);var l,d,p;a.setQuery("msg","Failed to sign in.");var h=c.c;u.d(i)||(h=c.d);var f=new s.a(h);return f.path("/"+r+c.a),f.setQuery("destination64",b(o)),f.setQuery("failureDestination64",b(a.href())),_(f),f.href()},e.o=function(t,e){var n=O(e),r=new s.a(t),i=c.c;u.d(r)||(i=c.d);var o=new s.a(i);return o.path("/"+n+c.b),o.setQuery("destination64",b(r.href())),_(o),o.href()},e.r=v,e.t=g,e.y=function(t,e){var n=t.split("/"),r=n.indexOf(e);if(r<0||r===n.length-1)return null;return n[r+1]},e.c=function(t,e){void 0===e&&(e=null);var n="/"+h[t.subjectClass]+"/"+t.id+"/comments";return e?n+"/"+e:n},e.l=function(t){var e=new s.a(window.location.href);e.removeQuery("msg");var n=f.REPORT_ABUSE_FORM_PREFIX,r=f.REPORT_ABUSE_FORM_SUFFIX,i=O(t),o=new s.a(""+n+i+r);return o.addSearch("url",encodeURIComponent(e.href())),o.href()},e.d=function(t){var e=f.SKETCHUP,n=O(t);if(n&&"en"!==n)return e+n+"/download";return e+"download"},e.p=function(t){return"/upload.html?type="+t},e.z=function(t){var e=t.trim().replace(/\s+/g,"-");return(e=(e=(e=(e=e.replace(/[\x00-\x1F\x7F-\xBF]/g,"")).replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,.\/:;<=>?@\[\]^_`{|}~]/g,"")).replace(/\-+/g,"-")).replace(/^\-/,"").replace(/\-$/,"")).substring(0,500)},e.v=function(t,e){if(0===t.length)return!0;var n=(e?new s.a(e):new s.a(window.location.href)).domain(),r=new s.a(t),i=r.domain(),o=r.protocol(),a=r.path();if(!/^\s+$/.test(this.externalUrl)&&("http"===o||"https"===o)){if(n!==i)return!0;if(0!==a.indexOf("/3dw")&&0!==a.indexOf("/warehouse"))return!0}return!1},e.a=function(t){if(""===(t=t.trim()))return"";var e=new s.a(t);if(e.protocol())return e.href();return e.protocol("http").href()},e.u=function(t){void 0===t&&(t="");if(!t)return!1;return t=t.trim().toLowerCase(),new s.a(t).hostname().endsWith("sketchup.com")},e.w=function(t){void 0===t&&(t="");if(!t)return!1;var e=r.find(t);if(e.length)for(var n=0,i=e;n=3}function b(t){var e=btoa(t||"");return e=(e=(e=e.replace(/\+/g,"-")).replace(/\//g,".")).replace(/=/g,"_")}function _(t){(u.f()||g())&&t.setQuery("skpActionType","SKETCHUP_CLIENT")}function O(t){var e=t||"";return l.a[e.toLowerCase()]||l.a.en}},function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),e.e=function(t){var e=u.a(t,!0).query,n=function(t){var e=t.polygonsMin||0,n=t.polygonsMax||o.POLYGONS_MAX_BOUND,r=o.POLYGONS_MIN_BOUND,i=o.POLYGONS_MAX_BOUND;isNaN(e)||(r=v(e,r,i));isNaN(n)||(i=v(n,r,i));return{min:r,max:i}}(e),r=function(t){var e=t.fileSizeMin||o.FILESIZE_MIN_BOUND,n=t.fileSizeMax||o.FILESIZE_MAX_BOUND,r=o.FILESIZE_MIN_BOUND,i=o.FILESIZE_MAX_BOUND;isNaN(e)||(r=v(e,r,i));isNaN(n)||(i=v(n,r,i));return{min:r,max:i}}(e),i=function(t){var e=t.matFileSizeMin||o.MATERIAL_FILESIZE_MIN_BOUND,n=t.matFileSizeMax||o.MATERIAL_FILESIZE_MAX_BOUND,r=o.MATERIAL_FILESIZE_MIN_BOUND,i=o.MATERIAL_FILESIZE_MAX_BOUND;isNaN(e)||(r=v(e,r,i));isNaN(n)||(i=v(n,r,i));return{min:r,max:i}}(e);return{creatorId:function(t){return t.creatorId||""}(e),creatorName:function(t){return t.createUserDisplayName||""}(e),fileSizeMin:r.min,fileSizeMax:r.max,isCatalog:function(t){return y(t.isCatalog)}(e),isDynamicComponent:function(t){return y(t.isDynamicComponent)}(e),isGeoLocated:function(t){return y(t.isGeoLocated)}(e),isProduct:function(t){return y(t.isProduct)}(e),matFileSizeMin:i.min,matFileSizeMax:i.max,modifyFromDate:g(e.modifyFromDate),modifyToDate:g(e.modifyToDate),polygonsMin:n.min,polygonsMax:n.max,searchElasticsearch:y(e.searchElasticsearch),searchTab:_(e),searchTerms:O(e),sortBy:m(e),title:function(t){return t.title||""}(e),adminParams:function(t){var e=t.adminParams;if(!e)return{relevancy:{titleBoost:"1.0",titleTranslationsBoost:"1.0",descriptionBoost:"1.0",descriptionTranslationsBoost:"1.0",tagsBoost:"1.0",creatorNameBoost:"1.0",viewsPopularityFactor:1,downloadsPopularityFactor:4,copyrightBoost:"1.0",copyrightTranslationsBoost:"1.0",detailsBoost:"1.0",detailsTranslationsBoost:"1.0",externalUrlBoost:"1.0",externalUrlTranslationsBoost:"1.0"},categoryName:"",categoryScoreMax:1,categoryScoreMin:0,isAdultContent:!1,defaultValues:!0};return JSON.parse(e)}(e)}},e.d=function(t){var e={count:t.count>0?t.count:o.DEFAULT_SEARCH_COUNT,recordEvent:!1};t.offset&&(e.offset=t.offset);t.searchElasticsearch&&(e.searchElasticsearch=t.searchElasticsearch);e.q=function(t){var e="";t.searchTerms&&(e=t.searchTerms);return e}(t);var n=function(t){var e=o.FqParameters,n=e.Attributes,r="",i=t,s=a.getSupportedFilters(i.searchTab);if(s.polygons){var l=function(t,e){var n=o.FqParameters.Attributes;return f(t,e,o.POLYGONS_MIN_BOUND,o.POLYGONS_MAX_BOUND,b(n.SKP,n.Skp.POLYGONS))}(i.polygonsMin,i.polygonsMax);l&&(r+=l)}if(s.fileSize){var c=(u=i.fileSizeMin,d=i.fileSizeMax,f(u*o.FILESIZE_BYTES_MULTIPLIER,d*o.FILESIZE_BYTES_MULTIPLIER,o.FILESIZE_MIN_BOUND*o.FILESIZE_BYTES_MULTIPLIER,o.FILESIZE_MAX_BOUND*o.FILESIZE_BYTES_MULTIPLIER,o.FqParameters.LARGEST_BINARY_SIZE));c&&(r+=c)}var u,d;if(s.matFileSize){var p=function(t,e){return f(t,e,o.MATERIAL_FILESIZE_MIN_BOUND,o.MATERIAL_FILESIZE_MAX_BOUND,o.FqParameters.LARGEST_BINARY_SIZE)}(i.matFileSizeMin,i.matFileSizeMax);p&&(r+=p)}if(s.contains){var m=function(t,e){var n;switch(t){case o.SearchTab.COLLECTION:n=o.FqParameters.CONTAINS_COLLECTION_ID;break;case o.SearchTab.MATERIAL:n=o.FqParameters.CONTAINS_MATERIAL_ID;break;case o.SearchTab.MODEL:case"entity":n=o.FqParameters.CONTAINS_ENTITY_ID;break;default:return null}return";"+n+'=="'+e+'"'}(i.containsClass,i.containsId);m&&(r+=m)}if(s.admin&&i.adminParams){if(i.adminParams.categoryName){var v=function(t,e,n){if(""===t)return"";var r=o.FqParameters.ATTRIBUTE+":"+o.FqParameters.IMAGE_CATEGORIES+":"+t+":float=gt="+e;return r+=";",r+=o.FqParameters.ATTRIBUTE+":"+o.FqParameters.IMAGE_CATEGORIES+":"+t+":float=lt="+n}(i.adminParams.categoryName,i.adminParams.categoryScoreMin,i.adminParams.categoryScoreMax);v&&(r+=";"+v)}if(i.adminParams.isAdultContent){var y=function(t){if(!t)return"";for(var e=["LIKELY","VERY_LIKELY"],n=["violence","adult","racy"],r="(",i=0;i=0?e+='"'+t[n]+'" ':e+=t[n]+" ";return e.trim()},e.i=function(t){if(!t)return t;return function t(e){var n="";var r=null;var i="";for(var o=0;o0)return"";if(o+1=0,h=!0;p&&(0===n.length?h="NOT"===a:null!=r&&(h="NOT"===a&&("AND"===r||"OR"===r))),h&&(n+=i+a,i=" ",r=p?a:null)}}r&&(n=n.substr(0,n.length-r.length).trim());return n}(function(t){return(t=(t=(t=(t=(t=t.trim()).replace(/\(/g,"( ")).replace(/\)/g," )")).replace(/:/g," ")).replace(/\s\s+/g," ")).split(" ")}(t))};var r,i,o,a,s=n(0),l=n.n(s),c=n(5),u=(n.n(c),n(77)),d=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){t.TitleAsc="title ASC",t.TitleDesc="title DESC",t.ModifyTimeAsc="modifyTime ASC",t.ModifyTimeDesc="modifyTime DESC",t.PopularityDesc="popularity DESC",t.RelevanceDesc="relevance DESC",t.ReviewCountDesc="reviewCount DESC",t.CreateTimeAsc="createTime ASC",t.CreateTimeDesc="createTime DESC"}(i||(i={})),function(t){t.DEFAULT_SEARCH_COUNT=16,t.DEFAULT_SORT_BY=i.RelevanceDesc,t.POLYGONS_MIN_BOUND=0,t.POLYGONS_MAX_BOUND=1e6,t.URL_DATE_FORMAT="YYYY-MM-DD",t.URL_DATE_TIME_FORMAT="YYYY-MM-DD HH:mm:ss",t.RESPONSE_TIME_FORMAT="YYYY-MM-DD HH:mm.ss.SSS",t.FILESIZE_BYTES_MULTIPLIER=1048576,t.FILESIZE_MIN_BOUND=0,t.FILESIZE_MAX_BOUND=50,t.MATERIAL_FILESIZE_MIN_BOUND=0,t.MATERIAL_FILESIZE_MAX_BOUND=1048576,t.CATEGORIES_SCORE_MIN_BOUND=0,t.CATEGORIES_SCORE_MAX_BOUND=1,t.CATEGORIES_SCORE_STEP=.05,function(t){t.ENTITY="entity",t.COLLECTION="collection",t.MATERIAL="material"}(t.BackendClass||(t.BackendClass={})),function(t){t.ALL="all",t.MODEL="model",t.COLLECTION="collection",t.MATERIAL="material"}(t.SearchTab||(t.SearchTab={})),function(e){e.ADMIN_PARAMS="adminParams",e.SEARCH_TAB="searchTab",e.CREATE_USER_DISPLAY_NAME="createUserDisplayName",e.CREATOR_ID="creatorId",e.IS_CATALOG="isCatalog",e.IS_DYNAMIC_COMPONENT="isDynamicComponent",e.IS_GEO_LOCATED="isGeoLocated",e.IS_PRODUCT="isProduct",e.MODIFY_FROM_DATE="modifyFromDate",e.MODIFY_TO_DATE="modifyToDate",e.POLYGONS_MAX="polygonsMax",e.POLYGONS_MIN="polygonsMin",e.FILESIZE_MAX="fileSizeMax",e.FILESIZE_MIN="fileSizeMin",e.MATERIAL_FILESIZE_MAX="matFileSizeMax",e.MATERIAL_FILESIZE_MIN="matFileSizeMin",e.USE_ELASTICSEARCH="searchElasticsearch",e.SORT_BY="sortBy",e.TITLE="title",e.Q="q",function(t){t.LE="LE",t.LT="LT",t.GE="GE",t.GT="GT",t.EQ="EQ"}(e.Operators||(e.Operators={})),function(e){e.ALL=t.SearchTab.ALL,e.MODEL=t.SearchTab.MODEL,e.COLLECTION=t.SearchTab.COLLECTION,e.MATERIAL=t.SearchTab.MATERIAL}(e.SearchTab||(e.SearchTab={}))}(t.UrlParameters||(t.UrlParameters={})),function(t){t.CREATOR_ID="creatorId",t.CREATOR_NAME="creatorName",t.IS_CATALOG="isCatalog",t.IS_EMPTY="isEmpty",t.LARGEST_BINARY_SIZE="largestBinarySize",t.MODIFY_TIME="modifyTime",t.FILE_EXTENSIONS="binaryExts",t.TITLE="title",t.PARENT_CATALOG_ID="parentCatalogId",t.CONTAINS_COLLECTION_ID="containsCollectionId",t.CONTAINS_ENTITY_ID="containsEntityId",t.CONTAINS_MATERIAL_ID="containsMaterialId",t.IMAGE_CATEGORIES="imageCategories",t.ATTRIBUTE="attribute",function(t){t.SKP="skp",function(t){t.IS_DYNAMIC_COMPONENT="isDynamicComponent",t.IS_GEO_LOCATED="isGeoreferenced",t.POLYGONS="polygons"}(t.Skp||(t.Skp={}))}(t.Attributes||(t.Attributes={}))}(t.FqParameters||(t.FqParameters={}))}(o||(o={})),function(t){var e=function(){return function(){this.creatorId=!0,this.creatorName=!1,this.fileSize=!1,this.isCatalog=!1,this.isDynamicComponent=!1,this.isGeoLocated=!1,this.isProduct=!1,this.matFileSize=!1,this.polygons=!1,this.showFeatures=!1,this.showOther=!1,this.title=!1,this.contains=!1,this.admin=!1}}();t.SupportedFilters=e;var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e}(e);t.AllItems=n;var r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.creatorName=!0,e.title=!0,e.showOther=!0,e.showFeatures=!0,e.isCatalog=!0,e.contains=!0,e.admin=!1,e}return d(e,t),e}(e);t.Collections=r;var i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.creatorName=!0,e.fileSize=!0,e.isDynamicComponent=!0,e.isGeoLocated=!0,e.isProduct=!0,e.polygons=!0,e.showFeatures=!0,e.showOther=!0,e.title=!0,e.admin=!0,e}return d(e,t),e}(e);t.Models=i;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.matFileSize=!0,e}return d(e,t),e}(e);t.Materials=a;var s=new n,l=new r,c=new i,u=new a;t.getSupportedFilters=function(t){var e,n=o.UrlParameters.SearchTab;switch(t){case n.COLLECTION:e=l;break;case n.MODEL:e=c;break;case n.MATERIAL:e=u;break;default:e=s}return e}}(a||(a={}));var p={"title asc":i.TitleAsc,"title desc":i.TitleDesc,"modifytime asc":i.ModifyTimeAsc,"modifytime desc":i.ModifyTimeDesc,"popularity desc":i.PopularityDesc,"relevance desc":i.RelevanceDesc,"reviewcount desc":i.ReviewCountDesc};function h(t,e){var n="";if(t&&t instanceof Date){var r=t;e&&(r=new Date(t.getTime())).setDate(t.getDate()+1),n=l.a.utc(r).format(o.URL_DATE_TIME_FORMAT)}return n}function f(t,e,n,r,i){var o="",a="";return(t=t||n)!==n&&(o=";"+i+"=gt="+t),(e=e||r)!==r&&(a=";"+i+"=lt="+e),o+a}function m(t){var e=i.RelevanceDesc,n=(t.sortBy||"").toLowerCase();if(c.string.isEmptyOrWhiteSpace(n))return e;var r=p[n];return r&&(e=r),e}function v(t,e,n){return t=Math.max(t,e),t=Math.min(t,n),Math.floor(t)}function y(t){return"true"===(t||"").toLowerCase()}function g(t){var e=l()(t||"",o.URL_DATE_FORMAT);return e.isValid()?e.toDate():""}function b(t,e){return"attr_"+t+"_#_"+e}function _(t){var e=o.UrlParameters.SearchTab,n=(t.searchTab||"").toLowerCase();return n!==e.COLLECTION&&n!==e.MATERIAL&&n!==e.ALL&&(n=e.MODEL),n}function O(t){return(t.q||"").trim()}var C=["AND","OR","NOT"]},,function(t,e,n){"use strict";var r,i,o,a;n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return u}),n.d(e,"f",function(){return l}),n.d(e,"b",function(){return c}),function(t){t.CATALOG_BANNER_IMAGE=d("Catalog Banner Image"),t.COMPANY_LOGO=d("Company Logo"),t.COLLADA_FILE=d("Collada File"),t.GOOGLE_EARTH_KMZ=d("Google Earth KMZ"),t.LARGE_THUMB=d("Large Thumbnail"),t.SKETCHUP_KMZ=d("KMZ From SketchUp"),t.SKETCHUP_MODEL=d("SketchUp Model"),t.SKETCHUP_MODEL_5=d("SketchUp 5 Model"),t.SKETCHUP_MODEL_6=d("SketchUp 6 Model"),t.SKETCHUP_MODEL_7=d("SketchUp 7 Model"),t.SKETCHUP_MODEL_8=d("SketchUp 8 Model"),t.SKETCHUP_MODEL_2013=d("SketchUp 2013 Model"),t.SKETCHUP_MODEL_2014=d("SketchUp 2014 Model"),t.SKETCHUP_MODEL_2015=d("SketchUp 2015 Model"),t.SKETCHUP_MODEL_2016=d("SketchUp 2016 Model"),t.SKETCHUP_MODEL_2017=d("SketchUp 2017 Model"),t.SKETCHUP_MODEL_2018=d("SketchUp 2018 Model"),t.SMALL_THUMB=d("Small Thumbnail"),t.STL_FILE=d("STL File"),t.SWIVEL=d("Swivel"),t.UKNOWN=d("Unknown format"),t.USER_PICTURE=d("User Picture")}(r||(r={})),function(t){t.CONTACT_RATE_LIMIT_REACHED=d("To prevent spam, messages cannot be sent within one minute of each other."),t.DATA_LOAD_ERROR=d("An error occurred while loading data."),t.FAILED_TO_DELETE=d("Failed To Delete"),t.FAILED_TO_LOAD_SEARCH=d("Failed to load search results."),t.FAILED_TO_LOAD_SEARCH_FINAL=d("Cannot load search results. Please check your internet connection."),t.GENERIC_ERROR_TITLE=d("Oops! An error has occurred."),t.GENERIC_TRY_AGAIN=d("Something went wrong. Please try again."),t.GET_USER_FAILURE=d("An error occurred when retrieving user information."),t.NO_AVAILABLE_DOWNLOADS=d("No download files are available."),t.SAVE_MODEL_ERROR=d("An error occurred when saving your model."),t.TOS_SAVE_ERROR=d("Error when saving Terms of Service acceptance."),t.DROP_ZONE_ERROR=d("I didn't quite catch that. Try again.")}(i||(i={})),function(t){t.THOUSAND=d("{num} K"),t.MILLION=d("{num} M"),t.BILLION=d("{num} B"),t.BYTES=d("{fileSize} B"),t.KB=d("{fileSize} kB"),t.MB=d("{fileSize} MB"),t.GB=d("{fileSize} GB")}(o||(o={})),function(t){t.MODELS_BY_AUTHOR=d("Models by this author"),t.MODELS_RELATED=d("Related Models"),t.COLLECTIONS_BY_AUTHOR=d("Collections by this author"),t.COLLECTIONS_WITH_MODEL=d("Related Collections")}(a||(a={}));var s,l,c,u=d("The place to share and download SketchUp 3D models for architecture, design, construction, and fun.");function d(t){return t}!function(t){t.SEARCH_COUNT=d("More than {maxSearchResults} items found")}(s||(s={})),function(t){t.CONTAINS_CURSE_WORDS=d("Sorry, we detected a prohibited word. Please remove any profanity from your entry."),t.CONTAINS_URL=d("This field cannot contain a URL."),t.CONTAINS_EMAIL_ADDRESS=d("This field cannot contain an email address."),t.TITLE_ENDS_WITH_PERIOD=d("Titles cannot end with a period."),t.TAG_ENDS_WITH_PERIOD=d("Hashtags cannot end with a period."),t.EMPTY_TAG=d("Hashtags cannot be empty."),t.TAG_ONLY_NUMS_AND_SPECIAL_CHARS=d("Hashtags must contain letters."),t.URL_IN_TAG=d("Hashtags cannot contain a URL."),t.EMAIL_IN_TAG=d("Hashtags cannot contain an email address.")}(l||(l={})),function(t){t.DESC_LENGTH_CHECK_ONE="For better results, try adding a few\n sentences that best describe your model.",t.DESC_LENGTH_CHECK_TWO="Almost there. The best model\n descriptions are at least a few sentences long.",t.EMPTY_DESCRIPTION="You can increase your model's\n discoverability by crafting a description.",t.IDEAL_TAGS_AMOUNT="Great. For even better results, give your\n model 3 to 5 hashtags.",t.MAX_SCORE_REACHED="Awesome!",t.NO_FILE_NAME_OR_EXT="For better results, try not to duplicate\n your model's file name.",t.NO_REPEAT_TAGS="There is no need for repeat hashtags. Your\n model will be more discoverable if each tag is unique.",t.NO_TAGS_FOUND="For better results, try adding a hashtag to\n better classify your model. For example, a chair model could be '#chair'.",t.TOO_MANY_TAGS="For better results, aim to use only 3 to 5\n hashtags, definitely less than 10.",t.TITLE_MUST_CONTAIN_LETTERS="For better results, try adding\n words to your title that best describe your model.",t.WITHIN_IDEAL_CHAR_RANGE="The best titles are concise and\n descriptive. Try crafting a title between 2 and 25 characters."}(c||(c={}))},,function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(485),i=(n.n(r),r.loggingTool)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),e.h=function(t,e,n,i,a){var s="";null!=n&&(s=n.toString());!function(t,e,n,i,a,s){var c=o.e(a),u={uploadType:t,uploadSource:e,uploadSuccessful:n,uploadBinaryType:i,uploadFileExtension:c,uploadPrivacy:s};l(r.UPLOAD,u)}("model",t,e,s,i,a)},e.d=function(t,e,n){var i={uploadType:"collection",uploadSource:t,uploadSuccessful:e,uploadPrivacy:n};l(r.UPLOAD,i)},e.g=function(t){var e={successful:t?"true":"false"};l(r.MODEL_ADDED_TO_COLLECTION,e)},e.e=function(t){var e={commentAction:t};l(r.COMMENTING_EVENT,e)},e.c=function(t,e){var n=e?"open":"close";s(n+="Accordion",[t])},e.f=s,e.b=function(t,e){"string"!=typeof e&&(e=e.toString());!function(t,e){var n={downloadFileType:t,downloadPrivacy:e};l(r.DOWNLOAD,n)}(a.a(e,!0).query.name||"null",t?"private":"public")};var r,i,o=n(38),a=n(77);function s(t,e){for(var n=t,i="",o=0;o0?"|":"")+e[o].replace("|","")}l(r.GENERIC,{genericEventName:n,genericEventData:i})}function l(t,e){e.event=t;try{(window&&window.dataLayer||[]).push(e)}catch(t){}}!function(t){t.ADDLOCATION_UPDATE_CLICK="addLocationUpdateClick",t.CATALOG_BROWSER_CLOSE_CLICK="catalogBrowserCloseClick",t.CATALOG_BROWSER_OPEN_CLICK="catalogBrowserOpenClick",t.COMMENTING_EVENT="commentingEvent",t.DOWNLOAD="download",t.EDIT_IN_APP_SKETCHUP="editInAppSketchup",t.MODEL_ADDED_TO_COLLECTION="modelAddedToCollection",t.NO_SEARCH_RESULTS_FOUND="searchNoResults",t.NEWSITEM_LINK_CLICK="newsitemLinkClick",t.UPLOAD="upload",t.USER_AGENT_CHECK="userAgentCheck",t.USER_PROFILE_UPDATE="userProfileUpdate",t.SIGNED_IN_FOR_FEATURE="signedInForFeature",t.GENERIC="3dwGeneric"}(r||(r={})),function(t){t.ADD_SEARCH_TERM="addSearchTerm",t.PERFORM_SEARCH="performSearch",t.REFINE_SEARCH="refineSearch",t.SIGNED_IN_FOR_FEATURE="signedInForFeature"}(i||(i={}))},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),e.h=function(t){var e=new RegExp("sandbox\\d-3dwarehouse.sketchup.com");return!!s(t).match(e)},e.d=function(t){return"3dwarehouse.sketchup.com"===s(t)||function(t){return"smoke-3dwarehouse.sketchup.com"===s(t)}(t)},e.g=function(t){return"stg-3dwarehouse.sketchup.com"===s(t)},e.c=function(t){var e=(t=t||new a.a(window.location.href)).href();return e.indexOf("//196.0.0.1")>-1||e.indexOf("//127.0.0.1")>-1||e.indexOf("//10.")>-1||e.indexOf("//localhost")>-1||e.indexOf("//localdev.sketchup.com")>-1},e.b=function(t){return"dev-3dwarehouse.sketchup.com"===s(t)},e.e=function(t){if(t===i.whp.BinaryType.Skp_Unknown)return!0;return null!==t.match(/^s\d*$/g)},e.f=function(){return l().toLowerCase().indexOf("sketchup")>=0},e.i=function(){return function(t){var e={major:void 0,minor:void 0},n=/SketchUp (Pro|Make)\/\d+\.\d+/i,r=t.match(n);r&&0!==r.length||(n=/SketchUp\/\d+\.\d+/i,r=t.match(n));if(r&&r.length>0){var i=r[0],o=i.substring(i.indexOf("/")+1),a=o.split("."),s=parseInt(a[0],10);e.major=isNaN(s)?void 0:s,s=parseInt(a[1],10),e.minor=isNaN(s)?void 0:s}return e}(l())};var r,i=n(5),o=(n.n(i),n(18)),a=n.n(o);function s(t){return t.hostname().toLowerCase()}function l(){return navigator&&navigator.userAgent||""}a.a.escapeQuerySpace=!1,function(t){t.DEV="dev",t.STAGE="stg",t.PROD="prod"}(r||(r={}))},function(t,e,n){"use strict";var r=n(308),i=n(630),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"c",function(){return l});var r,i,o=n(18),a=n.n(o),s=n(14);a.a.escapeQuerySpace=!1,function(t){t[t.Log_Skp_Action=0]="Log_Skp_Action",t[t.Allow_SU2018=1]="Allow_SU2018",t[t.Search_Materials=2]="Search_Materials"}(r||(r={})),function(t){t[t.ENABLE_MODEL_PREVIEW=0]="ENABLE_MODEL_PREVIEW",t[t.USE_ELASTICSEARCH=1]="USE_ELASTICSEARCH",t[t.USE_VUE_UPLOAD=2]="USE_VUE_UPLOAD"}(i||(i={}));var l=function(){function t(){}return t.isFeatureEnabled=function(e,n){var r=t.getFeatureToggleSwitch(e);if(!r)return null;var i=this.getCurrentLocation_(n),o=this.isOverrideParamEnabled_(r,i);return s.c(i)||s.h(i)||s.b(i)?r.isDevEnabled||o:s.g(i)?r.isStageEnabled||o:!!s.d(i)&&(!(!r.isProductionOverrideEnabled||!o)||r.isProdEnabled)},t.getFeatureToggleSwitch=function(e){return t.features_.find(function(t){return t.value===e})},t.getElasticSearchToggle=function(t){return!!t&&!!t.getters.currentFeatureToggles.USE_ELASTICSEARCH},t.getNewUploadToggle=function(t){return!!t&&!!t.getters.currentFeatureToggles.USE_VUE_UPLOAD},t.getModelPreviewEnabled=function(t){return!!t&&!!t.getters.currentFeatureToggles.ENABLE_MODEL_PREVIEW},t.getModelScoresEnabled=function(t){return!!t&&!!t.getters.currentFeatureToggles.ENABLE_MODEL_SCORES},t.isOverrideParamEnabled_=function(t,e){if(!t.isShfOverrideEnabled)return!1;var n=a.a.parseQuery(e.query()).shf;if(null==n||n.length<1)return!1;var r=(n=n.toString().toLowerCase()).split(","),i=t.shfOverrideParam;return r.indexOf("all")>=0||r.indexOf(i)>=0},t.getCurrentLocation_=function(t){return null!=t?t:new a.a(window.location.href)},t.features_=[{value:r.Log_Skp_Action,isDevEnabled:!0,isStageEnabled:!0,isProdEnabled:!1,shfOverrideParam:"log_skp_action",isShfOverrideEnabled:!0,isProductionOverrideEnabled:!0},{value:r.Allow_SU2018,isDevEnabled:!0,isStageEnabled:!0,isProdEnabled:!1,shfOverrideParam:"s18",isShfOverrideEnabled:!0,isProductionOverrideEnabled:!1},{value:r.Search_Materials,isDevEnabled:!0,isStageEnabled:!1,isProdEnabled:!1,shfOverrideParam:"search_materials",isShfOverrideEnabled:!0,isProductionOverrideEnabled:!1}],t}()},function(t,e,n){"use strict";e.a=function(t){var e={text:"0"};if(!t)return e;if(t<1024){var n=Math.floor(t).toLocaleString();e={text:o.d.BYTES,replacements:{fileSize:n}}}else if(t<1048576){var n=Math.floor(t/1024).toLocaleString();e={text:o.d.KB,replacements:{fileSize:n}}}else if(t<1073741824){var n=Math.floor(t/1048576).toLocaleString();e={text:o.d.MB,replacements:{fileSize:n}}}else if(t<1099511627776){var n=Math.floor(t/1073741824).toLocaleString();e={text:o.d.GB,replacements:{fileSize:n}}}return e},e.c=function(t){var e={text:"0"};if(!t)return e;if(t<1e3)e={text:Math.floor(t).toLocaleString()};else if(t<1e6){var n=Math.floor(t/1e3).toLocaleString();e={text:o.d.THOUSAND,replacements:{num:n}}}else if(t<1e9){var n=Math.floor(t/1e6).toLocaleString();e={text:o.d.MILLION,replacements:{num:n}}}else if(t<1e12){var n=Math.floor(t/1e9).toLocaleString();e={text:o.d.BILLION,replacements:{num:n}}}return e},e.b=function(t){var e=i.a.utc(t);return e.isValid()?e.format("l"):""};var r=n(0),i=n.n(r),o=n(10)},,,,function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return l}),n.d(e,"c",function(){return c});var r,i,o,a=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.FATAL=4]="FATAL"}(i||(i={})),function(t){t.DEFAULT_LEVEL=i.INFO,t.DEFAULT_DELAY=5e3}(o||(o={}));var s=function(){return function(t,e){void 0===e&&(e=o.DEFAULT_LEVEL),this.message=t,this.level=e}}(),l=function(t){function e(e,n,r){var i=t.call(this,e,r)||this;return i.title=n,i}return a(e,t),e.isDuplicate=function(t,e){return t.message===e.message&&t.title===e.title&&t.level===e.level},e}(s),c=function(t){function e(e,n,r){void 0===r&&(r=o.DEFAULT_DELAY);var i=t.call(this,e,n)||this;return i.timeToLive=r,i}return a(e,t),e}(s)},function(t,e,n){"use strict";e.c=function(t){return o([i.whp.BinaryType.Small_Thumbnail_Custom,i.whp.BinaryType.Small_Thumbnail_Bot,i.whp.BinaryType.Small_Thumbnail],t)},e.b=function(t){return o([i.whp.BinaryType.Large_Thumbnail_Bot,i.whp.BinaryType.Large_Thumbnail],t)},e.e=function(t){if(t){var e=t.getBinary(i.whp.BinaryType.Featured_Logo);if(e)return e.contentUrl}return""},e.a=function(t){var e=[];t&&Object.keys(t).forEach(function(t){e.push(t)});return e},e.g=function(t){if(null!=t&&null!=t.attributes){var e=t.attributes["3dw"];if(null!=e){var n=e.isDeleted;if(null!=n&&n.value)return!0}}return!1},e.f=function(t){var e=0;t&&t.binaryNames&&t.binaryNames.filter(function(t){return r.a.isBinaryTypeDownloadable(t)}).map(function(e){return t.binaries[e]}).forEach(function(t){t&&(t.fileSize||0)>e&&(e=t.fileSize)});return e},e.h=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},e.d=function(t){if(t<6)return"s";return"s"+t};var r=n(76),i=n(5);n.n(i);function o(t,e){if(e)for(var n=0;n=0)return r}return null}},function(t,e,n){"use strict";var r=n(249),i=n(597),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(323),i=n(655),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r,i=n(0),o=n.n(i),a=n(5),s=(n.n(a),n(7)),l=n(97),c=n(46),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=function(t){function e(n){var r=t.call(this,n)||this;if(r.downloads=n.downloads,r.jobs=n.jobs,r.subComponents=n.subComponents,r.geolocated=e.isGeolocated(n),r.location=r.geolocated?n.location:null,n.attributes&&n.attributes.skp){var i=n.attributes.skp;r.materialCount=i.materials?i.materials.value:0,r.polygonCount=i.polygons?i.polygons.value:0,r.layerCount=i.layers?i.layers.value:0,r.groupCount=i.groups?i.groups.value:0,r.sourceBinaryName=i.sourceBinary?i.sourceBinary.value:""}return r.componentCount=r.calculateComponentCount(n),r.isRendering=e.isRendering(n),r.originalFileName=r.lookupOriginalFileName(n),r.sourceBinaryFilesize=r.lookupSourceBinaryFilesize(n),r}return u(e,t),e.prototype.calculateComponentCount=function(t){var e=0;if(0===(e=this.subComponents?this.subComponents.length:0)&&t.attributes&&t.attributes.skp){var n=t.attributes.skp;e=n.components?n.components.value:0}return e},e.prototype.lookupSourceBinaryFilesize=function(t){if(!this.sourceBinaryName)return 0;var e=t.binaries[this.sourceBinaryName];return e?e.fileSize:0},e.prototype.lookupOriginalFileName=function(t){if(t.attributes&&t.attributes.skp){var e=t.attributes.skp;if(!e.sourceBinary)return"";var n=e.sourceBinary.value;if(t.binaries){var r=t.binaries[n];if(r)return r.originalFileName}}return""},e.prototype.getDetailsPageUrl=function(){return Object(s.g)(this.id,this.urlTitle)},e.isGeolocated=function(t){return!!c.a.getAttributeValue(t.attributes,"skp","isGeoreferenced")&&(t.location&&void 0!==t.location.altitude&&void 0!==t.location.latitude&&void 0!==t.location.longitude)},e.isRendering=function(t){var n=e.getJob(t,a.whp.JobType.NewModel),r=e.getJob(t,a.whp.JobType.RenderBot),i=r,s=n&&n.modifyTime?o.a.utc(n.modifyTime):void 0,l=r&&r.modifyTime?o.a.utc(r.modifyTime):void 0;return s?l?s.isAfter(l)&&(i=n):i=n:i=r,!!i&&i.status!==a.whp.JobStatus.Success},e.getJob=function(t,e){var n=t.jobs;if(!n)return null;for(var r=0;r]*>/g," ")).replace(/[<|>]/g,"")).replace(/\s{2,}/g," ")).replace(/"/g,"'")).trim()}var a="[ݐ-ݿ]|[߀-ࣿ]|[ᎀ-᎟]|[ᢰ-᣿]|[ᦀ-᧟]|[ᨀ-᳿]|[ᶀ-᷿]|[Ⰰ-⹿]|[⿠-⿯]|[㇀-㇯]|[龰-鿿]|[ꓐ-꯿]|[ힰ-퟿]|[︐-︟]",s="[\0-]|[- ]|­",l="[⁰-⯿]|[￰-￿]",c="(?:[✀-➿]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[#-9]️?⃣|㊙|㊗|〽|〰|Ⓜ|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|🆎|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|🈚|🈯|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|‼|⁉|[▪-▫]|▶|◀|[◻-◾]|©|®|™|ℹ|🀄|[☀-⛿]|⬅|⬆|⬇|⬛|⬜|⭐|⭕|⌚|⌛|⌨|⏏|[⏩-⏳]|[⏸-⏺]|🃏|⤴|⤵|[←-⇿])*"},function(t,e,n){"use strict";var r=n(318);n.d(e,"a",function(){return r.a});var i=n(646),o=n(1),a=Object(o.a)(r.b,i.a,i.b,!1,null,null,null);e.b=a.exports},function(t,e,n){"use strict";var r=n(330),i=n(669),o=n(1);var a=function(t){n(664)},s=Object(o.a)(r.a,i.a,i.b,!1,a,null,null);e.a=s.exports},,function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r,i=n(12);!function(t){t.CONTENT_SCROLL_INCREMENT=10}(r||(r={}));var o=function(){function t(t){this.isScrolledToEnd=!1,this.items=[],this.offset=0,this.isLoading=!1,this.store=t,this.handler=t.getters.apiHandler,this.source=t.getters.currentItem}return t.prototype.clear=function(){this.isScrolledToEnd=!1,this.items=[]},t.prototype.isValidLoadRequest=function(){return!this.isLoading&&!this.isScrolledToEnd||(this.isLoading&&i.a.error("Load request received while still loading."),!1)},t}()},,,function(t,e,n){"use strict";n.d(e,"b",function(){return r}),e.c=function(t){if(!t)return!1;for(var e=t.toLowerCase(),n=0;n0))return u(t);for(var n=function(n){var r=t.find(function(t){return t===e[n]});if(null!=r)return{value:r}},r=0;r-1&&a<50)return i.whp.BinaryType.Sketchup_Gen_Kmz;return null};var r,i=n(5),o=(n.n(i),n(75)),a=n(76),s=n(14),l=n(16);function c(t){var e=t.split(".");return 1===e.length||""===e[0]&&2===e.length?"":e.pop().toLowerCase()}function u(t){var e=0,n=null,r=s.i(),o=void 0;r&&r.major&&(o=r.major);for(var c=0;ce){if(null!=o&&p>o)continue;a.a.isBinaryTypeDownloadable(u)&&(e=p,n=u)}}}}return null==n&&(t.indexOf(i.whp.BinaryType.Server_Gen_Kmz)>=0?n=i.whp.BinaryType.Server_Gen_Kmz:t.indexOf(i.whp.BinaryType.Sketchup_Gen_Kmz)>=0&&(n=i.whp.BinaryType.Sketchup_Gen_Kmz)),n}!function(t){t.UploadMaxFileSize=51200}(r||(r={}))},,,,,,function(t,e,n){"use strict";var r=n(288),i=n(599),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(305),i=n(663),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(22),i=function(){function t(t){this.attributes=t.attributes,this.binaries=function(t){var e={},n=t.binaries;n&&Object.keys(n).forEach(function(t){var i=n[t];i.name=t,r.g(i)||(e[i.name]=i)});return e}(t),this.createdDate=t.createTime,this.externalUrl=t.externalUrl,this.id=t.id,this.subjectClass=t.subjectClass}return t.prototype.getDetailsPageUrl=function(){return""},t.prototype.getBinary=function(t){return this.binaries[t]},t.getAttribute=function(t,e,n){if(!t)return null;var r=t[e];return r?r[n]:null},t.getAttributeValue=function(e,n,r){var i=t.getAttribute(e,n,r);return i?i.value:null},t}()},function(t,e,n){"use strict";var r=n(317),i=n(647),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(329),i=n(670),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(345),i=n(695),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},,,,function(t,e){},function(t,e,n){"use strict";var r;n.d(e,"a",function(){return r}),function(t){t.LANGUAGE="hl",t.REDIRECT="redirect",t.TOS_ACCEPT_DATE="TOS_ACCEPT_DATE",t.TOS_ACCEPTED_VERSION="TOS_ACCEPTED_VERSION",t.NEWSBAR_COOKIE_DURATION=1460}(r||(r={}))},,,,,,function(t,e,n){"use strict";var r=n(291),i=n(600),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r;function i(t,e){return t.roles.indexOf(e)>=0}e.a=function(t){return i(t,r.ADMIN)},e.b=function(t){return i(t,r.MODERATOR)},function(t){t.ADMIN="admin",t.ANALYST="analyst",t.BETA_TESTER="beta_tester",t.DEVELOPER="developer",t.MANUFACTURER="manufacturer",t.MODERATOR="moderator",t.SALES="sales",t.VENDOR="vendor"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r,i=n(5),o=(n.n(i),n(7)),a=n(46),s=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e){var n=t.call(this,e)||this;return n.avatarUrl=null,n.authProvider=e.authProvider,n.collectionCount=e.collectionCount,n.customWarehouseUrl=e.customWarehouseUrl,n.displayName=e.displayName,n.emailAddress=e.emailAddress,n.entityCount=e.entityCount,n.language=e.language,n.picture=e.picture,n.roles=e.roles,n.subjectClass="user",n.avatarUrl=n.getAvatarUrl(),n.description=function(t){if(!t)return"";return t.description?t.description:""}(e),n}return s(e,t),e.prototype.getAvatarUrl=function(){if(!this.avatarUrl){this.avatarUrl=this.picture||null;var t=this.getBinary(i.whp.BinaryType.Avatar);if(t){var e=t.contentUrl;this.avatarUrl=e||o.h(this.id,this.subjectClass,i.whp.BinaryType.Avatar)}}return this.avatarUrl},e.hasRole=function(t,e){for(var n=0,r=t.roles;n=17&&(a=f.Download_Material+n);var l=h.h(t,p.a.BackendClass.MATERIAL,o.whp.BinaryType.Skm,e,!0,!0),u=a+l,d=i.a.utc(r,p.a.RESPONSE_TIME_FORMAT),m=0;m=d.isValid()?d.valueOf():i.a.utc().valueOf();return u+="&entityCache="+m,new s.a(u)},e.c=function(t,e,n,r,a){n=h.s(n);var l=(a=a||{}).fileName,u=a.preferredFormats||null,m=d.b(t,u);if(null==m)return null;var v="";if(c.f()||h.t())switch(m){case o.whp.BinaryType.Sketchup_Gen_Kmz:case o.whp.BinaryType.Server_Gen_Kmz:v=f.Download_Kmz+n;break;case o.whp.BinaryType.Collada:v=f.Download_Collada+n;break;case o.whp.BinaryType.Small_Thumbnail:case o.whp.BinaryType.Large_Thumbnail:case o.whp.BinaryType.Small_Thumbnail_Bot:case o.whp.BinaryType.Large_Thumbnail_Bot:case o.whp.BinaryType.Small_Thumbnail_Custom:v=f.Download_Image+n;break;default:v=f.Download_Model+n}var y=h.h(e,p.a.BackendClass.ENTITY,m,l||null,!0,!0),g=v+y,b=0,_=i.a.utc(r,p.a.RESPONSE_TIME_FORMAT);b=_.isValid()?_.valueOf():i.a.utc().valueOf();return g+="&entityCache="+b,new s.a(g)},n.d(e,"a",function(){return f});var r=n(0),i=n.n(r),o=n(5),a=(n.n(o),n(18)),s=n.n(a),l=n(12),c=n(14),u=n(16),d=n(38),p=n(8),h=n(7);s.a.escapeQuerySpace=!1;var f={Download_Model:"skp:getSkp@",Download_Kmz:"skp:getKmz@",Download_Collada:"skp:getCollada@",Download_Image:"skp:getImage@",Upload_Model:"skp:uploadSkp",Download_Material:"skp:getSkm@"}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=0;n0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}};var r=n(5);n.n(r)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(5),i=(n.n(r),n(10)),o=function(){function t(){}return t.sortBinaryTypeArray=function(e){return e.sort(function(e,n){var r=t.lookupByBinaryType(e),i=t.lookupByBinaryType(n);return null==r||null==i?null==r&&null==i?0:null==r?1:-1:null==r.relativeOrder||null==i.relativeOrder?null==r.relativeOrder&&null==i.relativeOrder?0:null==r.relativeOrder?1:-1:r.relativeOrder-i.relativeOrder})},t.binaryTypeToString=function(e){var n=t.lookupByBinaryType(e);return n?n.text:i.a.UKNOWN},t.lookupByBinaryType=function(e){for(var n=0;n=0&&(l=l.substr(0,c)),s=l,r=!0}o[a]=s}r&&(n.query=o)}return n};var r=n(250),i=n.n(r)},,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(304),i=n(1),o=Object(i.a)(r.a,void 0,void 0,!1,null,null,null);e.a=o.exports},,function(t,e){},function(t,e,n){"use strict";var r=n(344),i=n(692),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";e.b=function(t,e,n){var r=null;if(e.binaries){var i=window.location.href,o=a.a(e.binaries),s={preferredFormats:[]};n&&(s.preferredFormats=[n]);var c=l.c(o,e.id,i,e.lastModifiedDate,s);r=c?c.href():null}u(t,r,e.isPrivate)},e.a=function(t,e){var n=null;if(e.binaries){var i=window.location.href,o=e.title+"."+r.whp.BinaryType.Skm,a=l.b(e.id,o,i,e.lastModifiedDate);n=a?a.href():null}u(t,n,e.isPrivate)};var r=n(5),i=(n.n(r),n(10)),o=n(13),a=n(22),s=n(21),l=n(74),c=n(306);function u(t,e,n){if(e){var r=t.getters.currentUser;c.a(t,r).then(function(r){if(r){var i=l.d(e);l.e(window,i),o.b(n,i),null!=t.state.searchDownloadError&&(t.commit("REMOVE_MODAL_NOTIFICATION",t.state.searchDownloadError),t.state.searchDownloadError=null)}})}else!function(t){var e={text:i.c.NO_AVAILABLE_DOWNLOADS},n={text:i.c.GENERIC_ERROR_TITLE};t.state.searchDownloadError=new s.a(e,n,s.b.WARN),t.commit("ADD_MODAL_NOTIFICATION",t.state.searchDownloadError)}(t)}},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r,i=n(22),o=n(7),a=n(46),s=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e){var n,r=t.call(this,e)||this;return r.allowComments=e.allowComments,r.binaryNames=e.binaryNames,r.creatorId=e.creator.id,r.creatorDisplayName=e.creator.displayName,r.description=e.description,r.downloads=e.downloads,r.isPrivate=e.isPrivate,r.lastModifiedDate=e.modifyTime,r.parentCatalogId=e.parentCatalogId,r.tags=e.tags,r.title=e.title,r.views=e.views,r.likes=e.reviewCount,r.fileSize=i.f(r),r.creatorPageUrl=(n=r.creatorId,o.q(n)),r.thumbnailUrl=r.getThumbnailUrl(),r.largeThumbnailUrl=r.getLargeThumbnailUrl(),r.urlTitle=o.z(e.title),r.detailsPageUrl=r.getDetailsPageUrl(),r}return s(e,t),e.prototype.getDetailsPageUrl=function(){return""},e.prototype.getThumbnailUrl=function(){var t=this.binaryNames,e=i.c(t);if(!e)return"";var n=this.getBinary(e);return n&&n.contentUrl?n.contentUrl:o.h(this.id,this.subjectClass,e)},e.prototype.getLargeThumbnailUrl=function(){var t=this.binaryNames,e=i.b(t),n=this.getBinary(e);return n?n.contentUrl:""},e}(a.a)},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o});var r,i=n(17);!function(t){t[t.WAITING=1]="WAITING",t[t.FILE_LOADING=2]="FILE_LOADING",t[t.READING_SKETCHUP=3]="READING_SKETCHUP",t[t.UPLOADING=4]="UPLOADING",t[t.DONE=5]="DONE"}(r||(r={}));var o=function(){function t(t,e){this.store=t,this.entity=e,this.loadStatus=r.DONE,this.uploadProgress=1,this.id=e.id,this.apiHandler=t.getters.apiHandler}return t.prototype.syncDelete=function(){var t=this;return this.apiHandler.deleteEntity(this.id).then(function(){t.eventBus.$emit("delete",t)})},t.prototype.syncTitle=function(){var t={title:this.title};return this.apiHandler.updateEntity(this.id,t)},t.prototype.syncDescription=function(){var t={description:this.description};return this.apiHandler.updateEntity(this.id,t)},Object.defineProperty(t.prototype,"eventBus",{get:function(){return this.store.getters.eventBus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uploadedDate",{get:function(){return i.b(this.entity.createdDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastModifiedDate",{get:function(){return i.b(this.entity.lastModifiedDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"detailsPageUrl",{get:function(){return this.entity.detailsPageUrl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"thumbnailUrl",{get:function(){return this.entity.thumbnailUrl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.entity.title},set:function(t){this.entity.title=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.entity.description},set:function(t){this.entity.description=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sourceBinaryName",{get:function(){return this.entity.sourceBinaryName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditable",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"views",{get:function(){return this.entity.views},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"downloads",{get:function(){return this.entity.downloads},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readableStatus",{get:function(){return r[this.loadStatus]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filesize",{get:function(){return this.entity.sourceBinaryFilesize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupCount",{get:function(){return this.entity.groupCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layerCount",{get:function(){return this.entity.layerCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentCount",{get:function(){return this.entity.componentCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"materialCount",{get:function(){return this.entity.materialCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"polygonCount",{get:function(){return this.entity.polygonCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDynamic",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filename",{get:function(){return this.entity.originalFileName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binaries",{get:function(){return this.entity.binaries},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binaryNames",{get:function(){return this.entity.binaryNames},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRendering",{get:function(){return this.entity.isRendering},enumerable:!0,configurable:!0}),t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e){this.scrollTarget=t,this.scrollBufferMin=e}return t.prototype.getScrollRemainder=function(){if(0===(this.scrollTarget&&this.scrollTarget.scrollHeight||0))return this.scrollBufferMin+1;var t=Math.max(window.pageYOffset||0,document.documentElement.scrollTop),e=t+document.documentElement.clientHeight,n=e-t;return n<=0?this.scrollBufferMin+1:(this.scrollTarget.getBoundingClientRect().top+t+this.scrollTarget.offsetHeight-e)/n*100},t}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(489),c=n(491),u=n(496),d=n(499),p=(n.n(d),n(500)),h=(n.n(p),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),f=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e=f([s()({components:{CookieConsent:l.a,ErrorReporter:c.a,StatusBar:u.a},metaInfo:function(){return{title:"Default Page Title",titleTemplate:"%s | 3D Warehouse",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{name:"referrer",content:"origin"}]}}})],e)}(o.a);e.a=m},function(t,e,n){"use strict";var r,i=n(12),o=n(14),a=n(18),s=n.n(a),l=n(3),c=n.n(l),u=n(2),d=n.n(u),p=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="cookie-consent",e}return p(e,t),e.prototype.mounted=function(){var t="",e=new s.a(window.location.href);o.d(e)?t="https://cdn.cookielaw.org/consent/7c67ffad-6fcc-40a7-a43c-f89d91a4d081.js":(o.c(e)||o.h(e)||o.b(e)||o.g(e))&&(t="https://optanon.blob.core.windows.net/consent/7c67ffad-6fcc-40a7-a43c-f89d91a4d081-test.js"),n(36)(t,function(){},function(t){i.a.error("Could not load OneTrust script. "+t)})},e=h([d()({})],e)}(c.a);e.a=f},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(492),c=n(494),u=(n.n(c),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="error-reporter",e}return u(e,t),Object.defineProperty(e.prototype,"modalNotifications",{get:function(){return this.$store.getters.modalNotifications},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentNotification",{get:function(){return this.modalNotifications[this.modalNotifications.length-1]},enumerable:!0,configurable:!0}),e=d([s()({components:{ErrorCard:l.a}})],e)}(o.a);e.a=p},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(21),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="error-card",e}return c(e,t),Object.defineProperty(e.prototype,"errorClass",{get:function(){switch(this.error.level){case l.b.DEBUG:return"error-level-debug";case l.b.WARN:return"error-level-warn";case l.b.ERROR:return"error-level-error";case l.b.FATAL:return"error-level-fatal";default:return"error-level-info"}},enumerable:!0,configurable:!0}),e.prototype.onCancelClicked=function(){this.$store.commit("REMOVE_MODAL_NOTIFICATION",this.error)},e=u([s()({props:{error:Object},inheritAttrs:!1})],e)}(o.a);e.a=d},function(t,e,n){"use strict";var r,i=n(497),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMounted=!1,e.statusMessage="",e.showStatus=!1,e.timerId=0,e}return c(e,t),Object.defineProperty(e.prototype,"statusNotification",{get:function(){var t=this.$store.getters.statusBarNotification;return this.isMounted&&t},enumerable:!0,configurable:!0}),e.prototype.mounted=function(){var t=this;this.$watch("statusNotification",function(){t.clearStatus(),t.statusNotification&&t.setStatus(t.statusNotification)}),this.isMounted=!0},e.prototype.dismissStatus=function(){this.clearStatus(),this.statusNotification&&this.$store.commit("REMOVE_STATUS_NOTIFICATION",this.statusNotification)},e.prototype.clearStatus=function(){this.statusMessage="",this.showStatus=!1,this.cancelTimer()},e.prototype.setStatus=function(t){var e=t.message;!e||!e.text||e.text.length<1||(this.statusMessage=this.$tLabel(e),this.showStatus=!0,this.setTimer(t.timeToLive))},e.prototype.setTimer=function(t){var e=this;this.cancelTimer(),t>0&&(this.timerId=setTimeout(function(){e.dismissStatus()},t))},e.prototype.cancelTimer=function(){this.timerId>0&&(clearTimeout(this.timerId),this.timerId=0)},e=u([l()({})],e)}(a.a);e.a=d},function(t,e,n){"use strict";var r,i=n(508),o=(n.n(i),n(0)),a=n.n(o),s=n(3),l=n.n(s),c=n(2),u=n.n(c),d=n(246),p=n(26),h=n(23),f=n(8),m=n(7),v=n(77),y=n(598),g=n(603),b=n(605),_=n(289),O=n(607),C=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),w=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="dashboard-page",e.modifyFromDate=new Date,e.modifyToDate=new Date,e.pageMounted=!1,e.isAdminUser=!1,e.api=null,e}return C(e,t),Object.defineProperty(e.prototype,"showInsufficientPermissions",{get:function(){return this.pageMounted&&!this.isAdminUser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"apiHandler",{get:function(){return this.api||(this.api=this.$store.getters.apiHandler),this.api},enumerable:!0,configurable:!0}),e.prototype.parseUrlDateString=function(t){var e=a()(t||"",f.a.URL_DATE_FORMAT);return e.isValid()?e.toDate():""},e.prototype.setupDateFromUri=function(t){var e=v.a(t,!0).query,n=this.parseUrlDateString(e.modifyFromDate);""!==n&&(this.modifyFromDate=n);var r=this.parseUrlDateString(e.modifyToDate);""!==r&&(this.modifyToDate=r),""!==r&&""!==n||(this.modifyFromDate=a()(this.modifyToDate).subtract(7,"d").toDate())},e.prototype.created=function(){this.setupDateFromUri(this.$route.fullPath)},e.prototype.mounted=function(){var t=this;this.apiHandler.isCurrentUserAdmin().then(function(e){t.isAdminUser=e,t.pageMounted=!0}),n(36)("https://www.gstatic.com/charts/loader.js",function(){google.charts.load("current",{packages:["corechart","table","line"]})}),this.$watch("modifyFromDate",function(){t.setDatesInUri()}),this.$watch("modifyToDate",function(){t.setDatesInUri()}),this.setDatesInUri()},e.prototype.setDatesInUri=function(){var t="/internal/dashboards?";t+=m.r("modifyFromDate",this.modifyFromDate),t+=m.r("modifyToDate",this.modifyToDate),this.$route.fullPath!==t&&this.$router.push(t)},e=w([u()({components:{FooterPanel:p.a,DatePicker:d.a,ViewsDownloadsChart:O.a,DownloadsByCountryChart:y.a,PopularUploadersTable:g.a,ViewsByCountryChart:_.a,UploadsByDayChart:b.a,HeaderPanel:h.a},metaInfo:function(){return{title:"Dashboards"}}})],e)}(l.a);e.a=T},function(t,e,n){"use strict";var r=n(247),i=n(510),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(0),o=n.n(i),a=n(3),s=n.n(a),l=n(2),c=n.n(l),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.placeHolder="",e.lockEmit=!1,e}return u(e,t),e.prototype.mounted=function(){var t=this,e=this,r=n(509),i=this.$el,a=o.a.localeData();this.placeHolder=a.longDateFormat("L"),this.pikaday=new r({format:"L",field:this.$el,parse:function(t,n){var r=o()(i.value,n);return r&&r.isValid()?r.toDate():(e.pikaday.value="",e.$emit("input",this.value),null)},onSelect:function(){this.value=this.getMoment().toDate(),e.lockEmit||e.$emit("input",this.value)},i18n:{months:o.a.months(),weekdays:o.a.weekdays(),weekdaysShort:o.a.weekdaysShort()}}),this.updatePicker(),this.$watch("value",function(){t.updatePicker()})},e.prototype.updatePicker=function(){this.lockEmit=!0,this.pikaday.setDate(this.value),this.lockEmit=!1},e.prototype.destroy=function(){this.pikaday&&this.pikaday.destroy()},e=d([c()({props:{value:[Date,String],id:String,name:String}})],e)}(s.a);e.a=p},function(t,e,n){"use strict";var r,i=n(511),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(18),u=n.n(c),d=n(37),p=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.today=new Date,e.currentYear=e.today.getFullYear(),e}return p(e,t),Object.defineProperty(e.prototype,"langCode",{get:function(){return this.$store.getters.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languages",{get:function(){return d.b},enumerable:!0,configurable:!0}),e.prototype.setLanguage=function(t){var e=new u.a(window.location.href);e.removeSearch("hl"),e.addSearch({hl:t}),window.location.href=e.href()},e=h([l()({})],e)}(a.a);e.a=f},function(t,e,n){"use strict";var r,i=n(513),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(14),u=n(16),d=n(74),p=n(4),h=n(524),f=n(531),m=n(594),v=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.coverHeader=!1,e.inClient=!1,e.showPageOverlay=!1,e.useNewUpload=!1,e.uploadUrl="",e.singleNewsItem=!1,e.multipleNewsItems=!1,e}return v(e,t),Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"singleNewsItemShown",{get:function(){return this.singleNewsItem},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multipleNewsItemsShown",{get:function(){return this.multipleNewsItems},enumerable:!0,configurable:!0}),e.prototype.emitPageHeaderClick=function(){this.eventBus.$emit(p.e.PAGE_HEADER_CLICK)},e.prototype.emitPageOverlayClick=function(){this.eventBus.$emit(p.e.PAGE_OVERLAY_CLICK)},e.prototype.togglePageOverlay=function(t){return this.showPageOverlay=void 0===t?!this.showPageOverlay:t,this.toggleBodyOverlayClass(),this.showPageOverlay||(this.coverHeader=!1),this.showPageOverlay},e.prototype.toggleBodyOverlayClass=function(){document&&document.body&&document.body.classList.toggle("page-overlay-visible",this.showPageOverlay)},e.prototype.mounted=function(){var t=this,e=d.a.Upload_Model;this.useNewUpload=u.c.getNewUploadToggle(this.$store),this.inClient=c.f(),this.uploadUrl=this.inClient?e:"/upload.html?type=model",this.eventBus.$on(p.e.TOGGLE_MAIN_OVERLAY,function(e){t.coverHeader=e&&e.coverHeader||!1,t.togglePageOverlay(e?e.showOverlay:void 0)})},e.prototype.onNewsItemsChanged=function(t){this.singleNewsItem=1===t.activeNewsItemCount,this.multipleNewsItems=t.activeNewsItemCount>1},e.prototype.startUpload=function(){this.eventBus.$emit(p.e.UPLOAD_START)},e=y([l()({props:{autoFocusSearchBar:Boolean},components:{userbadge:m.a,searchbar:f.a,newsbar:h.a}})],e)}(a.a);e.a=g},,,,,,function(t,e,n){"use strict";var r,i=n(53),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(525),u=n(528),d=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeNewsItemCount=0,e}return d(e,t),e.prototype.mounted=function(){for(var t=0,e=this.$children;t=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.template="#maintenance-template",e.timeOfMaintenance=new Date(Date.UTC(2017,9,27,22)),e.duration=60,e.name="maintenance"+a()(e.timeOfMaintenance).format("YYYYMMDD"),e}return u(e,t),e.prototype.getStartTime=function(){return a()(this.timeOfMaintenance).subtract(7,"d").toDate()},e.prototype.getEndTime=function(){return a()(this.timeOfMaintenance).add(this.getDuration(),"m").toDate()},e.prototype.getDuration=function(){return this.duration},e=d([l()({inheritAttrs:!1})],e)}(c.a);e.a=p},function(t,e,n){"use strict";var r=n(258),i=n(526),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(53),o=(n.n(i),n(50)),a=n.n(o),s=n(0),l=n.n(s),c=n(3),u=n.n(c),d=n(2),p=n.n(d),h=n(54),f=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="",e.isDismissed=!1,e.whiteList=[],e.blackList=[],e}return f(e,t),e.prototype.getCookieName=function(){return"newsitem_"+this.name},e.prototype.isActive=function(){return l()().isBetween(this.getStartTime(),this.getEndTime())},e.prototype.getStartTime=function(){return new Date(0)},e.prototype.getEndTime=function(){return new Date(0)},Object.defineProperty(e.prototype,"dismissed",{get:function(){return this.isDismissed},enumerable:!0,configurable:!0}),e.prototype.onNewsItemClose=function(t,e){this.setCookie()},e.prototype.setCookie=function(){a.a.set(this.getCookieName(),"true",{expires:h.a.NEWSBAR_COOKIE_DURATION}),this.isDismissed=!0,this.$emit("newsItemDismissed",this)},Object.defineProperty(e.prototype,"shouldShow",{get:function(){return!!this.shouldShowOnCurrentPage()&&(!!this.isUrlOverridePresent()||this.isActive()&&!a.a.get(this.getCookieName()))},enumerable:!0,configurable:!0}),e.prototype.isUrlOverridePresent=function(){return!1},e.prototype.shouldShowOnCurrentPage=function(){var t;if(this.whiteList.length)return!!((t=this.$route.name)&&this.whiteList.indexOf(t)>-1);if(this.blackList.length&&((t=this.$route.name)&&this.whiteList.indexOf(t)>-1))return!1;return!0},e=m([p.a],e)}(u.a);e.a=v},function(t,e,n){"use strict";var r,i=n(53),o=(n.n(i),n(2)),a=n.n(o),s=n(4),l=n(7),c=n(257),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.template="#sketchup-2018-template",e.name="sketchup2018",e.externalSketchupUrl=l.k("https://www.sketchup.com/products/sketchup-pro/new-in-2018","newsbar"),e.whiteList=[s.h.INDEX],e}return u(e,t),e.prototype.getStartTime=function(){return new Date(Date.UTC(2017,10,1))},e.prototype.getEndTime=function(){return new Date(Date.UTC(2018,1,30))},e=d([a()({inheritAttrs:!0})],e)}(c.a);e.a=p},function(t,e,n){"use strict";var r,i=n(532),o=(n.n(i),n(5)),a=(n.n(o),n(3)),s=n.n(a),l=n(2),c=n.n(l),u=n(13),d=n(16),p=n(261),h=n(8),f=n(4),m=n(7),v=n(592),y=(n.n(v),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),g=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.searchTerms="",e.searchTab="",e.sortBy=h.c.RelevanceDesc,e.autoSuggestions=[],e.typedTextCache="",e.isSuggestingHashtags=!1,e.currentRow=-1,e.autoSuggestionsOpen=!1,e.suggestPromise=void 0,e}return y(e,t),Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showAutoSuggestions",{get:function(){return this.autoSuggestionsOpen},set:function(t){t!==this.autoSuggestionsOpen&&(this.autoSuggestionsOpen=t,this.eventBus.$emit(f.e.TOGGLE_MAIN_OVERLAY,{showOverlay:t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSearchTerms",{get:function(){return!!this.searchTerms},enumerable:!0,configurable:!0}),e.prototype.setupPageState=function(){this.searchTab=h.f(this.$route.fullPath),this.sortBy=h.h(this.$route.fullPath),this.resetAutoSuggestions()},e.prototype.created=function(){this.searchTerms=h.g(this.$route.fullPath),this.typedTextCache=this.searchTerms,this.setupPageState()},e.prototype.mounted=function(){var t=this;this.eventBus.$on(f.e.PAGE_OVERLAY_CLICK,function(){t.resetAutoSuggestions(!0)}),this.eventBus.$on(f.e.PAGE_HEADER_CLICK,function(){t.resetAutoSuggestions(!0)}),this.$watch("$route",function(){this.setupPageState()})},e.prototype.autoSuggestLinkClick=function(t){u.f(u.a.PERFORM_SEARCH,["true"]),this.searchTerms=t},e.prototype.clearSearchTerms=function(){this.searchTerms="",this.typedTextCache=this.searchTerms,this.resetAutoSuggestions()},e.prototype.performSearch=function(){this.searchTerms=h.i(this.searchTerms);var t=this.searchTerms!==this.typedTextCache;u.f(u.a.PERFORM_SEARCH,[t.toString()]);var e=this.getSearchParameters(this.searchTerms);m.x(m.m(e))},e.prototype.resetAutoSuggestions=function(t){void 0===t&&(t=!1),t&&(this.searchTerms=this.typedTextCache),this.autoSuggestions=[],this.currentRow=-1,this.showAutoSuggestions=!1},e.prototype.getAutoSuggestions=function(t){var e=this;if(this.cancelCurrentSuggestPromise(),o.string.isEmptyOrWhiteSpace(this.searchTerms)||this.searchTerms.length>30)this.resetAutoSuggestions();else{if(this.isSuggestingHashtags=this.isHashTagSearch(this.searchTerms),this.isSuggestingHashtags){var n=this.getCursorPosition(t);if(!this.isValidHashTagSearch(this.searchTerms,n))return void this.resetAutoSuggestions()}var r=this.searchTerms.trim(),i=this.performAutoSuggestionsRequest(r);this.suggestPromise=i,i.then(function(t){i.cancelled||e.updateSearchSuggestions(t)},function(){i.cancelled||e.resetAutoSuggestions()})}},e.prototype.performAutoSuggestionsRequest=function(t){var e=d.c.getElasticSearchToggle(this.$store),n={q:t,contentType:o.whp.ContentType.Warehouse3D,count:7,searchElasticsearch:e,recordEvent:!1};return this.isSuggestingHashtags&&(n.q=t.substring(1),n.property="tags"),this.$store.getters.apiHandler.getAutoCompleteSuggestions(n)},e.prototype.getSearchTermUrl=function(t){var e=this.getSearchParameters(t);return m.m(e)},e.prototype.onKeyDown=function(t){t.keyCode===i.codes.tab&&(this.cancelCurrentSuggestPromise(),this.resetAutoSuggestions(!0))},e.prototype.onKeyUp=function(t){if(t.keyCode===i.codes.esc||t.keyCode===i.codes.tab)return this.cancelCurrentSuggestPromise(),void this.resetAutoSuggestions(!0);if(t.keyCode!==i.codes.enter){if(this.autoSuggestions.length>0){if(t.keyCode===i.codes.down)return void this.updateSearchBarIndex(this.currentRow+1);if(t.keyCode===i.codes.up)return void this.updateSearchBarIndex(this.currentRow-1)}this.typedTextCache=this.searchTerms,this.getAutoSuggestions(t)}else this.performSearch()},e.prototype.getCursorPosition=function(t){if(!t||!t.target)return 0;var e=t.target;return e?e.selectionStart:0},e.prototype.isHashTagSearch=function(t){return t&&t.split("#").length>1},e.prototype.isValidHashTagSearch=function(t,e){return!(e>0&&"#"===this.searchTerms[e-1])&&(!(t.split("#").length>2)&&0===p.a(t,e))},e.prototype.updateSearchSuggestions=function(t){this.resetAutoSuggestions();var e=this.isSuggestingHashtags;if(t&&t.suggestions&&t.suggestions.length>0){this.showAutoSuggestions=!0;for(var n=[],r=0,i=t.suggestions;rt.length)return n;for(var r=e-1;r>=0&&" "!==t[r];r--)if("#"===t[r]){if(r===e-1)return-1;if(0===r||/\s/.test(t[r-1])){n=r;break}break}return n},e.b=function(t,e){var n=i.a(t);return r.autoLinkHashtags(n,{hashtagUrlBase:e})};var r=n(533),i=(n.n(r),n(534))},,,,,,,,,,,,,function(t,e){},,,,,,,,,,,,function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(4),c=n(7),u=n(595),d=(n.n(u),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showBadge=!1,e}return d(e,t),e.prototype.mounted=function(){document.addEventListener("touchstart",this.onDocumentTouched)},e.prototype.destroyed=function(){document.removeEventListener("touchstart",this.onDocumentTouched)},Object.defineProperty(e.prototype,"langCode",{get:function(){return this.$store.getters.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentUser",{get:function(){return this.$store.getters.currentUser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSignedIn",{get:function(){return null!==this.currentUser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"profileThumbnail",{get:function(){var t;return this.currentUser&&(t=this.currentUser.avatarUrl||"/static/images/icon-no-profile-pic.svg"),t||"/static/images/icon-profile.svg"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userDetailsPageUrl",{get:function(){return c.q(this.currentUser.id)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modelsUrl",{get:function(){return this.userDetailsPageUrl+"?nav=models"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collectionsUrl",{get:function(){return this.userDetailsPageUrl+"?nav=collections"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editProfileUrl",{get:function(){return this.userDetailsPageUrl+"?nav=profile"},enumerable:!0,configurable:!0}),e.prototype.onBadgeMouseEnter=function(){this.resetBadgeTimeout(),this.showBadge=!0},e.prototype.onBadgeMouseLeave=function(){var t=this;this.resetBadgeTimeout(),this.badgeTimeOut=window.setTimeout(function(){t.showBadge=!1},l.d.POPUP_FOCUS_LOSS_TIMEOUT)},e.prototype.resetBadgeTimeout=function(){null!==this.badgeTimeOut&&window.clearTimeout(this.badgeTimeOut),this.badgeTimeOut=null},e.prototype.signIn=function(){var t=window.location.href,e=c.i(),n=c.n(t,e,this.langCode);c.x(n)},e.prototype.signOut=function(){var t=c.i(),e=c.o(t,this.langCode);c.x(e)},e.prototype.onDocumentTouched=function(t){var e=this.$refs.userBadge,n=t.target;n===e||e.contains(n)?this.showBadge=!0:this.showBadge=!1},e=p([s.a],e)}(o.a);e.a=h},function(t,e,n){"use strict";var r,i=n(2),o=n.n(i),a=n(44),s=n(289),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.getUriPath=function(){return"/warehouse/dashboardanalytics/downloadsbycountry"},e.prototype.getChartElement=function(){return document.getElementById("downloads-by-country-chart")},e=c([o()({components:{LoadingAndErrors:a.a}})],e)}(s.a);e.a=u},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.loading=!1,e.errorMessage="",e}return l(e,t),e=c([s()({props:{loading:Boolean,errorMessage:String}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r=n(290),i=n(601),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(2),o=n.n(i),a=n(60),s=n(44),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.renderData=function(t){this.renderChart(t)},e.prototype.getUriPath=function(){return"/warehouse/dashboardanalytics/viewsbycountry"},e.prototype.getChartElement=function(){return document.getElementById("views-by-country-chart")},e.prototype.renderChart=function(t){var e=new google.visualization.DataTable;e.addColumn("date","X");for(var n={},r=0,i=t;r=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.loading=!1,e.errorMessage="",e}return c(e,t),e.prototype.mounted=function(){var t=this;this.$watch("fromDate",function(){t.fetchData()}),this.$watch("toDate",function(){t.fetchData()}),this.fetchData()},e.prototype.renderError=function(){this.loading=!1,this.errorMessage="Problem fetching redshift data"},e.prototype.fetchData=function(){var t=this;this.loading=!0;var e="?startTimestamp="+this.fromDate.getTime();e+="&endTimestamp="+this.toDate.getTime(),l.a.debug("Fetching using from date "+this.fromDate);var n=this.getUriPath();fetch(n+e,{credentials:"same-origin"}).then(function(e){return 200===e.status?e.json():(t.renderError(),null)}).then(function(e){e&&(t.loading=!1,t.renderData(e))}).catch(function(e){t.renderError(),l.a.info("Rejected because of "+e)})},e.prototype.getUriPath=function(){throw"Not implemented"},e.prototype.renderData=function(t){throw"Not Implemented"},e=u([s()({props:{fromDate:Date,toDate:Date}})],e)}(o.a);e.a=d},function(t,e,n){"use strict";var r,i=n(5),o=(n.n(i),n(2)),a=n.n(o),s=n(12),l=n(7),c=n(60),u=n(44),d=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.renderData=function(t){this.renderTable(t)},e.prototype.getUriPath=function(){return"/warehouse/dashboardanalytics/popularuploaders"},e.prototype.subtractDeletesFromCreates=function(t){for(var e={},n=0,r=t;n'+t.displayName+"";r.addRow([e,parseInt(n)])}}))});var a={allowHtml:!0,showRowNumber:!1,sortColumn:1,sortAscending:!1,width:"100%",height:"100%"};Promise.all(o).then(function(){n.draw(r,a)}).catch(function(t){s.a.info("Problem fetching user "+t),n.draw(r,a)})},e=p([a()({components:{LoadingAndErrors:u.a}})],e)}(c.a);e.a=h},function(t,e,n){"use strict";var r,i=n(2),o=n.n(i),a=n(60),s=n(44),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.renderData=function(t){this.renderChart(t)},e.prototype.getUriPath=function(){return"/warehouse/dashboardanalytics/uploadsbyday"},e.prototype.renderChart=function(t){this.loading=!1;for(var e={},n=0,r=t;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.renderData=function(t){this.renderChart(t)},e.prototype.getUriPath=function(){return"/warehouse/dashboardanalytics/viewsdownloadsbyday"},e.prototype.renderChart=function(t){for(var e={},n=0,r=t;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},g=/user\/([0-9a-zA-Z\-]+)\/?/,b=/by\/([^\?]+)/,_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pageMounted=!1,e.isAdminUser=!1,e.fromUserText="",e.toUserText="",e.fromUser=null,e.toUser=null,e.fromUserError="",e.toUserError="",e.api=null,e}return v(e,t),e.prototype.mounted=function(){var t=this;this.apiHandler.isCurrentUserAdmin().then(function(e){t.isAdminUser=e,t.pageMounted=!0}),this.debouncedFrom=d()(this.onFromUserInput.bind(this),h.d.DEBOUNCE_MEDIUM),this.debouncedTo=d()(this.onToUserInput.bind(this),h.d.DEBOUNCE_MEDIUM)},Object.defineProperty(e.prototype,"showInsufficientPermissions",{get:function(){return this.pageMounted&&!this.isAdminUser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enterUsersPromptShown",{get:function(){return!(this.fromUser&&this.toUser)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"migrateUserButtonShown",{get:function(){return this.fromUser&&this.toUser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"apiHandler",{get:function(){return this.api||(this.api=this.$store.getters.apiHandler),this.api},set:function(t){this.api=t},enumerable:!0,configurable:!0}),e.prototype.onFromUserInputDebounce=function(){this.debouncedFrom()},e.prototype.onFromUserInput=function(){var t=this,e=this.fromUserText;this.tryFetchUser(this.fromUserText).then(function(n){e===t.fromUserText&&(t.fromUser=n.user,t.fromUserError=n.error)})},e.prototype.onToUserInputDebounce=function(){this.debouncedTo()},e.prototype.onToUserInput=function(){var t=this,e=this.fromUserText;this.tryFetchUser(this.toUserText).then(function(n){e===t.fromUserText&&(t.toUser=n.user,t.toUserError=n.error)})},e.prototype.performMigrateUser=function(){this.$refs.migrator.performMigration(this.fromUser,this.toUser)},e.prototype.tryFetchUser=function(t){return o.string.isEmptyOrWhiteSpace(t)?Promise.resolve({user:null,error:""}):this.getUserByValue(t).then(function(t){return{user:t,error:""}}).catch(function(t){return{user:null,error:p.a(t)}})},e.prototype.getUserByValue=function(t){if(-1!==t.indexOf("@")){var e=t.split("@");return t=encodeURIComponent(e[0])+"@"+e[1],this.apiHandler.fetchUserByEmail(t,{recordEvent:!1}).then(function(e){if(0===e.size)throw'User lookup by "'+t+'" Not Found';return e.entries[0]})}var n,r=t;o.string.startsWith(t,"http")&&((n=g.exec(t))&&(r=n[1]));if(-1!==t.indexOf("/by/")&&(n=b.exec(t)))return r=n[1],this.apiHandler.getUserByCustomWarehouseUrl(r).then(function(e){if(!e.success)throw'User lookup by "'+t+'" Not Found.';return e});return this.apiHandler.fetchUserById(r,{recordEvent:!1})},e=y([c()({components:{"migrate-user-card":f.a,"user-content-migrator":m.a},metaInfo:function(){return{title:"Migrate User"}}})],e)}(s.a);e.a=_},,,,,function(t,e,n){"use strict";e.a=function(t){if(!t)return"Error: An unknown error occured.";var e=t;if(t.responseJSON&&t.responseJSON.message)return t.responseJSON.message;if(t.responseText)return t.responseText;return e.toString()}},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(18),c=n.n(l),u=n(12),d=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deleted=!1,e.error=!1,e.savedId=e.id,e}return d(e,t),e.prototype.mounted=function(){this.location=new c.a(window.location.href)},e.prototype.updated=function(){this.savedId!==this.id&&(this.deleted=!1,this.error=!1,this.savedId=this.id)},e.prototype.deleteUser=function(){if(confirm("Are you sure you want to delete this user? This action cannot be reverted and the data cannot be recovered. Don't forget to delete from the other environments (dev, stage, prod).")){var t=this.$store.getters.apiHandler.deleteUser(this.id);this.handleDeletePromise(t)}},e.prototype.handleDeletePromise=function(t){var e=this;t.then(function(t){e.deleted=!0},function(t){e.error=!0,alert("Could not delete user. Either a deletion job is already running or an error occurred. Deletions can process for multiple hours. Please try again later. "),u.a.error("Could not delete user account: ",t)})},e=p([s()({props:{cardTitle:String,displayName:String,emailAddress:String,id:String,roles:Array,deleteUserButton:{type:Boolean,default:!1}}})],e)}(o.a);e.a=h},function(t,e,n){"use strict";var r,i=n(5),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(300),u=n(16),d=n(8),p=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.fromUser=null,e.toUser=null,e.messageLogs=new Array,e.sourceCollectionIds=new Map,e.sourceModelIds=new Map,e.api=null,e}return p(e,t),Object.defineProperty(e.prototype,"apiHandler",{get:function(){return this.api||(this.api=this.$store.getters.apiHandler),this.api},set:function(t){this.api=t},enumerable:!0,configurable:!0}),e.prototype.performMigration=function(t,e){var n=this;this.fromUser=t,this.toUser=e,this.messageLogs=new Array,this.sourceCollectionIds=new Map,this.sourceModelIds=new Map,this.pollingAttempts=0,this.startingEventCount=0;var r=[];r.push(this.migrateEvents()),r.push(this.migrateRoles()),r.push(this.migrateCollections()),r.push(this.migrateModels()),Promise.all(r).then(function(t){n.messageLogs.push("Completed migrating roles, models and collections.");var e=t[0];n.startingEventCount=e,n.waitForMigrateEventsToComplete(e)},function(t){n.messageLogs.push(c.a(t))})},e.prototype.migrateModels=function(){var t=this;this.messageLogs.push("Starting model migration.");var e=this.searchModels();return e=e.then(function(){return t.changeOwnershipOfModels()})},e.prototype.migrateCollections=function(){var t=this;this.messageLogs.push("Starting collection migration.");var e=this.searchCollections();return e=e.then(function(){return t.changeOwnershipOfCollections()})},e.prototype.migrateRoles=function(){var t=this;if(this.messageLogs.push("Starting role migration."),i.whp.util.user.userHasRole(this.fromUser,i.whp.UserRole.Manufacturer)){this.messageLogs.push("User "+this.fromUser.emailAddress+" is a manufacturer.");var e=this.addUserRole(this.toUser.id,i.whp.UserRole.Manufacturer);return e.then(function(e){e.success?t.messageLogs.push("Added manufacturer role to new account successfully."):t.messageLogs.push("ERROR: Unable to add manufacturer role to new account.")},function(t){this.messageLogs.push(c.a(t))}),e}return this.messageLogs.push("No roles to add to new account."),Promise.resolve()},e.prototype.migrateEvents=function(){var t=this;return this.messageLogs.push("Requesting the migration of user events. This process can take 3-5 minutes."),this.apiHandler.migrateUserEvents(this.fromUser.id,this.toUser.id).then(function(e){return t.messageLogs.push("Migration of user events started."),e.totalUserEvents},function(t){return this.messageLogs.push(c.a(t)),0})},e.prototype.searchCollections=function(t){var e=this,n=this.getSearchOptions(t);return this.apiHandler.getCollections(n).then(function(t){for(var r=0;r60)return this.messageLogs.push("Uhoh, timed out waiting for migrate to complete."),void this.messageLogs.push("Please, check redshift to understand what got migrated.");this.messageLogs.push("Still migrating user events."),setTimeout(this.getTotalEventsForOldUser.bind(this),1e4)}},e.prototype.getTotalEventsForNewUser=function(){var t=this;this.apiHandler.getTotalUserEvents(this.toUser.id,{recordEvent:!1}).then(function(e){var n=e.totalUserEvents;t.messageLogs.push("Migrated "+t.startingEventCount+" user events."),t.messageLogs.push("The 'To user' "+t.toUser.id+" has "+n+" user events."),t.messageLogs.push("Success!")},function(e){t.messageLogs.push(c.a(e))})},e.prototype.getTotalEventsForOldUser=function(){var t=this;this.apiHandler.getTotalUserEvents(this.fromUser.id,{recordEvent:!1}).then(function(e){t.waitForMigrateEventsToComplete(e)},function(e){t.messageLogs.push(c.a(e))})},e.prototype.addUserRole=function(t,e){var n={id:t,rolesToAdd:e};return this.apiHandler.performLegacyApiRequest("/SetUser",n)},e=h([l()({})],e)}(a.a);e.a=f},function(t,e,n){"use strict";var r,i=n(626),o=(n.n(i),n(2)),a=n.n(o),s=n(29),l=n(14),c=n(17),u=n(30),d=n(7),p=n(92),h=n(48),f=n(64),m=n(332),v=n(32),y=n(334),g=n(26),b=n(23),_=n(338),O=n(682),C=n(65),w=n(686),T=n(689),E=n(350),S=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),P=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="collection-page",e.pageStateKey="CollectionPageState",e.pageState={accordions:{unsortedModels:!0,collections:!0}},e.inManageMode=!1,e.collectionTitle="",e.reportAbuseUrl="#",e.reportAbuseTarget="_blank",e}return S(e,t),e.prototype.created=function(){this.collection&&(this.collectionTitle=this.collection.title)},e.prototype.mounted=function(){this.collection&&(this.reportAbuseUrl=d.l(),l.f()&&(this.reportAbuseTarget="_self"))},e.prototype.updatePageState=function(){},Object.defineProperty(e.prototype,"unsortedModelsParams",{get:function(){return{fq:"parentCollectionId=="+this.collection.id,showBinaryMetadata:!0,recordEvent:!1}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collectionParams",{get:function(){return{fq:"parentCollectionId=="+this.collection.id,recordEvent:!1}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noCollections",{get:function(){return 0===this.collection.collectionCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noUnsortedModels",{get:function(){return 0===this.collection.entityCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unsortedModelsOpen",{get:function(){return this.pageState.accordions.unsortedModels},set:function(t){this.pageState.accordions.unsortedModels=t,this.savePageState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collectionsOpen",{get:function(){return this.pageState.accordions.collections},set:function(t){this.pageState.accordions.collections=t,this.savePageState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageUrl",{get:function(){return this.item?this.item.thumbnailUrl:null},enumerable:!0,configurable:!0}),e.prototype.allowDerivedClassesToModifyItemMetaData=function(t,e){var n=t[s.a.DateCreated].value;t[s.a.DateCreated].value=c.b(n),n=t[s.a.DateModified].value,t[s.a.DateModified].value=c.b(n)},e.prototype.asyncDataArgs=function(){return{subjectClass:"collection",stringPriorToId:"collection",includeItemCreator:!0,includeLikeState:!0}},Object.defineProperty(e.prototype,"collection",{get:function(){return this.item},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageDescription",{get:function(){return this.collection.description?this.collection.description:this.$t("Collection: {title}",{title:this.collection.title})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.$store.getters.baseUrl+"/collection/"+this.collection.id+"/"+d.z(this.collection.title)},enumerable:!0,configurable:!0}),e.prototype.createSection=function(){this.createSectionModal?(this.createSectionModal.reset(),this.createSectionModal.openModal()):(this.createSectionModal=new w.a({store:this.$store,propsData:{acceptCallback:this.sectionCreated}}),this.createSectionModal.mountOnPage())},e.prototype.moveSelectedModels=function(){alert("Not yet implemented.")},e.prototype.deleteSelectedModels=function(){alert("Not yet implemented.")},e.prototype.sectionCreated=function(){alert("Not yet implemented.")},e=P([a()({components:{Accordion:f.a,AccordionItem:h.a,AutoSizingInput:m.a,chevron:v.a,CreateSectionModal:w.a,DescriptionPanel:y.a,FooterPanel:g.a,HeaderPanel:b.a,IconDelete:_.a,IconPlaceholder:O.a,ItemNotFound:C.a,SectionContent:T.a,UserCard:E.a},metaInfo:function(){return this.$store.getters.currentItem?{title:this.metaTitle,link:u.a(this.baseUrl,this.currentLanguage),meta:u.b(this.itemMetadata),script:u.c(this.schemaScript),__dangerouslyDisableSanitizers:["script"]}:{title:this.$t("Collection Not Found")}}})],e)}(p.a);e.a=M},function(t,e,n){"use strict";var r,i=n(2),o=n.n(i),a=n(5),s=(n.n(a),n(29)),l=n(30),c=n(627),u=n(8),d=n(4),p=n(7),h=n(61),f=n(45),m=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},y=this,g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="collection-element-details",e.fieldIds=s.a,e.metaTitle=l.d(e.title),e.metaDescription=l.d(e.description),e.likesCount=0,e.STANDARD_TAGS=["3D","3D model","3D Warehouse","Sketchup"],e}return m(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.$store.getters.currentItem},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLiked",{get:function(){return this.$store.getters.currentItemLiked},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.item?this.item.title:"not found"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this.item?this.item.description:"not found"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"likeActionTitle",{get:function(){return this.isLiked?this.$t("Undo Like"):this.$t("Like")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return this.isSignedIn&&h.a(this.currentUser)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isProduct",{get:function(){return this.item.subjectClass===u.a.BackendClass.ENTITY&&!!this.item.parentCatalogId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){if(!this._schema){var t={element:this.item,baseUrl:this.$store.getters.baseUrl,language:this.$store.getters.language,isProduct:this.isProduct,creator:this.$store.getters.currentItemCreator};this._schema=c.a(t)}return this._schema},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"schemaScript",{get:function(){return c.b(this.schema)},enumerable:!0,configurable:!0}),e.prototype.performLikeAction=function(){if(this.isSignedIn)this.isLiked?this.deleteReview():this.setReview();else{var t={feature:"Like",message:this.$t("Oops! You need to be signed in to like this model.")};this.eventBus.$emit(d.e.SIGN_IN_GUARD,t)}},e.prototype.updateLikes=function(t){this.likesCount+=t},e.prototype.deleteReview=function(){var t=this,e=a.whp.HttpMethod.Post,n=this.$store.getters.apiHandler,r={subjectId:this.item.id,subjectClass:this.item.subjectClass},i=JSON.stringify(r);n.performLegacyApiRequest("/DeleteReview",i,{method:e}).then(function(e){t.$store.commit("SET_CURRENT_ITEM_LIKED",!1),t.$nextTick(function(){t.updateLikes(-1)})})},e.prototype.setReview=function(){var t=this,e=a.whp.HttpMethod.Post,n=this.$store.getters.apiHandler,r={subjectId:this.item.id,subjectClass:this.item.subjectClass,rating:5},i=JSON.stringify(r);n.performLegacyApiRequest("/SetReview",i,{method:e}).then(function(e){t.$store.commit("SET_CURRENT_ITEM_LIKED",!0),t.$nextTick(function(){t.updateLikes(1)})})},e.prototype.populateMetadata=function(){if(this.item){var t=this.item;this.likesCount=t.likes,this.itemMetadataProp=new Array,this.itemMetadataProp[s.a.CreatorDisplayName]={label:this.$t("Author"),value:t.creatorDisplayName,isLink:!1},this.itemMetadataProp[s.a.DateCreated]={label:this.$t("Uploaded"),value:t.createdDate,isLink:!1},this.itemMetadataProp[s.a.DateModified]={label:this.$t("Modified Date"),value:t.lastModifiedDate,isLink:!1},this.itemMetadataProp[s.a.Description]={label:this.$t("Description"),value:t.description,isLink:!1},this.itemMetadataProp[s.a.Downloads]={label:this.$t("Downloads"),value:t.downloads,isLink:!1},this.itemMetadataProp[s.a.Filesize]={label:this.$t("File Size"),value:t.fileSize,isLink:!1},this.itemMetadataProp[s.a.Geolocated]={label:this.$t("Geolocated"),value:!1,isLink:!1},this.itemMetadataProp[s.a.Height]={label:this.$t("Height"),value:150,isLink:!1},this.itemMetadataProp[s.a.ImageUrl]={label:"",value:this.imageUrl,isLink:!1},this.itemMetadataProp[s.a.Keywords]={label:"",value:this.getMetaKeywords(),isLink:!1},this.itemMetadataProp[s.a.Likes]={label:this.$t("Likes"),value:t.likes,isLink:t.likes>0,linkAction:{eventName:d.e.BROWSE_ITEMS_OPEN,params:d.c.Reviews}},this.itemMetadataProp[s.a.MaterialCount]={label:this.$t("Materials"),value:void 0!==t.materialCount?t.materialCount:"-",isLink:t.materialCount>0,linkAction:{eventName:d.e.BROWSE_ITEMS_OPEN,params:d.c.Materials}},this.itemMetadataProp[s.a.PageUrl]={label:"",value:this.pageUrl,isLink:!1},this.itemMetadataProp[s.a.PolygonCount]={label:this.$t("Polygons"),value:void 0!==t.polygonCount?t.polygonCount:"-",isLink:!1},this.itemMetadataProp[s.a.Title]={label:this.$t("Title"),value:t.title,isLink:!1},this.itemMetadataProp[s.a.Views]={label:this.$t("Views"),value:t.views,isLink:!1},this.itemMetadataProp[s.a.Width]={label:this.$t("Width"),value:125,isLink:!1},this.itemMetadataProp[s.a.ComponentCount]={label:this.$t("Contributors"),value:void 0!==t.componentCount?t.componentCount:"-",isLink:!1},this.allowDerivedClassesToModifyItemMetaData(this.itemMetadataProp,t)}},e.prototype.allowDerivedClassesToModifyItemMetaData=function(t,e){},Object.defineProperty(e.prototype,"itemMetadata",{get:function(){return this.itemMetadataProp||this.populateMetadata(),this.itemMetadataProp},enumerable:!0,configurable:!0}),e.prototype.getMetaKeywords=function(){var t=this.item.tags||[];return this.STANDARD_TAGS.concat(t.slice(0,10)).join(",")},Object.defineProperty(e.prototype,"imageUrl",{get:function(){return this.item?this.item.largeThumbnailUrl:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageUrl",{get:function(){var t;switch(this.item.subjectClass){case u.a.BackendClass.COLLECTION:t=p.b(this.item.id);break;case u.a.BackendClass.ENTITY:t=p.g(this.item.id,this.item.urlTitle);break;case u.a.BackendClass.MATERIAL:t=p.j(this.item.id);break;default:return""}return this.$store.getters.baseUrl+t},enumerable:!0,configurable:!0}),e.prototype.asyncData=function(t){var e=t.store,n=t.route,r=t.asyncComponent,i=r.methods.asyncDataArgs?r.methods.asyncDataArgs():null,o=p.y(n.fullPath,i.stringPriorToId);return e.dispatch("GET_CURRENT_ITEM",{subjectId:o,subjectClass:i.subjectClass}).then(function(){if(e.state.currentItem){var t=e.state.currentItem.creatorId,n=i.includeItemCreator?e.dispatch("GET_CURRENT_ITEM_CREATOR",{userid:t}):Promise.resolve(),r=i.includeLikeState?e.dispatch("GET_CURRENT_ITEM_LIKED"):Promise.resolve();return Promise.all([n,r])}return Promise.resolve()},function(t){return Promise.reject(t)})},e=v([o()({data:function(){return{itemMetadataProp:y.itemMetadataProp}}})],e)}(f.a);e.a=g},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(62),c=n(10),u=n(306),d=n(4),p=n(312),h=n(7),f=n(641),m=n(644),v=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasLocalStorage=!0,e.api=null,e.uploadController=null,e.allowClientUpload=!0,e.signinModal=null,e}return v(e,t),e.prototype.created=function(){!this.$isServer&&this.pageStateKey&&this.restorePageState()},e.prototype.mounted=function(){var t=this;this.uploadController=new m.a({store:this.$store,propsData:{query:this.$route.query}}),this.eventBus.$on(d.e.UPLOAD_START,function(){t.isSignedIn?t.uploadController.uploadStart():t.signInGuard("ModelUpload",t.$t("Oops. You need to be signed in to upload a new model."))}),this.eventBus.$on(d.e.SIGN_IN_GUARD,function(e){t.signInGuard(e.feature,e.message)}),this.hasLocalStorage=this.testLocalStorage(),this.isSignedIn&&u.a(this.$store,this.currentUser),this.allowClientUpload&&this.uploadController.uploadStart(!0)},e.prototype.loadSketchupClient=function(){return p.a()},e.prototype.checkSignInAndRoles=function(){return this.isSignedIn?this.checkRoles():(this.signIn(),!1)},Object.defineProperty(e.prototype,"pageAccessSignInAndRoleBlock",{get:function(){return!!this.isSignedIn&&this.checkRoles()},enumerable:!0,configurable:!0}),e.prototype.checkRoles=function(){for(var t=0,e=this.requiredRoles;tp.getTime())return!0}var o=i.a.get(l.a.TOS_ACCEPTED_VERSION);if(o===e)return!0;if(t&&(o=t.attributes&&t.attributes.flags&&t.attributes.flags[u]&&t.attributes.flags[u].value)===e)return!0;return!1}(e))n(!0);else{var h=new a.a({propsData:{acceptCallback:function(){return function(t,e){var n=this,r=d;if(i.a.set(l.a.TOS_ACCEPTED_VERSION,r,{expires:1460}),e){var a={endpoint:o.whp.SetAttributeEndpoint.Users,subjectId:e.id,category:"flags",name:u,value:r,dataType:"string"},p=t.getters.apiHandler,h=p.setAttribute(a);return h.then(function(t){},function(t){var e={text:s.c.TOS_SAVE_ERROR},r=new c.c(e,c.b.ERROR);n.$store.commit("ADD_STATUS_NOTIFICATION",r)})}return Promise.resolve()}(t,e).then(function(){n(!0)})}}});h.mountOnPage()}})};var r=n(50),i=n.n(r),o=n(5),a=(n.n(o),n(628)),s=n(10),l=n(54),c=n(21),u="acceptedTosVersion",d="2017-03-01",p=new Date(Date.UTC(2017,3,1))},function(t,e,n){"use strict";var r,i=n(629),o=(n.n(i),n(2)),a=n.n(o),s=n(15),l=n(631),c=n(633),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="tos-modal",e.openOnMounted=!0,e}return u(e,t),e.prototype.onAccept=function(){this.closeModal(),this.acceptCallback&&this.acceptCallback()},e=d([a()({components:{GeneralModelLicense:l.a,TermsOfService:c.a},inheritAttrs:!1})],e)}(s.a);e.a=p},function(t,e,n){"use strict";(function(t){var r,i=n(309),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="modal",t.openOnMounted=!1,t}return c(n,e),n.prototype.mountOnPage=function(t){void 0===t&&(t="app-modal-container");var e=document.getElementById(t),n=document.createElement("div");e.appendChild(n),this.$mount(n)},n.prototype.mounted=function(){t(this.$el).foundation(),this.openOnMounted&&this.openModal()},n.prototype.openModal=function(){t(this.$el).foundation("open")},n.prototype.closeModal=function(){var e=this;return new Promise(function(n,r){t(e.$el).foundation("close"),n()})},Object.defineProperty(n.prototype,"isOpen",{get:function(){return!!this.$el&&"none"!==this.$el.style.display},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isClosed",{get:function(){return!this.$el||"none"===this.$el.style.display},enumerable:!0,configurable:!0}),n.prototype.destroy=function(){t(this.$el).foundation("destroy")},n=u([l()({props:{acceptCallback:Function}})],n)}(a.a);e.a=d}).call(e,n(11))},function(t,e){},function(t,e,n){"use strict";e.a={name:"general-model-license"}},function(t,e,n){"use strict";e.a={name:"terms-of-service"}},function(t,e,n){"use strict";e.b=function(t,e){var n=e.getters.apiHandler,r=n.createEntity(a(t)),s="";return r=(r=(r=r.then(function(e){return s=e,n.postBinary(s,t.skpFile.sourceBinaryName,t.file,t.progressCallback)},function(t){var e="Could not create model.";return o.a.error(e),i.a.captureMessage(e,{extra:{error:t}}),Promise.reject(t)})).then(function(){return n.renderBinary(s,t.skpFile.sourceBinaryName)},function(t){var e="Could not upload binary.";return o.a.error(e),i.a.captureMessage(e,{extra:{error:t}}),Promise.reject(t)})).then(function(){return s},function(t){var e="Could not render binary.";return o.a.error(e),i.a.captureMessage(e,{extra:{error:t}}),Promise.reject(t)})},e.a=function(){var t=this;return new Promise(function(e,r){if(t.$isServer)return r("Attempted to load sketchup client serverside.");try{var i=window,a=i&&i.Module&&i.Module.wasmBinaryFile;if(a)return e();var s={};i.Module=s,s.wasmBinaryFile="/static/sketchup_client_interface.wasm";var l=n(36);l("/static/sketchup_client_interface.js",function(){return e()})}catch(t){return o.a.error("Error loading sketchup_client: "+t),r("Error loading sketchup_client.")}})};var r=n(313),i=n.n(r),o=n(12);function a(t){return{allowComments:t.allowComments,description:t.description,externalUrl:t.externalUrl,isPrivate:t.isPrivate,title:t.title}}},,,function(t,e,n){"use strict";(function(t){var r,i=n(642),o=(n.n(i),n(2)),a=n.n(o),s=n(13),l=n(7),c=n(15),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="sign-in-guard-action",t.accepted=!1,t.openOnMounted=!0,t}return u(n,e),n.prototype.mounted=function(){t(this.$el).on("closed.zf.reveal",this.onModalClose)},n.prototype.destroyed=function(){t(this.$el).off("closed.zf.reveal",this.onModalClose)},n.prototype.onModalClose=function(){this.accepted||this.sendSignedInForFeature(!1),this.accepted=!1},n.prototype.onAccept=function(){this.accepted=!0,this.sendSignedInForFeature(!0);var t=l.n(this.returnUrl,this.returnUrl);l.x(t)},n.prototype.onCancel=function(){this.sendSignedInForFeature(!1),this.closeModal()},n.prototype.sendSignedInForFeature=function(t){var e=s.a.SIGNED_IN_FOR_FEATURE;s.f(e,[this.feature,t.toString()])},n=d([a()({props:{feature:String,actionText:String,returnUrl:String}})],n)}(c.a);e.a=p}).call(e,n(11))},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(13),c=n(22),u=n(14),d=n(74),p=n(4),h=n(312),f=n(7),m=n(47),v=n(648),y=n(650),g=n(658),b=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="upload-controller",e.uploading=!1,e.uploadStatusModal=null,e.uploadInClient=!1,e.allowClientUpload=!0,e.fileToUpload=null,e.uploadType="",e.sketchupClientLoaded=!1,e.clientUpdating=!1,e}return b(e,t),e.prototype.uploadStart=function(t){void 0===t&&(t=!1),this.initializeState(),t?this.checkInClientAction():u.f()?this.isOldClient()||this.inClientUploadFlow(null):this.browserUploadFlow()},e.prototype.initializeState=function(){this.uploadInClient=!1,this.allowClientUpload=!0,this.uploading=!1,this.fileToUpload=null,this.uploadType="",this.sketchupClientLoaded=!1,this.uploadEntityId=null,this.clientUpdating=!1,this.entity=null},e.prototype.browserUploadFlow=function(){this.uploading=!0,this.prepareForUploads(),this.uploadSelectorModal?(this.uploadSelectorModal.reset(),this.uploadSelectorModal.openModal()):(this.uploadSelectorModal=new g.a({store:this.$store,propsData:{cancelCallback:this.uploadCanceled,acceptCallback:this.uploadSelected}}),this.uploadSelectorModal.mountOnPage())},e.prototype.uploadSelected=function(t){if(this.uploading){var e=Object.keys(t);if(e&&(this.uploadType=e[0],this.fileToUpload=t[this.uploadType],this.fileToUpload))return this.uploadDetailsModal.acceptCallback=this.uploadDetailsProvided,this.uploadDetailsModal.reset(this.fileToUpload),void this.uploadDetailsModal.openModal();this.uploadError()}},e.prototype.uploadError=function(){var t=this.$t("Oops! An error has occurred."),e=p.i.Failure;this.uploadStatusModal?(this.uploadStatusModal.currentState=e,this.uploadStatusModal.failureMessage=t,this.uploadStatusModal.acceptCallback=this.uploadCanceled,this.uploadStatusModal.openModal()):(this.uploadStatusModal=new m.a({store:this.$store,propsData:{currentState:e,failureMessage:t,acceptCallback:this.uploadCanceled}}),this.uploadStatusModal.mountOnPage())},e.prototype.uploadDetailsProvided=function(t){var e=this,n=p.i.LoadingDeterminate;this.uploadStatusModal?(this.uploadStatusModal.startState=n,this.uploadStatusModal.currentState=n,this.uploadStatusModal.loadPercent=0,this.uploadStatusModal.openModal()):(this.uploadStatusModal=new m.a({store:this.$store,propsData:{startSate:n,currentState:n,acceptCallback:this.uploadComplete}}),this.uploadStatusModal.loadDetTitle=" ",this.uploadStatusModal.loadDetMessage=this.$t("Uploading your model"),this.uploadStatusModal.loadPercent=0,this.uploadStatusModal.mountOnPage()),t.file=this.fileToUpload,t.progressCallback=this.uploadProgress;var r=t.isPrivate?"private":"public",i=t.skpFile.sourceBinaryName;h.b(t,this.$store).then(function(n){t.skpFile.cleanUp(),l.h("web",!0,i,t.skpFile.filename,r),e.uploadStatusModal.currentState=p.i.Success,e.uploadStatusModal.successMessage=e.$t("Your model was successfully uploaded! Please allow a few minutes for the model to be rendered."),e.uploadEntityId=n},function(){t.skpFile.cleanUp(),l.h("web",!1,i,t.skpFile.filename,r),e.uploadFailed(e.$t("Something went wrong while uploading your model. Please try again."))})},e.prototype.uploadProgress=function(t){this.uploadStatusModal.updateState(p.i.LoadingDeterminate,100*t)},e.prototype.uploadComplete=function(){var t=this.uploadEntityId;this.uploading=!1;var e=this.uploadDetailsModal.title,n=f.g(t,e);window.location.href=n},e.prototype.uploadFailed=function(t){this.uploading=!1,this.uploadStatusModal.currentState=p.i.Failure,this.uploadStatusModal.failureTitle=this.$t("Oops!"),this.uploadStatusModal.failureMessage=t,this.uploadStatusModal.acceptCallback=this.uploadCanceled},e.prototype.uploadCanceled=function(){this.uploading=!1},e.prototype.inClientUploadFlow=function(t){this.uploading=!0,this.prepareForUploads(),this.uploadInClient=!0;var e={fileName:t,polygons:this.query.polygons?parseInt(this.query.polygons):0,fileSize:this.query.fsize?parseInt(this.query.fsize):0,updating:this.clientUpdating,title:this.entity?this.entity.title:"",description:this.entity?this.entity.description:"",isPrivate:!!this.entity&&this.entity.isPrivate};this.uploadDetailsModal.acceptCallback=this.inclientUploadDetailsProvided,this.uploadDetailsModal.uploadFromClient(e),this.uploadDetailsModal.openModal()},e.prototype.inclientUploadFailed=function(t){this.uploadStatusModal||(this.uploadStatusModal=new m.a({store:this.$store,propsData:{acceptCallback:this.uploadComplete}}),this.uploadStatusModal.mountOnPage()),this.uploadFailed(t)},e.prototype.inclientUploadDetailsProvided=function(t){var e=this,n={startState:p.i.LoadingIndeterminate,currentState:p.i.LoadingIndeterminate,loadIndetTitle:" ",loadIndetMessage:this.$t("Uploading your model")};this.setUploadStatus(n);var r,i=t.isPrivate?"private":"public";this.clientUpdating?(t.externalUrl=this.entity.externalUrl,r=this.apiHandler.updateEntity(this.uploadEntityId,t)):r=this.apiHandler.createEntity(t),r.then(function(t){e.clientUpdating||(e.uploadEntityId=t);var n="skp:upload@"+e.uploadEntityId,r=d.d(n);d.e(window,r)},function(){l.h("web",!1,e.clientBinaryType,"nofile",i),e.inclientUploadFailed(e.$t("Something went wrong while uploading your model. Please try again."))})},e.prototype.setUploadStatus=function(t){this.uploadStatusModal?(this.uploadStatusModal.resetModal(t),this.uploadStatusModal.isClosed&&this.uploadStatusModal.openModal()):(this.uploadStatusModal=new m.a({store:this.$store,propsData:t}),this.uploadStatusModal.mountOnPage())},e.prototype.clientUpgrade=function(){this.upgradeClientModal?this.upgradeClientModal.openModal():(this.upgradeClientModal=new v.a({store:this.$store,propsData:{}}),this.upgradeClientModal.mountOnPage())},e.prototype.isOldClient=function(){return this.clientVersion||(this.clientVersion=u.i()),this.clientVersion.major=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="status-modal",e.openOnMounted=!0,e.loadPercent=0,e}return c(e,t),e.prototype.mounted=function(){this.startState=this.currentState},Object.defineProperty(e.prototype,"stateMessage",{get:function(){switch(this.currentState){case o.i.Success:return""===this.successMessage?this.$t("Success! It worked!"):this.successMessage;case o.i.Failure:return""===this.failureMessage?this.$t("Failed."):this.failureMessage;case o.i.LoadingIndeterminate:return""===this.loadIndetMessage?this.$t("Loading."):this.loadIndetMessage;case o.i.LoadingDeterminate:return""===this.loadDetMessage?this.$t("Getting there!"):this.loadDetMessage;default:return this.$t("Oops! An error has occurred.")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stateTitle",{get:function(){switch(this.currentState){case o.i.Success:return""===this.successTitle?this.$t("Awesome Sauce!"):this.successTitle;case o.i.Failure:return""===this.failureTitle?this.$t("Failed."):this.failureTitle;case o.i.LoadingIndeterminate:return""===this.loadIndetTitle?this.$t("Loading."):this.loadIndetTitle;case o.i.LoadingDeterminate:return""===this.loadDetTitle?this.$t("Loading."):this.loadDetTitle;default:return this.$t("Oops!")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stateImage",{get:function(){switch(this.currentState){case o.i.Success:return"en"===this.$store.getters.language?"/static/images/icon-awesome-sauce.svg":"/static/images/icon-success-balloons.svg";case o.i.Failure:return"/static/images/icon-troubled-turtle.svg";case o.i.LoadingIndeterminate:return"/static/images/icon-cactus.svg";case o.i.LoadingDeterminate:default:return"/static/images/icon-deer.svg"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translatedButtonText",{get:function(){return""===this.buttonText?this.$t("Done"):this.buttonText},enumerable:!0,configurable:!0}),e.prototype.updateState=function(t,e){switch(t){case o.i.Success:this.success();break;case o.i.Failure:this.failure();break;case o.i.LoadingIndeterminate:this.loadingIndeterminate();break;case o.i.LoadingDeterminate:this.loadingDeterminate(e)}},e.prototype.resetState=function(){this.updateState(this.startState)},e.prototype.closeStatusModal=function(){this.resetState(),this.closeModal()},e.prototype.success=function(){this.currentState=o.i.Success},e.prototype.failure=function(){this.currentState=o.i.Failure},e.prototype.loadingIndeterminate=function(){this.currentState=o.i.LoadingIndeterminate},e.prototype.loadingDeterminate=function(t){this.currentState=o.i.LoadingDeterminate,this.loadPercent=t},e.prototype.onAccept=function(){this.acceptCallback&&this.acceptCallback(),this.closeStatusModal()},e.prototype.resetModal=function(t){this.acceptCallback=t.acceptCallback?t.acceptCallback:null,this.buttonText=t.buttonText?t.buttonText:"",this.currentState=t.currentState?t.currentState:o.i.Success,this.successMessage=t.successMessage?t.successMessage:"",this.failureMessage=t.failureMessage?t.failureMessage:"",this.loadIndetMessage=t.loadIndetMessage?t.loadIndetMessage:"",this.loadDetMessage=t.loadDetMessage?t.loadDetMessage:"",this.successTitle=t.successTitle?t.successTitle:"",this.failureTitle=t.failureTitle?t.failureTitle:"",this.loadIndetTitle=t.loadIndetTitle?t.loadIndetTitle:"",this.loadDetTitle=t.loadDetTitle?t.loadDetTitle:"",this.loadPercent=t.loadPercent?t.loadPercent:0},e=u([s()({props:{acceptCallback:Function,buttonText:{type:String,default:""},currentState:{type:Number,default:o.i.Success},successMessage:{type:String,default:""},failureMessage:{type:String,default:""},loadIndetMessage:{type:String,default:""},loadDetMessage:{type:String,default:""},successTitle:{type:String,default:""},failureTitle:{type:String,default:""},loadIndetTitle:{type:String,default:""},loadDetTitle:{type:String,default:""},StatusModalState:{type:Object,default:function(){return o.i}}}})],e)}(l.b);e.a=d},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i});var r,i,o,a=n(309),s=(n.n(a),n(2)),l=n.n(s),c=n(15),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};!function(t){t.SlideInRight="slide-in-right",t.SlideInUp="slide-in-up",t.SlideOutLeft="slide-out-left",t.SlideOutDown="slide-out-down",t.FadeIn="fade-in",t.FadeOut="fade-out"}(i||(i={})),function(t){t.Fast="fast",t.Medium="",t.Slow="slow"}(o||(o={}));var p=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return u(n,e),n.prototype.openModal=function(e,n){var r=this;void 0===e&&(e=null),void 0===n&&(n=null);var o=t(this.$el),a=this.animationRule(this.animationIn,e,n),s=o.closest(".reveal-overlay"),l=this.animationRule(null,i.FadeIn,n);s.show(),this.motion.animateIn(s[0],l,null),o.foundation("open"),this.motion.animateIn(o[0],a,function(){r.afterOpen()})},n.prototype.afterOpen=function(){},n.prototype.closeModal=function(e,n){var r=this;return void 0===e&&(e=null),void 0===n&&(n=null),document.body.classList.remove("is-reveal-open"),new Promise(function(o,a){var s=t(r.$el),l=r.animationRule(r.animationOut,e,n),c=s.closest(".reveal-overlay"),u=r.animationRule(null,i.FadeOut,n);r.motion.animateOut(s[0],l,function(){s.foundation("close")}),r.motion.animateOut(c[0],u,function(){c.hide(),o()})})},n.prototype.animationRule=function(t,e,n){return((e=e||t)+" "+(n=n||this.animationSpeed)).trim()},Object.defineProperty(n.prototype,"motion",{get:function(){return window.Foundation.Motion},enumerable:!0,configurable:!0}),n=d([l()({props:{animationIn:{type:String,default:i.SlideInRight},animationOut:{type:String,default:i.SlideOutLeft},animationSpeed:{type:String,default:o.Fast}}})],n)}(c.a);e.b=p}).call(e,n(11))},function(t,e,n){"use strict";(function(t){var r,i=n(2),o=n.n(i),a=n(15),s=n(7),l=n(94),c=(n.n(l),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.openOnMounted=!0,t.goodChoice=t.$t("(Hint: this is the best choice)"),t.greatChoice=t.$t("(Great Choice! You will be glad you upgraded)"),t.textOld=t.$t("(Hint: your version is quite old, you should upgrade)"),t.reallyOld=t.$t("(Aw, c'mon! You're missing out on so many new features)"),t.paragraphs=[t.$t("Hello."),t.$t("We have good news and bad news and good news."),t.$t("The good news is that we've launched an all-new 3D Warehouse and it's awesome."),t.$t("Bad news: the version of SketchUp you're using works with the old 3D Warehouse (which is now gone)."),t.$t("More good news: There are still two options for making contributions to the new 3D Warehouse:")],t.links=[{id:"upgrade-button",text:t.$t("Upgrade to the latest version at Sketchup.com/download"),href:s.d(),hint:t.goodChoice},{id:"upload-form-button",text:t.$t("Use the new 3D Warehouse Web Uploader"),href:s.p("model"),hint:t.textOld}],t}return c(n,e),n.prototype.mounted=function(){var e=this,n=t("#upgrade-button-hint");t("#upgrade-button").hover(function(){n.addClass("emphasize"),e.links[0].hint=e.greatChoice},function(){n.removeClass("emphasize"),e.links[0].hint=e.goodChoice});var r=t("#upload-form-button-hint");t("#upload-form-button").hover(function(){r.addClass("emphasize"),e.links[1].hint=e.reallyOld},function(){r.removeClass("emphasize"),e.links[1].hint=e.textOld})},n.prototype.dismiss=function(){this.closeModal(),this.cancelCallback&&this.cancelCallback()},n.prototype.follow=function(t){window.location.href=t},n=u([o()({props:{cancelCallback:Function}})],n)}(a.a);e.a=d}).call(e,n(11))},function(t,e,n){"use strict";var r,i=n(2),o=n.n(i),a=n(321),s=n(24),l=n(324),c=n(31),u=n(12),d=n(63),p=n(16),h=n(17),f=n(4),m=n(94),v=(n.n(m),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),y=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dialogName="uploadDetails",e.openOnMounted=!1,e.uploadFile=null,e.descFocused=!1,e.titleFocused=!1,e.fileName="",e.polygons=0,e.fileSize=0,e.isAnonymous=!1,e.descMaxLen=f.d.ITEM_DESCRIPTION_MAX_LENGTH,e.titleMaxLen=f.d.ITEM_TITLE_MAX_LENGTH,e.descCharsRemaining=f.d.ITEM_DESCRIPTION_MAX_LENGTH,e.titleCharsRemaining=f.d.ITEM_TITLE_MAX_LENGTH,e.skpFileReady=!1,e.uploadThumbnail=null,e.thumbnailAlt="",e.sketchupClientLoaded_=!1,e.uploadFromClient_=!1,e.updateFromClient_=!1,e.emscriptenSkpFile=null,e.isMounted=!1,e.title_="",e.description_="",e.titleBlockMsg_="",e.descBlockMsg_="",e.isPrivate_=!1,e}return v(e,t),e.prototype.mounted=function(){this.isMounted=!0},e.prototype.afterOpen=function(){this.loadSkpFile()},e.prototype.reset=function(t){this.uploadFile=t,this.uploadThumbnail=null,this.thumbnailAlt="",this.title="",this.description="",this.isPrivate_=!1,this.uploadFromClient_=!1,this.polygons=0,this.fileSize=0,this.fileName=null},e.prototype.uploadFromClient=function(t){this.skpFileReady=!0,this.uploadFromClient_=!0,this.updateFromClient_=t.updating,this.isAnonymous=null==t.fileName,this.fileName=this.isAnonymous?"":t.fileName,this.polygons=this.isAnonymous?0:t.polygons,this.fileSize=this.isAnonymous?0:t.fileSize,this.title=t.title,this.description=t.description,this.isPrivate_=t.isPrivate},e.prototype.accept=function(){var t=this;this.closeModal().then(function(){if(t.acceptCallback){var e={title:t.title,description:t.description,isPrivate:t.isPrivate,skpFile:t.emscriptenSkpFile,file:null};t.acceptCallback(e)}})},Object.defineProperty(e.prototype,"sketchupClientLoaded",{get:function(){return this.sketchupClientLoaded_},set:function(t){!this.sketchupClientLoaded_&&t&&(this.sketchupClientLoaded_=t,this.loadSkpFile())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.title_},set:function(t){this.title_=t,this.enableModelScores&&(this.$refs.discBar.title=t,this.$refs.discBar.originalFileName=this.uploadFileName)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this.description_},set:function(t){this.description_=t,this.enableModelScores&&(this.$refs.discBar.description=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPrivate",{get:function(){return this.isPrivate_},set:function(t){this.isPrivate_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modelBlocks",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleBlockMsg",{get:function(){return this.titleBlockMsg_},set:function(t){this.titleBlockMsg_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descBlockMsg",{get:function(){return this.descBlockMsg_},set:function(t){this.descBlockMsg_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isClientUpload",{get:function(){return this.uploadFromClient_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isClientUpdate",{get:function(){return this.updateFromClient_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uploadLabel",{get:function(){return this.isClientUpdate?this.$t("Update"):this.$t("Upload")},enumerable:!0,configurable:!0}),e.prototype.loadSkpFile=function(){var t=this;this.skpFileReady=!1,this.isMounted&&this.sketchupClientLoaded_&&this.uploadFile&&(this.deleteSkpFile(),this.emscriptenSkpFile=new d.b(this.uploadFile),this.loadFilePromise=this.emscriptenSkpFile.init(),this.loadFilePromise.then(function(){t.$nextTick(function(){t.thumbnailAlt=t.emscriptenSkpFile.title,t.uploadThumbnail=t.emscriptenSkpFile.thumbnailUrl,t.skpFileReady=!0})},function(){u.a.error("Could not load skp file."),t.dismiss(!0)}))},e.prototype.checkTitle=function(t){this.titleCharsRemaining=this.titleMaxLen-this.titleLen},e.prototype.checkDescription=function(){this.descCharsRemaining=this.descMaxLen-this.descriptionLen},Object.defineProperty(e.prototype,"enableModelScores",{get:function(){return p.c.getModelScoresEnabled(this.$store)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uploadFileName",{get:function(){var t="";return(t=this.isClientUpload?this.fileName:this.uploadFile?this.uploadFile.name:"").endsWith(".skp")?t:t+".skp"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleLen",{get:function(){return this.title?this.title.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trimmedTitleLen",{get:function(){return this.title?this.title.trim().length:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionLen",{get:function(){return this.description?this.description.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trimmedDescriptionLen",{get:function(){return this.description?this.description.trim().length:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleLabel",{get:function(){return this.$t("Title")+"*"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleHeader",{get:function(){return this.titleLen>0?this.titleLabel:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionLabel",{get:function(){return this.$t("Description")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionHeader",{get:function(){return this.descriptionLen>0?this.descriptionLabel:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleValid",{get:function(){return this.trimmedTitleLen>0&&this.titleCharsRemaining>=0&&!this.titleBlockMsg},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionValid",{get:function(){return this.trimmedDescriptionLen>=0&&this.descCharsRemaining>=0&&!this.descBlockMsg},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygonValue",{get:function(){return this.polygons>0?this.polygons.toLocaleString():"0"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileSizeValue",{get:function(){if(this.fileSize>0){var t=h.a(this.fileSize);return this.$tLabel(t).replace(" ","")}return"0"},enumerable:!0,configurable:!0}),e.prototype.deleteSkpFile=function(){this.emscriptenSkpFile&&(this.emscriptenSkpFile.cleanUp(),this.emscriptenSkpFile=null)},e.prototype.dismiss=function(t){var e=this;void 0===t&&(t=!1),this.deleteSkpFile(),this.uploadFile=null,this.closeModal(c.a.SlideOutDown).then(function(){t&&e.errorCallback?e.errorCallback():e.cancelCallback&&e.cancelCallback()})},e=y([o()({props:{uploadFile:Object,acceptCallback:Function,cancelCallback:Function,errorCallback:Function},components:{DiscoverabilityBar:a.a,ErrorInContext:s.a,HelpCallout:l.a}})],e)}(c.b);e.a=g},function(t,e,n){"use strict";var r=n(322),i=n(653),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(10),c=n(651),u=n(652),d=(n.n(u),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="discoverability-bar",e.barColor="",e.barWidth=0,e.message="",e.discScore=0,e.originalFileName="",e.discoverabilityMsg="",e.title_="",e.description_="",e.descBlock=!1,e.hashtags_=[],e}return d(e,t),e.prototype.mounted=function(){this.initializeScoreAndBlocks()},e.prototype.initializeScoreAndBlocks=function(){this.formattedInputs={title:this.title_,description:this.description_,hashtags:this.hashtags_},this.initializeDiscoverabilityAttributeMap(this.formattedInputs),this.updateUi()},Object.defineProperty(e.prototype,"title",{get:function(){return this.title_},set:function(t){this.title_=t,this.blocks.titleBlockMsg=c.f(t),this.initializeScoreAndBlocks()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this.description_},set:function(t){this.descBlock=!1,this.description_=t,this.blocks.descBlockMsg=c.d(t),this.blocks.descBlockMsg&&(this.descBlock=!0),this.hashtags=c.i(t),this.initializeScoreAndBlocks()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hashtags",{get:function(){return this.hashtags_},set:function(t){this.hashtags_=t,this.descBlock||(this.blocks.descBlockMsg=c.e(t))},enumerable:!0,configurable:!0}),e.prototype.initializeDiscoverabilityAttributeMap=function(t){t?(this.createDefaultDiscAttrMap(),this.runDiscoverabilityChecks()):this.createDefaultDiscAttrMap()},e.prototype.createDefaultDiscAttrMap=function(){this.discMap={TitleCheckMap:{withinIdealCharLimit:!1,noFileNameOrExtension:!1,titleContainsLetters:!1},DescriptionCheckMap:{noEmptyDescription:!1,descLengthCheckOne:!1,descLengthCheckTwo:!1},HashtagCheckMap:{noRepeatTags:!1,tooManyTags:!1,modelHasTag:!1,modelHasIdealTagsAmount:!1}}},e.prototype.runDiscoverabilityChecks=function(){this.titleChecks(this.formattedInputs.title),this.descriptionChecks(this.formattedInputs.description),this.hashtagChecks(this.formattedInputs.hashtags),this.calcDiscoverabilityScore()},e.prototype.calcDiscoverabilityScore=function(){var t=c.h(this.discMap.TitleCheckMap),e=c.h(this.discMap.DescriptionCheckMap),n=c.h(this.discMap.HashtagCheckMap);this.discScore=t+e+n},e.prototype.titleChecks=function(t){void 0===t&&(t=""),c.q(t)?this.discMap.TitleCheckMap.withinIdealCharLimit=!0:this.discMap.TitleCheckMap.withinIdealCharLimit=!1,c.m(t,this.originalFileName)?this.discMap.TitleCheckMap.noFileNameOrExtension=!0:this.discMap.TitleCheckMap.noFileNameOrExtension=!1,c.o(t)?this.discMap.TitleCheckMap.titleContainsLetters=!0:this.discMap.TitleCheckMap.titleContainsLetters=!1},e.prototype.descriptionChecks=function(t){void 0===t&&(t=""),c.l(t)?this.discMap.DescriptionCheckMap.noEmptyDescription=!0:this.discMap.DescriptionCheckMap.noEmptyDescription=!1,c.g(t,c.a.FIRST_DESCRIPTION_LENGTH_THRESHOLD)?this.discMap.DescriptionCheckMap.descLengthCheckOne=!0:this.discMap.DescriptionCheckMap.descLengthCheckOne=!1,c.g(t,c.a.SECOND_DESCRIPTION_LENGTH_THRESHOLD)?this.discMap.DescriptionCheckMap.descLengthCheckTwo=!0:this.discMap.DescriptionCheckMap.descLengthCheckTwo=!1},e.prototype.hashtagChecks=function(t){void 0===t&&(t=[]),c.n(t)?this.discMap.HashtagCheckMap.noRepeatTags=!0:this.discMap.HashtagCheckMap.noRepeatTags=!1,c.p(t)?this.discMap.HashtagCheckMap.tooManyTags=!0:this.discMap.HashtagCheckMap.tooManyTags=!1,c.k(t)?this.discMap.HashtagCheckMap.modelHasTag=!0:this.discMap.HashtagCheckMap.modelHasTag=!1,c.j(t)?this.discMap.HashtagCheckMap.modelHasIdealTagsAmount=!0:this.discMap.HashtagCheckMap.modelHasIdealTagsAmount=!1},e.prototype.updateUi=function(){this.discoverabilityMsg="",this.barWidth=c.c(this.discScore),this.barColor=c.b(this.discScore),this.updateDiscoverabilityMsg()},e.prototype.updateDiscoverabilityMsg=function(){var t=this.discMap.TitleCheckMap,e=this.discMap.DescriptionCheckMap,n=this.discMap.HashtagCheckMap,r=this.determineDiscoverabilityMessage(t,e,n);this.discoverabilityMsg=r},e.prototype.determineDiscoverabilityMessage=function(t,e,n){return t.withinIdealCharLimit?t.noFileNameOrExtension?t.titleContainsLetters?e.noEmptyDescription?e.descLengthCheckOne?e.descLengthCheckTwo?n.modelHasTag?n.noRepeatTags?n.tooManyTags?n.modelHasIdealTagsAmount?l.b.MAX_SCORE_REACHED:l.b.IDEAL_TAGS_AMOUNT:l.b.TOO_MANY_TAGS:l.b.NO_REPEAT_TAGS:l.b.NO_TAGS_FOUND:l.b.DESC_LENGTH_CHECK_TWO:l.b.DESC_LENGTH_CHECK_ONE:l.b.EMPTY_DESCRIPTION:l.b.TITLE_MUST_CONTAIN_LETTERS:l.b.NO_FILE_NAME_OR_EXT:l.b.WITHIN_IDEAL_CHAR_RANGE},e=p([s()({props:{pageStyling:String,blocks:Object}})],e)}(o.a);e.a=h},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(654),c=(n.n(l),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="error-in-context",e}return c(e,t),e.prototype.alignClass=function(){return this.alignment},Object.defineProperty(e.prototype,"text",{get:function(){return this.errorState?this.errorText:this.contextHeader},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this.isPlaceholder&&this.contextHeader.length>0},enumerable:!0,configurable:!0}),e=u([s()({props:{errorState:{type:Boolean,default:!1},errorText:{type:String,default:""},contextHeader:{type:String,default:""},alignment:{type:String,default:"left"},showIcon:{type:Boolean,default:!1},isPlaceholder:{type:Boolean,default:!0},isRequired:{type:Boolean,default:!1}}})],e)}(o.a);e.a=d},function(t,e,n){"use strict";var r=n(325),i=n(656),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="help-callout",e}return l(e,t),e=c([s()({props:{calloutText:{type:String,default:""}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";(function(t){var r,i=n(2),o=n.n(i),a=n(313),s=n.n(a),l=n(18),c=n.n(l),u=n(31),d=n(10),p=n(14),h=n(38),f=n(4),m=n(327),v=n(94),y=(n.n(v),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),g=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},b=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dialogName="UploadSelector",t.errorState=!1,t.errorText=null,t.openOnMounted=!0,t}return y(n,e),n.prototype.mounted=function(){var t=new c.a(window.location.href);p.d(t)&&s.a.config("https://ae57d13413494af28786750b399d3c07@sentry.io/53859").install()},n.prototype.created=function(){var t=this;this.$on("UploadFilesChanged",function(){t.fileChanged()}),this.eventBus.$on(f.e.UPLOAD_ERROR,function(e){t.setError(e)})},n.prototype.reset=function(){this.errorState=!1,this.errorText=null,this.fileUpload.resetFileUpload(!1)},Object.defineProperty(n.prototype,"fileUploadSettings",{get:function(){return{allowMultipleFiles:!1,maxFileSize:1024*h.a.UploadMaxFileSize,supportedFileTypes:["skp"],allowDropEvent:this.fileDroppedInDropZone}},enumerable:!0,configurable:!0}),n.prototype.fileDroppedInDropZone=function(t,e){var n=this;return t||this.isOverModal(e)?(this.setError(null),!0):(this.setError(this.$tLabel({text:d.c.DROP_ZONE_ERROR})),setTimeout(function(){n.setError(null)},5e3),!1)},n.prototype.setError=function(t){this.errorText=t,this.errorState=!!t},n.prototype.fileChanged=function(){var t=this;this.fileUpload.fileToUpload&&(this.setError(null),this.closeModal().then(function(){t.acceptCallback&&t.acceptCallback(t.fileUpload.filesToUpload)}))},n.prototype.dismiss=function(){var t=this;this.closeModal(u.a.SlideOutDown).then(function(){t.cancelCallback&&t.cancelCallback()})},n.prototype.getClientRect=function(){var e=t("#upload-selector"),n=e.offset();return{top:n.top,left:n.left,bottom:n.top+e.outerHeight(),right:n.left+e.outerWidth()}},n.prototype.isOverModal=function(t){if(t){var e=this.getClientRect();return!(t.pageYe.bottom||t.pageXe.right)}return!0},Object.defineProperty(n.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fileUpload",{get:function(){return this.$refs.fileUpload},enumerable:!0,configurable:!0}),n=g([o()({props:{cancelCallback:Function},components:{FileUpload:m.a}})],n)}(u.b);e.a=b}).call(e,n(11))},function(t,e,n){"use strict";var r=n(328),i=n(660),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";(function(t){var r,i=n(5),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(12),u=n(38),d=n(17),p=n(4),h=n(31),f=n(47),m=n(659),v=(n.n(m),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),y=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},g=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.fileHandlersPromise=null,t.loading=!0,t.isMounted=!1,t.filesToUpload={},t.dragRect={top:0,left:0,bottom:0,right:0},t}return v(n,e),n.prototype.mounted=function(){document.body.addEventListener("dragover",this.showDrag),document.body.addEventListener("drop",this.drop),this.loading=!1,this.isMounted=!0},Object.defineProperty(n.prototype,"locked",{get:function(){return this.loading||this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fileToUploadBinaryName",{get:function(){if(!this.loading){var t=this.filesToUpload;for(var e in t)if(t[e])return e}return null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fileToUpload",{get:function(){return this.fileToUploadBinaryName?this.filesToUpload[this.fileToUploadBinaryName]:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fileToUploadName",{get:function(){return this.fileToUpload&&this.fileToUpload.name?this.fileToUpload.name:this.$t("Unknown")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isReplacingFile",{get:function(){return!!this.fileTitle},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dragAndDropText",{get:function(){return this.isReplacingFile?this.$t("Drag - n - Drop to replace"):this.$t("Drag - n - Drop your file")},enumerable:!0,configurable:!0}),n.prototype.showDrag=function(t){this.locked||(this.$el.classList.add("dragging"),this.isDragOver(t)?this.$el.classList.add("dragover"):this.$el.classList.remove("dragover"),t.preventDefault())},n.prototype.hideDrag=function(){this.$el.classList.remove("dragging"),this.$el.classList.remove("dragover"),this.dragRect={top:0,left:0,right:0,bottom:0}},n.prototype.outOfZone=function(){this.$el.classList.remove("dragover")},n.prototype.drop=function(t){if(!this.locked){if(t.preventDefault(),this.allowDropEvent(this.isDragOver(t),t)){var e=t.dataTransfer;this.onFilesSelected(e.files)}this.hideDrag()}},n.prototype.resetFileUpload=function(t){void 0===t&&(t=!0),this.clearFiles(),this.resetInput(),this.loading=!1,this.fileHandlersPromise&&(this.fileHandlersPromise.cancelled=!0),t&&this.emitChangeToParent()},n.prototype.resetInput=function(){var t=this.$refs.fileInput;t&&(t.value="")},n.prototype.clearFiles=function(){this.filesToUpload={}},n.prototype.onFileInputChange=function(t){var e=this.$refs.fileInput;e&&e.files&&this.onFilesSelected(e.files)},n.prototype.emitChangeToParent=function(){this.$parent.$emit("UploadFilesChanged")},n.prototype.onFilesSelected=function(t){var e=this;this.clearFiles(),this.emitChangeToParent(),this.loading=!0;var n=[];if(this.allowMultipleFiles)for(var r=0;r1)return this.loading=!1,this.resetFileUpload(),void this.handleError({message:this.$t("Please select one model for upload at a time."),type:p.f.TOO_MANY_FILES});var o=this.handleSelectedFile(t[0]);n.push(o)}var a=Promise.all(n);this.fileHandlersPromise=a,this.fileHandlersPromise.then(function(){a.cancelled||(e.loading=!1,e.emitChangeToParent())},function(t){a.cancelled||(e.loading=!1,e.resetFileUpload(),e.handleError(t))})},n.prototype.handleSelectedFile=function(t){var e=this;return this.validateSelectedFile(t).then(function(){return e.fileHandler(t)})},n.prototype.validateSelectedFile=function(t){var e=this;return new Promise(function(n,r){if(!t)return c.a.error("Selected file cannot be null."),r({type:p.f.GENERIC});if(t.size>e.maxFileSize)return r({type:p.f.FILE_TOO_LARGE});if(!u.f(t.name,e.supportedFileTypes))return r({type:p.f.UNSUPPORTED_FILETYPE});var o="skp"===u.e(t.name),a=new FileReader;a.onload=function(a){var s=a.target.result;if(o){var l=s.substr(0,100),c=u.d(l);return c&&c!==i.whp.BinaryType.Sketchup_2019?(e.filesToUpload[c]=t,n()):r({type:p.f.UNSUPPORTED_FILETYPE})}return r({type:p.f.UNSUPPORTED_FILETYPE})},a.onerror=function(){return r({type:p.f.ERROR_READING_FILE})},o?a.readAsText(t):a.readAsDataURL(t)})},Object.defineProperty(n.prototype,"supportedFileTypesLabel",{get:function(){var t=this.supportedFileTypes;if(t&&1===t.length){var e="."+t[0];return this.$t("File Format: {fileFormat}",{fileFormat:e})}return""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxSizeLabel",{get:function(){var t=d.a(this.maxFileSize);return this.$tLabel(t).replace(" ","")},enumerable:!0,configurable:!0}),n.prototype.openFileBrowser=function(){var t=this.$refs.fileInput;t&&t.click()},Object.defineProperty(n.prototype,"fileTooLargeMsg",{get:function(){return this.$t("That file was too large. Please select a file under: {size}",{size:this.maxSizeLabel})},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"unsupportedFileMsg",{get:function(){return this.$t("That file type is not supported. Please select a .SKP file for upload.")},enumerable:!0,configurable:!0}),n.prototype.getFailureMessage=function(t){var e=this.$t("Oops! An error has occurred.");if(!t||!t.type)return e;if(t.message)return t.message;switch(t.type){case p.f.ERROR_READING_FILE:return this.$t("Unable to read file.");case p.f.FILE_TOO_LARGE:return this.fileTooLargeMsg;case p.f.UNSUPPORTED_FILETYPE:return this.unsupportedFileMsg}return e},n.prototype.handleError=function(t){var e=this.getFailureMessage(t);this.handleOwnErrors?this.statusModal?(this.statusModal.failureMessage=e,this.statusModal.openModal()):(this.statusModal=new f.a({store:this.$store,propsData:{animationIn:h.a.SlideInUp,buttonText:this.$t("Dismiss"),currentState:p.i.Failure,failureMessage:e,failureTitle:this.$t("Whoa there cowboy")}}),this.statusModal.mountOnPage()):this.eventBus.$emit(p.e.UPLOAD_ERROR,e)},n.prototype.getDragRect=function(){if(0===this.dragRect.bottom){var e=t(this.$refs.dropZone);if(e){var n=e.offset();this.dragRect.top=n.top,this.dragRect.left=n.left,this.dragRect.right=n.left+e.width(),this.dragRect.bottom=n.top+e.height()}}},n.prototype.isDragOver=function(t){return this.getDragRect(),!(t.pageYthis.dragRect.bottom||t.pageXthis.dragRect.right)},n.prototype.destroyed=function(){document.body.removeEventListener("dragover",this.showDrag),document.body.removeEventListener("drop",this.drop)},Object.defineProperty(n.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),n=y([l()({props:{allowMultipleFiles:{type:Boolean,default:!1},disabled:Boolean,fileTitle:{type:String,default:""},fileDetails:{type:String,default:""},handleOwnErrors:{type:Boolean,default:!0},allowDropEvent:{type:Function,default:function(){return!0}},maxFileSize:{type:Number,default:1024*u.a.UploadMaxFileSize},supportedFileTypes:{type:Array,default:function(){return["skp"]}},fileHandler:{type:Function,default:function(){return Promise.resolve()}}}})],n)}(a.a);e.a=g}).call(e,n(11))},function(t,e,n){"use strict";(function(t){var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(13),c=n(4),u=n(32),d=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="accordion-item",t}return d(n,e),n.prototype.headerClicked=function(t){t.preventDefault(),l.c(this.accordionName,!this.value),this.$emit("input",!this.value)},Object.defineProperty(n.prototype,"accordionName",{get:function(){return this.analyticsName||this.id||"unnamed"},enumerable:!0,configurable:!0}),n.prototype.mounted=function(){var t=this;this.$watch("value",function(e){t.toggleContent(e)}),this.value&&this.contentEl.show()},Object.defineProperty(n.prototype,"contentEl",{get:function(){return t(this.$refs.content)},enumerable:!0,configurable:!0}),n.prototype.toggleContent=function(t,e){void 0===e&&(e=!1),t?this.contentEl.slideDown(c.a.ACCORDION_EXPAND_TIME):this.contentEl.slideUp(c.a.ACCORDION_EXPAND_TIME)},n=p([s()({components:{Chevron:u.a},props:{value:Boolean,id:String,analyticsName:String,title:{type:String,default:""}}})],n)}(o.a);e.a=h}).call(e,n(11))},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.nativeWidth=10,e.nativeHeight=10,e.points="",e.width_=10,e.height_=10,e.baseTopPts_="1 1 5 1 9 1",e.baseMidPts_="1 3 5 3 9 3",e.baseBtmPts_="1 5 5 5 9 5",e.openDownPts_="1 1 5 5 9 1",e.openUpPts_="1 5 5 1 9 5",e.baseLeftPts_="1 1 1 5 1 9",e.baseRightPts_="5 1 5 5 5 9",e.baseCenterPts_="3 1 3 5 3 9",e.openLeftPts_="5 1 1 5 5 9",e.openRightPts_="1 1 5 5 1 9",e}return l(e,t),e.prototype.mounted=function(){this.scaled(this.scale||1),this.points=this.getPoints(this.expanded)},Object.defineProperty(e.prototype,"width",{get:function(){return this.width_},set:function(t){this.width_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.height_},set:function(t){this.height_=t},enumerable:!0,configurable:!0}),e.prototype.getPoints=function(t){return t?"vertical"===this.orientation?"left"===this.direction?this.openLeftPts_:this.openRightPts_:"up"===this.direction?this.openUpPts_:this.openDownPts_:"vertical"===this.orientation?"mid"===this.baseline?this.baseCenterPts_:"left"===this.direction?this.baseLeftPts_:this.baseRightPts_:"mid"===this.baseline?this.baseMidPts_:"down"===this.direction?this.baseTopPts_:this.baseBtmPts_},e.prototype.toggle=function(t){var e=this.getPoints(t);TweenLite.to(this.$refs.chevron,this.speed,{attr:{points:e},ease:Cubic.easeInOut})},e.prototype.scaled=function(t){(t<1||Number.isNaN(t))&&(t=1),this.height=this.nativeHeight*t,this.width=this.nativeWidth*t},e.prototype.changeBaseline=function(t){this.expanded||this.redraw()},e.prototype.redraw=function(){var t=this.getPoints(this.expanded);TweenLite.to(this.$refs.chevron,0,{attr:{points:t}})},e.prototype.reOrient=function(t){this.baseline="mid",this.direction="vertical"===t?"right":"down",this.scaled(this.scale),this.redraw()},e=c([s()({name:"chevron",props:{expanded:Boolean,scale:{type:[String,Number],default:1},speed:{type:[String,Number],default:.25},color:{type:String,default:"black"},baseline:{type:String,default:"mid"},direction:{type:String,default:"down"},orientation:{type:String,default:"horizontal"}},watch:{expanded:function(t){this.toggle(t)},scale:function(t){this.scaled(t)},baseline:function(t){this.changeBaseline(t)},direction:function(t){this.redraw()},orientation:function(t){this.reOrient(t)}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="accordion",e}return l(e,t),e=c([s()({props:{id:String}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r=n(333),i=n(673),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(672),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.mounted=function(){window.addEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.updateInputWidth()},e.prototype.onInput=function(){this.updateInputWidth(!0)},e.prototype.onMouseOver=function(){this.updateInputWidth()},e.prototype.updateInputWidth=function(t){void 0===t&&(t=!1);var e="",n=this.$refs.autosizer,r=this.$refs.input;r&&n&&(e=r.value,n.innerText=e,r.style.width=n.offsetWidth+5+"px"),t&&this.$emit("input",e)},e.prototype.beforeDestroy=function(){window.removeEventListener("resize",this.onWindowResize)},e=u([l()({props:{id:String,name:String,placeHolder:String,tooltip:String,value:String}})],e)}(a.a);e.a=d},function(t,e,n){"use strict";var r=n(335),i=n(680),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(674),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(14),u=n(261),d=n(4),p=n(7),h=n(32),f=n(675),m=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="description-panel",e.isExpanded=!1,e.isExpandable=!1,e.isMounted=!1,e.sanitizedDescription="",e.linkTarget="_blank",e.hasExternalUrl=!1,e.isEmpty=!1,e.hasDescription=!1,e}return m(e,t),e.prototype.toggleIsExpanded=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(e.prototype,"expandText",{get:function(){return this.isExpanded?this.$t("See less"):this.$t("See more")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"heightInRems",{get:function(){return this.height/d.d.REM_SIZE+"rem"},enumerable:!0,configurable:!0}),e.prototype.mounted=function(){var t=this;this.hasDescription=this.description.trim().length>0,this.hasExternalUrl=!!this.externalUrl,this.isEmpty=!(this.hasDescription||this.hasExternalUrl),this.hasDescription&&(this.sanitizedDescription=this.getSanitizedDescription()),this.linkTarget=c.f()?"_self":"_blank",this.isMounted=!0,this.$nextTick(function(){t.checkIsExpandable(),window.addEventListener("resize",t.checkIsExpandable)})},e.prototype.beforeDestroy=function(){window.removeEventListener("resize",this.checkIsExpandable)},e.prototype.getSanitizedDescription=function(){var t=p.m({searchTerms:"#"});return u.b(this.description,t)},e.prototype.checkIsExpandable=function(){var t=this.$refs.descriptionContent;this.isExpandable=this.height=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="external-url",e}return u(e,t),e.prototype.openExternalRedirectModal=function(t){l.u(this.externalUrl)||(t.preventDefault(),this.redirectModal?this.redirectModal.openModal():(this.redirectModal=new c.a({store:this.$store,propsData:{externalUrl:this.externalUrl,id:"modelExternalUrl",target:this.target}}),this.redirectModal.mountOnPage()))},e=d([s()({props:{externalUrl:String,id:{type:String,required:!0},target:{default:"_blank",type:String}}})],e)}(o.a);e.a=p},function(t,e,n){"use strict";var r,i=n(677),o=(n.n(i),n(2)),a=n.n(o),s=n(50),l=n.n(s),c=n(54),u=n(15),d=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.openOnMounted=!0,e}return d(e,t),e.prototype.setCookie=function(){var t={timeSeconds:Date.now()/1e3,redirectUrl:this.externalUrl},e=JSON.stringify(t),n=new Date((new Date).getTime()+6e5);l.a.withConverter({read:function(t,e){return t},write:function(t,e){return t}}).set(c.a.REDIRECT,e,{expires:n}),this.closeModal()},e=p([a()({props:{externalUrl:String,id:{type:String,required:!0},target:{default:"_blank",type:String}}})],e)}(u.a);e.a=h},function(t,e,n){"use strict";var r=n(339),i=n(681),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-delete",e}return l(e,t),e=c([s()({props:{buttonClick:{type:Function}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-placeholder",e}return l(e,t),e=c([s()({props:{buttonClick:{type:Function}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r,i=n(684),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.message="",e.messageExplanation="",e.title="",e}return c(e,t),e.prototype.created=function(){this.messageToDisplay()},e.prototype.messageToDisplay=function(){this.itemFound?(this.title=this.$t("Oops! You don't have permission to edit that {itemType}.",{itemType:this.itemType}),this.message=this.$t("Sorry! You can only edit a {itemType} that you have permission for.",{itemType:this.itemType}),this.messageExplanation=this.$t("You either didn't create this {itemType} or you don't have permission.",{itemType:this.itemType})):(this.title=this.$t("Oh no! We can't find it... :("),this.message=this.$t("Sorry! The {itemType} can't be found.",{itemType:this.itemType}),this.messageExplanation=this.$t("It was probably made private or deleted."))},e=u([l()({props:{itemFound:Object,itemType:String}})],e)}(a.a);e.a=d},function(t,e,n){"use strict";var r,i=n(687),o=(n.n(i),n(2)),a=n.n(o),s=n(4),l=n(24),c=n(15),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.openOnMounted=!0,e.title="",e.titleFocused=!1,e.errorState=!1,e.errorText="",e}return u(e,t),Object.defineProperty(e.prototype,"titleLen",{get:function(){return this.title?this.title.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputHeader",{get:function(){return this.titleFocused||this.titleLen>0?this.titleLabel:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleLabel",{get:function(){return this.$t("Title")+"*"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleHeader",{get:function(){return this.titleFocused||this.titleLen>0?this.titleLabel:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleCharsRemaining",{get:function(){return this.titleMaxLen-this.titleLen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleMaxLen",{get:function(){return s.d.ITEM_TITLE_MAX_LENGTH},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTitleValid",{get:function(){return this.title&&this.title.trim().length>0},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.title="",this.modelIds=[],this.clearErrorState()},e.prototype.clearErrorState=function(){this.errorState=!1,this.errorText=null},e.prototype.createSection=function(t){if(!this.isTitleValid)return this.errorState=!0,void(this.errorText=this.$t("Please enter a title."));this.dismiss()},Object.defineProperty(e.prototype,"collection",{get:function(){return this.$store.getters.currentItem},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"apiHandler",{get:function(){return this.$store.getters.apiHandler},enumerable:!0,configurable:!0}),e.prototype.dismiss=function(){this.closeModal(),this.acceptCallback&&this.acceptCallback()},e=d([a()({props:{modelIds:{type:Array,default:function(){return[]}}},components:{ErrorInContext:l.a}})],e)}(c.a);e.a=p},function(t,e,n){"use strict";var r,i=n(690),o=(n.n(i),n(5)),a=(n.n(o),n(3)),s=n.n(a),l=n(2),c=n.n(l),u=n(24),d=n(95),p=n(49),h=n(66),f=n(10),m=n(8),v=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="section-content",e.isMounted=!1,e.isLoading=!0,e.api=null,e.errorState=!1,e.errorText="",e.items=[],e.totalCount=0,e}return v(e,t),e.prototype.mounted=function(){this.isMounted=!0,this.fetchData()},e.prototype.fetchData=function(){this.itemType&&this.searchParams?(this.searchParams.recordEvent=!1,this.searchParams.count||(this.searchParams.count=16),this.collectionSearchParams=this.searchParams,this.entitySearchParams=this.searchParams,this.getItems()):this.surfaceError()},Object.defineProperty(e.prototype,"resultText",{get:function(){return this.isCollection?this.$t("There are no collections."):this.$t("There are no models.")},enumerable:!0,configurable:!0}),e.prototype.seeMore=function(){alert("Not yet supported.")},e.prototype.getItems=function(){var t=this;(this.isCollection?this.apiHandler.getCollections(this.collectionSearchParams):this.apiHandler.getEntities(this.entitySearchParams)).then(function(e){t.processResponse(e)},function(e){t.surfaceError()})},e.prototype.processResponse=function(t){var e=this.isCollection?o.whp.DataStoreSubjectClass.Collection:o.whp.DataStoreSubjectClass.Entity;this.totalCount=t.total;for(var n=0,r=t.entries;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="no-results-card",e}return c(e,t),Object.defineProperty(e.prototype,"noResultsImage",{get:function(){return"/static/images/icon-"+(this.havingPun?"deer":"cactus")+".svg"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noResultsTitle",{get:function(){return this.havingPun?"Oh Deer!":this.$t("It's Empty")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"havingPun",{get:function(){var t=this.$store.getters.language;return!t||"en"===t.toLowerCase()},enumerable:!0,configurable:!0}),e=u([s()({props:{text:String},inheritAttrs:!1})],e)}(o.a);e.a=d},function(t,e,n){"use strict";var r,i=n(693),o=(n.n(i),n(2)),a=n.n(o),s=n(346),l=n(4),c=n(12),u=n(22),d=n(96),p=n(16),h=n(17),f=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.downloadTitle=e.$t("Download"),e.downloadIconPath="M29.848 24.42v2.494a3.743 3.743 0 0 1-3.742 3.742H4.894a3.742 3.742 0 0 1-3.742-3.742V24.42M15.5 24.276V1.962M24.63 15.146l-9.13 9.13-9.13-9.13",e.fileIconPath="M0.5 0.5 v12 h8 v-9 h-3 v-3 h-5z M5.5 .5 l3 3z",e.heartIconPath="M36.222 10.45 c0 2.877-1.467 5.807-4.401 8.789 L19.846 30.957c-.23.235-.513.352-.846.352-.333 0-.615-.117-.846-.352L6.16 19.2 a6.387 6.387 0 0 1-.528-.508c-.225-.235-.58-.661-1.067-1.28 a17.292 17.292 0 0 1-1.307-1.904c-.385-.65-.727-1.439-1.029-2.363 a8.68 8.68 0 0 1-.451-2.695c0-2.865.813-5.105 2.44-6.72 C5.847 2.117 8.096 1.31 10.967 1.31c.794 0 1.604.14 2.431.42.827.28 1.595.657 2.307 1.133.71.475 1.323.92 1.835 1.338.513.416 1 .859 1.461 1.328.461-.47.948-.912 1.46-1.328 a24.608 24.608 0 0 1 1.836-1.338 9.775 9.775 0 0 1 2.307-1.133 7.552 7.552 0 0 1 2.431-.42c2.87 0 5.12.807 6.747 2.422 1.628 1.614 2.441 3.854 2.441 6.719z",e}return f(e,t),Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formattedContainedCount",{get:function(){var t=this.collectionElement;return this.formatUnitString(t.containedItemsCount)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"downloadsCountShort",{get:function(){var t=this.collectionElement;return this.formatUnitString(t.downloads)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"likesCountShort",{get:function(){return this.formatUnitString(this.collectionElement.likes)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileSizeShort",{get:function(){var t=this.collectionElement,e=h.a(t.fileSize||0);return this.$tLabel(e).replace(" ","")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"materialsEnabled",{get:function(){return!this.$isServer&&(this.isMaterial&&p.c.isFeatureEnabled(p.b.Search_Materials))},enumerable:!0,configurable:!0}),e.prototype.onCardClicked=function(t){this.isMaterial&&(t.preventDefault(),t.stopImmediatePropagation())},e.prototype.onDownloadClicked=function(){this.isModel?u.h(this.collectionElement.binaries)?this.downloadFromEntity():d.b(this.$store,this.collectionElement):this.isMaterial&&d.a(this.$store,this.collectionElement)},e.prototype.quickViewButtonClicked=function(t){this.eventBus.$emit(l.e.MODEL_QUICK_VIEW,t)},e.prototype.downloadFromEntity=function(){var t=this;this.$store.getters.apiHandler.getEntity(this.collectionElement.id,{recordEvent:!1}).then(function(e){d.b(t.$store,e)},function(t){c.a.error(JSON.stringify(t.toString()))})},e.prototype.formatUnitString=function(t){var e=h.c(t||0);return this.$tLabel(e).replace(" ","")},e=m([a()({props:{collectionElement:Object,enableQuickViewButton:Boolean},inheritAttrs:!1})],e)}(s.a);e.a=v},function(t,e,n){"use strict";var r=n(347),i=n(694),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(8),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),Object.defineProperty(e.prototype,"isCollection",{get:function(){return this.collectionElement.subjectClass===l.a.BackendClass.COLLECTION},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isModel",{get:function(){return this.collectionElement.subjectClass===l.a.BackendClass.ENTITY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMaterial",{get:function(){return this.collectionElement.subjectClass===l.a.BackendClass.MATERIAL},enumerable:!0,configurable:!0}),e=u([s()({props:{collectionElement:Object},inheritAttrs:!1})],e)}(o.a);e.a=d},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r,i=n(7),o=n(97),a=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e){var n=t.call(this,e)||this;return n.collectionCount=e.collectionCount,n.entityCount=e.entityCount,n.containedItemsCount=n.entityCount+n.collectionCount,n}return a(e,t),e.prototype.getDetailsPageUrl=function(){return Object(i.b)(this.id)},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r,i=n(7),o=n(97),a=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e){var n=t.call(this,e)||this;return n.fileSize=e.largestBinarySize,n.width=e.pixelWidth,n.height=e.pixelHeight,n}return a(e,t),e.prototype.getDetailsPageUrl=function(){return Object(i.j)(this.id)},e}(o.a)},function(t,e,n){"use strict";var r=n(351),i=n(701),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(697),c=n(46),u=n(7),d=n(700),p=(n.n(d),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.MAX_USER_BIO_LENGTH=150,e.contactModalDlg=null,e}return p(e,t),e.prototype.mounted=function(){},Object.defineProperty(e.prototype,"user",{get:function(){return this.$store.getters.currentItemCreator},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userName",{get:function(){return this.user.displayName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userId",{get:function(){return this.user.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"avatarUrl",{get:function(){return(this.user?this.user.avatarUrl:null)||"/static/images/icon-profile.svg"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userPageUrl",{get:function(){return null==this.user?"#":u.q(this.user.id)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canContact",{get:function(){if(null==this.$store.getters.currentUser)return!1;var t=c.a.getAttributeValue(this.user.attributes,"info","allowContactMe");return t||!1},enumerable:!0,configurable:!0}),e.prototype.makeContact=function(){this.contactModalDlg?(this.contactModalDlg.reset(this.userId,this.userName),this.contactModalDlg.openModal()):(this.contactModalDlg=new l.a({store:this.$store,propsData:{recipientId:this.userId,recipientName:this.userName}}),this.contactModalDlg.mountOnPage())},e=h([s()({})],e)}(o.a);e.a=f},function(t,e,n){"use strict";var r,i=n(2),o=n.n(i),a=n(15),s=n(5),l=(n.n(s),n(10)),c=n(4),u=n(24),d=n(47),p=n(698),h=(n.n(p),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),f=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.openOnMounted=!0,e.errorState=!1,e.errorText=null,e.messageText="",e.MAX_MESSAGE_LENGTH=500,e.inputFocused=!1,e.sendCopy=!1,e}return h(e,t),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this.MAX_MESSAGE_LENGTH},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"messageLength",{get:function(){return this.messageText.trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"charactersRemaining",{get:function(){return this.maxLength-this.messageText.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMessageValid",{get:function(){return this.messageLength>0&&this.messageLength<=this.maxLength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"messagePlaceholder",{get:function(){return this.isMessageValid||this.inputFocused?this.$t("Message"):""},enumerable:!0,configurable:!0}),e.prototype.reset=function(t,e){this.recipientId=t,this.recipientName=e,this.messageText="",this.clearErrorState()},e.prototype.clearErrorState=function(){this.errorState=!1,this.errorText=null},e.prototype.sendMessage=function(){var t=this;this.errorState=!1;var e=s.whp.HttpMethod.Post,n=this.$store.getters.apiHandler,r={recipientId:this.recipientId,message:this.messageText},i=JSON.stringify(r);this.openStatusModal(),n.performLegacyApiRequest("/ContactUser",i,{method:e}).then(function(){t.statusModal.updateState(c.i.Success),t.closeModal()},function(e){var n={text:e&&"API_CALL_RATE_LIMIT_REACHED"===e.errorId?l.c.CONTACT_RATE_LIMIT_REACHED:l.c.GENERIC_TRY_AGAIN};t.errorText=t.$tLabel(n),t.errorState=!0,t.statusModal.updateState(c.i.Failure)})},e.prototype.openStatusModal=function(){this.statusModal?this.statusModal.openModal():(this.statusModal=new d.a({store:this.$store,propsData:{buttonText:this.$t("Dismiss"),currentState:c.i.LoadingIndeterminate,successMessage:this.$t("Your message has been sent."),failureMessage:this.$t("Sorry, we couldn't send your message!"),loadIndetMessage:this.$t("Sending your message."),failureTitle:this.$t("Message Send Failed"),loadIndetTitle:this.$t("Sending")}}),this.statusModal.mountOnPage())},e=f([o()({props:{recipientId:String,recipientName:String},components:{ErrorInContext:u.a}})],e)}(a.a);e.a=m},function(t,e,n){"use strict";var r,i=n(704),o=(n.n(i),n(5)),a=(n.n(o),n(2)),s=n.n(a),l=n(705),c=n(26),u=n(23),d=n(12),p=n(45),h=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.requiredRoles=[o.whp.UserRole.Admin],e}return h(e,t),e.prototype.mounted=function(){this.checkSignInAndRoles()&&this.loadSketchupClient().then(function(){},function(t){d.a.error(t)})},e=f([s()({components:{FooterPanel:c.a,HeaderPanel:u.a,DamEntityList:l.a}})],e)}(p.a);e.a=m},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(5),c=(n.n(l),n(706)),u=n(25),d=n(12),p=n(16),h=n(4),f=n(98),m=n(713),v=n(718),y=(n.n(v),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),g=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.entityList=null,e.api=null,e.filterText="",e.renderQueue=[],e.polling_count=0,e}return y(e,t),Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),e.prototype.mounted=function(){var t=this;document.body.addEventListener("dragover",this.dragover.bind(this)),document.body.addEventListener("drop",this.drop.bind(this)),this.fetch(),this.eventBus.$on("delete",function(e){t.removeItemById(e.id)}),this.eventBus.$on("replace",function(e,n){t.replaceItemById(e.id,n),t.renderQueue.push(n.id),t.poll||t.pollForRenderedItems()})},e.prototype.pollForRenderedItems=function(){var t=this;this.poll=setInterval(function(){if(t.polling_count++,0===t.renderQueue.length||t.polling_count>h.d.POLLING_COUNT_LIMIT)return clearInterval(t.poll),t.poll=void 0,void(t.polling_count=0);t.checkQueueForRenderedItems()},h.d.POLLING_TIME)},e.prototype.checkQueueForRenderedItems=function(){var t=this;this.renderQueue.forEach(function(e){t.api.getEntity(e,{recordEvent:!1}).then(function(e){t.checkIsItemRendered(e)}).catch(function(n){var r=t.renderQueue.indexOf(e);t.renderQueue.splice(r,1),d.a.error("Model was deleted or cannot be fetched. If the model\n was not deleted, there may be a loss of connection. Once a\n connection is reestablished, refresh your page."+n)})})},e.prototype.checkIsItemRendered=function(t){var e=new u.a(t);if(!e.isRendering){var n=this.renderQueue.indexOf(e.id);this.renderQueue.splice(n,1);var r=new f.a(this.$store,e);this.api.deleteEntityBinary(r.id,l.whp.BinaryType.Skp_File_Thumbnail),document.getElementById(r.id+"-basic-info").contains(document.activeElement)&&(r=this.handleInputActiveAtRender(r)),this.replaceItemById(e.id,r)}},e.prototype.handleInputActiveAtRender=function(t){var e;return document.activeElement.classList.contains("title")?(e=document.activeElement,t.title=e.value,t):document.activeElement.classList.contains("description")?(e=document.activeElement,t.description=e.value,t):t},e.prototype.replaceItemById=function(t,e){var n=this.entityList.findIndex(function(e){return e.id===t});n>=0&&this.entityList.splice(n,1,e)},e.prototype.removeItemById=function(t){this.entityList=this.entityList.filter(function(e){return e.id!==t})},e.prototype.dragover=function(t){this.$refs.dragscreen.classList.remove("hidden"),t.preventDefault()},e.prototype.hideDragScreen=function(){this.$refs.dragscreen.classList.add("hidden")},e.prototype.drop=function(t){this.hideDragScreen(),t.preventDefault();var e=t.dataTransfer;if(e.files)for(var n=0;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.progressBar=null,e.titleEdit=!1,e.descriptionEdit=!1,e}return d(e,t),Object.defineProperty(e.prototype,"DamLoadStatus",{get:function(){return c.b},enumerable:!0,configurable:!0}),e.prototype.mounted=function(){var t=this;this.$watch("uploadProgress",function(){if(t.entity.loadStatus===c.b.UPLOADING){if(null==t.progressBar){var e=n(708);t.progressBar=new e.Line(t.$refs.progress)}t.progressBar.set(t.entity.uploadProgress)}}),this.$on("titleUpdate",function(){t.entity.syncTitle()}),this.$on("descriptionUpdate",function(){t.entity.syncDescription()})},e.prototype.handleDescriptionClick=function(){if(this.entity.isEditable){this.descriptionEdit=!0;var t=this.$refs.descriptionEdit;this.focusTextElement(t)}},e.prototype.handleTitleClick=function(){if(this.entity.isEditable){this.titleEdit=!0;var t=this.$refs.titleEdit;this.focusTextElement(t)}},e.prototype.focusTextElement=function(t){this.$nextTick(function(){t.focus()})},Object.defineProperty(e.prototype,"readableFileSize",{get:function(){var t=l.a(this.entity.filesize||0);return this.$tLabel(t).replace(" ","")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"entityDescription",{get:function(){return this.entity.description.trim()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uploadProgress",{get:function(){return this.entity.uploadProgress},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showProcessingMessage",{get:function(){return!!this.entity.isRendering},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbnailSrc",{get:function(){return this.entity.isRendering?this.damThumbnailUrl:this.entity.loadStatus>c.b.READING_SKETCHUP?this.entity.thumbnailUrl?this.entity.thumbnailUrl:this.damThumbnailUrl:"/static/images/blank-thumbnail.png"},enumerable:!0,configurable:!0}),e.prototype.handleDelete=function(){this.entity.syncDelete()},Object.defineProperty(e.prototype,"damThumbnailUrl",{get:function(){return this.entity.binaries.skp_file_thumb?this.entity.binaries.skp_file_thumb.contentUrl:""},enumerable:!0,configurable:!0}),e=p([s()({components:{},props:{entity:Object},inheritAttrs:!1})],e)}(o.a);e.a=h},,,,,function(t,e,n){"use strict";var r,i=n(722),o=(n.n(i),n(2)),a=n.n(o),s=n(46),l=n(10),c=n(63),u=n(13),d=n(16),p=n(38),h=n(17),f=n(4),m=n(7),v=n(61),y=n(45),g=n(332),b=n(361),_=n(321),O=n(327),C=n(26),w=n(23),T=n(324),E=n(363),S=n(65),P=n(31),M=n(47),D=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),I=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},R=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="edit-model-page",e.itemTitleDefault="",e.externalUrl="",e.commentsDisabled=!1,e.isPrivate=!1,e.validUrl=!0,e.itemTitle_="",e.description_="",e.titleBlockMsg_="",e.descBlockMsg_="",e.newBinaryName=null,e.newFile=null,e.emscriptenSkpFile=null,e.skpFileReady=!1,e.dropErrorState=!1,e.isMounted=!1,e}return D(e,t),e.prototype.created=function(){this.entity&&(this.description=this.entity.description||"",this.itemTitle=this.entity.title||"",this.externalUrl=this.entity.externalUrl||"",this.commentsDisabled=!this.entity.allowComments,this.isPrivate=this.entity.isPrivate,this.itemTitleDefault=this.entity.title||"")},e.prototype.mounted=function(){var t=this;this.loadSkpIntPromise=this.loadSketchupClient(),this.$on("UploadFilesChanged",function(){t.uploadFilesChanged()}),this.isMounted=!0,this.itemTitle=this.itemTitle_,this.description=this.description_},Object.defineProperty(e.prototype,"title",{get:function(){return this.$t("Edit Model")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemTitle",{get:function(){return this.itemTitle_},set:function(t){this.itemTitle_=t,this.isMounted&&this.enableModelScores&&(this.$refs.discBar.title=t,this.$refs.discBar.originalFileName=this.originalFileName)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this.description_},set:function(t){this.description_=t,this.isMounted&&this.enableModelScores&&(this.$refs.discBar.description=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modelBlocks",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleBlockMsg",{get:function(){return this.titleBlockMsg_},set:function(t){this.titleBlockMsg_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descBlockMsg",{get:function(){return this.descBlockMsg_},set:function(t){this.descBlockMsg_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"entity",{get:function(){return this.$store.getters.currentItem},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableModelScores",{get:function(){return d.c.getModelScoresEnabled(this.$store)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourceBinary",{get:function(){if(this.$isServer)return null;var t=s.a.getAttributeValue(this.entity.attributes,"skp","sourceBinary");return t||(t=p.c(this.entity.binaryNames)),this.entity.binaries[t]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryDetails",{get:function(){if(this.sourceBinary&&this.sourceBinary.modifyTime){var t=h.b(this.sourceBinary.modifyTime);return this.$t("Uploaded {date}",{date:t})}return this.$t("Details unavailable.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalFileName",{get:function(){return this.sourceBinary&&this.sourceBinary.originalFileName?this.sourceBinary.originalFileName:this.$t("Unable to determine the original file name.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileUploadSettings",{get:function(){return{allowDropEvent:this.checkDropZone,allowMultipleFiles:!1,maxFileSize:1024*p.a.UploadMaxFileSize,fileTitle:this.originalFileName,fileDetails:this.binaryDetails,fileHandler:this.fileHandler,supportedFileTypes:["skp"]}},enumerable:!0,configurable:!0}),e.prototype.checkDropZone=function(t,e){var n=this;return t?(this.setDropError(null),!0):(this.setDropError(this.$tLabel({text:l.c.DROP_ZONE_ERROR})),setTimeout(function(){n.setDropError(null)},5e3),!1)},e.prototype.setDropError=function(t){this.dropErrorText=t,this.dropErrorState=!!t},Object.defineProperty(e.prototype,"thumbnailUrl",{get:function(){return this.skpFileReady?this.emscriptenSkpFile.thumbnailUrl:this.entity.thumbnailUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editsValid",{get:function(){return!(!this.itemTitle.trim()||this.descBlockMsg||this.titleBlockMsg)&&this.validUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEdited",{get:function(){return this.itemTitle.trim()!==this.entity.title.trim()||this.description.trim()!==this.entity.description.trim()||this.externalUrl.trim()!==this.entity.externalUrl.trim()||this.commentsDisabled===this.entity.allowComments||this.isPrivate!==this.entity.isPrivate||!!this.newFile},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionCharsRemaining",{get:function(){return this.descriptionMaxLength-this.descriptionLength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionLength",{get:function(){return this.description.trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalDescriptionLength",{get:function(){return(this.entity.description||"").trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionMaxLength",{get:function(){var t=f.d.ITEM_DESCRIPTION_MAX_LENGTH;return this.originalDescriptionLength>t?this.originalDescriptionLength:t},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this.isEdited?this.cancelEditModal?this.cancelEditModal.openModal():(this.cancelEditModal=new b.a({propsData:{acceptCallback:this.navigateToDetailsPage,confirmButtonText:this.$t("Discard Changes"),message:this.$t("Any changes you've made won't be saved. Are you sure?")}}),this.cancelEditModal.mountOnPage()):this.navigateToDetailsPage()},e.prototype.deleteModel=function(){var t=this;this.apiHandler.deleteEntity(this.entity.id).then(function(){u.f("editModel",["deleteModel","success"]),t.navigateToUserPage()},function(){u.f("editModel",["deleteModel","failure"]);var e={buttonText:t.$t("Dismiss"),currentState:f.i.Failure,failureTitle:l.c.FAILED_TO_DELETE,failureMessage:t.$t("Oops! We were unable to delete your model."),animationIn:P.a.SlideInUp};t.statusModal?(t.statusModal.resetModal(e),t.statusModal.openModal()):(t.statusModal=new M.a({store:t.$store,propsData:e}),t.statusModal.mountOnPage())})},e.prototype.saveChanges=function(){var t=this;if(this.editsValid){this.openSaveStatusModal();var e=this.apiHandler.updateEntity(this.entity.id,{allowComments:!this.commentsDisabled,description:this.description.trim(),externalUrl:this.externalUrl.trim(),isPrivate:this.isPrivate,title:this.itemTitle.trim()}),n=this.updateModelBinary();Promise.all([e,n]).then(function(){u.f("editModel",["saveChanges","success"]),t.statusModal.loadPercent=100,t.statusModal.successMessage=t.$t("Your model was successfully updated! It may take a few minutes for the changes to show up everywhere."),t.statusModal.currentState=f.i.Success,t.statusModal.acceptCallback=function(){t.navigateToDetailsPage()}},function(){u.f("editModel",["saveChanges","failure"]),t.statusModal.failureMessage=t.$t("Something went wrong while saving changes to your model. Please try again."),t.statusModal.failureTitle=t.$t("Something went wrong"),t.statusModal.currentState=f.i.Failure})}},e.prototype.openSaveStatusModal=function(){var t={currentState:f.i.LoadingDeterminate,loadDetTitle:this.$t("Saving"),loadDetMessage:this.$t("Saving your changes."),animationIn:P.a.SlideInUp};this.statusModal?(this.statusModal.resetModal(t),this.statusModal.openModal()):(this.statusModal=new M.a({store:this.$store,propsData:t}),this.statusModal.mountOnPage())},e.prototype.fileHandler=function(t){var e=this;return this.loadSkpIntPromise.then(function(){return e.emscriptenSkpFile&&(e.emscriptenSkpFile.cleanUp(),e.emscriptenSkpFile=null),e.emscriptenSkpFile=new c.b(t),e.emscriptenSkpFile.init().then(function(){e.skpFileReady=!0})})},e.prototype.uploadFilesChanged=function(){if(!this.uploading&&(this.newBinaryName=this.fileUpload.fileToUploadBinaryName,this.newFile=this.fileUpload.fileToUpload,!this.newFile||!this.newBinaryName))return this.newFile=null,this.newBinaryName=null,void(this.skpFileReady=!1)},e.prototype.updateModelBinary=function(){var t=this;if(!this.newFile)return Promise.resolve();var e=this.newBinaryName;return this.apiHandler.postBinary(this.entity.id,e,this.newFile,this.updateUploadProgress).then(function(){return u.f("editModel",["updateBinary","success"]),t.apiHandler.renderBinary(t.entity.id,e)})},e.prototype.updateUploadProgress=function(t){this.statusModal.loadPercent=100*t},e.prototype.navigateToDetailsPage=function(){var t=m.g(this.entity.id,this.entity.urlTitle);m.x(t)},e.prototype.navigateToUserPage=function(){var t=m.q(this.currentUser.id);m.x(t)},e.prototype.openConfirmDeleteModal=function(){this.modelDeleteDlg?this.modelDeleteDlg.openModal():(this.modelDeleteDlg=new b.a({propsData:{acceptCallback:this.deleteModel,confirmButtonText:this.$t("Delete"),message:this.$t("You’re about to delete your model and all instances of it on the 3D Warehouse. It cannot be recovered. Are you sure?")}}),this.modelDeleteDlg.mountOnPage())},Object.defineProperty(e.prototype,"canEdit",{get:function(){return this.isOwner||this.isAdmin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return this.isSignedIn&&v.a(this.currentUser)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOwner",{get:function(){return!!this.entity&&(this.isSignedIn&&this.currentUser.id===this.entity.creatorId)},enumerable:!0,configurable:!0}),e.prototype.asyncData=function(t){var e=t.store,n=t.route,r=(t.asyncComponent,m.y(n.fullPath,"model"));return e.dispatch("GET_CURRENT_ITEM",{subjectId:r,subjectClass:"entity"})},Object.defineProperty(e.prototype,"fileUpload",{get:function(){return this.$refs.fileUpload},enumerable:!0,configurable:!0}),e.prototype.blur=function(){this.itemTitle||(this.itemTitle=this.itemTitleDefault)},e.prototype.isValidUrl=function(){var t=m.a(this.externalUrl);this.validUrl=!!m.v(t)},e.prototype.urlProtocolCheck=function(){this.externalUrl=m.a(this.externalUrl)},e=I([a()({components:{AutoSizingInput:g.a,DiscoverabilityBar:_.a,FileUpload:O.a,FooterPanel:C.a,HeaderPanel:w.a,HelpCallout:T.a,ItemAnalyticsModal:E.a,ItemNotFound:S.a},metaInfo:function(){return{title:this.title}},watch:{externalUrl:function(){this.isValidUrl()}}})],e)}(y.a);e.a=R},function(t,e,n){"use strict";var r=n(362),i=n(724),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(723),o=(n.n(i),n(2)),a=n.n(o),s=n(15),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="confirmation-modal",e.openOnMounted=!0,e}return l(e,t),Object.defineProperty(e.prototype,"translatedConfirmButtonText",{get:function(){return""===this.confirmButtonText?this.$t("Confirm"):this.confirmButtonText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translatedMessage",{get:function(){return""===this.message?this.$t("You are about to confirm an action. Are you sure?"):this.message},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translatedTitle",{get:function(){return""===this.title?this.$t("Are you sure?"):this.title},enumerable:!0,configurable:!0}),e.prototype.onAccept=function(){this.acceptCallback&&this.acceptCallback(),this.closeModal()},e.prototype.onCancel=function(){this.cancelCallback&&this.cancelCallback(),this.closeModal()},e=c([a()({props:{acceptCallback:Function,confirmButtonText:{type:String,default:""},cancelButton:{type:Boolean,default:!0},cancelCallback:Function,message:{type:String,default:""},title:{type:String,default:""}}})],e)}(s.a);e.a=u},function(t,e,n){"use strict";var r=n(364),i=n(726),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";(function(t){var r,i=n(725),o=(n.n(i),n(2)),a=n.n(o),s=n(15),l=n(10),c=n(8),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="item-analytics-modal",t.title="",t.errorState=!1,t.errorText="",t.openOnMounted=!0,t.chartType="cumulative",t.isLoading=!0,t.showViews=!0,t.showDownloads=!0,t.showLikes=!0,t.chartSettings={displayAnnotations:!1,displayExactValues:!0,thickness:1.5,displayDateBarSeparator:!0,legendPosition:"newRow"},t}return u(r,e),r.prototype.mounted=function(){this.sourceItem.subjectClass===c.a.BackendClass.COLLECTION&&(this.showDownloads=!1),this.chartSettings.zoomButtonsOrder=["1-week","1-month","3-months","6-months","1-year","max"],this.chartSettings.wmode="transparent",this.chartDiv=t("#analytics-container")[0],window.addEventListener("resize",this.resizeChart),this.title=this.$t("Analytics for {modelTitle}",{modelTitle:this.sourceItem.title}),this.initializeGoogleChartLib()},r.prototype.beforeDestroy=function(){window.removeEventListener("resize",this.resizeChart)},r.prototype.reset=function(){this.errorState=!1,this.errorText=null,this.rawData?this.checkDisplayableData():(this.isLoading=!0,this.loadChartData())},r.prototype.initializeGoogleChartLib=function(){var t=this;n(36)("https://www.gstatic.com/charts/loader.js",function(){google.charts.load("current",{packages:["annotationchart"],callback:t.createChart})})},r.prototype.createChart=function(){for(;this.chartDiv.childElementCount>0;)this.chartDiv.removeChild(this.chartDiv.children[0]);this.annotationChart=new google.visualization.AnnotationChart(this.chartDiv),this.loadChartData()},r.prototype.loadChartData=function(){var t=this,e=this.$store.getters.apiHandler,n="/useranalytics/"+this.sourceItem.id+"/usagechart";e.performApiRequest(n,null).then(function(e){t.isLoading=!1,t.rawData=e.data.lineChartList,t.$nextTick(function(){t.drawChart()})},function(e){t.isLoading=!1,t.errorState=!0,t.errorText=t.$tLabel({text:l.c.GENERIC_ERROR_TITLE})})},Object.defineProperty(r.prototype,"isDaily",{get:function(){return"daily"===this.chartType},enumerable:!0,configurable:!0}),r.prototype.checkDisplayableData=function(){return!(this.rawData.length<2)||(this.errorState=!0,this.errorText=this.$t("There is no data to display."),!1)},r.prototype.extractData=function(t){if(!this.checkDisplayableData())return null;var e=new google.visualization.DataTable;return e.addColumn("date",this.$t("Date")),this.showViews&&e.addColumn("number",t?this.$t("Views"):this.$t("Total Views")),this.showDownloads&&e.addColumn("number",t?this.$t("Downloads"):this.$t("Total Downloads")),this.showLikes&&e.addColumn("number",t?this.$t("Likes"):this.$t("Total Likes")),e.addRows(this.extractRows(t)),e},r.prototype.dailyData=function(){return this.dayDataTable||(this.dayDataTable=this.extractData(!0)),this.dayDataTable},r.prototype.cumulativeData=function(){return this.cumDataTable||(this.cumDataTable=this.extractData(!1)),this.cumDataTable},r.prototype.extractRows=function(t){for(var e=[],n=0,r=0,i=0,o=0;o=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},E=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return w(r,e),r.prototype.mounted=function(){n(740),t(".featured-models-content").slick({dots:!1,infinite:!0,prevArrow:t(".featured-models-prev"),nextArrow:t(".featured-models-next"),speed:300,slidesToShow:1,slidesToScroll:1,centerMode:!0,variableWidth:!0,lazyLoad:"ondemand"}),t(".featured-geo-models-content").slick({dots:!1,infinite:!0,prevArrow:t(".featured-geo-prev"),nextArrow:t(".featured-geo-next"),speed:300,slidesToShow:1,slidesToScroll:1,centerMode:!0,variableWidth:!0,lazyLoad:"ondemand"}),t(".featured-catalogs-content").slick({dots:!1,infinite:!0,prevArrow:t(".featured-catalogs-prev"),nextArrow:t(".featured-catalogs-next"),speed:300,slidesToScroll:1,variableWidth:!0}),t(".featured-collections-content").slick({dots:!1,infinite:!0,prevArrow:t(".featured-collections-prev"),nextArrow:t(".featured-collections-next"),speed:300,slidesToScroll:1,variableWidth:!0}),t(".carousel-content").css("opacity",1)},Object.defineProperty(r.prototype,"featuredCatalogs",{get:function(){var t=this.$store.state.featuredCatalogs;if(!t)return[];for(var e=[],n=0,r=this.convertSearchResultsToCollections(t);n=0?(n="012f364a-07dc-4b68-b23c-190b9e007912",r="2b244042-843a-468f-9077-0ee49c4d3d85",i="446594bb-656a-4435-83ba-0a4ce77d44d7",o="07bfb14b-8a27-43a3-8e8d-50f4523972b6"):a.indexOf("stg-")>=0&&(n="52ea31e1-a04b-4275-a8f3-8788b40d6079",r="86ccf36e-39c9-409c-ba6b-d6fa8b2fcfbb",i="5136dac0-1b8b-4fe4-8ee3-69a1ab31bef1",o="c7aa7be0-31e4-4862-9e34-5b7995dfb678");var s=e.getters.apiHandler,l=c.c(s,r,e).then(function(t){t.entries&&p.b(t.entries),e.state.featuredModels=t},function(){}),u=c.b(s,i,e).then(function(t){t.entries&&p.b(t.entries),e.state.featuredCatalogs=t},function(){}),d=c.c(s,n,e).then(function(t){t.entries&&p.b(t.entries),e.state.featuredEventModels=t},function(){}),h=c.b(s,o,e).then(function(t){t.entries&&p.b(t.entries),e.state.featuredCollections=t},function(){}),f=c.a(s,n).then(function(t){e.state.featuredEventLabel=t},function(t){e.state.featuredEventLabel=null}),m=c.a(s,r).then(function(t){e.state.featuredModelsLabel=t},function(t){e.state.featuredModelsLabel=null});return Promise.all([f,m,l,u,h,d])},r=T([a()({components:{FeaturedModelCard:v.a,FeaturedStripLabel:y.a,FooterPanel:b.a,HeaderPanel:_.a,IndexPromoText:g.a,SearchResultCard:O.a},metaInfo:function(){return{title:"3D Warehouse",titleTemplate:"%s",link:f.a(this.baseUrl,this.currentLanguage),meta:[{name:"description",content:this.pageDescription},{name:"keywords",content:m.d.DEFAULT_KEYWORDS},{name:"google-site-verification",content:"5QtJig9ZMBRQdZO9f4UxugYjWPoXLEHXt6_uixYuM1Y"},{name:"baidu-site-verification",content:"KvKQOxt3jL"},{name:"yandex-verification",content:"6bb516b40fb05a04"}],script:f.c(this.siteLinkSearchMarkup),__dangerouslyDisableSanitizers:["script"]}}})],r)}(C.a);e.a=E}).call(e,n(11))},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(25),c=n(732),u=(n.n(c),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),Object.defineProperty(e.prototype,"creatorDisplayName",{get:function(){return this.model.creatorDisplayName},enumerable:!0,configurable:!0}),e=d([s()({props:{model:l.a},inheritAttrs:!1})],e)}(o.a);e.a=p},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(735),c=(n.n(l),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e=u([s()({props:{label:String}})],e)}(o.a);e.a=d},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(738),c=(n.n(l),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e=u([s()({})],e)}(o.a);e.a=d},function(t,e,n){"use strict";var r,i=n(743),o=(n.n(i),n(2)),a=n.n(o),s=n(29),l=n(92),c=n(370),u=n(26),d=n(23),p=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){var e=t.call(this)||this;return e.name="material-page",e.metaPanelHeaderText=e.$t("Material Info"),e}return p(e,t),e.prototype.asyncDataArgs=function(){return{subjectClass:"material",stringPriorToId:"material",includeItemCreator:!1,includeLikeState:!1}},Object.defineProperty(e.prototype,"metadataDisplayValues",{get:function(){return[s.a.Downloads,s.a.Views,s.a.Filesize,s.a.Width,s.a.Height]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadataTitle",{get:function(){return this.metaPanelHeaderText},enumerable:!0,configurable:!0}),e=h([a()({components:{CollectionElementMetadataPanel:c.a,FooterPanel:u.a,HeaderPanel:d.a}})],e)}(l.a);e.a=f},function(t,e,n){"use strict";var r=n(371),i=n(745),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(744),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(32),u=n(10),d=n(13),p=n(29),h=n(21),f=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="collection-element-metadata-panel",e.fieldIds=p.a,e}return f(e,t),e.prototype.metadataInspect=function(t){if(this.metadata[t].isLink){var e=this.metadata[t].linkAction;if(e)d.f("openPanel",[e.params]),this.eventBus.$emit(e.eventName,e.params);else{var n={text:u.c.GENERIC_ERROR_TITLE},r=new h.c(n,h.b.ERROR);this.$store.commit("ADD_STATUS_NOTIFICATION",r)}}},Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),e=m([l()({props:{displayFields:Array,metadata:Array},components:{chevron:c.a}})],e)}(a.a);e.a=v},function(t,e,n){"use strict";var r,i=n(748),o=(n.n(i),n(5)),a=(n.n(o),n(2)),s=n.n(a),l=n(10),c=n(13),u=n(22),d=n(29),p=n(14),h=n(17),f=n(30),m=n(4),v=n(7),y=n(92),g=n(48),b=n(64),_=n(749),O=n(370),C=n(754),w=n(771),T=n(334),E=n(391),S=n(793),P=n(26),M=n(796),D=n(23),I=n(799),R=n(378),A=n(801),L=n(397),x=n(363),k=n(65),N=n(804),j=n(810),U=n(813),F=n(350),B=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),$=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},H=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="model-page",e.pageStateKey="ModelPageState",e.pageState={accordions:{metadata:!0,models:!0,collections:!0}},e.view3dSupported=!1,e.show3dView=!1,e.polling_time=0,e.reportAbuseUrl="#",e.reportAbuseTarget="_blank",e.supplementalMenu=[],e}return B(e,t),Object.defineProperty(e.prototype,"metadataPanelOpen",{get:function(){return this.pageState.accordions.metadata},set:function(t){this.pageState.accordions.metadata=t,this.savePageState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modelsPanelOpen",{get:function(){return this.pageState.accordions.models},set:function(t){this.pageState.accordions.models=t,this.savePageState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collectionsPanelOpen",{get:function(){return this.pageState.accordions.collections},set:function(t){this.pageState.accordions.collections=t,this.savePageState()},enumerable:!0,configurable:!0}),e.prototype.mounted=function(){var t=this;this.entity&&(this.view3dSupported=m.j(),this.reportAbuseUrl=v.l(),p.f()&&(this.reportAbuseTarget="_self"),(this.isAdmin||this.isOwner)&&(this.supplementalMenu=[{eventName:m.g.EditModelPage,params:this.$t("Edit Model")}],this.supplementalMenu.push({eventName:m.g.ModelAnalytics,params:this.$t("Analytics")})),this.eventBus.$on(m.e.SHOW_GEOLOCATION,function(){t.openGeolocationModal()}),this.eventBus.$on(m.e.MENU_ACTION,function(e){t.handleMenuAction(e)}),this.entity.isRendering&&(this.poll=setInterval(function(){t.checkEntity()},m.d.POLLING_TIME)),p.f()&&"1"===this.$route.query.clientUploadSuccess&&c.h("skp",!0,this.clientBinaryType,"dummyfile.skp","unknown"))},e.prototype.checkEntity=function(){var t=this;this.polling_time+=m.d.POLLING_TIME,(!this.entity.isRendering||this.polling_time>=m.d.POLLING_LIMIT)&&clearInterval(this.poll),this.$store.dispatch("GET_CURRENT_ITEM",{subjectId:this.entity.id,subjectClass:this.asyncDataArgs().subjectClass}).then(function(){t.populateMetadata()})},Object.defineProperty(e.prototype,"modelAllows3dView",{get:function(){return this.view3dSupported&&!this.entity.isRendering},enumerable:!0,configurable:!0}),e.prototype.allowDerivedClassesToModifyItemMetaData=function(t,e){var n=t[d.a.DateCreated].value;t[d.a.DateCreated].value=h.b(n),n=t[d.a.DateModified].value,t[d.a.DateModified].value=h.b(n),n=t[d.a.Filesize].value;var r=h.a(n);t[d.a.Filesize].value=this.$tLabel(r).replace(" ",""),(n=t[d.a.PolygonCount].value)&&(t[d.a.PolygonCount].value=n.toLocaleString()),n=e.subComponents?e.subComponents.length:0,t[d.a.ComponentCount].value=n,t[d.a.ComponentCount].isLink=!e.isRendering&&n>0,t[d.a.ComponentCount].linkAction={eventName:m.e.BROWSE_ITEMS_OPEN,params:m.c.Components},t[d.a.MaterialCount].isLink=!e.isRendering&&e.materialCount>0,n=e.geolocated?this.$t("Yes"):this.$t("No"),t[d.a.Geolocated].value=n,t[d.a.Geolocated].isLink=e.geolocated,t[d.a.Geolocated].linkAction={eventName:m.e.SHOW_GEOLOCATION,params:m.c.Geolocation}},e.prototype.openEmbedModal=function(){this.embedModal?this.embedModal.openModal():(this.embedModal=new S.a({store:this.$store,propsData:{modelId:this.entity.id}}),this.embedModal.mountOnPage())},e.prototype.openGeolocationModal=function(){this.geolocationModal?this.geolocationModal.openModal():(this.geolocationModal=new M.a({store:this.$store,propsData:{title:this.entity.title,location:this.entity.location}}),this.geolocationModal.mountOnPage())},e.prototype.openItemAnalyticsModal=function(){this.itemAnalyticsModal?(this.itemAnalyticsModal.openModal(),this.itemAnalyticsModal.reset()):(this.itemAnalyticsModal=new x.a({store:this.$store,propsData:{sourceItem:this.item}}),this.itemAnalyticsModal.mountOnPage())},e.prototype.asyncDataArgs=function(){return{subjectClass:"entity",stringPriorToId:"model",includeItemCreator:!0,includeLikeState:!0}},Object.defineProperty(e.prototype,"entity",{get:function(){return this.item},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadataDisplayValues",{get:function(){return[d.a.ComponentCount,d.a.MaterialCount,d.a.PolygonCount,d.a.Filesize,d.a.DateModified,d.a.Geolocated]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formattedLikeCount",{get:function(){return this.formatUnitString(this.likesCount)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formattedDownloadCount",{get:function(){return this.formatUnitString(this.itemMetadata[this.fieldIds.Downloads].value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formattedViewCount",{get:function(){return this.formatUnitString(this.itemMetadata[this.fieldIds.Views].value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view3dEmbedUrl",{get:function(){return v.e(this.entity.id,void 0,!0)},enumerable:!0,configurable:!0}),e.prototype.view3DClicked=function(){this.show3dView=!0},Object.defineProperty(e.prototype,"isOwner",{get:function(){return!!this.item&&(this.isSignedIn&&this.currentUser.id===this.item.creatorId)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relatedModelsTitle",{get:function(){return this.isProduct?this.$tLabel({text:l.e.MODELS_BY_AUTHOR}):this.$tLabel({text:l.e.MODELS_RELATED})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relatedCollectionsTitle",{get:function(){return this.isProduct?this.$tLabel({text:l.e.COLLECTIONS_BY_AUTHOR}):this.$tLabel({text:l.e.COLLECTIONS_WITH_MODEL})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modelsByCreatorParams",{get:function(){return{fq:"creatorId=="+this.entity.creatorId+"; id!="+this.entity.id,show:o.whp.PrivacyLevel.Public,showBinaryMetadata:!0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collectionsByCreatorParams",{get:function(){return{fq:"creatorId=="+this.entity.creatorId+"; id!="+this.entity.id,show:o.whp.PrivacyLevel.Public,showBinaryMetadata:!0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containingCollectionsParams",{get:function(){return{fq:"containsEntityId=="+this.entity.id,show:o.whp.PrivacyLevel.Public,showBinaryMetadata:!0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relatedModelsParams",{get:function(){return{show:o.whp.PrivacyLevel.Public,showBinaryMetadata:!0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageDescription",{get:function(){return this.entity.description?this.entity.description:this.$t("3D Model: {modelTitle}",{modelTitle:this.entity.title})},enumerable:!0,configurable:!0}),e.prototype.handleMenuAction=function(t){switch(t){case m.g.EditModelPage:var e=v.f(this.item.id);window.location.href=e;break;case m.g.ModelAnalytics:this.openItemAnalyticsModal()}},Object.defineProperty(e.prototype,"clientBinaryType",{get:function(){var t=p.i();return u.d(t.major)},enumerable:!0,configurable:!0}),e.prototype.formatUnitString=function(t){var e=h.c(t||0);return this.$tLabel(e).replace(" ","")},Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.$store.getters.baseUrl+"/model/"+this.entity.id+"/"+v.z(this.entity.title)},enumerable:!0,configurable:!0}),e=$([s()({components:{Accordion:b.a,AccordionItem:g.a,AddToCollection:_.a,CollectionElementMetadataPanel:O.a,CommentsPanel:C.a,ContentBrowser:w.a,DescriptionPanel:T.a,DownloadButton:E.a,EmbedModelModal:S.a,GeolocationModal:M.a,FooterPanel:P.a,HeaderPanel:D.a,ItemAnalyticsModal:x.a,IconEmbed:I.a,IconFlag:R.a,IconLike:A.a,IconLock:L.a,ItemNotFound:k.a,RelatedContentPanel:N.a,RerenderButton:j.a,SupplementalMenu:U.a,UserCard:F.a},metaInfo:function(){return this.$store.getters.currentItem?{title:this.metaTitle,link:f.a(this.baseUrl,this.currentLanguage),meta:f.b(this.itemMetadata),script:f.c(this.schemaScript),__dangerouslyDisableSanitizers:["script"]}:{title:this.$t("Model Not Found")}}})],e)}(y.a);e.a=H},function(t,e,n){"use strict";(function(t){var r,i=n(750),o=(n.n(i),n(5)),a=(n.n(o),n(3)),s=n.n(a),l=n(2),c=n.n(l),u=n(751),d=n(13),p=n(22),h=n(8),f=n(4),m=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},y=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="add-to-collection",t.isMounted=!1,t.initialized=!1,t.loading=!1,t.errorState=!1,t.allCollections=[],t.newCollectionTitle="",t.maxTitleLength=f.d.ITEM_TITLE_MAX_LENGTH,t.errorText="",t.genericErrorText=t.$t("Oops! Something bad happened."),t.newCollectionText=t.$t("New Collection"),t.permissionDeniedText=t.$t("You are not allowed to add content you do not own to this collection."),t.titleRequiredText=t.$t("You must specify a title for your new collection."),t.addedText=t.$t("Added"),t.removedText=t.$t("Removed"),t.collections=[],t.containingCollections=null,t.MAX_COLLECTION_COUNT=200,t}return m(n,e),n.prototype.mounted=function(){this.isMounted=!0,this.$nextTick(function(){t("#add-to-collection").foundation()})},n.prototype.initialize=function(){if(this.isSignedIn)this.initialized||(this.loading=!0,this.loadData()),t("#add-to-collection").foundation("open");else{var e={feature:"AddToCollection",message:this.$t("Oops! You need to be signed in to add to a collection.")};this.eventBus.$emit(f.e.SIGN_IN_GUARD,e)}},n.prototype.close=function(){t("#add-to-collection").foundation("close")},Object.defineProperty(n.prototype,"itemToAdd",{get:function(){return this.$store.getters.currentItem},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"user",{get:function(){return this.$store.getters.currentUser},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this.itemToAdd.title},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bodyText",{get:function(){return this.$t("Add to or remove from your collections")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemThumbnailSrc",{get:function(){if(this.itemToAdd){var t=this.itemToAdd.largeThumbnailUrl;if(t&&t.length>0)return t;var e=this.itemToAdd.smallThumbnailUrl;if(e&&e.length>0)return e}return"/static/images/blank-thumbnail.png"},enumerable:!0,configurable:!0}),n.prototype.loadData=function(){var t=this,e=this.getOwnedCollectionsSearchParams();this.$store.dispatch("SEARCH",{searchParameters:e}).then(function(n){var r=t.$store.getters.searchResults.filter(function(e){return e.id!==t.itemToAdd.id});e=t.getContainingCollectionsSearchParams(),t.$store.dispatch("SEARCH",{searchParameters:e}).then(function(e){return t.processResults(r),Promise.resolve()},function(e){t.displayError(t.genericErrorText)})},function(e){t.displayError(t.genericErrorText)})},n.prototype.getOwnedCollectionsSearchParams=function(){return{creatorId:this.user.id,searchTab:h.a.BackendClass.COLLECTION,count:this.MAX_COLLECTION_COUNT,sortBy:h.c.TitleAsc}},n.prototype.getContainingCollectionsSearchParams=function(){var t=this.getOwnedCollectionsSearchParams();return t.containsClass=this.itemToAdd.subjectClass,t.containsId=this.itemToAdd.id,t},n.prototype.processResults=function(t){var e=this,n={};this.$store.getters.searchResults.forEach(function(t){n[t.id]=!0}),this.collections=[],t.forEach(function(t){e.collections.push({id:t.id,title:t.title,containsItem:!!n[t.id],alertState:"",disabled:!1,binaryNames:t.binaryNames,permissionDenied:(t.isCatalog||t.parentCatalogId)&&e.user.id!==e.itemToAdd.creatorId})}),this.loading=!1,this.initialized=!0},n.prototype.onNewCollectionClicked=function(){var t=this;if(this.newCollectionTitle=this.newCollectionTitle.trim(),this.newCollectionTitle.length<1)this.displayError(this.titleRequiredText);else{var e=this.$store.getters.apiHandler,n=o.whp.HttpMethod.Post,r={title:this.newCollectionTitle,type:"USER_GENERATED"},i=JSON.stringify(r);e.performLegacyApiRequest("/SetCollection",i,{method:n}).then(function(e){return d.d("addToCollection",!0,"public"),t.collections.unshift({id:e.id,title:t.newCollectionTitle,containsItem:!0,alertState:"",value:e.id,disabled:!0,binaryNames:[]}),t.newCollectionTitle="",t.addRemoveItem(e.id,"add")},function(e){d.d("addToCollection",!1,"public"),t.displayError(t.genericErrorText)}).then(function(e){d.g(!0),t.collections[0].disabled=!1,t.updateCollectionThumbnail(t.collections[0].id)},function(e){t.collections[0].disabled=!1,t.collections[0].containsItem=!1,d.g(!1),t.displayError(t.genericErrorText)})}},n.prototype.addRemoveItem=function(t,e){var n=this.$store.getters.apiHandler,r=("add"===e?"/Set":"/Delete")+"CollectionContains",i=o.whp.HttpMethod.Post,a={parentCollectionId:t,childId:this.itemToAdd.id,childClass:this.itemToAdd.subjectClass},s=JSON.stringify(a);return n.performLegacyApiRequest(r,s,{method:i})},n.prototype.onContainsToggle=function(t){var e=this;t.containsItem=!t.containsItem,t.disabled=!0;var n=t.containsItem?"add":"remove";this.addRemoveItem(t.id,n).then(function(){e.displayAlert(t),t.disabled=!1,null==e.getCollectionThumbnail(t)&&e.updateCollectionThumbnail(t.id),t.containsItem&&d.g(!0)},function(){t.containsItem&&d.g(!1),t.containsItem,t.containsItem,t.disabled=!1,e.displayError(e.genericErrorText)})},n.prototype.displayAlert=function(t){t.alertState=t.containsItem?this.addedText:this.removedText,setTimeout(function(){t.alertState=""},800)},n.prototype.onPermissionDeniedClick=function(t){this.displayError(this.permissionDeniedText),t.preventDefault(),t.stopPropagation()},n.prototype.getCollectionThumbnail=function(t){return p.c(t.binaryNames)},n.prototype.updateCollectionThumbnail=function(t){var e={parentCollectionId:t,sortBy:"addedToCollectionDate DESC"},n=o.whp.HttpMethod.Post,r=this.$store.getters.apiHandler,i=JSON.stringify(e);r.performLegacyApiRequest("/setDefaultCollectionThumbnail",i,{method:n})},n.prototype.displayError=function(t){var e=this;this.errorState=!0,this.errorText=t,setTimeout(function(){e.errorState=!1,e.errorText=""},5e3)},Object.defineProperty(n.prototype,"isSignedIn",{get:function(){return null!=this.user},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),n=v([c()({components:{IconAddToCollection:u.a}})],n)}(s.a);e.a=y}).call(e,n(11))},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-add-to-collection",e}return l(e,t),e=c([s()({props:{buttonClick:{type:Function}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r,i=n(755),o=(n.n(i),n(5)),a=(n.n(o),n(3)),s=n.n(a),l=n(2),c=n.n(l),u=n(48),d=n(64),p=n(756),h=n(761),f=n(382),m=n(766),v=n(361),y=n(31),g=n(47),b=n(769),_=n(10),O=n(13),C=n(21),w=n(99),T=n(4),E=n(7),S=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),P=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="comments-panel",e.expanded={comments:!0},e.isMounted=!1,e.comments=[],e.isLoading=!0,e.scrolling=!1,e.scrollBufferMin=200,e}return S(e,t),e.prototype.mounted=function(){var t=this;if(this.currentUser=this.$store.getters.currentUser,this.isMounted=!0,window.innerWidth=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.editing=!1,e.saving=!1,e.viewAnyway_=!1,e}return m(e,t),Object.defineProperty(e.prototype,"commenterUrl",{get:function(){return c.q(this.comment.userId)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"picture",{get:function(){return this.comment.picture||"/static/images/icon-profile.svg"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"date",{get:function(){return this.comment.createTime.format("l")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canEdit",{get:function(){return this.isOwner||this.isAdmin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canDelete",{get:function(){return this.isOwner||this.isAdmin||this.isModerator},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canReport",{get:function(){return this.hasBeenReported?this.viewAnyway:this.isSignedIn&&!this.isOwner},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasBeenReported",{get:function(){return this.comment.reportCount>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewAnyway",{get:function(){return this.viewAnyway_},set:function(t){this.viewAnyway_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isModerator",{get:function(){return this.isSignedIn&&u.b(this.currentUser)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return this.isSignedIn&&u.a(this.currentUser)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOwner",{get:function(){return this.isSignedIn&&this.currentUser.id===this.comment.userId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSignedIn",{get:function(){return null!=this.currentUser},enumerable:!0,configurable:!0}),e.prototype.editComment=function(){this.makeCommentRequest("update")},e.prototype.reportComment=function(){this.comment.reportCount>0?this.viewAnyway=!1:this.makeCommentRequest("report")},e.prototype.deleteComment=function(){this.makeCommentRequest("delete")},e.prototype.makeCommentRequest=function(t){this.eventBus.$emit(l.e.COMMENT_REQUEST,{request:t,comment:this.comment})},Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),e=v([s()({components:{IconDelete:d.a,IconEdit:p.a,IconFlag:h.a},props:{comment:Object,currentUser:Object}})],e)}(o.a);e.a=y},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-edit",e}return l(e,t),e=c([s()({props:{buttonClick:{type:Function}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r=n(379),i=n(759),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-flag",e}return l(e,t),e=c([s()({props:{altSvg:{type:Boolean,default:!1},buttonClick:{type:Function,default:function(){}}}})],e)}(o.a);e.a=u},function(t,e){},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(382),c=n(764),u=n(4),d=n(380),p=(n.n(d),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),Object.defineProperty(e.prototype,"user",{get:function(){return this.$store.getters.currentUser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSignedIn",{get:function(){return null!=this.user},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"picture",{get:function(){return this.isSignedIn?this.user.avatarUrl||"/static/images/icon-profile.svg":"/static/images/icon-join-convo.svg"},enumerable:!0,configurable:!0}),e.prototype.postComment=function(){this.isSignedIn&&this.openPostModal()},e.prototype.signIn=function(){c.a("PostAComment")},e.prototype.openPostModal=function(){this.postModalDlg?(this.postModalDlg.reset(),this.postModalDlg.openModal()):(this.postModalDlg=new l.a({store:this.$store,propsData:{acceptCallback:this.commentPosted}}),this.postModalDlg.mountOnPage())},e.prototype.commentPosted=function(t){t.picture=this.picture,t.userId=this.user.id,t.displayName=this.user.displayName;var e={action:"insert",comment:t};this.eventBus.$emit(u.e.COMMENT_RESOLVE,e)},Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),e=h([s()({})],e)}(o.a);e.a=f},function(t,e,n){"use strict";var r=n(383),i=n(763),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(2),o=n.n(i),a=n(15),s=n(0),l=n.n(s),c=n(5),u=(n.n(c),n(384)),d=n(10),p=n(13),h=n(8),f=n(4),m=n(24),v=n(762),y=(n.n(v),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),g=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMounted=!1,e.errorState=!1,e.errorText="",e.commentText="",e.openOnMounted=!0,e.inputFocused=!1,e}return y(e,t),e.prototype.mounted=function(){this.comment&&(this.commentText=this.comment.commentText,this.clearErrorState())},Object.defineProperty(e.prototype,"placeholder",{get:function(){return this.isCommentValid||this.inputFocused?this.$t("Comment"):""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEditing",{get:function(){return null!=this.comment},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"charactersRemaining",{get:function(){return this.maxlength-this.commentLength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"commentLength",{get:function(){return this.commentText.trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxlength",{get:function(){return f.d.COMMENT_MAX_LENGTH},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCommentValid",{get:function(){return this.commentLength>0&&this.commentLength<=this.maxlength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleText",{get:function(){return this.isEditing?this.$t("Edit Comment"):this.$t("Post a comment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buttonText",{get:function(){return this.isEditing?this.$t("Save"):this.$t("Post")},enumerable:!0,configurable:!0}),e.prototype.reset=function(t){void 0===t&&(t=null),t?(this.comment=t,this.commentText=t.commentText):this.commentText="",this.clearErrorState()},e.prototype.clearErrorState=function(){this.commentLength>this.maxlength?(this.errorState=!0,this.errorText=this.$t("This comment exceeds the character limit")):this.errorState&&(this.errorState=!1,this.errorText=null)},e.prototype.commentPost=function(){if(this.commentLength<1)return this.errorState=!0,void(this.errorText=this.$t("There is nothing to post. Please enter a comment."));var t=this.isEditing?"edit":"create";p.e(t),this.isEditing?this.saveCommentV0():this.postComment()},e.prototype.saveCommentV0=function(){var t=this;this.clearErrorState();var e=c.whp.HttpMethod.Post,n={commentId:this.comment.id,commentText:this.commentText.trim()},r=JSON.stringify(n);this.handler.performLegacyApiRequest("/EditComment",r,{method:e}).then(function(e){t.comment.commentText=t.commentText.trim(),t.dismiss(t.comment)},function(){t.errorState=!0,t.errorText=t.$tLabel({text:d.c.GENERIC_ERROR_TITLE})})},e.prototype.postComment=function(){var t=this;this.clearErrorState();var e=c.whp.HttpMethod.Post,n="/entities/"+this.source.id+"/comments",r=JSON.stringify({text:this.commentText.trim()});this.handler.performApiRequest(n,r,{method:e}).then(function(e){var n=e&&e.headers&&e.headers["whp-id"];if(n){var r=t.createNewComment(n);t.dismiss(r)}else t.errorState=!0,t.errorText=t.$tLabel({text:d.c.GENERIC_ERROR_TITLE})},function(){t.errorState=!0,t.errorText=t.$tLabel({text:d.c.GENERIC_ERROR_TITLE})})},Object.defineProperty(e.prototype,"source",{get:function(){return this.$store.getters.currentItem},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handler",{get:function(){return this.$store.getters.apiHandler},enumerable:!0,configurable:!0}),e.prototype.createNewComment=function(t){var e=l.a.utc().format(h.a.RESPONSE_TIME_FORMAT);return new u.a({id:t,commentText:this.commentText.trim(),createTime:e,modifyTime:e,reportCount:0,commentCount:0,isDeleted:!1,picture:"",displayName:"",userId:""})},e.prototype.dismiss=function(t){this.closeModal(),this.acceptCallback&&this.acceptCallback(t)},e=g([o()({props:{comment:Object},components:{ErrorInContext:m.a}})],e)}(a.a);e.a=b},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n.n(r),o=n(8),a=function(){return function(t){this.id=t.id,this.commentCount=t.commentCount,this.commentText=t.commentText,this.createTime=i.a.utc(t.createTime,o.a.RESPONSE_TIME_FORMAT),this.displayName=t.displayName,this.isDeleted=t.isDeleted,this.modifyTime=i.a.utc(t.modifyTime,o.a.RESPONSE_TIME_FORMAT),this.parentCommentId=t.parentCommentId||"",this.picture=t.picture,this.reportCount=t.reportCount,this.userId=t.userId}}()},function(t,e,n){"use strict";var r,i=n(767),o=(n.n(i),n(2)),a=n.n(o),s=n(5),l=(n.n(s),n(24)),c=n(15),u=n(10),d=n(13),p=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="comment-report-modal",e.otherReasonText="",e.errorState=!1,e.errorText="",e.reasonFocused=!1,e.key_="",e.openOnMounted=!0,e.MAX_OTHER_REASON_LENGTH=100,e.reasons=[{key:"Spam",value:e.$t("Spam or not related to the subject")},{key:"Offensive",value:e.$t("Offensive or vulgar language")},{key:"Demeaning",value:e.$t("Demeaning or threatening language")},{key:"Garbage",value:e.$t("Bizarre or insensible comment")},{key:"Other",value:e.$t("Other (Please specify)")}],e}return p(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return this.key_},set:function(t){this.key_=t,this.clearError()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reason",{get:function(){var t=this;return this.reasons.find(function(e){return e.key===t.key_})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"charactersRemaining",{get:function(){return this.MAX_OTHER_REASON_LENGTH-this.otherReasonText.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canExecute",{get:function(){return this.reasonValue.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"otherReasonHeader",{get:function(){return this.isReasonValid||this.reasonFocused?this.$t("Other Reason"):""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReasonValid",{get:function(){return"Other"===this.key&&this.otherReasonText.length>0},enumerable:!0,configurable:!0}),e.prototype.reset=function(t){this.comment=t,this.key_="",this.otherReasonText="",this.errorState=!1,this.errorText=null},e.prototype.clearError=function(){this.errorState=!1,this.errorText=null},e.prototype.onAccept=function(){this.clearError();var t=this.reasonValue;t.length>0&&this.reportComment(t)},e.prototype.dismiss=function(){this.closeModal(),this.acceptCallback&&this.acceptCallback(this.comment)},e.prototype.reportComment=function(t){var e=this;d.e("flag");var n=this.$store.getters.apiHandler,r=s.whp.HttpMethod.Post,i=new FormData;i.append("description",t.trim()),i.append("commentId",this.comment.id),n.performLegacyApiRequest("/ReportComment",i,{method:r,contentType:!1,processData:!1}).then(function(t){t.reportId?(e.comment.reportCount++,e.dismiss()):(e.errorState=!0,e.errorText=e.$tLabel({text:u.c.GENERIC_ERROR_TITLE}))},function(){e.errorState=!0,e.errorText=e.$tLabel({text:u.c.GENERIC_ERROR_TITLE})})},Object.defineProperty(e.prototype,"reasonValue",{get:function(){var t=this.reason;return t?"Other"===t.key?this.otherReasonText:this.reason.key:""},enumerable:!0,configurable:!0}),e=h([a()({props:{comment:Object,currentUser:Object},components:{ErrorInContext:l.a}})],e)}(c.a);e.a=f},function(t,e,n){"use strict";var r,i=n(772),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(773),u=n(776),d=n(779),p=n(781),h=n(49),f=n(784),m=n(785),v=n(787),y=n(788),g=n(789),b=n(10),_=n(21),O=n(99),C=n(4),w=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),T=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="content-browser",e.isMounted=!1,e.contentTitle="Default Title",e.items=[],e.isOpen=!1,e.isLoading=!0,e.browseComponents=!1,e.browseMaterials=!1,e.browseUsers=!1,e.browseModels=!1,e.browseCollections=!1,e.selfContributor=null,e.scrolling=!1,e.scrollBufferMin=200,e}return w(e,t),e.prototype.mounted=function(){var t=this;this.isMounted=!0,this.reviewBrowser=new g.a(this.$store),this.materialBrowser=new v.a(this.$store),this.componentBrowser=new m.a(this.$store),this.modelsBrowser=new y.a(this.$store),this.collectionsBrowser=new f.a(this.$store),this.eventBus.$on(C.e.BROWSE_ITEMS_OPEN,function(e){t.open(e)}),this.eventBus.$on(C.e.PAGE_OVERLAY_CLICK,function(){t.close()});var e=this.$refs.scrollTarget;this.scrollTrigger=this.$refs.scrollTrigger,this.scrollHelper=new O.a(e,this.scrollBufferMin),this.scrollTrigger.addEventListener("scroll",this.checkScrollBuffer),this.scrollTrigger.addEventListener("resize",this.checkScrollBuffer)},e.prototype.beforeDestroy=function(){this.scrollTrigger.removeEventListener("scroll",this.checkScrollBuffer),this.scrollTrigger.removeEventListener("resize",this.checkScrollBuffer)},e.prototype.open=function(t){var e=this;switch(this.isOpen=!0,this.isLoading=!0,this.eventBus.$emit(C.e.TOGGLE_MAIN_OVERLAY,{showOverlay:!0,coverHeader:!0}),this.contentTitle="Oops, something bad happened!",this.browseComponents=this.browseModels=this.browseMaterials=this.browseCollections=this.browseUsers=!1,t){case C.c.Components:this.browseComponents=!0,this.contentTitle=this.$t("Contributed components"),this.dataBrowser=this.componentBrowser;break;case C.c.Materials:this.browseMaterials=!0,this.contentTitle=this.$t("Materials in this model"),this.dataBrowser=this.materialBrowser;break;case C.c.Reviews:this.browseUsers=!0,this.contentTitle=this.$t("Reviewers of this model"),this.dataBrowser=this.reviewBrowser;break;case C.c.CreatorModels:case C.c.RelatedModels:this.browseModels=!0,this.contentTitle=t===C.c.CreatorModels?this.$tLabel({text:b.e.MODELS_BY_AUTHOR}):this.$tLabel({text:b.e.MODELS_RELATED}),this.dataBrowser=this.modelsBrowser;break;case C.c.CreatorCollections:case C.c.ContainingCollections:this.browseCollections=!0,this.contentTitle=t===C.c.CreatorCollections?this.$tLabel({text:b.e.COLLECTIONS_BY_AUTHOR}):this.$tLabel({text:b.e.COLLECTIONS_WITH_MODEL}),this.dataBrowser=this.collectionsBrowser;break;default:return}this.dataBrowser.browseType=t,this.dataBrowser.open().then(function(t){e.items=t,e.isLoading=!1,e.browseComponents&&(e.selfContributor=e.dataBrowser.selfContributor),setTimeout(function(){e.checkScrollBuffer()},0)},function(t){e.sendDataLoadError()})},e.prototype.close=function(){this.items=[],this.isOpen=!1,this.selfContributor=null,this.browseComponents=this.browseMaterials=this.browseUsers=!1,this.eventBus.$emit(C.e.TOGGLE_MAIN_OVERLAY,{showOverlay:!1})},Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),e.prototype.loadMore=function(){var t=this;this.dataBrowser.loadMore().then(function(e){t.items=e,t.scrolling=!1,setTimeout(function(){t.checkScrollBuffer()},0)},function(e){t.sendDataLoadError()})},e.prototype.sendDataLoadError=function(){var t={text:b.c.DATA_LOAD_ERROR},e=new _.c(t,_.b.ERROR);this.$store.commit("ADD_STATUS_NOTIFICATION",e)},e.prototype.checkScrollBuffer=function(){this.scrolling||this.dataBrowser.isScrolledToEnd||this.$isServer||this.scrollHelper.getScrollRemainder()=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expanded=!1,e}return d(e,t),e.prototype.mounted=function(){this.expanded=this.contributor.isExpanded},e.prototype.expandToggle=function(){this.contributor.isExpanded=!this.contributor.isExpanded,this.expanded=this.contributor.isExpanded},Object.defineProperty(e.prototype,"expandText",{get:function(){var t=(this.contributor.modelCount-2).toString();return this.$t("{componentCount} More Components",{componentCount:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"avatarUrl",{get:function(){return this.contributor.avatarUrl||"/static/images/icon-profile.svg"},enumerable:!0,configurable:!0}),e=p([s()({props:{contributor:Object},components:{chevron:l.a,SearchResultCard:u.a}})],e)}(o.a);e.a=h},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(777),c=(n.n(l),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e=u([s()({props:{count:Number}})],e)}(o.a);e.a=d},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(96),c=n(16),u=n(17),d=n(7),p=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),Object.defineProperty(e.prototype,"materialUrl",{get:function(){return this.material?this.material.thumbnailUrl:"/static/images/blank-thumbnail.svg"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageUrl",{get:function(){return null==this.material?"#":d.j(this.material.id)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dimensions",{get:function(){if(this.material.width&&this.material.height){var t=this.getPixelSize(this.material.width),e=this.getPixelSize(this.material.height);return this.$t("Dimensions: {width} x {height} pixels",{width:t,height:e})}return this.$t("Pixel dimensions unavailable")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileSize",{get:function(){var t=this.material.fileSize,e=u.a(t);return this.$tLabel(e).replace(" ","")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"materialsEnabled",{get:function(){return!this.$isServer&&c.c.isFeatureEnabled(c.b.Search_Materials)},enumerable:!0,configurable:!0}),e.prototype.download=function(){l.a(this.$store,this.material)},e.prototype.getPixelSize=function(t){var e=u.c(t);return this.$tLabel(e).replace(" ","")},e=h([s()({props:{material:Object}})],e)}(o.a);e.a=f},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(7),c=n(782),u=(n.n(c),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),Object.defineProperty(e.prototype,"pageUrl",{get:function(){return null==this.user?"#":l.q(this.user.id)},enumerable:!0,configurable:!0}),e=d([s()({props:{user:Object}})],e)}(o.a);e.a=p},function(t,e,n){"use strict";var r=n(392),i=n(792),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(791),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(32),u=n(76),d=n(96),p=n(14),h=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showOptions=!1,e.nonSkpClient=!1,e}return h(e,t),e.prototype.mounted=function(){document.addEventListener("click",this.onDocumentClicked),document.addEventListener("touchstart",this.onDocumentClicked),this.nonSkpClient=!p.f()},e.prototype.destroyed=function(){document.removeEventListener("click",this.onDocumentClicked),document.removeEventListener("touchstart",this.onDocumentClicked)},Object.defineProperty(e.prototype,"downloadableBinaries",{get:function(){for(var t=[],e=0,n=u.a.sortBinaryTypeArray(this.entity.binaryNames);e=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="embed-model-modal",e.embedType="thumbnail",e.openOnMounted=!0,e.isCopied=!1,e.COMPLETED_ACTION_TIME_MS=5e3,e}return c(e,t),Object.defineProperty(e.prototype,"embedText",{get:function(){return''},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyButtonLabel",{get:function(){return this.isCopied?this.$t("Copied to Clipboard"):this.$t("Copy to Clipboard")},enumerable:!0,configurable:!0}),e.prototype.selectEmbedText=function(){var t=document.getElementById("embed-dialog-text");if(document.selection)(e=document.body.createTextRange()).moveToElementText(t),e.select();else if(window.getSelection){var e;(e=document.createRange()).selectNode(t),window.getSelection().removeAllRanges(),window.getSelection().addRange(e)}},e.prototype.copyEmbedText=function(){var t=this;this.isCopied=!0,this.selectEmbedText(),document.execCommand("copy"),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){t.timer=null,t.isCopied=!1},this.COMPLETED_ACTION_TIME_MS)},e=u([a()({props:{modelId:String}})],e)}(l.a);e.a=d},function(t,e,n){"use strict";var r,i=n(797),o=(n.n(i),n(18)),a=n.n(o),s=n(2),l=n.n(s),c=n(14),u=n(4),d=n(15),p=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="geolocation-modal",e.openOnMounted=!0,e}return p(e,t),e.prototype.mounted=function(){this.addMapsScript()},e.prototype.addMapsScript=function(){var t="https://maps.googleapis.com/maps/api/js";c.c(new a.a(window.location.href))||(t+="?key="+u.b.MAPS_API_KEY);var e=this.location.latitude,r=this.location.longitude;n(36)(t,function(){var t=new google.maps.LatLng(e,r),n={zoom:15,center:t,mapTypeId:google.maps.MapTypeId.HYBRID},i=document.getElementById("geolocation-maps-container"),o=new google.maps.Map(i,n);new google.maps.Marker({position:t,map:o})})},e=h([l()({props:{title:String,location:Object}})],e)}(d.a);e.a=f},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-embed",e}return l(e,t),e=c([s()({props:{buttonClick:{type:Function}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-like",e}return l(e,t),e=c([s()({props:{altSvg:{type:Boolean,default:!1},buttonClick:{type:Function}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r=n(398),i=n(803),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-lock",e}return l(e,t),e=c([s()({props:{circle:{type:Boolean,default:!1}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r,i=n(805),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(806),u=n(24),d=n(95),p=n(66),h=n(10),f=n(13),m=n(8),v=n(4),y=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),g=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="related-content-panel",e.isMounted=!1,e.isLoading=!0,e.api=null,e.errorState=!1,e.errorText="",e.items=[],e.totalCount=0,e}return y(e,t),e.prototype.mounted=function(){this.isMounted=!0,this.fetchData()},e.prototype.fetchData=function(){this.itemType&&this.searchParams?(this.searchParams.searchElasticsearch=!0,this.searchParams.recordEvent=!1,this.searchParams.count||(this.searchParams.count=4),this.collectionSearchParams=this.searchParams,this.entitySearchParams=this.searchParams,this.relatedItemId?this.getRelatedItems():this.getItems()):this.surfaceError()},Object.defineProperty(e.prototype,"resultText",{get:function(){return this.isCollection?this.$t("There are no collections."):this.$t("There are no models.")},enumerable:!0,configurable:!0}),e.prototype.seeMore=function(){var t;t=this.isCollection?this.isProduct?v.c.CreatorCollections:v.c.ContainingCollections:this.isProduct?v.c.CreatorModels:v.c.RelatedModels,f.f("openPanel",[t]),this.eventBus.$emit(v.e.BROWSE_ITEMS_OPEN,t)},e.prototype.getRelatedItems=function(){var t=this,e="/"+(this.isCollection?"collections":"entities")+"/"+this.relatedItemId+"/related";this.apiHandler.performApiRequest(e,this.searchParams).then(function(e){e.data?t.processResponse(e.data):t.surfaceError()},function(e){t.surfaceError()})},e.prototype.getItems=function(){var t=this;(this.isCollection?this.apiHandler.getCollections(this.collectionSearchParams):this.apiHandler.getEntities(this.entitySearchParams)).then(function(e){t.processResponse(e)},function(e){t.surfaceError()})},e.prototype.processResponse=function(t){this.totalCount=t.total;for(var e=0,n=t.entries;e=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e=c([a()({props:{collectionElement:Object},inheritAttrs:!1})],e)}(s.a);e.a=u},function(t,e,n){"use strict";var r,i=n(811),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.onRerenderButtonClicked=function(){this.$store.getters.apiHandler.renderBinary(this.entity.id,this.entity.sourceBinaryName).then(function(){window.location.reload()},function(t){console.log("Error starting re-render job!: "+t)})},e=u([l()({props:{entity:Object},components:{},inheritAttrs:!1})],e)}(a.a);e.a=d},function(t,e,n){"use strict";var r,i=n(814),o=(n.n(i),n(3)),a=n.n(o),s=n(2),l=n.n(s),c=n(4),u=n(815),d=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isOpen=!1,e}return d(e,t),e.prototype.mounted=function(){document.addEventListener("click",this.onDocumentClicked)},e.prototype.destroyed=function(){document.removeEventListener("click",this.onDocumentClicked)},e.prototype.toggleMenu=function(){this.isOpen=!this.isOpen},e.prototype.optionSelected=function(t){this.eventBus.$emit(c.e.MENU_ACTION,t.eventName)},e.prototype.onDocumentClicked=function(t){var e=this.$refs.supplementalMenu,n=t.target;void 0!==e&&(n===e||e.$el.contains(n)||(this.isOpen=!1))},Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),e=p([l()({components:{IconSupplemental:u.a},props:{menu:Array}})],e)}(a.a);e.a=h},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="icon-supplemental",e}return l(e,t),e=c([s()({props:{buttonClick:{type:Function}}})],e)}(o.a);e.a=u},function(t,e,n){"use strict";var r,i=n(820),o=(n.n(i),n(2)),a=n.n(o),s=n(10),l=n(296),c=n.n(l),u=n(16),d=n(30),p=n(21),h=n(99),f=n(8),m=n(4),v=n(7),y=n(61),g=n(23),b=n(821),_=n(824),O=n(95),C=n(827),w=n(49),T=n(45),E=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),S=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.retryLoadResultsCount=0,e.isMounted=!1,e.searchTab="",e.searchTerms="",e.selectedSort=null,e.sortBy=f.c.RelevanceDesc,e.sortByEnum=f.c,e.retryLoadResultsTimeout=void 0,e.apiCallFailure=!1,e.maxSearchResults=1e3,e.rowSize=0,e.scrollRows=50,e.scrollLimit=200,e.scrollStopped=!1,e.sortOptions=[{value:f.c.RelevanceDesc,label:e.$t("Relevance")},{value:f.c.PopularityDesc,label:e.$t("Popularity")},{value:f.c.ReviewCountDesc,label:e.$t("Most Liked")},{value:f.c.TitleAsc,label:e.$t("Title (A to Z)")},{value:f.c.TitleDesc,label:e.$t("Title (Z to A)")},{value:f.c.ModifyTimeDesc,label:e.$t("Date (New to Old)")},{value:f.c.ModifyTimeAsc,label:e.$t("Date (Old to New)")}],e.searchesPending=0,e.pageLeftPanelOpen=!1,e.scrollBufferMin=200,e.scrollTargetEl=null,e}return E(e,t),Object.defineProperty(e.prototype,"singleNewsItemShown",{get:function(){return!!this.headerPanel&&this.headerPanel.singleNewsItemShown},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multipleNewsItemsShown",{get:function(){return!!this.headerPanel&&this.headerPanel.multipleNewsItemsShown},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return this.isSignedIn&&y.a(this.currentUser)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showPageLeftPanel",{get:function(){return this.pageLeftPanelOpen},set:function(t){this.pageLeftPanelOpen!==t&&(this.pageLeftPanelOpen=t,this.pageLeftPanelOpen&&this.$refs.searchPanel.refreshSliders(),this.eventBus.$emit(m.e.TOGGLE_MAIN_OVERLAY,{showOverlay:t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadingData",{get:function(){return this.searchesPending>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableInfiniteScroll",{get:function(){var t=this.searchResults.length;return this.loadingData||this.totalSearchResults===t||0===t||this.apiCallFailure},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noSearchResults",{get:function(){return!this.loadingData&&0===this.totalSearchResults},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadingNewSearch",{get:function(){return this.loadingData&&0===this.searchResults.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"searchResults",{get:function(){return this.$store.getters.searchResults},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalSearchResults",{get:function(){return this.$store.getters.totalSearchResults},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formattedTotalSearchResults",{get:function(){return this.totalSearchResults.toLocaleString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formattedMaxSearchResults",{get:function(){return this.maxSearchResults.toLocaleString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"boundSearchTab",{get:function(){return this.searchTab},set:function(t){var e=this;this.searchTab=t,this.$nextTick(function(){e.performSearch()})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"materialsEnabled",{get:function(){return!this.$isServer&&u.c.isFeatureEnabled(u.b.Search_Materials)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortSelection",{get:function(){return this.selectedSort},set:function(t){this.boundSortBy=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"boundSortBy",{get:function(){return this.sortBy},set:function(t){var e=this,n=t!==this.sortBy;this.sortBy=t,this.selectedSort=t,n&&this.$nextTick(function(){e.performSearch()})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableQuickViewButton",{get:function(){return u.c.getModelPreviewEnabled(this.$store)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerPanel",{get:function(){return this.isMounted?this.$refs.headerPanel:null},enumerable:!0,configurable:!0}),e.prototype.setupPageState=function(){this.searchTerms=f.g(this.$route.fullPath),this.searchTab=f.f(this.$route.fullPath),this.sortBy=f.h(this.$route.fullPath),this.sortSelection=this.sortBy,this.checkScrollBuffer()},e.prototype.performSearch=function(){var t=this;this.retryLoadResultsTimeout&&(clearTimeout(this.retryLoadResultsTimeout),this.retryLoadResultsTimeout=void 0),this.scrollStopped=!1,this.calculateScrollLimits();var e=this.generateSearchPath();this.$route.fullPath!==e&&(this.searchesPending++,this.$router.push(e,function(){t.searchesPending--},function(){t.searchesPending--}))},e.prototype.created=function(){this.setupPageState()},e.prototype.mounted=function(){var t=this;this.eventBus.$on(m.e.TOGGLE_LEFT_PANEL,function(e){t.toggleLeftPanel(e)}),this.eventBus.$on(m.e.PAGE_OVERLAY_CLICK,function(){t.toggleLeftPanel(!1)}),this.eventBus.$on(m.e.MODEL_QUICK_VIEW,function(e){t.openModelPreviewModal(e)}),this.$watch("$route",function(){this.setupPageState()}),this.debounceScroll=c()(this.checkScrollBuffer.bind(this),m.d.DEBOUNCE_SHORT),this.setupListeners(),this.isMounted=!0,this.scrollHelper=new h.a(this.getScrollElement(),this.scrollBufferMin),this.calculateScrollLimits(),this.checkScrollBuffer()},e.prototype.beforeDestroy=function(){this.destroyListeners()},e.prototype.setupListeners=function(){window.addEventListener("scroll",this.debounceScroll),window.addEventListener("resize",this.debounceScroll)},e.prototype.destroyListeners=function(){window.removeEventListener("scroll",this.debounceScroll),window.removeEventListener("resize",this.debounceScroll)},e.prototype.setupInfiniteScroll=function(t){this.destroyListeners(),this.debounceScroll=c()(this.checkScrollBuffer.bind(this),t),this.setupListeners()},e.prototype.openLeftPanel=function(){this.toggleLeftPanel(!0)},e.prototype.toggleLeftPanel=function(t){void 0===t&&(t=!this.showPageLeftPanel),this.showPageLeftPanel=t},e.prototype.loadMoreSearchResults=function(t){var e=this;if(!this.loadingData&&!this.scrollStopped){var n=this.$refs.searchPanel.getCurrentSearchParameters();n.offset=this.searchResults.length,n.count=t,this.searchesPending++,this.$store.dispatch("SEARCH",{searchParameters:n}).then(function(){e.searchesPending--,e.retryLoadResultsCount>0&&(e.setupInfiniteScroll(m.d.DEBOUNCE_SHORT),e.retryLoadResultsCount=0),setTimeout(function(){e.checkScrollBuffer()},0)},function(){0===e.retryLoadResultsCount&&e.setupInfiniteScroll(m.d.DEBOUNCE_LONG),e.searchesPending--,void 0===e.retryLoadResultsTimeout&&(e.retryLoadResultsTimeout=setTimeout(function(){if(e.retryLoadResultsCount+=1,e.retryLoadResultsCount>=m.d.INFINITE_SCROLL_MAX_ATTEMPTS){e.apiCallFailure=!0;var t={text:s.c.FAILED_TO_LOAD_SEARCH_FINAL},n=new p.c(t,p.b.ERROR);return e.$store.state.errors.currentSearchError=n,e.$store.commit("ADD_STATUS_NOTIFICATION",e.$store.state.errors.currentSearchError),e.retryLoadResultsCount=0,clearTimeout(e.retryLoadResultsTimeout),void(e.retryLoadResultsTimeout=void 0)}clearTimeout(e.retryLoadResultsTimeout),e.retryLoadResultsTimeout=void 0,e.checkScrollBuffer()},m.d.INFINITE_SCROLL_SET_TIMEOUT))})}},e.prototype.resetFilters=function(){this.$refs.searchPanel.resetFilters()},e.prototype.asyncData=function(t){var e=t.store,n=t.route,r=f.e(n.fullPath);return r.searchTerms=f.i(r.searchTerms),r.searchTab===f.a.SearchTab.COLLECTION&&(r.isEmpty=!1),e.dispatch("CLEAR_SEARCH"),e.dispatch("SEARCH",{searchParameters:r})},e.prototype.checkScrollBuffer=function(){if(!this.scrollStopped&&!this.disableInfiniteScroll&&this.isMounted){var t=this.searchResults.length;if(t>=this.scrollLimit)this.scrollStopped=!0;else this.scrollHelper.getScrollRemainder()=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.active=!1,e.row=-1,e.selection={value:"",label:""},e}return c(e,t),e.prototype.mounted=function(){this.updateState()},e.prototype.updateState=function(){if(this.currentRow=-1,this.items&&this.value)for(var t=0;t0&&!this.isActive&&(this.isActive=!0,this.$el.focus())},e.prototype.deactivate=function(){this.isActive&&(this.isActive=!1,this.$el.blur())},e.prototype.select=function(t,e){this.isActive&&(this.deactivate(),this.boundSelection.value!==t.value&&(this.boundSelection=t,this.currentRow=e,this.$emit("input",t.value)))},e.prototype.selectCurrent=function(){this.currentRow>=0&&this.select(this.items[this.currentRow],this.currentRow)},e.prototype.setCurrent=function(t){this.isActive&&t!==this.currentRow&&(t<0?t=this.items.length-1:t>=this.items.length&&(t=0),this.currentRow=t)},e.prototype.next=function(){this.setCurrent(this.currentRow+1)},e.prototype.prev=function(){this.setCurrent(this.currentRow-1)},e=u([s()({props:{items:Array,value:String,title:String,icon:String,id:String},watch:{items:function(){this.updateState()},value:function(){this.updateState()}},inheritAttrs:!1})],e)}(o.a);e.a=d},function(t,e,n){"use strict";var r,i=n(825),o=(n.n(i),n(2)),a=n.n(o),s=n(15),l=n(25),c=n(10),u=n(17),d=n(391),p=n(397),h=n(65),f=n(24),m=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.fetchModelFailed=!1,e.isLoading=!0,e.itemType="model",e.modelData=null,e.openOnMounted=!0,e.errorState=!1,e.errorText="",e}return m(e,t),e.prototype.mounted=function(){this.getModelData(this.modelId)},e.prototype.updateModelData=function(t){this.isLoading=!0,this.getModelData(t)},e.prototype.getModelData=function(t){var e=this,n=this.$store.getters.apiHandler.getEntity(t,{recordEvent:!0});this.modelId=t,n.then(function(t){t&&t!=={}||(e.fetchModelFailed=!0),e.modelData=new l.a(t),e.isLoading=!1,e.simpleMetaPanel()},function(t){e.fetchModelFailed=!0,e.surfaceError()})},e.prototype.downloadsCountShort=function(){var t=this.modelData;return this.formatUnitString(t.downloads)},e.prototype.likesCountShort=function(){return this.formatUnitString(this.modelData.likes)},e.prototype.viewsCountShort=function(){var t=this.modelData;return this.formatUnitString(t.views)},e.prototype.simpleMetaPanel=function(){this.componentCount=this.modelData.componentCount?this.modelData.componentCount.toLocaleString():"-",this.materialsCount=this.modelData.materialCount?this.modelData.materialCount.toLocaleString():"-",this.polygonCount=this.modelData.polygonCount?this.modelData.polygonCount.toLocaleString():"-",this.fileSizeCount=this.$tLabel(u.a(this.modelData.fileSize)).replace(" ",""),this.modifiedDate=u.b(this.modelData.lastModifiedDate)},e.prototype.surfaceError=function(){var t={text:c.c.DATA_LOAD_ERROR};this.errorText=this.$tLabel(t),this.errorState=!0,this.isLoading=!1},e.prototype.formatUnitString=function(t){var e=u.c(t||0);return this.$tLabel(e).replace(" ","")},e=v([a()({components:{DownloadButton:d.a,ErrorInContext:f.a,IconLock:p.a,ItemNotFound:h.a},props:{modelId:String}})],e)}(s.a);e.a=y},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(4),c=n(13),u=n(75),d=n(17),p=n(8),h=n(48),f=n(64),m=n(828),v=n(246),y=n(409),g=n(834),b=(n.n(g),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),_=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.searchParameters=null,e.searchTerms="",e.searchTermsToAdd="",e.searchTermsAsArray=[],e.polygonSliderMin=p.a.POLYGONS_MIN_BOUND,e.polygonSliderMax=p.a.POLYGONS_MAX_BOUND,e.polygonsMin=p.a.POLYGONS_MIN_BOUND,e.polygonsMax=p.a.POLYGONS_MAX_BOUND,e.polygonsDataFunction="pow",e.polygonsDataFunctionBase=3e3,e.fileSizeSliderMin=p.a.FILESIZE_MIN_BOUND,e.fileSizeSliderMax=p.a.FILESIZE_MAX_BOUND,e.fileSizeMin=p.a.FILESIZE_MIN_BOUND,e.fileSizeMax=p.a.FILESIZE_MAX_BOUND,e.matFileSizeSliderMin=p.a.MATERIAL_FILESIZE_MIN_BOUND,e.matFileSizeSliderMax=p.a.MATERIAL_FILESIZE_MAX_BOUND,e.matFileSizeMin=p.a.MATERIAL_FILESIZE_MIN_BOUND,e.matFileSizeMax=p.a.MATERIAL_FILESIZE_MAX_BOUND,e.modifyFromDate="",e.modifyToDate="",e.creatorName="",e.creatorId="",e.isCatalog=!1,e.isDynamicComponent=!1,e.isGeoLocated=!1,e.isProduct=!1,e.searchElasticsearch=!1,e.title="",e.lockSearch=!1,e.lockPolygonSlider=!0,e.fileSizeOpen=!0,e.matFileSizeOpen=!0,e.complexityOpen=!0,e.featuresOpen=!0,e.titleAuthorOpen=!1,e.modifiedOpen=!1,e}return b(e,t),Object.defineProperty(e.prototype,"eventBus",{get:function(){return this.$store.getters.eventBus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFileSizeOpen",{get:function(){return this.fileSizeOpen},set:function(t){this.fileSizeOpen=t,this.sliderAccordionToggled(this.$refs.modelFileSizeSlider,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMatFileSizeOpen",{get:function(){return this.matFileSizeOpen},set:function(t){this.matFileSizeOpen=t,this.sliderAccordionToggled(this.$refs.matFileSizeSlider,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isComplexityOpen",{get:function(){return this.complexityOpen},set:function(t){this.complexityOpen=t,this.sliderAccordionToggled(this.$refs.polygonSlider,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isModifiedOpen",{get:function(){return this.modifiedOpen},set:function(t){this.modifiedOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileSizeMinFormatted",{get:function(){var t=this.fileSizeMin*p.a.FILESIZE_BYTES_MULTIPLIER;return this.formatFileSize(t,p.a.FILESIZE_MAX_BOUND)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileSizeMaxFormatted",{get:function(){var t=this.fileSizeMax*p.a.FILESIZE_BYTES_MULTIPLIER;return this.formatFileSize(t,p.a.FILESIZE_MAX_BOUND)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matFileSizeMinFormatted",{get:function(){return this.formatFileSize(this.matFileSizeMin)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matFileSizeMaxFormatted",{get:function(){return this.formatFileSize(this.matFileSizeMax,p.a.MATERIAL_FILESIZE_MAX_BOUND)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygonsMinFormatted",{get:function(){return this.formatPolygonCount(this.polygonsMin)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygonsMaxFormatted",{get:function(){return this.polygonsMax===p.a.POLYGONS_MAX_BOUND?this.$t("Max"):this.formatPolygonCount(this.polygonsMax)},enumerable:!0,configurable:!0}),e.prototype.resetFilters=function(){var t=this;this.lockSearch=!0,this.polygonsMin=this.polygonSliderMin,this.polygonsMax=this.polygonSliderMax,this.fileSizeMin=this.fileSizeSliderMin,this.fileSizeMax=this.fileSizeSliderMax,this.matFileSizeMin=this.matFileSizeSliderMin,this.matFileSizeMax=this.matFileSizeSliderMax,this.modifyFromDate="",this.modifyToDate="",this.creatorName="",this.title="",this.isProduct=!1,this.isDynamicComponent=!1,this.isGeoLocated=!1,this.isCatalog=!1,this.$nextTick(function(){t.lockSearch=!1,t.submitSearch("reset")})},Object.defineProperty(e.prototype,"supportedFilters",{get:function(){return p.b.getSupportedFilters(this.searchTab)},enumerable:!0,configurable:!0}),e.prototype.setupPageState=function(){this.searchParameters=p.e(this.$route.fullPath),this.searchTerms=this.searchParameters.searchTerms,this.searchTermsAsArray=p.k(this.searchTerms),this.polygonsMin=this.searchParameters.polygonsMin,this.polygonsMax=this.searchParameters.polygonsMax,this.fileSizeMin=this.searchParameters.fileSizeMin,this.fileSizeMax=this.searchParameters.fileSizeMax,this.matFileSizeMin=this.searchParameters.matFileSizeMin,this.matFileSizeMax=this.searchParameters.matFileSizeMax,this.datesEqual(this.modifyFromDate,this.searchParameters.modifyFromDate)||(this.modifyFromDate=this.searchParameters.modifyFromDate),this.datesEqual(this.modifyToDate,this.searchParameters.modifyToDate)||(this.modifyToDate=this.searchParameters.modifyToDate),this.adminParams=this.searchParameters.adminParams,this.creatorName=this.searchParameters.creatorName,this.title=this.searchParameters.title,this.isProduct=this.searchParameters.isProduct,this.isDynamicComponent=this.searchParameters.isDynamicComponent,this.isGeoLocated=this.searchParameters.isGeoLocated,this.isCatalog=this.searchParameters.isCatalog,this.searchElasticsearch=this.searchParameters.searchElasticsearch,this.refreshSliders()},e.prototype.refreshSliders=function(){this.refreshSlider(this.$refs.polygonSlider),this.refreshSlider(this.$refs.modelFileSizeSlider),this.refreshSlider(this.$refs.matFileSizeSlider)},e.prototype.refreshSlider=function(t){null!=t&&null!=t.$el&&t.refresh()},e.prototype.sliderAccordionToggled=function(t,e){var n=this;e&&this.$nextTick(function(){n.refreshSlider(t)})},e.prototype.handleAdminParamsChanged=function(t){this.adminParams=t,this.submitSearch("adminParams")},e.prototype.created=function(){this.setupPageState()},e.prototype.mounted=function(){var t=this;this.lockSearch=!0,this.$watch("$route",function(){t.lockSearch=!0,t.setupPageState(),t.lockSearch=!1});for(var e=["isDynamicComponent","isGeoLocated","isCatalog","isProduct","modifyFromDate","modifyToDate"],n=function(n){var i=e[n];r.$watch(i,function(e){t.submitSearch(i)})},r=this,i=0;i=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.params={},e.adminOpen=!1,e.catsSliderMin=u.a.CATEGORIES_SCORE_MIN_BOUND,e.catsSliderStep=u.a.CATEGORIES_SCORE_STEP,e.catsSliderMax=u.a.CATEGORIES_SCORE_MAX_BOUND,e}return d(e,t),Object.defineProperty(e.prototype,"isAdminOpen",{get:function(){return this.adminOpen},set:function(t){this.adminOpen=t,this.refreshSliders()},enumerable:!0,configurable:!0}),e.prototype.created=function(){this.params=Object.assign({},this.value)},e.prototype.mounted=function(){var t=this;this.$watch("params.isAdultContent",function(e){t.submitSearch()}),this.params.defaultValues||(this.isAdminOpen=!0)},e.prototype.refreshSliders=function(){this.refreshSlider(this.$refs.categoriesScoreSlider)},e.prototype.refreshSlider=function(t){null!=t&&null!=t.$el&&t.refresh()},Object.defineProperty(e.prototype,"showAdminFilters",{get:function(){return this.supportedFilters.admin&&this.isAdminUser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportedFilters",{get:function(){return u.b.getSupportedFilters(this.searchTab)},enumerable:!0,configurable:!0}),e.prototype.submitSearch=function(){this.params.defaultValues=!1,this.$emit("changed",this.params)},e.prototype.addCategoryName=function(){var t=this.params.categoryName.trim();t=(t=t.toLowerCase()).replace(/ /g,"_"),this.params.categoryName=t,this.submitSearch()},e=p([s()({components:{AccordionItem:l.a,Slider:c.a},props:{value:Object,isAdminUser:Boolean,searchTab:String}})],e)}(o.a);e.a=h},function(t,e,n){"use strict";var r=n(410),i=n(832),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r,i,o=n(3),a=n.n(o),s=n(2),l=n.n(s),c=n(829),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a};!function(t){t.none="none",t.pow="pow",t.log="log"}(i||(i={}));var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="slider",e.values=[0,0],e.show=!1,e.options={dotSize:15,height:4,lazy:!0,realTime:!0,speed:0,tooltip:!1,clickable:!0,width:"auto",data:null,min:0,max:100,disabled:e.disabled,piecewise:!1,eventType:"auto",direction:"horizontal",reverse:!1,stopPropagation:!1,piecewiseLabel:!1,show:!0},e}return u(e,t),e.prototype.mounted=function(){this.function=this.dataFunction||"none";var t=this.convertIncomingValue(this.minValue||0),e=this.convertIncomingValue(this.maxValue||100);this.values=[t,e],this.show=!0,this.refresh()},Object.defineProperty(e.prototype,"boundStep",{get:function(){return this.step||1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this.maxBound-this.minBound},enumerable:!0,configurable:!0}),e.prototype.refresh=function(){var t=this;this.$nextTick(function(){t.$refs.slider.refresh()})},e.prototype.updateValues=function(t){var e=this.convertOutgoingValue(t[0]);e!==this.minValue&&this.$emit("update:minValue",e),(e=this.convertOutgoingValue(t[1]))!==this.maxValue&&this.$emit("update:maxValue",e),this.$emit("changed")},e.prototype.convertIncomingValue=function(t){if(this.function!==i.none){var e=this.percentOfRange(t);switch(this.function){case i.pow:e=this.logTransform(e);break;case i.log:e=this.powTransform(e)}t=this.valueFromPercent(e)}return t},e.prototype.convertOutgoingValue=function(t){if(this.function!==i.none){var e=this.percentOfRange(t);switch(this.function){case i.pow:e=this.powTransform(e);break;case i.log:e=this.logTransform(e)}t=this.fixValue(this.valueFromPercent(e))}return t},e.prototype.fixValue=function(t){var e=this.range,n=0;return e<=1?n=4:e<=10?n=3:e<=100?n=2:e<=1e3&&(n=1),parseFloat(t.toFixed(n))},e.prototype.powTransform=function(t){var e=this.dataFunctionBase;return(Math.pow(e,t)-1)/(e-1)},e.prototype.logTransform=function(t){var e=this.dataFunctionBase;return this.baseLog(e,t*(e-1)+1)},e.prototype.baseLog=function(t,e){return Math.log(e)/Math.log(t)},e.prototype.percentOfRange=function(t){return(t-this.minBound)/this.range},e.prototype.valueFromPercent=function(t){return this.range*t+this.minBound},e=d([l()({props:{minBound:Number,maxBound:Number,minValue:Number,maxValue:Number,disabled:Boolean,dataFunction:String,dataFunctionBase:Number,step:Number},components:{"vue-slider":c.a},watch:{values:{sync:!0,handler:function(t){this.$emit("update:minValue",this.convertOutgoingValue(t[0])),this.$emit("update:maxValue",this.convertOutgoingValue(t[1]))}},minValue:{sync:!0,handler:function(t){(t=this.convertIncomingValue(t))!==this.values[0]&&(this.values=[t,this.values[1]])}},maxValue:{sync:!0,handler:function(t){(t=this.convertIncomingValue(t))!==this.values[1]&&(this.values=[this.values[0],t])}}}})],e)}(a.a);e.a=p},function(t,e,n){"use strict";var r,i=n(3),o=n.n(i),a=n(2),s=n.n(a),l=n(12),c=n(830),u=(n.n(c),this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})),d=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="VueSliderComponent",e.isDragging=!1,e.size=0,e.currentValue=0,e.currentSlider=0,e}return u(e,t),Object.defineProperty(e.prototype,"dotWidthVal",{get:function(){return"number"==typeof this.dotWidth?this.dotWidth:this.dotSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dotHeightVal",{get:function(){return"number"==typeof this.dotHeight?this.dotHeight:this.dotSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"flowDirection",{get:function(){var t=this.direction;return this.reverse&&(t+="-reverse"),"vue-slider-"+t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDirection",{get:function(){var t=this.tooltipDir||("vertical"===this.direction?"left":"top");return Array.isArray(t)?this.isRange?t:t[1]:this.isRange?[t,t]:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipStatus",{get:function(){return"hover"===this.tooltip&&this.isDragging?"vue-slider-always":this.tooltip?"vue-slider-"+this.tooltip:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipClass",{get:function(){return["vue-slider-tooltip-"+this.tooltipDirection,"vue-slider-tooltip"]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return"none"===this.eventType||this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled?"vue-slider-disabled":""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRange",{get:function(){return Array.isArray(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slider",{get:function(){return this.isRange?[this.$refs.dot0,this.$refs.dot1]:this.$refs.dot},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimum",{get:function(){return this.data?0:this.min},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"val",{get:function(){if(this.data){var t,e=this.data;return this.isRange?[e[(t=this.currentValue)[0]],e[t[1]]]:e[t=this.currentValue]}return this.currentValue},set:function(t){if(this.data){var e=this.data;if(this.isRange){var n=t,r=e.indexOf(n[0]),i=e.indexOf(n[1]);r>-1&&i>-1&&(this.currentValue=[r,i])}else{var o=e.indexOf(t);o>-1&&(this.currentValue=o)}}else this.currentValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentIndex",{get:function(){return this.isRange?this.data?this.currentValue:[(this.currentValue[0]-this.minimum)/this.spacing,(this.currentValue[1]-this.minimum)/this.spacing]:(this.currentValue-this.minimum)/this.spacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indexRange",{get:function(){return this.isRange?this.currentIndex:[0,this.currentIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximum",{get:function(){return this.data?this.data.length-1:this.max},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){var t=this.interval.toString().split(".")[1];return t?Math.pow(10,t.length):1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this.data?1:this.interval},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"total",{get:function(){return this.data?this.data.length-1:(~~((this.maximum-this.minimum)*this.multiple)%(this.interval*this.multiple)!=0&&l.a.error("[Vue-slider warn]: Prop[interval] is illegal, please make sure that the interval can be divisible"),(this.maximum-this.minimum)/this.interval)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gap",{get:function(){return this.size/this.total},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){var t;return this.isRange?[((t=this.currentValue)[0]-this.minimum)/this.spacing*this.gap,(t[1]-this.minimum)/this.spacing*this.gap]:((t=this.currentValue)-this.minimum)/this.spacing*this.gap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"limit",{get:function(){if(this.isRange){var t=this.position;return[[0,t[1]],[t[0],this.size]]}return[0,this.size]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueLimit",{get:function(){if(this.isRange){var t=this.currentValue;return[[this.minimum,t[1]],[t[0],this.maximum]]}return[this.minimum,this.maximum]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapStyles",{get:function(){var t=this.dotHeightVal/2+"px",e=this.dotWidthVal/2+"px";return"vertical"===this.direction?{height:"number"==typeof this.height?this.height+"px":this.height,padding:t+" "+e}:{width:"number"==typeof this.width?this.width+"px":this.width,padding:t+" "+e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sliderStyles",{get:function(){return Array.isArray(this.sliderStyle)?this.isRange?this.sliderStyle:this.sliderStyle[1]:this.isRange?[this.sliderStyle,this.sliderStyle]:this.sliderStyle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipStyles",{get:function(){return Array.isArray(this.tooltipStyle)?this.isRange?this.tooltipStyle:this.tooltipStyle[1]:this.isRange?[this.tooltipStyle,this.tooltipStyle]:this.tooltipStyle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elemStyles",{get:function(){return"vertical"===this.direction?{width:this.width+"px",height:"100%"}:{height:this.height+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dotStyles",{get:function(){return"vertical"===this.direction?{width:this.dotWidthVal+"px",height:this.dotHeightVal+"px",left:(this.dotWidthVal-this.width)/-2+"px"}:{width:this.dotWidthVal+"px",height:this.dotHeightVal+"px",top:(this.dotHeightVal-this.height)/-2+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"piecewiseDotStyle",{get:function(){return"vertical"===this.direction?{width:this.width+"px",height:this.width+"px"}:{width:this.height+"px",height:this.height+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"piecewiseDotWrap",{get:function(){if(!this.piecewise&&!this.piecewiseLabel)return!1;for(var t=[],e=0;e<=this.total;e++){var n="vertical"===this.direction?{bottom:this.gap*e-this.width/2+"px",left:0}:{left:this.gap*e-this.height/2+"px",top:0},r=this.reverse?this.total-e:e,i=this.data?this.data[r]:this.spacing*r+this.min;t.push({style:n,label:this.formatter?this.formatting(i):i,inRange:r>=this.indexRange[0]&&r<=this.indexRange[1]})}return t},enumerable:!0,configurable:!0}),e.prototype.bindEvents=function(){window.addEventListener("resize",this.refresh)},e.prototype.bindMoveEvents=function(){document.addEventListener("touchmove",this.moving,!1),document.addEventListener("touchend",this.moveEnd,!1),document.addEventListener("mousemove",this.moving),document.addEventListener("mouseup",this.moveEnd),document.addEventListener("mouseleave",this.moveEnd)},e.prototype.unbindMoveEvents=function(){document.removeEventListener("touchmove",this.moving),document.removeEventListener("touchend",this.moveEnd),document.removeEventListener("mousemove",this.moving),document.removeEventListener("mouseup",this.moveEnd),document.removeEventListener("mouseleave",this.moveEnd)},e.prototype.unbindEvents=function(){window.removeEventListener("resize",this.refresh)},e.prototype.formatting=function(t){return"string"==typeof this.formatter?this.formatter.replace(/\{value\}/,t):this.formatter(t)},e.prototype.getPos=function(t){return this.realTime&&this.getStaticData(),"vertical"===this.direction?this.reverse?t.pageY-this.offset:this.size-(t.pageY-this.offset):this.reverse?this.size-(t.clientX-this.offset):t.clientX-this.offset},e.prototype.wrapClick=function(t){if(this.isDisabled||!this.clickable||this.isDragging)return!1;var e=this.getPos(t);if(this.isRange){var n=this.position;this.currentSlider=e>(n[1]-n[0])/2+n[0]?1:0}return this.setValueOnPos(e,!1),!0},e.prototype.moveStart=function(t,e){return this.stopPropagation&&t.stopPropagation(),!this.isDisabled&&(this.isRange&&(this.currentSlider=e),this.isDragging=!0,this.grabSlider(),this.$emit("drag-start",this),this.bindMoveEvents(),!0)},e.prototype.moving=function(t){return this.stopPropagation&&t.stopPropagation(),!!this.isDragging&&(t.preventDefault(),t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),this.setValueOnPos(this.getPos(t),!0),this.syncValue(!0),!0)},e.prototype.moveEnd=function(t){return this.unbindMoveEvents(),this.stopPropagation&&t.stopPropagation(),!!this.isDragging&&(this.$emit("drag-end",this),this.lazy&&this.syncValue(!1),this.isDragging=!1,this.grabSlider(),this.setPosition(0),!0)},e.prototype.grabSlider=function(){var t=this.slider;this.isRange?this.isDragging?(t[this.currentSlider].classList.add("grabbed"),t[1===this.currentSlider?0:1].classList.remove("grabbed")):t[this.currentSlider].classList.remove("grabbed"):this.isDragging?t.classList.add("grabbed"):t.classList.remove("grabbed")},e.prototype.setValueOnPos=function(t,e){var n=this.isRange?this.limit[this.currentSlider]:this.limit,r=this.isRange?this.valueLimit[this.currentSlider]:this.valueLimit;if(t>=n[0]&&t<=n[1]){this.setTransform(t);var i=(Math.round(t/this.gap)*(this.spacing*this.multiple)+this.minimum*this.multiple)/this.multiple;this.setCurrentValue(i,e)}else tthis.maximum)return!1;if(this.isRange){var n=this.currentValue;this.isDiff(n[this.currentSlider],t)&&(n.splice(this.currentSlider,1,t),this.isDragging||this.syncValue(!this.lazy))}else this.isDiff(this.currentValue,t)&&(this.currentValue=t,this.isDragging||this.syncValue(!this.lazy));return e||this.setPosition(0),!0},e.prototype.setIndex=function(t){if(Array.isArray(t)&&this.isRange){var e=void 0;e=this.data?[this.data[t[0]],this.data[t[1]]]:[this.spacing*t[0]+this.minimum,this.spacing*t[1]+this.minimum],this.setValue(e,!1,0)}else{if(t=this.spacing*t+this.minimum,this.isRange){var n=this.currentValue,r=(n[1]-n[0])/2+n[0];this.currentSlider=t>r?1:0}this.setCurrentValue(t,!1)}},e.prototype.setValue=function(t,e,n){var r=this;if(this.isDiff(this.val,t)){var i=this.limitValue(t);this.val=null!=i?this.isRange?i.concat():i:this.isRange?t.concat():t,this.syncValue(e)}this.$nextTick(function(){return r.setPosition(n)})},e.prototype.setPosition=function(t){if(this.isDragging||this.setTransitionTime(void 0===t?this.speed:t),this.isRange){var e=this.position,n=this.currentSlider;this.currentSlider=0,this.setTransform(e[0]),this.currentSlider=1,this.setTransform(e[1]),this.currentSlider=n}else{e=this.position;this.setTransform(e)}this.isDragging||this.setTransitionTime(0)},e.prototype.setTransform=function(t){var e=("vertical"===this.direction?this.dotHeightVal/2-t:t-this.dotWidthVal/2)*(this.reverse?-1:1),n="vertical"===this.direction?"translateY("+e+"px)":"translateX("+e+"px)",r=this.position,i=0===this.currentSlider,o=(i?r[1]-t:t-r[0])+"px",a=(i?t:r[0])+"px",s=this.$refs.process;this.isRange?(this.slider[this.currentSlider].style.transform=n,this.slider[this.currentSlider].style.webkitTransform=n,this.slider[this.currentSlider].style.msTransform=n,"vertical"===this.direction?(s.style.height=o,this.reverse?s.style.top=a:s.style.bottom=a):(s.style.width=o,this.reverse?s.style.right=a:s.style.left=a)):(this.slider.style.transform=n,this.slider.style.webkitTransform=n,this.slider.style.msTransform=n,"vertical"===this.direction?(s.style.height=t+"px",this.reverse?s.style.top="0":s.style.bottom="0"):(s.style.width=t+"px",this.reverse?s.style.right="0":s.style.left="0"))},e.prototype.setTransitionTime=function(t){var e=this.$refs.process,n=t+"s";if(this.isRange){for(var r=0;re.max?e.max:t});else{if(t>this.max)return this.max;if(t0?e("div",{staticClass:"error-reporter"},[e("transition",{attrs:{name:"error-fade",mode:"out-in",appear:""}},[e("error-card",{attrs:{error:this.currentNotification}})],1)],1):this._e()},i=[]},function(t,e,n){"use strict";var r=n(244),i=n(498),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"status-bar",class:{"status-active":t.showStatus}},[n("div",{staticClass:"status-bar-content"},[n("div",{staticClass:"status-message"},[t._v(t._s(t.statusMessage))]),t._v(" "),n("div",{staticClass:"status-dismiss modal-close-x",on:{click:function(e){t.dismissStatus()}}})])])},i=[]},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("router-view",{staticClass:"view"}),this._v(" "),e("div",{attrs:{id:"app-modal-container"}}),this._v(" "),e("error-reporter"),this._v(" "),e("status-bar"),this._v(" "),e("cookie-consent")],1)},i=[]},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i});var r=n(12),i={bind:function(e,n,r){var i=n.value;e.title=i,r.context&&r.context.$isServer||(e.setAttribute("data-tooltip","true"),e.setAttribute("data-disable-hover","false"),e.setAttribute("aria-haspopup","true"),e.setAttribute("data-trigger-class",""),e.setAttribute("data-position","bottom"),e.setAttribute("data-click-open","false"),e.setAttribute("data-show-on","client"),t(e).foundation())},update:function(e,n,i){if(n.oldValue!==n.value&&!(i.context&&i.context.$isServer)){var o=n.value;try{t(e).foundation("destroy"),e.title=o,e.setAttribute("data-tooltip","true"),e.setAttribute("data-disable-hover","false"),e.setAttribute("aria-haspopup","true"),e.setAttribute("data-trigger-class",""),e.setAttribute("data-position","bottom"),e.setAttribute("data-click-open","false"),e.setAttribute("data-show-on","client"),t(e).foundation()}catch(t){r.a.error("Failed to update tooltip binding: "+o)}}},unbind:function(e,n,r){r.context&&r.context.$isServer||t(e).foundation("destroy")}}}).call(e,n(11))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.install=function(t){t.prototype.$t=function(t,e){var n=this.$store,r=t;return n&&(r=function(t,e){var n=e;t&&t[e]&&(n=t[e]);return n}(n.getters.translations,t)),function(t,e){return t.replace(/\{\w+\}/g,function(t){var n=t.replace("{","").replace("}","");return void 0!==e[n]?e[n]:t})}(r,e)},t.prototype.$tLabel=function(t){return this.$t(t.text,t.replacements)}}},function(t,e,n){"use strict";e.a=function(){var t={mode:"history",fallback:!1,routes:[{path:"/internal/dam",component:p.a},{path:"/internal/dashboards",component:c.a},{path:"/internal/migrateuser",component:u.a},{name:l.h.COLLECTION,path:"/collection/:itemId/:title?",component:d.a},{name:l.h.MODEL_EDIT,path:"/edit/model/:itemId",component:h.a},{name:l.h.MATERIAL,path:"/material/:itemId/:title?",component:m.a},{name:l.h.MODEL,path:"/model/:itemId/:title?",component:v.a},{name:l.h.SEARCH,path:"/search/",component:y.a},{name:l.h.INDEX,path:"/",component:f.a}]};return new s.a(t)};var r=n(3),i=n.n(r),o=n(505),a=n.n(o),s=n(506),l=n(4),c=n(507),u=n(610),d=n(625),p=n(703),h=n(721),f=n(728),m=n(742),v=n(747),y=n(819);i.a.use(s.a),i.a.use(a.a)},,,function(t,e,n){"use strict";var r=n(245),i=n(609),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},,function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("input",{staticClass:"date-picker",attrs:{type:"text",id:this.id,name:this.name,placeholder:this.placeHolder}})},i=[]},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"small-6 medium-6 text-center column",attrs:{id:"footer-links"}},[n("span",{attrs:{id:"footer-copyright"}},[t._v("© "+t._s(t.currentYear)+" Trimble Inc")]),t._v(" "),n("span",[n("a",{attrs:{href:"http://www.trimble.com/privacy.aspx",target:"_blank",id:"privacy",title:t.$t("Privacy Policy")}},[t._v("\n "+t._s(t.$t("Privacy"))+"\n ")])]),t._v(" "),n("span",[n("a",{attrs:{href:"/tos.html",id:"footer-terms",title:t.$t("Terms of Use")}},[t._v(t._s(t.$t("Terms of Use")))])])]),t._v(" "),n("div",{staticClass:"small-4 medium-3 column"},[n("select",{attrs:{id:"language-selector"},domProps:{value:t.langCode},on:{input:function(e){t.setLanguage(e.target.value)}}},t._l(t.languages,function(e){return n("option",{key:e.code,domProps:{value:e.code}},[t._v("\n "+t._s(e.native)+"\n ")])}))])])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"small-2 medium-3 column"},[e("a",{attrs:{href:"http://www.trimble.com",target:"_blank",id:"footer-logo"}},[this._v("Trimble Inc.")])])}]},function(t,e){},,,,,,,,,,function(t,e,n){"use strict";n.d(e,"e",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s});var r="/warehouse",i="https://accounts.sketchup.com/",o="https://stg-accounts.sketchup.com/",a="/user/login",s="/user/logout"},function(t,e,n){"use strict";var r=n(255),i=n(530),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(256),i=n(527),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"default-news-item-container"})},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShow,expression:"shouldShow"}],staticClass:"news-item-container",class:{dismissed:t.dismissed},attrs:{id:"maintenance-message"}},[n("div",{staticClass:"content-container"},[t._v("\n "+t._s(t.$t("Please Note: This site is scheduled to undergo maintenance on {datetime}.",{datetime:t.timeOfMaintenance.toLocaleString()}))+"\n "),n("br"),t._v("\n "+t._s(t.$t("We expect the site to be down for approximately {duration} minutes. We apologize for any inconvenience.",{duration:t.getDuration()}))+"\n ")]),t._v(" "),n("span",{staticClass:"news-item-close-button modal-close-x",on:{click:t.onNewsItemClose}})])},i=[]},function(t,e,n){"use strict";var r=n(259),i=n(529),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShow,expression:"shouldShow"}],staticClass:"news-item-container",class:{dismissed:t.dismissed},attrs:{id:"sketchup2018"}},[n("div",{staticClass:"content-container"},[t._m(0),t._v(" "),n("div",[n("span",[n("a",{attrs:{id:"sketchup2018NewsItemLink1",href:t.externalSketchupUrl,target:"_new"}},[t._v("\n "+t._s(t.$t("Deliver work you’re incredibly proud of")+"."))])]),t._v(" "),n("br"),t._v(" "),n("span",[n("a",{attrs:{id:"sketchup2018NewsItemLink2",href:t.externalSketchupUrl,target:"_new"}},[t._v("\n "+t._s(t.$t("See what’s new in SketchUp Pro 2018…"))+"\n ")])])])]),t._v(" "),n("span",{staticClass:"news-item-close-button modal-close-x",on:{click:t.onNewsItemClose}})])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("img",{attrs:{src:"/static/img/desktop-icon.svg"}})])}]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"news-bar-container"}},[e("whatsnewnewsitem",{ref:"whatsnewnewsitem",on:{newsItemDismissed:this.onNewsItemDismissed}}),this._v(" "),e("maintenancenewsitem",{ref:"maintenancenewsitem",on:{newsItemDismissed:this.onNewsItemDismissed}})],1)},i=[]},function(t,e,n){"use strict";var r=n(260),i=n(593),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},,,function(t,e,n){"use strict";e.a=function(t){return n(535)(t,{allowedTags:[],allowedAttributes:[]})}},,,,,,,,,,function(t,e){},,function(t,e){},,,,,,function(t,e){},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},,,,,,,,,function(t,e){},,,,,,function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"searchbar row columns"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchTerms,expression:"searchTerms"}],class:{"non-empty":t.hasSearchTerms},attrs:{autofocus:t.autoFocus,id:"searchbar-input",type:"text",placeholder:t.$t("Search for Models or Collections")},domProps:{value:t.searchTerms},on:{keyup:t.onKeyUp,keydown:t.onKeyDown,input:function(e){e.target.composing||(t.searchTerms=e.target.value)}}}),t._v(" "),n("div",{staticClass:"searchbar-icon searchbar-search-icon"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"-1 -1 27 27"}},[t._v(' "stroke: inherit; stroke-width: 2; fill: none; fill-rule: evenodd; transform: translate(1.87 2.571)">\n '),n("ellipse",{attrs:{cx:"8.453",cy:"8.071",rx:"8.453",ry:"8"}}),t._v(" "),n("path",{attrs:{d:"M15.517 13.1l8.211 7.771a.532.532 0 0 1 0 .8l-.845.8a.607.607 0 0 1-.845 0l-8.272-7.714"}})])]),t._v(" "),n("div",{staticClass:"searchbar-icon searchbar-clear-icon",on:{click:t.clearSearchTerms}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26"}},[t._v(' "stroke: inherit; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; fill-rule: evenodd; transform: translate(1.87 2.571)">\n '),n("path",{attrs:{d:"M24.038 13.027c0 6.074-4.926 11-11 11-6.076 0-11-4.926-11-11 0-6.076 4.924-11 11-11 6.074 0 11 4.924 11 11zM17.28 8.785L8.795 17.27M17.28 17.27L8.795 8.786"}})])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showAutoSuggestions,expression:"showAutoSuggestions"}],staticClass:"search-auto-suggestions"},[n("ul",t._l(t.autoSuggestions,function(e,r){return n("li",{key:r,attrs:{selected:r===t.currentRow},on:{mouseenter:function(e){t.currentRow=r}}},[n("a",{attrs:{href:t.getSearchTermUrl(e)},on:{click:function(n){t.autoSuggestLinkClick(e)}}},[t._v(t._s(e))])])}))])])},i=[]},function(t,e,n){"use strict";var r=n(286),i=n(596),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"userBadge",staticClass:"sign-in-menu-item profile-menu",on:{mouseenter:t.onBadgeMouseEnter,mouseleave:t.onBadgeMouseLeave}},[n("a",{staticClass:"profile-button"},[n("img",{staticClass:"profile-thumbnail",attrs:{src:t.profileThumbnail}})]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showBadge,expression:"showBadge"}],staticClass:"profile-badge"},[t.isSignedIn?n("div",{staticClass:"profile-info"},[n("img",{staticClass:"profile-thumbnail",attrs:{src:t.profileThumbnail}}),t._v(" "),n("h2",{attrs:{title:t.currentUser.displayName}},[t._v(t._s(t.currentUser.displayName))]),t._v(" "),n("ul",[n("li",[n("a",{attrs:{href:t.modelsUrl}},[t._v(t._s(t.$t("My Models")))])]),t._v(" "),n("li",[n("a",{attrs:{href:t.collectionsUrl}},[t._v(t._s(t.$t("My Collections")))])]),t._v(" "),n("li",[n("a",{attrs:{href:t.editProfileUrl}},[t._v(t._s(t.$t("Edit Profile")))])])]),t._v(" "),n("div",[n("button",{staticClass:"lightup-button",on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.signOut(e)}}},[t._v("\n "+t._s(t.$t("Sign Out"))+"\n ")])])]):n("div",{staticClass:"profile-authentication"},[n("p",[t._v(t._s(t.$t("Get started on 3D Warehouse")))]),t._v(" "),n("button",{on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.signIn(e)}}},[t._v("\n "+t._s(t.$t("Sign In | Create Account"))+"\n ")])])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-header-container",class:{"single-news-item":t.singleNewsItemShown,"multiple-news-items":t.multipleNewsItemsShown}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPageOverlay,expression:"showPageOverlay"}],staticClass:"page-overlay",class:{"cover-header":t.coverHeader},attrs:{id:"pageOverlay"},on:{click:t.emitPageOverlayClick}}),t._v(" "),n("div",{staticClass:"page-header-panel"},[n("newsbar",{on:{newsItemsChanged:t.onNewsItemsChanged}}),t._v(" "),n("header",{on:{click:t.emitPageHeaderClick}},[n("nav",{staticClass:"top-bar",attrs:{"data-topbar":"",role:"navigation"}},[n("section",{staticClass:"top-bar-section"},[t._m(0),t._v(" "),n("div",{attrs:{id:"search-bar-container"}},[n("searchbar",{attrs:{autoFocus:t.autoFocusSearchBar}})],1),t._v(" "),n("div",{attrs:{id:"sign-in-menu-container"}},[t.useNewUpload&&!t.inClient?n("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Upload a Model"),expression:"$t('Upload a Model')"}],staticClass:"sign-in-menu-item",attrs:{href:"#",id:"upload-button"},on:{click:t.startUpload}}):n("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Upload a Model"),expression:"$t('Upload a Model')"}],staticClass:"sign-in-menu-item",attrs:{href:t.uploadUrl,id:"upload-button"}}),t._v(" "),n("userbadge",{staticClass:"sign-in-menu-item"})],1)])])])],1)])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"title-container"}},[e("a",{attrs:{href:"/",id:"warehouse-logo"}},[e("span",{staticClass:"logo",attrs:{id:"wh-logo"}})])])}]},function(t,e,n){"use strict";var r=n(287),i=n(602),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:this.loading,expression:"loading"}],staticClass:"loading"}),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:this.errorMessage,expression:"errorMessage"}],staticClass:"medium-text-center error"},[this._v("\n "+this._s(this.errorMessage)+"\n ")])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("div")},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dashboard-chart views-by-country-chart-container"},[e("div",{staticClass:"large-text-left"},[this._v("\n Views By Country\n ")]),this._v(" "),e("loading-and-errors",{attrs:{loading:this.loading,errorMessage:this.errorMessage}}),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!this.loading,expression:"!loading"}],attrs:{id:"views-by-country-chart"}})],1)},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dashboard-chart views-by-country-chart-container"},[e("div",{staticClass:"large-text-left"},[this._v("\n Downloads By Country\n ")]),this._v(" "),e("loading-and-errors",{attrs:{loading:this.loading,errorMessage:this.errorMessage}}),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!this.loading,expression:"!loading"}],attrs:{id:"downloads-by-country-chart"}})],1)},i=[]},function(t,e,n){"use strict";var r=n(292),i=n(604),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dashboard-chart popular-uploaders-table-container"},[e("div",{staticClass:"large-text-left"},[this._v("\n Popular Uploaders\n ")]),this._v(" "),e("loading-and-errors",{attrs:{loading:this.loading,errorMessage:this.errorMessage}}),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!this.loading,expression:"!loading"}],attrs:{id:"popular-uploader-table"}})],1)},i=[]},function(t,e,n){"use strict";var r=n(293),i=n(606),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dashboard-chart uploads-by-day-container"},[e("div",{staticClass:"large-text-left"},[this._v("\n Uploads By Day\n ")]),this._v(" "),e("loading-and-errors",{attrs:{loading:this.loading,errorMessage:this.errorMessage}}),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!this.loading,expression:"!loading"}],attrs:{id:"uploads-by-day-chart"}})],1)},i=[]},function(t,e,n){"use strict";var r=n(294),i=n(608),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dashboard-chart views-downloads-chart-container"},[e("div",{staticClass:"large-text-left"},[this._v("\n Views Downloads Likes\n ")]),this._v(" "),e("loading-and-errors",{attrs:{loading:this.loading,errorMessage:this.errorMessage}}),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!this.loading,expression:"!loading"}],attrs:{id:"views-downloads-chart"}})],1)},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dashboard-page"},[n("header-panel"),t._v(" "),n("main",{staticClass:"row columns"},[n("div",{staticClass:"small-3 column"},[n("div",{staticClass:"dashboards-date-picker"},[n("div",{staticClass:"row column filter-input"},[n("span",{staticClass:"dashboards-label column small-3"},[t._v(t._s(t.Start))]),t._v(" "),n("div",{staticClass:"column small-9"},[n("date-picker",{attrs:{name:"modifyFromDateFilter",id:"modifyFromDateFilter"},model:{value:t.modifyFromDate,callback:function(e){t.modifyFromDate=e},expression:"modifyFromDate"}})],1)]),t._v(" "),n("div",{staticClass:"row column filter-input"},[n("span",{staticClass:"dashboards-label column small-3"},[t._v(t._s(t.End))]),t._v(" "),n("div",{staticClass:"column small-9"},[n("date-picker",{attrs:{name:"modifyToDateFilter",id:"modifyToDateFilter"},model:{value:t.modifyToDate,callback:function(e){t.modifyToDate=e},expression:"modifyToDate"}})],1)])])]),t._v(" "),n("div",{staticClass:"column large-9"},[t.isAdminUser?n("div",[n("div",{staticClass:"warning-text large-text-center"},[t._v("\n ⚠ Warning: We are not optimized for these queries.\n They may take 5-10 minutes to finish.\n ")]),t._v(" "),n("views-downloads-chart",{attrs:{"from-date":t.modifyFromDate,"to-date":t.modifyToDate}}),t._v(" "),n("uploads-by-day-chart",{attrs:{"from-date":t.modifyFromDate,"to-date":t.modifyToDate}}),t._v(" "),n("popular-uploaders-table",{attrs:{"from-date":t.modifyFromDate,"to-date":t.modifyToDate}}),t._v(" "),n("views-by-country-chart",{attrs:{"from-date":t.modifyFromDate,"to-date":t.modifyToDate}}),t._v(" "),n("downloads-by-country-chart",{attrs:{"from-date":t.modifyFromDate,"to-date":t.modifyToDate}})],1):t.showInsufficientPermissions?n("div",[t._v("\n Admin privilages are required to view this page.\n ")]):t._e()])]),t._v(" "),n("footer-panel")],1)},i=[]},function(t,e,n){"use strict";var r=n(295),i=n(624),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},,,,,,,,,function(t,e,n){"use strict";var r=n(301),i=n(621),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"migrate-user-card"},[t.deleted?n("div",{staticClass:"deleted-overlay"},[t._v("Deleted")]):t._e(),t._v(" "),n("div",{staticClass:"user-info"},[n("label",{staticClass:"card-title"},[t._v(t._s(t.cardTitle))]),t._v(" "),n("table",[n("tbody",[n("tr",[n("td",[t._v("Email: ")]),t._v(" "),n("td",[t._v(t._s(t.emailAddress))])]),t._v(" "),n("tr",[n("td",[t._v("Display Name: ")]),t._v(" "),n("td",[t._v(t._s(t.displayName))])]),t._v(" "),n("tr",[n("td",[t._v("ID: ")]),t._v(" "),n("td",[n("a",{attrs:{href:"/user/"+t.id,target:"_blank"}},[t._v(t._s(t.id))])])]),t._v(" "),n("tr",[n("td",[t._v("Roles: ")]),t._v(" "),n("td",t._l(t.roles,function(e){return n("span",{key:e},[t._v(t._s(e)+" ")])}))]),t._v(" "),t.deleteUserButton?n("tr",[n("td",[t._v("Delete User: ")]),t._v(" "),n("td",[n("button",{staticClass:"alert button",attrs:{disabled:t.error||t.deleted},on:{click:t.deleteUser}},[t._v("Delete")])])]):t._e()])])])])},i=[]},function(t,e,n){"use strict";var r=n(302),i=n(623),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{className:"user-content-migrator"}},t._l(t.messageLogs,function(e){return n("div",[t._v("\n "+t._s(e)+"\n ")])}))},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"migrate-user-page"},[n("main",{staticClass:"row columns"},[n("div",[n("header",{staticClass:"page-title migrate-user-title"},[t._v("Migrate User")]),t._v(" "),t.isAdminUser?n("div",[n("div",[n("label",[t._v("From User (Email, Id or Url):")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.fromUserText,expression:"fromUserText"}],attrs:{required:"",type:"text",name:"from",placeholder:"Enter user to migrate from"},domProps:{value:t.fromUserText},on:{input:[function(e){e.target.composing||(t.fromUserText=e.target.value)},function(e){t.onFromUserInputDebounce()}]}})]),t._v(" "),n("div",[n("label",[t._v("To User (Email, Id or Url):")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.toUserText,expression:"toUserText"}],attrs:{required:"",type:"text",name:"to",placeholder:"Enter user to migrate to"},domProps:{value:t.toUserText},on:{input:[function(e){e.target.composing||(t.toUserText=e.target.value)},function(e){t.onToUserInputDebounce()}]}})]),t._v(" "),n("div",[n("label",{directives:[{name:"show",rawName:"v-show",value:t.enterUsersPromptShown,expression:"enterUsersPromptShown"}]},[t._v("Please enter a valid 'From' and 'To' user.")]),t._v(" "),n("div",[t.fromUser?n("migrate-user-card",t._b({attrs:{cardTitle:"From user",deleteUserButton:!0}},"migrate-user-card",t.fromUser,!1)):t.fromUserError?n("label",{staticClass:"error"},[t._v("ERROR: "+t._s(t.fromUserError))]):t._e()],1),t._v(" "),n("div",[t.toUser?n("migrate-user-card",t._b({attrs:{cardTitle:"To user"}},"migrate-user-card",t.toUser,!1)):t.toUserError?n("label",{staticClass:"error"},[t._v("ERROR: "+t._s(t.toUserError))]):t._e()],1)]),t._v(" "),n("div",[n("button",{directives:[{name:"show",rawName:"v-show",value:t.migrateUserButtonShown,expression:"migrateUserButtonShown"}],staticClass:"migrate-user-button button",on:{click:t.performMigrateUser}},[t._v("Confirm migrate user")])]),t._v(" "),n("div",[n("user-content-migrator",{ref:"migrator"})],1)]):t.showInsufficientPermissions?n("div",[t._v("\n Admin privilages are required to migrate users.\n ")]):t._e()])])])},i=[]},function(t,e,n){"use strict";var r=n(303),i=n(702),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";e.a=function(t){var e=new m,n=t.element;e.identifier=n.id,e.accessMode="visual",e.name=a.d(n.title),e.url=t.baseUrl+n.detailsPageUrl,e.encodingFormat="SKP",e.publisher=(r=new f,r.name="Trimble, Inc.",r.url="https://3dwarehouse.sketchup.com",r.description="The place to share and download SketchUp 3D models for architecture, design, construction, and fun.",r),n.description&&(e.description=a.d(n.description));var r;e.author=new u,e.author.name=a.d(n.creatorDisplayName),e.author.url=t.baseUrl+a.d(n.creatorPageUrl),t.creator&&(e.author.description=a.d(t.creator.description));e.image=n.largeThumbnailUrl||n.thumbnailUrl||void 0,e.dateCreated=o.a.utc(n.createdDate,s.a.RESPONSE_TIME_FORMAT),e.dateModified=o.a.utc(n.lastModifiedDate,s.a.RESPONSE_TIME_FORMAT),n.tags&&(e.keywords="",n.tags.forEach(function(t){e.keywords.length>0&&(e.keywords+=","),e.keywords+=a.d(t)}));n.externalUrl&&(e.mainEntityOfPage=a.d(n.externalUrl));switch(n.subjectClass){case"collection":!function(t,e){var n=t;e.image=n.thumbnailUrl}(n,e);break;case"entity":!function(t,e,n){var r=t;e.embedUrl="",e.contentSize=r.fileSize.toString(),r.geolocated&&(e.contentLocation=new p,e.contentLocation.geo=new d,e.contentLocation.geo.elevation=r.location.altitude,e.contentLocation.geo.latitude=r.location.latitude,e.contentLocation.geo.longitude=r.location.longitude);n.isProduct&&(e.isBasedOn=function(t){var e=new v,n=t.element;e.identifier=n.id,e.name=a.d(n.title),e.url=t.baseUrl+n.detailsPageUrl,e.description=n.description,e.image=n.largeThumbnailUrl||n.thumbnailUrl||void 0,n.externalUrl&&(e.mainEntityOfPage=a.d(n.externalUrl));return e}(n))}(n,e,t);break;case"material":!function(t,e){var n=t;e.image=n.thumbnailUrl}(n,e)}return e},e.b=function(t){var e=t.clone("http://schema.org");return JSON.stringify(e)};var r,i=n(0),o=n.n(i),a=n(30),s=n(8),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){function t(t){void 0===t&&(t="Thing"),this.type=t}return t.prototype.clone=function(t){return{"@context":t||void 0,"@type":this.type,description:this.description?this.description:void 0,identifier:this.identifier?this.identifier:void 0,image:this.image?this.image:void 0,mainEntityOfPage:this.mainEntityOfPage?this.mainEntityOfPage:void 0,name:this.name?this.name:void 0,url:this.url?this.url:void 0}},t}(),u=function(t){function e(){return t.call(this,"Person")||this}return l(e,t),e.prototype.clone=function(e){return t.prototype.clone.call(this,e)},e}(c),d=function(t){function e(){return t.call(this,"GeoCoordinates")||this}return l(e,t),e.prototype.clone=function(e){var n=t.prototype.clone.call(this,e);return n.elevation=this.elevation?this.elevation:void 0,n.latitude=this.latitude?this.latitude:void 0,n.longitude=this.longitude?this.longitude:void 0,n},e}(c),p=function(t){function e(){return t.call(this,"Place")||this}return l(e,t),e.prototype.clone=function(e){var n=t.prototype.clone.call(this,e);return n.geo=this.geo?this.geo.clone(null):void 0,n},e}(c),h=function(t){function e(){return t.call(this,"QuantitativeValue")||this}return l(e,t),e.prototype.clone=function(e){var n=t.prototype.clone.call(this,e);return n.unitCode=this.unitCode?this.unitCode:void 0,n.unitText=this.unitText?this.unitText:void 0,n.value=this.value?this.value:void 0,n},e}(c),f=function(t){function e(){return t.call(this,"Organization")||this}return l(e,t),e.prototype.clone=function(e){return t.prototype.clone.call(this,e)},e}(c),m=function(t){function e(){return t.call(this,"MediaObject")||this}return l(e,t),e.prototype.clone=function(e){var n=t.prototype.clone.call(this,e);return n.accessMode=this.accessMode?this.accessMode:void 0,n.author=this.author?this.author instanceof u?this.author.clone(null):this.author:void 0,n.commentCount=this.commentCount?this.commentCount:void 0,n.contentLocation=this.contentLocation?this.contentLocation.clone(null):void 0,n.contentSize=this.contentSize?this.contentSize:void 0,n.dateCreated=this.dateCreated?this.dateCreated.format("YYYY-MM-DD"):void 0,n.dateModified=this.dateModified?this.dateModified.format("YYYY-MM-DD"):void 0,n.embedUrl=this.embedUrl?this.embedUrl:void 0,n.encodingFormat=this.encodingFormat?this.encodingFormat:void 0,n.isBasedOn=this.isBasedOn?this.isBasedOn.clone(null):void 0,n.keywords=this.keywords?this.keywords:void 0,n.publisher=this.publisher?this.publisher.clone(null):void 0,n},e}(c),v=function(t){function e(){return t.call(this,"Product")||this}return l(e,t),e.prototype.clone=function(e){var n=t.prototype.clone.call(this,e);return n.brand=this.brand?this.brand instanceof c?this.brand.clone(null):this.brand:void 0,n.category=this.category?this.category:void 0,n.color=this.color?this.color:void 0,n.depth=this.depth?this.depth instanceof h?this.depth.clone(null):this.depth:void 0,n.height=this.height?this.height instanceof h?this.height.clone(null):this.height:void 0,n.logo=this.logo?this.logo:void 0,n.manufacturer=this.manufacturer?this.manufacturer instanceof f?this.manufacturer.clone(null):this.manufacturer:void 0,n.material=this.material?this.material:void 0,n.mpn=this.mpn?this.mpn:void 0,n.productID=this.productID?this.productID:void 0,n.releaseDate=this.releaseDate?this.releaseDate.format("YYYY-MM-DD"):void 0,n.sku=this.sku?this.sku:void 0,n.weight=this.weight?this.weight instanceof h?this.weight.clone(null):this.weight:void 0,n.width=this.width?this.width instanceof h?this.width.clone(null):this.width:void 0,n},e}(c)},function(t,e,n){"use strict";var r=n(307),i=n(635),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"modal",staticClass:"modal-dialog"})},i=[]},function(t,e,n){"use strict";var r=n(310),i=n(632),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;this._self._c;return this._m(0)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"license-content",attrs:{id:"license-content"}},[n("h1",[t._v("3D Warehouse: General Model License Agreement")]),t._v(" "),n("p",[t._v("Last updated: March 18, 2015")]),t._v(" "),n("p",[n("strong",[t._v("© 2015 Trimble Inc.  All rights\n reserved.")]),n("br"),t._v(" "),n("a",{attrs:{href:"http://www.trimble.com/copyrights.aspx",target:"_blank"}},[n("strong",[t._v("Copyright\n & Trademarks")])])]),t._v(" "),n("p",[t._v("By purchasing, downloading, or using any Model created by a third party\n developer or Trimble (as applicable, the "),n("strong",[t._v("“Developer”\n ")]),t._v(") and made available to you from 3D Warehouse, you agree to the\n terms of this General Model License Agreement ("),n("strong",[t._v("“License\n Agreement”")]),t._v("). "),n("strong",[t._v("“Model”")]),t._v(" means the\n individual, separate three-dimensional model of an object created,\n designed and developed by a Developer including related content and\n information about or included with the model and made available on\n Trimble’s SketchUp 3D Warehouse ("),n("strong",[t._v("“3D Warehouse”")]),t._v(").")]),t._v(" "),n("h2",[t._v("1. License Grant")]),t._v(" "),n("ol",{attrs:{type:"A"}},[n("li",[n("span",{staticClass:"underline"},[t._v("Limited License to Models")])]),t._v(" "),n("p",[t._v("Subject to the provisions of this License Agreement (including, but not\n limited to, the license restrictions set forth below), the Developer\n grants you a limited, worldwide, royalty-free, non-transferable and\n non-exclusive license (without the right to sublicense) to download,\n reproduce, adapt, make derivative works based on, modify, publish,\n publicly display and perform, distribute, make, sell, offer to sell,\n import, and use Models for the uses expressly authorized below. Please\n see "),n("a",{attrs:{href:"http://help.sketchup.com/en/article/3000049",target:"_blank"}},[t._v("the\n 3D Warehouse Terms of Use FAQs")]),t._v(" for examples of these authorized uses.\n If you desire to use the Models in a manner not expressly authorized in\n this License Agreement, you must submit a request to Trimble at\n 3dwarehouse-tou@sketchup.com and receive Trimble’s prior written\n consent before doing so.")]),t._v(" "),n("li",[n("span",{staticClass:"underline"},[t._v("Authorized Uses")])]),t._v(" "),n("p",[t._v("The license to the Models granted above is limited to:")]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("li",[t._v("Creating derivative works of Models ("),n("strong",[t._v("“Creations”")]),t._v("),\n including by substantially modifying geometry, color, or other\n attributes of the Models, provided that if you upload any Creation to\n the 3D Warehouse, you will be a Developer under the 3D Warehouse Terms\n of Use and such Creation shall constitute a “Model” under\n the Terms of Use;")]),t._v(" "),n("li",[t._v("Incorporating or including Models and Creations into a larger work\n or a deliverable for a third party ("),n("strong",[t._v("“Combined\n Work”")]),t._v("), provided that the Combined Work includes\n substantial additional content to the original Model;")]),t._v(" "),n("li",[t._v("Distributing Models, Creations, and Combined Works to third parties\n for your business purposes (including for commercial purposes);")]),t._v(" "),n("li",[t._v("Making a reasonable number of copies of the Models, Creations, and\n Combined Works in connection with the above uses; and")]),t._v(" "),n("li",[t._v("Using the Models as Trimble may approve from time to time in its\n sole discretion.")])])]),t._v(" "),n("h2",[t._v("2. License Restrictions")]),t._v(" "),n("p",[t._v("You may not, and you may not permit anyone else to:")]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("li",[t._v("remove, obscure or alter any product identification, proprietary,\n copyright, trademark or other notices contained in the Model or\n accessed in conjunction with or through the Model;")]),t._v(" "),n("li",[t._v("claim or misrepresent ownership of any Model which you did not create\n or develop;")]),t._v(" "),n("li",[t._v("use the Model in violation of any applicable laws or regulations or\n for any unlawful purpose;")]),t._v(" "),n("li",[t._v("sell, offer to sell, make or distribute any individual Model on a\n standalone basis, unless you are the Developer of such Model or\n otherwise authorized to do so by Trimble or the Developer;")]),t._v(" "),n("li",[t._v("use any Models, Creations or Combined Works in a manner that competes\n with 3D Warehouse (including aggregating such content in another online\n warehouse or similar product or service); or")]),t._v(" "),n("li",[t._v("aggregate any content (including Models) obtained from 3D Warehouse\n for redistribution, or use or distribute any content obtained from\n 3D Warehouse in a mapping or geographic application or service, except\n as expressly authorized under this License Agreement.")])]),t._v(" "),n("p",[t._v("You agree to prevent any unauthorized copying of the Models. You agree to\n adhere to any posted instructions, directions or limitations on usage\n and reproduction of Models. You will be responsible for any costs incurred\n by Trimble or any other party (including attorneys’ fees) as a result\n of your misuse of the Models.")]),t._v(" "),n("h2",[t._v("3. Google Geolocated Models")]),t._v(" "),n("p",[t._v("Notwithstanding anything to the contrary in this License Agreement, if\n you are using a Google Geolocated Model, you are only licensed to\n reproduce, adapt, modify, translate, publish, publicly perform, publicly\n display, distribute and use such Model and you shall not use or incorporate\n such Model in any application, product, service, database or repository.\n "),n("strong",[t._v("“Google Geolocated Models”")]),t._v(" are Models\n Distributed through 3D Warehouse by Google Inc. (or by Trimble on\n Google’s behalf) that constitute a 3D model of an object, building\n or other structure with a fixed location that is tagged or otherwise\n associated with the actual geolocation of such object, building or other\n structure.")]),t._v(" "),n("h2",[t._v("4. Proprietary Rights")]),t._v(" "),n("p",[t._v("All Models are licensed, not sold and any reference in this License\n Agreement to selling or purchasing Models shall mean selling or purchasing\n a license. You acknowledge and agree that:")]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("li",[t._v("the Model contains proprietary and confidential information that is\n protected by applicable intellectual property and other laws; and")]),t._v(" "),n("li",[t._v("the applicable Developer owns all right, title and interest in and to\n the Model, including without limitation all Intellectual Property Rights\n therein.")])]),t._v(" "),n("p",[n("strong",[t._v("“Intellectual Property Rights”")]),t._v(" means any and\n all rights existing from time to time under patent law, copyright law,\n trade secret law, trademark law, and any and all other proprietary rights,\n and any and all applications, renewals, extensions and restorations thereof,\n now or hereafter in force and effect worldwide.")]),t._v(" "),n("h2",[t._v("5. Termination of this License")]),t._v(" "),n("p",[t._v("You may terminate this License Agreement at any time by manually deleting\n the Model from your computer.")]),t._v(" "),n("p",[t._v("If you violate this License Agreement, your authorization and license to\n use the Model shall automatically terminate and you must immediately\n discontinue use of and destroy any downloaded Model.")]),t._v(" "),n("p",[t._v("Sections 2 (License Restrictions), 4 (Proprietary Rights), 6 (Warranty\n Disclaimer), 7 (Dangerous Activities) and 8 (Limitation of Liability) will\n survive any termination or expiration of this License Agreement.")]),t._v(" "),n("h2",[t._v("6. Warranty Disclaimer")]),t._v(" "),n("p",[t._v("The Developer does not warrant that the Model is up-to-date, that the\n Model will meet your needs, that any defects or errors will be corrected,\n or that the Model is free of viruses or other harmful components. Your use\n of the Model is at your sole risk.")]),t._v(" "),n("p",[t._v("THE MODEL IS PROVIDED “AS IS” AND “AS AVAILABLE”\n WITH ALL FAULTS AND WITHOUT WARRANTY BY THE DEVELOPER OF ANY KIND, EITHER\n EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, SATISFACTORY\n QUALITY, TITLE, NONINFRINGEMENT OF INTELLECTUAL PROPERTY, OR FITNESS FOR A\n PARTICULAR PURPOSE.")]),t._v(" "),n("h2",[t._v("7. Dangerous Activities")]),t._v(" "),n("p",[t._v("The Model is not intended for use in the operation of nuclear facilities,\n life support systems, emergency communication, aircraft navigation or\n communication systems, air traffic control systems, technical building or\n structural design, power plant design or operation, or any other such\n activities in which the failure of the Model could lead to death, personal\n injury, or severe physical or environmental damages.")]),t._v(" "),n("h2",[t._v("8. Limitation of Liability")]),t._v(" "),n("p",[t._v("YOU EXPRESSLY UNDERSTAND AND AGREE THAT THE DEVELOPER SHALL NOT BE LIABLE\n TO YOU FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR\n EXEMPLARY DAMAGES, INCLUDING BUT NOT LIMITED TO, DAMAGES FOR LOSS OF\n PROFITS, GOODWILL, USE, DATA OR OTHER INTANGIBLE LOSSES (EVEN IF THE\n DEVELOPER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES) RESULTING\n FROM: (i) THE USE OR THE INABILITY TO USE THE MODEL; (ii) THE COST OF\n PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; OR (iii) ANY OTHER MATTER\n RELATING TO THE MODEL. THE FOREGOING LIMITATIONS SHALL APPLY\n NOTWITHSTANDING A FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY AND\n TO THE FULLEST EXTENT PERMITTED BY LAW.")]),t._v(" "),n("p",[t._v("THESE LIMITATIONS AND EXCLUSIONS APPLY WITHOUT REGARD TO WHETHER DAMAGES\n ARISE FROM BREACH OF CONTRACT OR WARRANTY, NEGLIGENCE OR ANY OTHER CAUSE\n OF ACTION. TO THE EXTENT THAT APPLICABLE LAW DOES NOT PROHIBIT SUCH\n EXCLUSIONS AND LIMITATIONS, IN NO EVENT WILL THE DEVELOPER’S TOTAL\n LIABILITY TO YOU FOR ALL DAMAGES, LOSSES AND CAUSES OF ACTION, WHETHER IN\n CONTRACT, STRICT LIABILITY, TORT (INCLUDING NEGLIGENCE) OR OTHERWISE,\n EXCEED THE AMOUNT YOU PAID FOR THE LICENSE TO THE MODEL.")]),t._v(" "),n("h2",[t._v("9. U.S. Government Restricted Rights")]),t._v(" "),n("p",[t._v("Use, duplication or disclosure of Models, related documentation, and\n related computer software, computer software documentation, and technical\n data by the U.S. Government is subject to the restrictions set forth in\n this License Agreement, and as applicable, as provided in FAR 12.211 and\n 12.212, as amended, FAR 52.227-14 (ALT III) (May 2014), FAR 52.227-19\n (DEC 2007), DFARS 227.7202-1(a) and (c) and 227.7202-3(a) (both effective\n 1995), DFARS 252.227-2013 (FEB 2014), DFARS 252.227-2014 (FEB 2014), and\n DFARS 252.227-7015 (FEB 2014).")]),t._v(" "),n("h2",[t._v("10. Export Restrictions")]),t._v(" "),n("p",[t._v("The Model may be subject to export controls or restrictions by the United\n States or other countries or territories. You agree to:")]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("li",[t._v("comply with the requirements of the U.S. Department of Commerce (DOC)\n Export Administration Regulations (EAR) (see\n {sp}"),n("a",{attrs:{href:"http://www.bis.doc.gov",target:"_blank"}},[t._v("http://www.bis.doc.gov")]),t._v(") and all\n applicable international, national, state, regional and local laws, and\n regulations, including without limitation any applicable import and use\n restrictions,")]),t._v(" "),n("li",[t._v("not export, or re-export, directly or indirectly, the Model to any\n country outlined in the EAR, nor to any person or entity on the DOC\n Denied Persons, Entities and Unverified Lists, the U.S. Department of\n State’s Debarred List, or on the U.S. Department of Treasury’s\n lists of Specially Designated Nationals, Specially Designated Narcotics\n Traffickers, or Specially Designated Terrorists, ")]),t._v(" "),n("li",[t._v("not export, or re-export the Model to any military entity not approved\n under the EAR, or to any other entity for any military purpose, and ")]),t._v(" "),n("li",[t._v("not license, sell, provide or distribute the Model for use in\n connection with chemical, biological, or nuclear weapons or missiles\n capable of delivering such weapons.")])]),t._v(" "),n("h2",[t._v("11. Governing Law")]),t._v(" "),n("p",[t._v("This License Agreement and all related actions and proceedings is\n governed by the laws of the state of residence of the Developer and the\n United States without regard to conflicts of laws provisions thereof, and\n without regard to the United Nations Convention on the International Sale\n of Goods. The jurisdiction and venue for actions related to the subject\n matter of this License Agreement shall be the state and federal courts\n located in the county of residence of the Developer, and each party hereby\n submits to the personal jurisdiction of such courts.")])])}]},function(t,e,n){"use strict";var r=n(311),i=n(634),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;this._self._c;return this._m(0)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"terms-content"},[n("h1",[t._v("3D Warehouse: Terms of Use")]),t._v(" "),n("p",[t._v("Last updated: April 1, 2017")]),t._v(" "),n("p",[n("strong",[t._v("© 2017 Trimble Inc.  All rights\n reserved.")]),n("br"),t._v(" "),n("a",{attrs:{href:"http://www.trimble.com/copyrights.aspx",target:"_blank"}},[n("strong",[t._v("Copyright\n & Trademarks")])])]),t._v(" "),n("p",[t._v("No portion of this web site or the service may be reproduced in any form,\n or by any means, except as authorized below, without prior written\n permission from Trimble Inc.")]),t._v(" "),n("h2",[t._v("1. Acceptance of Terms Through Use; Changes to Terms of Use")]),t._v(" "),n("p",[n("strong",[t._v("Welcome to 3D Warehouse.")]),t._v(" Trimble Inc.\n (“"),n("strong",[t._v("Trimble")]),t._v("”) makes available 3D Warehouse and\n any other element of this website or subdomains (collectively, "),n("strong",[t._v("\n “3D Warehouse”")]),t._v(") only upon your acceptance of these\n Terms of Use ("),n("strong",[t._v("“Terms of Use”")]),t._v(").")]),t._v(" "),n("p",[t._v("PLEASE READ THESE TERMS OF USE CAREFULLY BEFORE USING OR ACCESSING 3D\n WAREHOUSE OR DOWNLOADING OR ACCESSING MODELS. YOUR USE OF 3D WAREHOUSE\n INDICATES YOUR AGREEMENT TO BE BOUND BY ALL TERMS, CONDITIONS, AND NOTICES\n CONTAINED OR REFERENCED IN THE CURRENTLY POSTED TERMS OF USE. IF YOU DO NOT\n AGREE TO THESE TERMS OF USE, YOU MAY NOT USE 3D WAREHOUSE.")]),t._v(" "),n("p",[n("strong",[t._v("Changes to Terms:")]),t._v(" Please note that Trimble reserves the\n right to update and change these Terms of Use from time to time in its\n discretion and will post a notice on 3D Warehouse when these Terms of Use\n have changed. Please also check these Terms of Use periodically for changes.\n Your continued use of 3D Warehouse following the posting of any changes to\n these Terms of Use will confirm your acceptance of those changes. These\n Terms of Use constitute a binding, legal agreement between you and Trimble\n and are intended to have the same force and effect as if you signed them.\n 3D Warehouse and other services are only available to persons who can form\n legally binding contracts under applicable law. If you do not qualify, you\n may not use 3D Warehouse. A current copy of these Terms of Use can be\n accessed and viewed at any time from the home page of 3D Warehouse or at "),n("a",{attrs:{href:"https://3dwarehouse.sketchup.com/tos.html#terms",target:"_blank"}},[t._v("\n https://3dwarehouse.sketchup.com/tos.html")]),t._v(".")]),t._v(" "),n("h2",[t._v("2. Use of 3D Warehouse")]),t._v(" "),n("p",[t._v("Subject to these Terms of Use, you may use 3D Warehouse to view, search,\n locate, download, and Distribute Models. Trimble reserves the right to\n refuse access to 3D Warehouse to anyone at any time in its sole\n discretion.")]),t._v(" "),n("p",[n("strong",[t._v("“Models”")]),t._v(" are individual, separate\n three-dimensional models of objects created, designed, and developed by\n you or a third-party (a "),n("strong",[t._v("“Developer”")]),t._v(") or by\n Trimble and include related content and information about or included\n with the Models. Trimble is not responsible for any Developer Models.\n "),n("strong",[t._v(" “Distribute”")]),t._v(" means to submit, upload, distribute, sell\n (upon Trimble's implementation of payment systems) and/or license Models\n you have created to end users.")]),t._v(" "),n("p",[t._v("Currently all Models are made available and Distributed through 3D\n Warehouse free of charge. If Trimble implements a payment system, Trimble\n will post additional terms to these Terms of Use describing the ways in\n which Models may be purchased and sold through 3D Warehouse.")]),t._v(" "),n("p",[t._v("To download and use the Models, you need software that is compatible\n with the Model (for which Trimble or the applicable manufacturer may\n charge a separate fee) and a computer device with Internet access; such\n requirements may change from time-to-time and are your responsibility.")]),t._v(" "),n("h2",[t._v("3. User Accounts")]),t._v(" "),n("ol",[n("li",{attrs:{type:"A"}},[n("span",{staticClass:"underline"},[t._v("Account Creation.")])]),t._v(" "),n("p",[t._v("Upon signing in to 3D Warehouse the first time, you need to create an\n account. Currently, you may create a 3D Warehouse account by signing in\n with a valid Google ID (a username/password combination used to access\n your Google account) or Trimble ID (a username/password combination\n issued by Trimble). To sign in using a Google ID, you must authorize\n Google to share account information with Trimble and you must maintain\n your Google ID in good standing subject to any separate user terms\n between you and Google. The authentication information Google provides\n to Trimble or you provide to Trimble may contain personally identifiable\n information, which will be handled by Trimble as described below, and we\n may publicly display the username and profile photo (if any) associated\n with your Trimble or Google user account.")]),t._v(" "),n("p",[t._v("You are entirely responsible for maintaining the confidentiality of\n your password and account credentials, and you agree that Trimble may\n terminate your access to 3D Warehouse and other services if you fail to\n do so. Additionally, you are fully responsible for any and all\n activities that occur under your account. You agree to notify Trimble\n immediately of any unauthorized use of your account or any other breach\n of security. Trimble will not be liable for any loss that you may incur\n as a result of someone else using your password or account, either with\n or without your knowledge.")]),t._v(" "),n("li",{attrs:{type:"A"}},[n("span",{staticClass:"underline"},[t._v("Your Personal Information.")])]),t._v(" "),n("p",[t._v("Personally identifiable information that you may submit for the\n purpose of receiving products or services or for creating or\n authenticating your user account will be handled in accordance with\n Trimble’s online "),n("a",{attrs:{href:"http://www.trimble.com/privacy.aspx",target:"_blank"}},[t._v("\n Privacy Statement")]),t._v(", and may be used or shared by Trimble as necessary\n to fulfill your access to a Model or provide any related services or as\n otherwise set forth in these Terms of Use.")])]),t._v(" "),n("h2",[t._v("4. Age Restrictions")]),t._v(" "),n("p",[t._v("You may not register for a user account or use 3D Warehouse to Distribute\n Models if you are under 13 years of age unless we have verified parental\n consent.")]),t._v(" "),n("h2",[t._v("5. Third Party Models, Products and Services")]),t._v(" "),n("p",[t._v("Some of the 3D Warehouse Materials (defined below in Section 10) may\n be provided or owned by third parties. Trimble does not endorse,\n guarantee or provide a warranty for the third party 3D Warehouse\n Materials and may or may not review them for compliance with law\n (copyright, patent or any other laws) or Trimble policies. Use of a\n third party Model is governed by the License Terms Applicable to Models\n set forth below. TRIMBLE DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES\n AND SPECIFICALLY DISCLAIMS ANY LIABILITY WITH REGARD TO MODELS POSTED BY\n THIRD PARTIES (AND ANY ACTION YOU TAKE BASED ON THEM).")]),t._v(" "),n("h2",[t._v("6. Trimble Proprietary Products and Services")]),t._v(" "),n("p",[t._v("Trimble’s obligations with respect to its own, proprietary\n products and services are governed solely by the terms and conditions\n of agreements under which Trimble provides them to you. If you obtain a\n Trimble proprietary product or service through 3D Warehouse that is\n provided without an agreement, that product or service is provided\n “AS-IS” with no warranties whatsoever, express or implied,\n and your use of that Trimble product or service is at your own risk.")]),t._v(" "),n("p",[t._v("Nothing herein grants you any license, rights, title or interest in or\n to the Trimble SketchUp software which is licensed to you pursuant to a\n separate agreement ("),n("strong",[t._v("“SketchUp License Agreement”\n ")]),t._v("). Trimble may update, fix or upgrade the SketchUp software\n from time-to-time without notice and such changes may affect compatibility\n or interoperability of your Model. Your right, if any, to receive such\n updates, fixes or upgrades is dependent upon and governed by the terms of\n the applicable SketchUp License Agreement between you and Trimble.")]),t._v(" "),n("h2",[t._v("7. License Terms Applicable to Models")]),t._v(" "),n("p",[t._v("Your use of a Model you download or use is governed by these Terms of\n Use and the General Model License available "),n("a",{attrs:{href:"#license"}},[t._v("here ")]),t._v("\n ("),n("strong",[t._v("“General Model License”")]),t._v("). Any Model provided\n under the General Model License is provided “AS-IS” with no\n warranties whatsoever, express or implied, and your use of that Model is\n at your own risk.")]),t._v(" "),n("h2",[t._v("8. Availability of Models")]),t._v(" "),n("p",[t._v("Trimble or any Developer may modify, update or remove any Model they have\n published to 3D Warehouse at any time in their discretion. "),n("strong",[t._v("Trimble\n may also remove any Model from 3D Warehouse if it discovers that such\n Model (or related Developer) violates these Terms of Use, any other\n Trimble policy or applicable law.")])]),t._v(" "),n("h2",[t._v("9. Distribution of Models through 3D Warehouse")]),t._v(" "),n("ol",{attrs:{type:"A"}},[n("li",[n("span",{staticClass:"underline"},[t._v("Qualifications and Distribution Terms.")])]),t._v(" "),n("p",[t._v("Subject to your compliance with these Terms of Use and any applicable\n Developer guidelines, qualifications and requirements of Trimble for\n Models ("),n("strong",[t._v("“Qualifications”")]),t._v("), you may\n Distribute your Models to end users through 3D Warehouse, and you will\n then be deemed a “Developer” under these Terms. Trimble\n is not responsible for any Models you Distribute.")]),t._v(" "),n("p",[t._v("Trimble may in its discretion set and revise from time-to-time\n Qualifications regarding the criteria and procedures for Trimble to\n accept and authorize each Model submitted for Distribution through\n 3D Warehouse. Trimble may choose to waive or impose additional\n Qualifications for a particular Model in its discretion. Trimble may\n decline to make a Model available on 3D Warehouse for any reason or\n no reason.")]),t._v(" "),n("p",[t._v("Until such time as Trimble has implemented payment systems for 3D\n Warehouse, you are free to charge for Models you Distribute via\n other channels, provided that you are solely responsible for any such\n activities. In such cases, you shall be solely liable for processing\n end user payments, administration of applicable refunds or chargebacks\n and remittal and collection of all applicable taxes. If Trimble\n implements payment systems for 3D Warehouse, your sale of Models shall\n be subject to the subsequently released version of these Terms of Use.")]),t._v(" "),n("p",[t._v("You may remove a Model you previously posted from 3D Warehouse at any\n time provided that removal shall not affect the license granted to end\n users who downloaded that Model before you removed it and those\n licenses will continue under the terms of the General Model License.\n Although Trimble will not continue Distribution of your Models after\n you remove them, Trimble may retain archive copies for record keeping\n purposes.")]),t._v(" "),n("li",[n("span",{staticClass:"underline"},[t._v("Grant of Licenses.")]),t._v(" Distributors grant\n two licenses to their Models as follows:")]),t._v(" "),n("p",[n("strong",[t._v("To Trimble.")]),t._v(" For all Models you Distribute on or\n through 3D Warehouse, you hereby grant to Trimble a nonexclusive,\n worldwide, perpetual, transferrable (with the right to sublicense\n through multiple tiers), irrevocable license (under all applicable\n intellectual property rights) to copy, publicly perform and display,\n use, distribute, create derivative works of, store, promote, market,\n support, transmit, and otherwise make available on or through 3D\n Warehouse each Model and related content, including without limitation\n as necessary to promote, operate and make available 3D Warehouse and any\n related Trimble products or services. The foregoing license includes the\n rights for Trimble to make available Models (or any parts, related\n content or derivative works thereof) through Trimble’s partners and\n sublicensees.")]),t._v(" "),n("p",[n("strong",[t._v("To the End User.")]),t._v(" You will make your Models available\n to end users pursuant to the General Model License.")]),t._v(" "),n("li",[n("span",{staticClass:"underline"},[t._v("Title and Ownership.")])]),t._v(" "),n("p",[t._v("As between you and Trimble, except for the limited license rights\n granted herein, all right, title and interest in and to the Models you\n Distribute shall remain yours.")]),t._v(" "),n("li",[n("span",{staticClass:"underline"},[t._v("Trimble Not Responsible for Your Models.")])]),t._v(" "),n("p",[t._v("Trimble does not and will not endorse, guarantee or provide a warranty\n for your Models and may or may not review them for compliance with law\n (copyright, patent or any other laws) or Trimble policies or\n Qualifications. Distribution of your Models on 3D Warehouse is at your\n own risk.")]),t._v(" "),n("li",[n("span",{staticClass:"underline"},[t._v("Representations and Warranties.")])]),t._v(" "),n("p",[t._v("You represent and warrant that you have all intellectual property\n rights, including patent, copyright, trademark, trade secret, right of\n privacy or publicity or other proprietary rights, in and to each Model\n you Distribute and its related content. If your Model or content\n includes third-party materials or content, you represent and warrant\n that you have the right to Distribute the third-party materials or\n content or otherwise grant Trimble all rights and licenses to such\n Model set forth in subsection (B) above. You shall not Distribute\n Models unless you are the owner of such Models and/or have all the\n necessary rights or permissions from applicable third parties.")])]),t._v(" "),n("h2",[t._v("10. 3D Warehouse Materials; Use Restrictions")]),t._v(" "),n("ol",{attrs:{type:"A"}},[n("li",[n("span",{staticClass:"underline"},[t._v("Proprietary Rights.")])]),t._v(" "),n("p",[t._v("Trimble or its licensors reserve all right, title and interest\n (including intellectual property rights) in and to 3D Warehouse and the\n content and other information available on 3D Warehouse (excluding User\n Communications (defined below)) and the Models (except the Models you\n have posted) (collectively, "),n("strong",[t._v("“3D Warehouse Materials”\n ")]),t._v("). Trimble’s rights are protected by worldwide copyright\n laws and international copyright treaties, as well as other intellectual\n property laws and treaties. All rights not expressly granted under\n these Terms of Use are retained by Trimble or its licensors.\n Unauthorized use of 3D Warehouse Materials may violate copyright,\n trademark and other intellectual property rights and laws. Models and\n any other software made available on 3D Warehouse are licensed, not\n sold and any reference in these Terms of Use to selling or purchasing\n software or Models shall mean selling or purchasing a license.")]),t._v(" "),n("li",[n("span",{staticClass:"underline"},[t._v("Use Restrictions")])]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("p",[t._v("You may not:")]),t._v(" "),n("li",[t._v("Modify 3D Warehouse Materials (other than your User Communications\n or Models or content you posted) or use them for any public display,\n performance, sale, rental or for any commercial purpose except as\n expressly authorized in these Terms of Use or the General Model\n License;")]),t._v(" "),n("li",[t._v("Decompile, reverse engineer, or disassemble 3D Warehouse Materials\n that is software (except and only to the extent permitted by\n applicable law, and then only with advance notice to Trimble);")]),t._v(" "),n("li",[t._v("Remove or modify any copyright or other proprietary or legal\n notices from 3D Warehouse Materials; or")]),t._v(" "),n("li",[t._v("Redistribute or transfer 3D Warehouse Materials to another person\n except as expressly authorized in these Terms of Use or the General\n Model License.")])]),t._v(" "),n("li",[n("span",{staticClass:"underline"},[t._v("Conduct")])]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("p",[t._v("As a condition of your use of 3D Warehouse you agree that you will\n not use 3D Warehouse Materials for any purpose that is unlawful or\n prohibited by these Terms of Use, or any other Trimble policy\n ("),n("strong",[t._v("“Misuse”")]),t._v("). You will be responsible for\n any costs incurred by Trimble or any other party (including\n attorneys’ fees) as a result of your Misuse of 3D Warehouse\n Materials.")]),t._v(" "),n("p",[t._v("Misuse includes, but is not limited to:")]),t._v(" "),n("li",[t._v("Using 3D Warehouse Materials to disseminate or convey inappropriate,\n defamatory, obscene, salacious, or unlawful information, images or\n content; or to harass, stalk, threaten or otherwise violate the legal\n rights of others;")]),t._v(" "),n("li",[t._v("Using 3D Warehouse Materials in such a manner so as to interfere\n unreasonably with its use by others;")]),t._v(" "),n("li",[t._v("Attempting or assisting another to access, alter, or interfere with\n the communications and/or information of another user;")]),t._v(" "),n("li",[t._v("Scraping information from 3D Warehouse;")]),t._v(" "),n("li",[t._v("Account fraud or unauthorized access of an account;")]),t._v(" "),n("li",[t._v("Uploading, or otherwise making available, any Models or any other\n 3D Warehouse Materials, including files that contain text, images,\n photographs, software or other content owned by others, in any manner\n that infringes any copyright, trademark, patent, trade secret or other\n proprietary right of others;")]),t._v(" "),n("li",[t._v("Advertising, offering to sell or buy goods (other than Models, if\n applicable), or using 3D Warehouse Materials for business promotional\n purposes, except as expressly permitted by Trimble or the General\n Model License;")]),t._v(" "),n("li",[t._v("Violating any code of conduct associated with 3D Warehouse, or any\n applicable laws or regulations;")]),t._v(" "),n("li",[t._v("Taking any action that imposes an unreasonable or disproportionately\n large load on 3D Warehouse infrastructure; or uploading files that\n contain viruses, Trojan horses, worms, or other similar software or\n programs that cause damage to computers or property of others; or")]),t._v(" "),n("li",[t._v("Using any messaging functionality made available through 3D\n Warehouse to send communications which would violate applicable law\n (including, but not limited to, the CAN-SPAM Act of 2003) or which\n contain content or materials of the type prohibited in subsections (i),\n (vi), (vii) or (ix) above.")])])]),t._v(" "),n("h2",[t._v("11. User Posted Materials")]),t._v(" "),n("p",[t._v("3D Warehouse may include feedback, ratings and review mechanisms,\n messaging functionality and other ways in which users can post, upload,\n interact with, share and submit materials (e.g., text, images, data,\n etc.) (collectively, "),n("strong",[t._v("“User Communications”")]),t._v(").\n USER COMMUNICATIONS WILL BE CONSIDERED NON-CONFIDENTIAL AND NON-PROPRIETARY\n AND BY POSTING, UPLOADING, INPUTTING, OPTING TO SHARE, OR OTHERWISE\n SUBMITTING ANY USER COMMUNICATIONS TO 3D WAREHOUSE, YOU UNDERSTAND AND\n AGREE THAT:")]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("li",[t._v("You are granting Trimble, its designees and sub-licensees, consent and\n permission to use your User Communications, including without limitation,\n worldwide, royalty-free, non-exclusive, perpetual license rights with\n right of sublicense to disclose, reproduce, store, display and perform\n (publicly or otherwise), publish, adapt, modify, transmit, distribute,\n have distributed, edit, translate, reformat, create derivative works\n based on and otherwise use such User Communications; and")]),t._v(" "),n("li",[t._v("You represent and warrant that you own or otherwise control all of the\n rights to your User Communications and that your User Communications\n will not infringe or violate the rights of any third party.\n\n "),n("p",[t._v("If you use the\n “Contact Me” functionality provided by 3D Warehouse to send\n private messages to other users, you acknowledge and agree that those\n other users will be able to see your name and email address in the “reply\n to” field of your message, view the contents of your message and\n respond directly to the email address associated with your account.")])])]),t._v(" "),n("p",[t._v("Trimble shall have no obligation to monitor User Communications\n (including other users’ responses to private messages).")]),t._v(" "),n("p",[t._v("Trimble reserves the right at all times to disclose any information as\n Trimble deems necessary to satisfy any applicable law, regulation, legal\n process or governmental request or to review, edit, refuse to post, or to\n remove any User Communications, in whole or in part, in Trimble’s\n sole discretion.")]),t._v(" "),n("p",[t._v("TRIMBLE DOES NOT CONTROL OR ENDORSE THE CONTENT, MESSAGES OR INFORMATION\n FOUND IN ANY USER COMMUNICATIONS AND, THEREFORE, TRIMBLE MAKES NO\n REPRESENTATIONS OR WARRANTIES REGARDING USER COMMUNICATIONS AND\n SPECIFICALLY DISCLAIMS ANY LIABILITY WITH REGARD TO THEM (AND ANY ACTION\n YOU TAKE BASED ON THEM) AND ANY ACTIONS OR CLAIMS RESULTING FROM YOUR\n PARTICIPATION IN ANY SERVICES.")]),t._v(" "),n("p",[t._v("Please note: Trimble has no obligation to remove any User Communications\n that you have opted to input and share absent Trimble’s receipt of\n your written request to do so. You may submit a request for removal\n of your shared User Communications from the applicable forum or webpage\n to the email address designated for such purpose or to\n 3dwarehouse-tou+comms@sketchup.com. Trimble does not guarantee that it\n will be able to remove all instances of your User Communications and\n removal will not affect any licenses granted in connection with your User\n Communications prior to the time of their removal.")]),t._v(" "),n("h2",[t._v("12. Ratings and Reviews of Models")]),t._v(" "),n("ol",{attrs:{type:"A"}},[n("li",[n("span",{staticClass:"underline"},[t._v("In General.")])]),t._v(" "),n("p",[t._v("3D Warehouse may have functionality to allow you to rate and provide\n reviews of or comments about Models, including by indicating you\n “like” a Model through a button, widget or similar\n mechanism, all of which constitute User Communications hereunder. To\n be useful to other users, your reviews and comments must be made in\n good faith after reasonable evaluation of a Model. In addition, reviews\n may not contain content that constitutes Misuse, that is false,\n fraudulent or misleading or that impersonates any other person or entity,\n including any of Trimble’s employees. All ratings and reviews must\n comply with these Terms of Use, and Trimble may take down ratings or\n reviews or block reviewers in the event of a violation of these Terms\n of Use.")]),t._v(" "),n("li",[n("span",{staticClass:"underline"},[t._v("Terms Specific to Developers.")])]),t._v(" "),n("p",[t._v("Trimble shall have no responsibility for ratings or to monitor ratings,\n but may use the ratings to determine the placement of Models, to change\n the placement from time-to-time, or to remove Models in Trimble’s\n discretion.")]),t._v(" "),n("p",[t._v("Any action you take based on any rating is at your own risk and in your\n sole discretion.")]),t._v(" "),n("p",[t._v("If you post a review of your own Model, you must disclose your identity\n and the fact that the Model being reviewed is your Model. If you pay or\n otherwise incent others to post a review of your Model, you must require\n that party to disclose that fact in their review. If you post a review\n of a competitor’s Model, you must disclose your identity and the\n fact that you publish a competitive Model.")])]),t._v(" "),n("h2",[t._v("13. Aggregated Information; Feedback")]),t._v(" "),n("p",[t._v("In addition to Trimble’s other rights, Trimble may collect\n aggregated information regarding your interaction with 3D Warehouse and\n Models (excluding any personally identifiable information) and may\n exploit and use such aggregated information for any purpose without\n restriction. Trimble may freely use, copy, disclose, prepare derivative\n works based on, publicly perform or display, distribute and exploit any\n feedback, bug reports or suggestions you provide to Trimble (including\n in User Communications) regarding 3D Warehouse Materials or other Trimble\n products and services, without any obligation, royalty or restriction\n based on intellectual property rights or otherwise.")]),t._v(" "),n("h2",[t._v("14. Termination Rights for Violations; Removal of Content and\n Discontinuation of Service")]),t._v(" "),n("p",[t._v("Trimble may suspend your account or stop providing Models or services to\n you if Trimble is investigating suspected misconduct or Misuse. If you or\n your Models violate these Terms of Use, Qualifications (if applicable), or\n applicable Trimble policies or laws, or interfere with 3D Warehouse in any\n way:")]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("li",[t._v("Trimble reserves the right to seek all remedies available in law and\n equity for such violations;")]),t._v(" "),n("li",[t._v("Trimble may terminate these Terms of Use with you, remove your Models\n from 3D Warehouse, and/or suspend or terminate your account;")]),t._v(" "),n("li",[t._v("Any authorization and license you have to use and/or Distribute the\n Models and to use or access other 3D Warehouse Materials shall\n automatically terminate; and")]),t._v(" "),n("li",[t._v("You must immediately discontinue use of and destroy any downloaded\n Models or other 3D Warehouse Materials, including in any Combined\n Work.")])]),t._v(" "),n("p",[t._v("Trimble further reserves the right to remove 3D Warehouse Materials or\n discontinue services available on 3D Warehouse with or without notice, to\n terminate your authorization to use any services or 3D Warehouse Materials,\n to terminate your password, if any, and to delete any one or more of your\n related accounts, for any reason or for no reason, immediately and at any\n time. Trimble accepts no responsibility for such deleted or removed 3D\n Warehouse Materials.")]),t._v(" "),n("h2",[t._v("15. 3D Warehouse Messaging")]),t._v(" "),n("p",[t._v("You agree that Trimble may contact you with messages sent from time to\n time through your personal computer, mobile phone or other wireless\n device delivered using SMS-based text messages, email messages or other\n communication mechanisms, in situations when such contact is required to\n respond to your User Communications, send you service announcements or\n administrative messages, inform you about material events concerning you\n and your account, or send marketing communications describing new 3D\n Warehouse features or highlight featured content to you. You may opt out of\n those Trimble marketing communications at any time by updating your\n account preferences.")]),t._v(" "),n("h2",[t._v("16. Indemnification")]),t._v(" "),n("p",[t._v("Upon a request by Trimble, you agree to defend, indemnify and hold\n harmless Trimble and its affiliates, agents, suppliers and third parties,\n and its and their employees, contractors, officers and directors from all\n liabilities, claims and expenses, including attorneys’ fees, that\n arise from:")]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("li",[t._v("Your use or misuse of 3D Warehouse Materials")]),t._v(" "),n("li",[t._v("Distribution of your Models")]),t._v(" "),n("li",[t._v("Violation of the Qualifications")]),t._v(" "),n("li",[t._v("Intellectual property infringement by your Models")]),t._v(" "),n("li",[t._v("Your use of any Models you have downloaded")]),t._v(" "),n("li",[t._v("Your breach of the General Model License associated with Models you\n have downloaded")])]),t._v(" "),n("p",[t._v("Trimble reserves the right, at its own expense, to assume the exclusive\n defense and control of any matter otherwise subject to indemnification by\n you, in which event you agree to cooperate with Trimble in asserting any\n available defenses. You may not settle any claim without the prior\n written consent of Trimble in each case.")]),t._v(" "),n("h2",[t._v("17. No Exclusivity")]),t._v(" "),n("p",[t._v("Trimble does not represent or warrant that Models developed by Trimble or\n submitted by Developers will not contain features or functionality that\n are the same as or similar to those in other Models available on 3D\n Warehouse and neither these Terms of Use nor your participation in 3D\n Warehouse limits Trimble’s or any Developer’s right to develop\n or have developed for its products, concepts, systems or techniques that\n are similar to or compete with any Model or any other products, concepts,\n systems or techniques contemplated by or embodied in information you\n disclose to Trimble. Trimble does not grant you exclusivity of any kind.")]),t._v(" "),n("h2",[t._v("18. Warranty Disclaimer")]),t._v(" "),n("p",[t._v("Trimble assumes no responsibility for the accuracy of 3D Warehouse\n Materials; nor does Trimble warrant that 3D Warehouse Materials are\n up-to-date, that 3D Warehouse Materials will meet your needs, that 3D\n Warehouse Materials will be available at any particular time or location,\n that any defects or errors will be corrected, or that 3D Warehouse\n Materials are free of viruses or other harmful components. Your use of\n 3D Warehouse Materials and Distribution of Models is at your sole risk.\n Mention of non-Trimble products or services is for information purposes\n only and constitutes neither an endorsement nor a recommendation.")]),t._v(" "),n("p",[t._v("3D WAREHOUSE MATERIALS ARE PROVIDED “AS IS” AND “AS\n AVAILABLE” WITH ALL FAULTS AND WITHOUT WARRANTY BY TRIMBLE OF ANY\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY,\n SATISFACTORY QUALITY, TITLE, NONINFRINGEMENT OF INTELLECTUAL PROPERTY, OR\n FITNESS FOR A PARTICULAR PURPOSE.")]),t._v(" "),n("h2",[t._v("19. Limitation of Liability")]),t._v(" "),n("p",[t._v("IN NO EVENT SHALL TRIMBLE, ITS SUPPLIERS OR OTHER DEVELOPERS BE LIABLE\n TO YOU FOR ANY DIRECT, THIRD PARTY, INDIRECT, SPECIAL, CONSEQUENTIAL, OR\n INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR\n REVENUES, BUSINESS INTERRUPTION, COSTS OF REPLACEMENT GOODS, LOSS OR\n DAMAGE TO DATA ARISING OUT OF THE USE OF OR INABILITY TO USE OR\n DISTRIBUTE MODELS THROUGH 3D WAREHOUSE, 3D WAREHOUSE MATERIALS, OR ANY\n OTHER TRIMBLE PRODUCT OR SERVICE, OR DAMAGES RESULTING FROM USE OF OR\n RELIANCE ON THE INFORMATION PRESENT ON 3D WAREHOUSE), EVEN IF TRIMBLE, ITS\n SUPPLIERS OR OTHER DEVELOPERS HAVE BEEN ADVISED OF THE POSSIBILITY OF\n SUCH DAMAGES. BECAUSE SOME JURISDICTIONS PROHIBIT THE EXCLUSION OR\n LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE\n ABOVE LIMITATION MAY NOT APPLY TO YOU. THE EXCLUSION OF DAMAGES IS\n INDEPENDENT OF ANY REMEDY PROVIDED UNDER THESE TERMS OF USE AND SURVIVES\n IN THE EVENT SUCH REMEDY FAILS OF ITS ESSENTIAL PURPOSE OR IS OTHERWISE\n DEEMED UNENFORCEABLE.")]),t._v(" "),n("p",[t._v("THESE LIMITATIONS AND EXCLUSIONS APPLY WITHOUT REGARD TO WHETHER DAMAGES\n ARISE FROM BREACH OF CONTRACT OR WARRANTY, NEGLIGENCE OR ANY OTHER CAUSE\n OF ACTION. TO THE EXTENT THAT APPLICABLE LAW DOES NOT PROHIBIT SUCH\n EXCLUSIONS AND LIMITATIONS, IN NO EVENT WILL TRIMBLE’S TOTAL\n LIABILITY TO YOU FOR ALL DAMAGES, LOSSES AND CAUSES OF ACTION, WHETHER IN\n CONTRACT, STRICT LIABILITY, TORT (INCLUDING NEGLIGENCE) OR OTHERWISE,\n EXCEED FIFTY DOLLARS (U.S. $50).")]),t._v(" "),n("p",[t._v("Trimble does not assume and will not have any liability arising from\n events beyond Trimble’s control or the control of its\n subcontractors, other Developers, business partners or licensors, including\n events such as acts of God, acts of any governmental entity, acts of a\n public enemy, strikes, natural disasters, or failure or diminishment of\n power or telecommunications or data networks or services.")]),t._v(" "),n("h2",[t._v("20. Links to Third Party Web Sites")]),t._v(" "),n("p",[t._v("3D Warehouse may contain links to third party web sites whether provided\n by Trimble or a user of 3D Warehouse. Access to any other web site linked\n to 3D Warehouse is at the user’s own risk. Trimble does not control,\n and is not responsible for, the accuracy or reliability of any information,\n content, data, opinions, advice or statements made on those web sites, or\n about any products found at those web sites, or about any search results\n that may be obtained from using them. Trimble provides these links merely\n as a convenience and the inclusion of such links does not imply an\n endorsement.")]),t._v(" "),n("h2",[t._v("21. Linking to 3D Warehouse")]),t._v(" "),n("p",[t._v("You may create links to 3D Warehouse from other web sites, but only in\n accordance with the following guidelines (or other guidelines that Trimble\n may provide from time to time) and in compliance with applicable law. A\n web site that links to 3D Warehouse:")]),t._v(" "),n("ol",{attrs:{type:"i"}},[n("li",[t._v("May refer to the Trimble company name, SketchUp or 3D Warehouse name\n or product names in a plain text font and format in accordance with\n Trimble’s general trademark usage guidelines, using appropriate\n wording such as “This way to 3D Warehouse” or “Click\n here for more information on SketchUp products.”")]),t._v(" "),n("li",[t._v("Shall not imply that Trimble is endorsing its products.")]),t._v(" "),n("li",[t._v("Shall not misrepresent its relationship with Trimble.")]),t._v(" "),n("li",[t._v("Shall not present false information about Trimble products or\n services.")]),t._v(" "),n("li",[t._v("Shall not use the Trimble or SketchUp or 3D Warehouse logos or other\n trademarks (including third party trademarks) without permission from\n Trimble or the owner of the trademark.")]),t._v(" "),n("li",[t._v("Shall not charge or attempt to charge for the use of 3D Warehouse or\n any Models which are not your own Models.")]),t._v(" "),n("li",[t._v("Shall not contain content that could be construed as distasteful,\n offensive or controversial, and shall contain only content that is\n appropriate for all age groups.")])]),t._v(" "),n("p",[t._v("If you have placed a link on your web site to 3D Warehouse you agree to\n promptly remove such link at Trimble’s request.")]),t._v(" "),n("h2",[t._v("22. Copyright and Trademark Information")]),t._v(" "),n("p",[t._v("Copyright information and a current list of United States trademarks\n owned by Trimble is set forth at "),n("a",{attrs:{href:"http://www.trimble.com/copyrights.aspx",target:"_blank"}},[t._v("\n http://www.trimble.com/copyrights.aspx")]),t._v(". Any questions concerning\n their use, or whether a trademark that does not appear on this list is\n a trademark of Trimble, should be referred to Trimble’s Intellectual\n Property department at U.S. +1 408 481 8000.")]),t._v(" "),n("h2",[t._v("23. U.S. Government Restricted Rights")]),t._v(" "),n("p",[t._v("Use, duplication, or disclosure by the United States Government is\n subject to restrictions as set forth in these Terms of Use or the General\n Model License, and as provided in DFARS 227.7202-1(a) and 227.7202-3(a)\n (1995), DFARS 252.227-7013(c)(1)(ii) (OCT 1988), FAR 12.212(a) (1995),\n FAR 52.227-19, or FAR 52.227-14(ALT III), as applicable. Use of the\n Warehouse Materials by the Government constitutes acknowledgment of\n Trimble’s, its suppliers’ or Developer’s proprietary\n rights in them.")]),t._v(" "),n("h2",[t._v("24. International")]),t._v(" "),n("p",[t._v("3D Warehouse is administered by Trimble from its offices or those of its\n affiliates at various locations within the United States of America.\n Trimble may also make use of its U.S. or foreign affiliates or one or more\n external service providers to host 3D Warehouse. Consequently, data is\n collected, sent, processed and stored in the United States and may be\n collected, sent, processed and stored outside the United States. You\n acknowledge that in the event of conflict of privacy laws or practices in\n your jurisdiction and those in the domicile of the entity hosting 3D\n Warehouse the law applicable in the domicile of the hosting entity will\n have precedence at all times.")]),t._v(" "),n("p",[t._v("Trimble makes no representation that the Warehouse Materials are\n appropriate or available for use in locations outside the United States,\n and accessing them from territories where they are illegal is prohibited.\n You may not use or export or re-export the Warehouse Materials or any\n copy or adaptation in violation of any applicable laws or regulations\n including, without limitation, United States export laws and regulations.\n If you choose to access 3D Warehouse from locations outside the United\n States, you do so on your own initiative and are responsible for\n compliance with applicable local laws.")]),t._v(" "),n("h2",[t._v("25. Choice of Law and Forum")]),t._v(" "),n("p",[t._v("These Terms of Use shall be governed by and construed in accordance with\n the laws of the State of California and applicable United States federal\n law, without reference to “conflicts of laws” provisions or\n principles. You expressly agree that the exclusive jurisdiction for any\n claim or action arising out of or relating to these Terms of Use or your\n use of 3D Warehouse or Distribution of your Models shall lie exclusively in,\n or be transferred to the courts of the County of Santa Clara and/or the\n Northern District of California; and you further agree and submit to the\n exercise of personal jurisdiction of such courts for the purpose of\n adjudicating any such claim or action.")]),t._v(" "),n("h2",[t._v("26. Contacting Trimble or the SketchUp division")]),t._v(" "),n("p",[t._v("Information on how to contact Trimble may be found at\n "),n("a",{attrs:{href:"http://www.trimble.com/Corporate/Contacts.aspx",target:"_blank"}},[t._v("\n http://www.trimble.com/Corporate/Contacts.aspx")]),t._v(". Information on how to\n contact Trimble’s SketchUp division may be found at\n "),n("a",{attrs:{href:"http://help.sketchup.com/contact",target:"_blank"}},[t._v("http://help.sketchup.com/contact")]),t._v(".\n Any notice or other communication given by you to Trimble regarding these\n Terms of Use will be deemed given and served when personally delivered,\n delivered by reputable international courier requiring signature for\n receipt, or five (5) business days after mailing (postage prepaid),\n addressed to Trimble at its notice address. TRIMBLE’s notice address\n shall be: Trimble Inc., Attn: General Counsel, 935 Stewart\n Drive, Sunnyvale, CA 94085, USA.")]),t._v(" "),n("h2",[t._v("27. Digital Millennium Copyright Act")]),t._v(" "),n("p",[t._v("Notice and Procedure for Making Claims of Copyright Infringement")]),t._v(" "),n("p",[t._v("If you believe that your work has been copied in a way that constitutes\n copyright infringement, please provide Trimble’s DMCA administrator\n the written information specified below, as required by the Online\n Copyright Infringement Liability Limitation Act of the Digital Millennium\n Copyright Act, Title 17, United States Code, Section 512(c)(2).")]),t._v(" "),n("ul",[n("li",[t._v("An electronic or physical signature of the person authorized to act on\n behalf of the owner of the copyright interest;")]),t._v(" "),n("li",[t._v("A description of the copyrighted work that you claim has been\n infringed upon;")]),t._v(" "),n("li",[t._v("A description of where the material that you claim is infringing is\n located on 3D Warehouse;")]),t._v(" "),n("li",[t._v("Your address, telephone number, and e-mail address;")]),t._v(" "),n("li",[t._v("A statement by you that you have a good-faith belief that the disputed\n use is not authorized by the copyright owner, its agent, or the law;")]),t._v(" "),n("li",[t._v("A statement by you, made under penalty of perjury, that the above\n information in your notice is accurate and that you are the copyright\n owner or authorized to act on the copyright owner’s behalf.")])]),t._v(" "),n("p",[t._v("Trimble’s DMCA administrator for notice of claims of copyright\n infringement on 3D Warehouse can be reached as follows:")]),t._v(" "),n("p",[t._v("DMCA Administrator"),n("br"),t._v("\n Legal Department"),n("br"),t._v("\n Trimble Inc."),n("br"),t._v("\n 935 Stewart Drive"),n("br"),t._v("\n Sunnyvale, CA 94085"),n("br"),t._v("\n Fax: 408-481-7780"),n("br"),t._v("\n DMCA@trimble.com")]),t._v(" "),n("h2",[t._v("28. General Provisions")]),t._v(" "),n("p",[t._v("Except as otherwise specified herein, these Terms of Use constitute the\n entire agreement between you and Trimble with respect to your use of 3D\n Warehouse and Distribution of Models and supersedes all prior or\n contemporaneous communications and proposals (whether oral, written, or\n electronic) between you and Trimble with respect to use of 3D Warehouse\n and Distribution of Models. You also may be subject to additional terms and\n conditions that may apply when you use 3D Warehouse Materials, software,\n or services provided by third party providers to 3D Warehouse. These Terms\n of Use, and any rights and licenses granted under these Terms of Use, may\n not be transferred or assigned by you, but may be assigned by Trimble\n without restriction. Any rights not otherwise expressly granted by these\n Terms of Use are reserved by Trimble, its suppliers or other Developers.\n The failure of Trimble to exercise or enforce any right or provision of\n these Terms of Use shall not constitute a waiver of such right or provision.\n If any part of these Terms of Use is held invalid or unenforceable by a\n court of competent jurisdiction that portion shall be construed in a\n manner consistent with applicable law to reflect, as nearly as possible,\n the original intentions of the parties, and the remaining portions shall\n remain in full force and effect. You agree that regardless of any statute\n or law to the contrary, any claim or cause of action arising out of or\n related to use of 3D Warehouse must be filed within one (1) year after\n such claim or cause of action arose or be forever barred. Sections 10\n (3D Warehouse Materials; Use Restrictions), 11 (User Posted Materials),\n 13 (Aggregated Information; Feedback), 16 (Indemnification), 18\n (Warranty Disclaimer), 19 (Limitation of Liability), 25 (Choice of Law\n and Forum) and 28 (General Provisions) will survive any termination or\n expiration of your use of or access to 3D Warehouse Materials or these\n Terms of Use as applies to you. The official language of these Terms of Use\n is English. If there is a conflict between the English language version and\n any translation, the English language version will control.")])])}]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"terms-of-service-modal modal-dialog reveal large",attrs:{"data-reveal":"","data-close-on-click":"false","data-close-on-esc":"false"}},[n("div",{staticClass:"modal-dialog-header"},[n("span",{staticClass:"modal-dialog-title-text"},[t._v("\n "+t._s(t.$t("3D Warehouse: Terms of Use and General Model License Agreement"))+"\n ")])]),t._v(" "),n("div",{staticClass:"modal-dialog-content"},[n("terms-of-service"),t._v(" "),n("general-model-license")],1),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("button",{staticClass:"modal-dialog-button-ok",on:{click:t.onAccept}},[t._v("\n "+t._s(t.$t("By Clicking Here, I Accept The Above Terms"))+"\n ")])])])},i=[]},,,,,,function(t,e,n){"use strict";var r=n(315),i=n(643),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sign-in-guard-modal modal-dialog reveal small",attrs:{"data-reveal":"","data-close-on-esc":"true"}},[n("div",{staticClass:"modal-close-x",on:{click:t.onCancel}}),t._v(" "),n("div",{staticClass:"modal-dialog-header"},[n("span",{staticClass:"modal-dialog-title-text"},[t._v("\n "+t._s(t.$t("Sign In"))+"\n ")])]),t._v(" "),n("div",{staticClass:"modal-dialog-content"},[t._v("\n "+t._s(t.actionText)),n("br"),t._v("\n "+t._s(t.$t("We’ll bring you right back!"))+"\n ")]),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("button",{staticClass:"modal-dialog-button-ok",on:{click:t.onAccept}},[t._v("\n "+t._s(t.$t("Sign In"))+"\n ")])])])},i=[]},function(t,e,n){"use strict";var r=n(316),i=n(662),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("div")},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"status-modal modal-dialog reveal",attrs:{id:"status-modal","data-reveal":"","data-close-on-click":"false","data-close-on-esc":"false"}},[n("div",{staticClass:"modal-dialog-header"},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("span",{key:t.currentState,staticClass:"modal-dialog-title-text title status-title"},[t._v("\n "+t._s(t.stateTitle)+"\n ")])])],1),t._v(" "),t.currentState!==t.StatusModalState.LoadingDeterminate?n("img",{key:t.currentState,staticClass:"awesome_sauce",attrs:{src:t.stateImage}}):t._e(),t._v(" "),t.currentState===t.StatusModalState.LoadingDeterminate?n("div",{staticClass:"progress",attrs:{role:"progressbar",tabindex:"0","aria-valuenow":t.loadPercent,"aria-valuemin":"0","aria-valuetext":t.loadPercent+" percent","aria-valuemax":"100"}},[n("div",{staticClass:"progress-meter",style:"width: "+t.loadPercent+"%"})]):t._e(),t._v(" "),n("div",{staticClass:"modal-dialog-content"},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("span",{key:t.currentState},[t._v("\n "+t._s(t.stateMessage)+"\n ")])])],1),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[t.currentState===t.StatusModalState.Success||t.currentState===t.StatusModalState.Failure?n("button",{staticClass:"modal-dialog-button-ok button",on:{click:this.onAccept}},[t._v("\n "+t._s(t.translatedButtonText)+"\n ")]):t._e()]),t._v(" "),n("br")],1)])},i=[]},function(t,e,n){"use strict";var r=n(319),i=n(649),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"upload-modal upgrade-client reveal",attrs:{id:"upgrade-client","data-reveal":"","data-close-on-click":"false","data-close-on-esc":"false","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("div",{staticClass:"grid-container"},[n("div",{staticClass:"modal-close-x",on:{click:t.dismiss}}),t._v(" "),n("div",{staticClass:"upload-header"},[n("div",{staticClass:"title upload-title"},[n("span",[t._v(t._s(t.$t("Client Version Not Supported")))])])])]),t._v(" "),n("div",{staticClass:"upload-content"},[t._l(t.paragraphs,function(e){return n("p",[t._v("\n "+t._s(e)+"\n ")])}),t._v(" "),t._l(t.links,function(e){return n("div",{staticClass:"upgrade-action"},[n("button",{staticClass:"upgrade-client button lightup-button",attrs:{id:e.id},on:{click:function(n){t.follow(e.href)}}},[t._v("\n "+t._s(e.text)+"\n ")]),t._v(" "),e.hint?n("div",{staticClass:"link-hint",attrs:{id:e.id+"-hint"}},[t._v("\n "+t._s(e.hint)+"\n ")]):t._e()])})],2)])},i=[]},function(t,e,n){"use strict";var r=n(320),i=n(657),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),e.q=function(t){void 0===t&&(t="");if(!t)return!1;if(t.trim().length>=r.IDEAL_TITLE_MIN_LENGTH&&t.trim().length<=r.IDEAL_TITLE_MAX_LENGTH)return!0;return!1},e.m=function(t,e){void 0===t&&(t="");void 0===e&&(e="");if(!t||!e)return!0;if(t.trim().toLowerCase()===e||t.trim().toLowerCase().includes(".skp"))return!1;return!0},e.o=function(t){void 0===t&&(t="");if(!t||!t.trim())return!1;if(d(t.trim()))return!1;return!0},e.l=function(t){void 0===t&&(t="");if(!t)return!1;if(l(t))return!1;return!0},e.g=function(t,e){void 0===t&&(t="");void 0===e&&(e=null);if(!t||!e)return!1;if(t.trim().length>=e)return!0;return!1},e.n=function(t){void 0===t&&(t=[]);if(!t||!t.length)return!1;var e=function(t){void 0===t&&(t=[]);if(!t||0===t.length)return null;for(var e={},n=0,r=t;n1)return!1;return!0},e.p=function(t){if(!t||!t.length)return!1;if(t.length>r.TOO_MANY_TAGS_THRESHOLD)return!1;return!0},e.k=function(t){if(!t||!t.length)return!1;return!0},e.j=function(t){if(!t)return!1;if(t.length>=r.MIN_IDEAL_TAG_AMOUNT&&t.length<=r.MAX_IDEAL_TAG_AMOUNT)return!0;return!1},e.i=p,e.c=function(t){void 0===t&&(t=0);if(!t)return 0;return t/r.MAX_SCORE*100},e.b=function(t){void 0===t&&(t=0);if(!t)return r.POOR_COLOR_CLASS;return t>r.GREAT_SCORE_THRESHOLD?r.GREAT_COLOR_CLASS:t>r.GOOD_SCORE_THRESHOLD?r.GOOD_COLOR_CLASS:t>r.FAIR_SCORE_THRESHOLD?r.FAIR_COLOR_CLASS:r.POOR_COLOR_CLASS},e.f=function(t){void 0===t&&(t="");if(!t)return"";if(s(t))return o.f.CONTAINS_CURSE_WORDS;if(c(t))return o.f.CONTAINS_EMAIL_ADDRESS;if(a.w(t))return o.f.CONTAINS_URL;if(u(t))return o.f.TITLE_ENDS_WITH_PERIOD;return""},e.d=function(t){void 0===t&&(t="");if(s(t))return o.f.CONTAINS_CURSE_WORDS;return""},e.e=function(t){void 0===t&&(t=[]);if(!t)return"";for(var e=0,n=t;e#\$%\^\&*\)\(+=._-]+$/;return t.trim().split("").filter(function(t){return e.test(t)||n.test(t)}).length===t.trim().length}function p(t){if(void 0===t&&(t=""),!t){return[]}for(var e=[],n=0,r=t.split(" ");n-1:t.isPrivate},on:{change:function(e){var n=t.isPrivate,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isPrivate=n.concat([null])):o>-1&&(t.isPrivate=n.slice(0,o).concat(n.slice(o+1)))}else t.isPrivate=i}}}),t._v(" "),n("label",{staticClass:"switch-paddle",attrs:{for:"private-check"}},[n("span",{staticClass:"show-for-sr"},[t._v(t._s(t.$t("Private Model")))])])])]),t._v(" "),t.enableModelScores?n("discoverability-bar",{ref:"discBar",staticClass:"discoverability-bar",attrs:{blocks:t.modelBlocks,pageStyling:"upload-modal"}}):t._e(),t._v(" "),n("button",{staticClass:"upload-file button",class:{"disabled-button":!(t.titleValid&&t.descriptionValid)},attrs:{disabled:!(t.titleValid&&t.descriptionValid)},on:{click:t.accept}},[t._v("\n "+t._s(t.uploadLabel)+"\n ")])],1)])},i=[]},function(t,e,n){"use strict";var r=n(326),i=n(661),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"dropZone",staticClass:"file-upload",on:{dragleave:t.outOfZone}},[n("input",{ref:"fileInput",attrs:{type:"file",multiple:t.allowMultipleFiles},on:{change:t.onFileInputChange}}),t._v(" "),n("div",{staticClass:"drop-message-container"},[t._m(0),t._v(" "),n("span",{staticClass:"drop-title title"},[t._v("\n "+t._s(t.$t("Drop it like it's hot"))+"\n ")])]),t._v(" "),n("div",{staticClass:"file-upload-container"},[t.loading?n("div",{staticClass:"loading-container"},[n("div",{staticClass:"loading"})]):t.fileToUpload?n("div",{staticClass:"new-file-info title"},[n("div",{staticClass:"new-file-name"},[t._v(t._s(t.fileToUploadName))]),t._v(" "),n("div",{staticClass:"close-x-container",on:{click:t.resetFileUpload}},[n("div",{staticClass:"close-x"})])]):n("div",{staticClass:"file-upload-card"},[t._m(1),t._v(" "),t.isReplacingFile?n("div",{staticClass:"item-info"},[n("div",{staticClass:"item-title title"},[t._v(t._s(t.fileTitle))]),t._v(" "),n("div",{staticClass:"item-details"},[t._v(t._s(t.fileDetails))])]):t._e()]),t._v(" "),n("div",{staticClass:"upload-details"},[t.isMounted&&t.loading?n("div",{staticClass:"loading-description"},[t._v("\n "+t._s(t.$t("Validating"))+"\n ")]):n("div",{staticClass:"drag-and-drop-label"},[t._v("\n "+t._s(t.dragAndDropText)+"\n ")]),t._v(" "),n("div",{staticClass:"file-details"},[t._v("\n "+t._s(t.supportedFileTypesLabel)+"\n "),t.supportedFileTypesLabel?n("span",[t._v(" | ")]):t._e(),t._v("\n "+t._s(t.$t("Max File Size: {size}",{size:t.maxSizeLabel}))+"\n ")])]),t._v(" "),n("button",{staticClass:"upload-file button lightup-button",attrs:{disabled:t.locked},on:{click:t.openFileBrowser}},[t._v("\n "+t._s(t.$t("Browse"))+"\n ")])]),t._v(" "),n("div",{staticClass:"drag-screen",attrs:{id:"dragscreen"},on:{dragleave:t.hideDrag}})])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"thumbnail-container"},[e("div",{staticClass:"thumbnail"},[e("img",{attrs:{src:"/static/images/icon-file.svg"}})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"thumbnail"},[e("img",{attrs:{src:"/static/images/icon-file.svg"}})])}]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"upload-modal upload-selector reveal",attrs:{id:"upload-selector","data-reveal":"","data-close-on-click":"false","data-close-on-esc":"false"}},[n("div",{staticClass:"grid-container"},[n("div",{staticClass:"modal-close-x",on:{click:t.dismiss}}),t._v(" "),n("div",{staticClass:"upload-header"},[n("div",{staticClass:"title upload-title"},[n("span",[t._v(t._s(t.$t("Upload New Model")))])])])]),t._v(" "),n("div",{staticClass:"upload-content"},[n("div",{staticClass:"modal-error-placeholder",class:{active:t.errorState}},[t.errorState?n("div",{staticClass:"modal-error"},[t._v("\n "+t._s(t.errorText)+"\n ")]):t._e()]),t._v(" "),n("file-upload",t._b({ref:"fileUpload",attrs:{handleOwnErrors:!1}},"file-upload",t.fileUploadSettings,!1))],1)])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("div")},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("div")},i=[]},function(t,e,n){var r=n(665);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(667).default)("0b78a581",r,!0,{})},function(t,e,n){(t.exports=n(666)(void 0)).push([t.i,".chevron-container{display:inline-block;position:relative;pointer-events:none}.chevron{position:absolute;top:0;left:0;pointer-events:none}",""])},,,,function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"chevron-container",style:{width:this.width+"px",height:this.height+"px",stroke:this.color||"black"}},[e("svg",{staticClass:"chevron",attrs:{viewBox:"0 0 10 10",width:this.width,height:this.height,fill:"none","stroke-width":"2","stroke-linecap":"round"}},[e("polyline",{ref:"chevron",attrs:{points:this.points}})])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"accordion-item",attrs:{id:t.id}},[n("a",{staticClass:"accordion-title title",attrs:{href:"#",id:t.id+"-title",role:"tab","aria-expanded":t.value},on:{click:t.headerClicked}},[t._v(t._s(t.title)),n("chevron",{attrs:{expanded:!t.value,speed:"0.25",direction:"down"}})],1),t._v(" "),n("div",{ref:"content",staticClass:"accordion-content",staticStyle:{display:"none"},attrs:{id:"id + '-title'",transition:"expand",role:"tabpanel","aria-labelledby":t.id+"-title"}},[t._t("default")],2)])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("ul",{staticClass:"accordion skp",attrs:{id:this.id}},[this._t("default")],2)},i=[]},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"auto-sizing-input",attrs:{id:t.id}},[n("span",{ref:"autosizer",staticClass:"input-auto-sizer",attrs:{id:t.id+"-auto-sizer"}},[t._v(t._s(t.value))]),t._v(" "),n("input",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip,expression:"tooltip"}],ref:"input",staticClass:"auto-sizing-text",attrs:{type:"text",id:t.id+"-text",name:t.name,placeholder:t.placeHolder},domProps:{value:t.value},on:{mouseover:t.onMouseOver,input:t.onInput,blur:function(e){t.$emit("blur")}}})])},i=[]},function(t,e){},function(t,e,n){"use strict";var r=n(336),i=n(679),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(337),i=n(678),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"external-page-modal reveal",attrs:{"data-reveal":"","data-close-on-esc":"false","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("h1",{staticClass:"title"},[t._v(t._s(t.$t("You are about to leave 3D Warehouse.")))]),t._v(" "),n("p",[t._v(t._s(t.$t("Are you sure you want to leave?")))]),t._v(" "),n("div",{staticClass:"button-container"},[n("a",{staticClass:"leave button",attrs:{id:t.id,href:"/redirect.html?redirect="+this.externalUrl,target:t.target},on:{click:t.setCookie}},[t._v("\n "+t._s(t.$t("Leave"))+"\n ")]),t._v(" "),n("button",{staticClass:"modal-dialog-button-close lightup-button button",on:{click:t.closeModal}},[t._v("\n "+t._s(t.$t("Cancel"))+"\n ")])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"external-url"},[e("a",{attrs:{href:this.externalUrl,target:this.target},on:{click:this.openExternalRedirectModal}},[this._v("\n "+this._s(this.externalUrl))])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"description-container"},[n("div",{ref:"descriptionContent",staticClass:"description-content",class:{brief:!t.isExpanded},style:{"max-height":t.isExpanded?"":t.heightInRems}},[n("div",{staticClass:"description-text",class:{empty:t.isEmpty}},[t.isEmpty?n("span",[t._v(t._s(t.$t("There is no description.")))]):t.isMounted?n("span",{domProps:{innerHTML:t._s(t.sanitizedDescription)}}):n("span",[t._v(t._s(t.description))])]),t._v(" "),t.hasExternalUrl?n("div",{staticClass:"external-url",class:{"add-on":t.hasDescription}},[n("div",{staticClass:"external-header"},[t._v(t._s(t.$t("For more information, visit:")))]),t._v(" "),n("external-url",{attrs:{externalUrl:t.externalUrl,id:"modelExternalUrl",target:t.linkTarget}})],1):t._e()]),t._v(" "),t.isExpandable?n("div",{staticClass:"description-expander",class:{expanded:t.isExpanded},attrs:{id:"description-expander"},on:{click:t.toggleIsExpanded}},[t._v("\n "+t._s(t.expandText)+"\n "),n("chevron",{staticClass:"description-chevron",attrs:{expanded:!0,speed:0,direction:t.isExpanded?"up":"down"}})],1):t._e()])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"svg-icon",on:{click:function(e){t.buttonClick()}}},[n("svg",{staticClass:"action-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M-1 0h20v20H-1z"}}),t._v(" "),n("path",{staticClass:"pathFill",attrs:{fill:"#8C8B96","fill-rule":"nonzero",d:"M14.683 19.167V3.333H2.778v15.834h11.905zm.396.833H2.381a.407.407 0 0 1-.397-.417V2.917c0-.23.178-.417.397-.417h12.698c.22 0 .397.187.397.417v16.666c0 .23-.177.417-.397.417zM11.508 2.5V.833H5.952V2.5h5.556zm.397.833h-6.35a.407.407 0 0 1-.396-.416v-2.5c0-.23.177-.417.397-.417h6.349c.219 0 .397.187.397.417v2.5c0 .23-.178.416-.397.416zm-11.508 0A.407.407 0 0 1 0 2.917c0-.23.178-.417.397-.417h17.46c.22 0 .397.187.397.417 0 .23-.178.416-.397.416H.397zm4.762 2.5c0-.23.177-.416.397-.416.219 0 .396.186.396.416v10c0 .23-.177.417-.396.417a.407.407 0 0 1-.397-.417v-10zm3.174 0c0-.23.178-.416.397-.416.22 0 .397.186.397.416v10c0 .23-.178.417-.397.417a.407.407 0 0 1-.397-.417v-10zm3.175 0c0-.23.178-.416.397-.416.219 0 .397.186.397.416v10c0 .23-.178.417-.397.417a.407.407 0 0 1-.397-.417v-10z"}})])])])},i=[]},function(t,e,n){"use strict";var r=n(340),i=n(683),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"svg-icon",on:{click:function(e){t.buttonClick()}}},[n("svg",{staticClass:"action-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 512 512"}},[n("path",{staticStyle:{fill:"#E6646E"},attrs:{d:"M478.939,174.89l16.235-7.793c4.97-2.386,6.288-8.819,2.619-12.934\n c-12.74-14.289-42.434-43.693-84.976-61.926l12.219-8.146c5.567-3.712,4.699-12.161-1.543-14.571\n c-38.065-14.696-145.34-42.933-225.573,64.044l250.89,198.071c25.585,20.199,63.19,1.975,63.19-30.622v-30.085\n C512,207.952,478.939,174.89,478.939,174.89z"}}),t._v(" "),n("path",{staticStyle:{fill:"#DC4655"},attrs:{d:"M487.204,268.502c-13.616-32.143-19.023-41.704-32.176-62.5\n c-20.636-32.624-75.45-119.286-155.814-119.286c-10.396,0-20.942,1.47-31.345,4.37c-13.873,3.867-27.122,11.155-39.381,21.662\n l-26.653,23.896c-0.004,0.003-0.003,0.007,0,0.01l236.428,170.481C470.674,331.931,499.86,298.38,487.204,268.502z"}}),t._v(" "),n("path",{staticStyle:{fill:"#E6646E"},attrs:{d:"M6.439,10.182l174.95,197.769l57.857-66.122L10.896,4.82C7.437,2.744,3.766,7.161,6.439,10.182z"}}),t._v(" "),n("path",{staticStyle:{fill:"#EDEBED"},attrs:{d:"M508.74,367.249c-9.777-29.807-43.728-114.538-67.683-152.41\n c-26.762-42.312-86.097-130.867-168.75-107.83c-11.54,3.216-22.63,9.348-33.061,18.289L4.462,335.794\n c-3.308,2.966-5.089,7.459-4.26,11.823c1.914,10.084,7.814,14.771,14.066,16.817c2.724,0.891,4.967,2.77,6.239,5.337\n c3.204,6.469,8.851,17.87,8.851,17.87c4.14,8.439,14.439,11.783,22.688,7.277c3.046-1.663,6.381-3.701,9.805-5.88l28.852,17.58\n c4.944,2.995,11.038,3.215,16.161,0.539c24.73-12.909,100.81-50.758,157.178-58.696c11.754-1.656,22.677-4.792,32.789-8.956\n l62.06,162.885c2.079,5.455,9.005,7.095,13.308,3.15l131.99-120.991C508.977,380.161,510.764,373.421,508.74,367.249z"}}),t._v(" "),n("g",[n("path",{staticStyle:{fill:"#DBD9DC"},attrs:{d:"M266.624,34.47v82.431c0,9.001,7.206,16.682,17.037,18.162l19.236,2.895\n c13.163,1.981,24.966-7.86,23.693-19.855c-5.785-54.492-31.155-79.217-46.985-89.518C274.175,25.052,266.624,28.426,266.624,34.47z\n "}}),t._v(" "),n("path",{staticStyle:{fill:"#DBD9DC"},attrs:{d:"M349.596,335.341c-3.21-5.733-2.642-12.767,1.286-18.034c4.397-5.895,8.154-12.198,11.156-18.873\n c12.148-27.007,11.954-57.344-0.557-87.734c-1.735-4.221-6.546-6.231-10.792-4.496c-4.221,1.739-6.231,6.57-4.496,10.792\n c10.743,26.079,11.01,51.896,0.767,74.658c-9.325,20.733-27.092,37.58-50.159,47.775l62.088,162.962\n c2.079,5.456,9.005,7.095,13.309,3.15l48.045-44.041L349.596,335.341z"}})]),t._v(" "),n("path",{staticStyle:{fill:"#9C969E"},attrs:{d:"M37.435,350.7c-2.488-5.058-10.656-5.447-16.186,2.238c-2.7,3.752-5.069,7.289-12.551,8.717\n c1.727,1.196,3.574,2.111,5.472,2.74c2.058,0.682,3.69,2.08,4.991,3.765C35.024,366.886,40.291,356.506,37.435,350.7z"}}),t._v(" "),n("path",{staticStyle:{fill:"#C0BCC1"},attrs:{d:"M78.17,399.072c14.112-8.872,29.894-20.636,42.783-33.645c3.215-3.241,3.189-8.475-0.048-11.688\n c-3.251-3.223-8.479-3.189-11.692,0.052c-14.293,14.42-34.067,26.698-47.531,35.353L78.17,399.072z"}}),t._v(" "),n("path",{staticStyle:{fill:"#4B3F4E"},attrs:{d:"M239.246,224.583c-11.817,0-22.859-3.814-30.301-10.469c-3.406-3.043-3.697-8.265-0.662-11.671\n c3.051-3.402,8.281-3.689,11.671-0.654c4.391,3.923,11.599,6.264,19.291,6.264s14.9-2.341,19.291-6.264\n c3.39-3.035,8.62-2.748,11.671,0.654c3.035,3.406,2.744,8.629-0.662,11.671C262.104,220.769,251.062,224.583,239.246,224.583z"}}),t._v(" "),n("polygon",{staticStyle:{fill:"#00C3FF"},attrs:{points:"123.532,142.548 164.858,189.265 164.858,97.197 123.532,72.401 "}}),t._v(" "),n("polygon",{staticStyle:{fill:"#D4F582"},attrs:{points:"82.205,95.831 123.532,142.548 123.532,72.401 82.205,47.605 "}}),t._v(" "),n("polygon",{staticStyle:{fill:"#FFC850"},attrs:{points:"40.879,49.114 82.205,95.831 82.205,47.605 40.879,22.809 "}}),t._v(" "),n("path",{staticStyle:{fill:"#E6646E"},attrs:{d:"M40.879,22.809L10.896,4.82c-3.459-2.075-7.13,2.341-4.457,5.363l34.439,38.932V22.809H40.879z"}})])])},i=[]},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item-not-found"},[n("img",{staticClass:"panda",attrs:{src:"/static/images/panda.svg",alt:t.$t("Sad Panda")}}),t._v(" "),n("h2",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),n("p",{staticClass:"message"},[t._v(t._s(t.message)+" "),n("br"),t._v(" "+t._s(t.messageExplanation))]),t._v(" "),n("a",{staticClass:"button go-home-button",attrs:{href:"/"}},[t._v(t._s(t.$t("Go Home")))])])},i=[]},function(t,e,n){"use strict";var r=n(342),i=n(688),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"create-section-modal modal-dialog reveal",attrs:{"data-reveal":"","data-close-on-click":"false","data-close-on-esc":"true","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("div",{staticClass:"modal-dialog-header grid-container"},[n("div",{staticClass:"modal-close-x",on:{click:t.closeModal}}),t._v(" "),n("div",{staticClass:"modal-dialog-title-text title"},[n("span",[t._v(t._s(t.$t("New section")))])])]),t._v(" "),n("div",{staticClass:"modal-dialog-content"},[n("div",{staticClass:"upload-title-input"},[n("error-in-context",{attrs:{errorState:!1,contextHeader:t.titleHeader}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],ref:"titleInput",staticClass:"title-input",attrs:{type:"text",placeholder:t.titleLabel,maxlength:t.titleMaxLen},domProps:{value:t.title},on:{focus:function(e){t.titleFocused=!0},blur:function(e){t.titleFocused=!1},input:function(e){e.target.composing||(t.title=e.target.value)}}}),t._v(" "),n("div",{staticClass:"chars-remaining",class:{"input-full":t.titleCharsRemaining<=0}},[t._v("\n "+t._s(t.$t("{count} characters remaining",{count:t.titleCharsRemaining}))+"\n ")])],1)]),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("button",{staticClass:"modal-dialog-button-ok button",attrs:{id:"create-new-section",title:t.$t("Done"),disabled:!t.isTitleValid},on:{click:t.createSection}},[t._v("\n "+t._s(t.$t("Done"))+"\n ")])])])},i=[]},function(t,e,n){"use strict";var r=n(343),i=n(696),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"no-results"},[n("img",{staticClass:"no-results-image",attrs:{src:t.noResultsImage,alt:"No Results Image"}}),t._v(" "),n("div",{staticClass:"no-results-title"},[t._v(t._s(t.noResultsTitle))]),t._v(" "),n("div",{staticClass:"no-results-text"},[t._v(t._s(t.text))])])},i=[]},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"collection-element-card-base"})},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search-result-card"},[n("div",{staticClass:"card-content",class:t.collectionElement.subjectClass},[t.isCollection?n("div",{staticClass:"shadow far"}):t._e(),t._v(" "),t.isCollection?n("div",{staticClass:"shadow near"}):t._e(),t._v(" "),t.isMaterial?n("a",{style:{cursor:t.materialsEnabled?"pointer":"default"},attrs:{tabindex:"0",href:!!t.materialsEnabled&&t.collectionElement.detailsPageUrl},on:{click:function(e){t.onCardClicked(e)}}},[n("div",{staticClass:"thumbnail"},[n("img",{attrs:{src:t.collectionElement.thumbnailUrl,onerror:"this.style.display='none'"}})])]):n("a",{attrs:{tabindex:"0",href:t.collectionElement.detailsPageUrl},on:{click:function(e){t.onCardClicked(e)}}},[t.isCollection?n("div",{staticClass:"collection-card-count"},[t._v("\n "+t._s(t.formattedContainedCount)+"\n ")]):t._e(),t._v(" "),t.collectionElement.isPrivate?n("div",{staticClass:"private-card-icon"}):t._e(),t._v(" "),n("div",{staticClass:"thumbnail"},[n("img",{attrs:{src:t.collectionElement.thumbnailUrl,onerror:"this.style.display='none'"}})])]),t._v(" "),n("div",{staticClass:"card-container"},[n("div",{staticClass:"quick-view-container"},[t.enableQuickViewButton?n("button",{staticClass:"quick-view-button",on:{click:[function(t){t.stopPropagation(),t.preventDefault()},function(e){t.quickViewButtonClicked(t.collectionElement.id)}]}},[t._v("\n "+t._s(t.$t("Quick View"))+"\n ")]):t._e()]),t._v(" "),n("div",{staticClass:"card-details"},[n("div",{staticClass:"card-detail-row"},[t.isMaterial?n("a",{style:{cursor:t.materialsEnabled?"pointer":"default"},attrs:{href:!!t.materialsEnabled&&t.collectionElement.detailsPageUrl},on:{click:function(e){t.onCardClicked(e)}}},[n("span",{staticClass:"card-title title",attrs:{title:t.collectionElement.title}},[t._v("\n "+t._s(t.collectionElement.title)+"\n ")])]):n("a",{attrs:{href:t.collectionElement.detailsPageUrl},on:{click:function(e){t.onCardClicked(e)}}},[n("span",{staticClass:"card-title title",attrs:{title:t.collectionElement.title}},[t._v("\n "+t._s(t.collectionElement.title)+"\n ")])])]),t._v(" "),n("div",{staticClass:"card-detail-row"},[t.isMaterial?t._e():n("a",{staticClass:"card-creator",attrs:{tabindex:"-1",title:t.collectionElement.creatorDisplayName,href:t.collectionElement.creatorPageUrl}},[t._v("\n "+t._s(t.collectionElement.creatorDisplayName)+"\n ")]),t._v(" "),t.isCollection?t._e():n("div",{staticClass:"search-card-download",attrs:{title:t.downloadTitle},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.onDownloadClicked(e)}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[n("g",{attrs:{stroke:"inherit",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{d:t.downloadIconPath}})])])])]),t._v(" "),t.isModel?n("div",{staticClass:"card-detail-row sliding"},[n("div",{staticClass:"detail-icon left"},[n("div",{staticClass:"detail-svg"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 38 33"}},[n("g",{attrs:{stroke:"inherit",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{d:t.heartIconPath}})])])]),t._v(" "),n("span",{staticClass:"detail-count"},[t._v(t._s(t.likesCountShort))])]),t._v(" "),n("div",{staticClass:"detail-icon middle"},[n("div",{staticClass:"detail-svg"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 13"}},[n("g",{attrs:{stroke:"inherit",fill:"none","stroke-width":"0.75","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{d:t.fileIconPath}})])])]),t._v(" "),n("span",{staticClass:"detail-count"},[t._v(t._s(t.fileSizeShort))])]),t._v(" "),n("div",{staticClass:"detail-count downloads-count",attrs:{title:t.downloadTitle},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.onDownloadClicked(e)}}},[t._v("\n "+t._s(t.downloadsCountShort)+"\n ")])]):t._e()])])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section-content"},[t.isLoading?n("div",{staticClass:"loading"}):n("div",[n("error-in-context",{attrs:{errorState:t.errorState,errorText:t.errorText,isPlaceholder:!1,showIcon:!0,alignment:"center"}}),t._v(" "),t.errorState?t._e():n("div",[n("div",{staticClass:"content-cards row small-up-1 medium-up-2 client-up-3 large-up-4"},t._l(t.items,function(t){return n("div",{key:t.id,staticClass:"columns"},[n("search-result-card",{attrs:{collectionElement:t}})],1)})),t._v(" "),t.noResults?n("no-results-card",{attrs:{text:t.resultText}}):t.showSeeMore?n("div",{staticClass:"see-more",class:{collection:t.isCollection}},[n("span",{on:{click:t.seeMore}},[t._v(t._s(t.$t("See more")))])]):t._e()],1)],1)])},i=[]},function(t,e,n){"use strict";var r=n(352),i=n(699),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"contact-modal modal-dialog reveal",attrs:{id:"contact-modal","data-reveal":"","data-close-on-click":"false","data-close-on-esc":"true","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-left fast"}},[n("div",{staticClass:"modal-dialog-header grid-container"},[n("div",{staticClass:"modal-close-x",on:{click:t.closeModal}}),t._v(" "),n("div",{staticClass:"modal-dialog-header"},[n("div",{staticClass:"modal-dialog-title-text title contact-title"},[n("span",[t._v(t._s(t.$t("Contact")))])])])]),t._v(" "),n("div",{staticClass:"modal-dialog-content contact-content"},[n("error-in-context",{attrs:{errorState:!1,errorText:"",contextHeader:t.$t("To")}}),t._v(" "),n("div",{staticClass:"contact-recipient",attrs:{title:t.recipientName}},[t._v(t._s(t.recipientName))]),t._v(" "),n("error-in-context",{attrs:{errorState:t.errorState,errorText:t.errorText,contextHeader:t.messagePlaceholder}}),t._v(" "),n("div",{staticClass:"contact-text"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.messageText,expression:"messageText"}],attrs:{name:"contactText",id:"contact-text",maxlength:t.maxLength,placeholder:t.$t("Message")},domProps:{value:t.messageText},on:{input:[function(e){e.target.composing||(t.messageText=e.target.value)},t.clearErrorState],focus:function(e){t.inputFocused=!0},blur:function(e){t.inputFocused=!1}}})]),t._v(" "),n("div",{staticClass:"chars-remaining",class:{"input-full":t.charactersRemaining<=0}},[t._v("\n "+t._s(t.$t("{count} characters remaining",{count:t.charactersRemaining}))+"\n ")]),t._v(" "),n("div",{staticClass:"contact-copy-row"},[n("div",{staticClass:"contact-copy-container",on:{click:function(e){t.sendCopy=!t.sendCopy}}},[n("div",{staticClass:"contact-checkbox",class:{checked:t.sendCopy}}),t._v(" "),n("span",[t._v(t._s(t.$t("Send a copy to my email")))])])])],1),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("button",{staticClass:"modal-dialog-button-ok button",attrs:{id:"contactSend",disabled:!t.isMessageValid},on:{click:t.sendMessage}},[t._v("\n "+t._s(t.$t("Send"))+"\n ")])])])},i=[]},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.user?n("a",{staticClass:"link-to-user-page user-container",attrs:{href:t.userPageUrl}},[n("div",{staticClass:"user-card"},[n("div",{staticClass:"user-avatar-row"},[n("div",{staticClass:"user-avatar"},[n("img",{attrs:{src:t.avatarUrl}})])]),t._v(" "),n("div",{staticClass:"link-to-user-page user-name",attrs:{title:t.userName}},[t._v(t._s(t.userName))]),t._v(" "),n("div",{staticClass:"user-contact"},[t.canContact?n("button",{staticClass:"lightup-button",attrs:{id:"button-contact-user",title:t.$t("Contact")},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.makeContact(e)}}},[t._v("\n "+t._s(t.$t("Contact"))+"\n ")]):t._e()])])]):t._e()])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"collection-page",class:{"manage-mode":t.inManageMode}},[n("header-panel",{staticClass:"no-left-panel",attrs:{autoFocusSearchBar:!0}}),t._v(" "),n("main",[t.item?n("div",{attrs:{id:"collection-content-container"}},[n("div",{staticClass:"root-collection-details row columns"},[n("img",{staticClass:"root-collection-thumbnail",attrs:{src:t.imageUrl,alt:t.itemMetadata[t.fieldIds.Title].value}}),t._v(" "),n("auto-sizing-input",{attrs:{id:"edit-collection-title",tooltip:t.$t("Rename")},model:{value:t.collectionTitle,callback:function(e){t.collectionTitle=e},expression:"collectionTitle"}}),t._v(" "),n("div",{staticClass:"actions-container columns"},[n("div",{staticClass:"manage-actions-container"},[n("icon-placeholder",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Create a Section"),expression:"$t('Create a Section')"}],attrs:{buttonClick:t.createSection}}),t._v(" "),n("icon-placeholder",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Move Model(s)"),expression:"$t('Move Model(s)')"}],attrs:{buttonClick:t.moveSelectedModels}}),t._v(" "),n("icon-delete",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Delete Model(s)"),expression:"$t('Delete Model(s)')"}],attrs:{buttonClick:t.deleteSelectedModels}}),t._v(" "),n("button",{staticClass:"button",attrs:{id:"done-managing-button",title:t.$t("Done")},on:{click:function(e){t.inManageMode=!1}}},[t._v(t._s(t.$t("Done")))])],1),t._v(" "),n("div",{staticClass:"view-actions-container"},[n("button",{staticClass:"tertiary-button",attrs:{id:"manage-collections",title:t.$t("Manage")},on:{click:function(e){t.inManageMode=!0}}},[t._v(t._s(t.$t("Manage")))])])]),t._v(" "),n("description-panel",{attrs:{description:t.itemMetadata[t.fieldIds.Description].value,externalUrl:t.item.externalUrl}})],1),t._v(" "),n("div",{staticClass:"collection-page-content-container"},[n("div",{staticClass:"collection-page-content row columns"},[n("accordion",{ref:"accordionPanel",attrs:{id:"sections-accordion"}},[n("accordion-item",{attrs:{id:"unsorted-models-accordion",title:t.$t("Unsorted")},model:{value:t.unsortedModelsOpen,callback:function(e){t.unsortedModelsOpen=e},expression:"unsortedModelsOpen"}},[n("section-content",{attrs:{itemType:"entity",searchParams:t.unsortedModelsParams}})],1),t._v(" "),n("accordion-item",{directives:[{name:"show",rawName:"v-show",value:!t.noCollections,expression:"!noCollections"}],attrs:{id:"collections-accordion",title:t.$t("Collections")},model:{value:t.collectionsOpen,callback:function(e){t.collectionsOpen=e},expression:"collectionsOpen"}},[n("div",{staticClass:"section-description"},[t._v(t._s(t.$t("We're not doing collections inside collections anymore, but don’t worry, we've kept the ones you saved here.")))]),t._v(" "),n("section-content",{attrs:{itemType:"collection",searchParams:t.collectionParams}})],1)],1)],1)])]):n("item-not-found",{attrs:{itemFound:t.item,itemType:t.$t("collection")}})],1),t._v(" "),n("footer-panel",{staticClass:"page-footer-panel"})],1)},i=[]},function(t,e,n){"use strict";var r=n(353),i=n(720),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";var r=n(354),i=n(719),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(355),i=n(712),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},,,,,function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dam-entity-card"},[n("div",{staticClass:"entity-thumbnail"},[n("a",{attrs:{href:t.entity.detailsPageUrl}},[n("img",{attrs:{src:t.thumbnailSrc}})])]),t._v(" "),n("div",{staticClass:"entity-info"},[n("div",{staticClass:"basic-info",attrs:{id:t.entity.id+"-basic-info"}},[n("div",{staticClass:"entity-title"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0==t.titleEdit,expression:"titleEdit == false"}]},[n("h3",{on:{click:t.handleTitleClick}},[t._v("\n "+t._s(t.entity.title)+"\n ")])]),t._v(" "),n("input",{directives:[{name:"show",rawName:"v-show",value:1==t.titleEdit,expression:"titleEdit == true"},{name:"model",rawName:"v-model",value:t.entity.title,expression:"entity.title"}],ref:"titleEdit",staticClass:"title",domProps:{value:t.entity.title},on:{blur:function(e){t.titleEdit=!1,t.$emit("titleUpdate")},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.titleEdit=!1},input:function(e){e.target.composing||t.$set(t.entity,"title",e.target.value)}}})]),t._v(" "),n("div",[t.showProcessingMessage?n("p",{staticClass:"render-message"},[t._v("Processing model. Data and thumbnail may update.")]):t._e()]),t._v(" "),n("div",{staticClass:"entity-description"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0==t.descriptionEdit&&""!=t.entityDescription,expression:"descriptionEdit == false && entityDescription != ''"}],staticClass:"description-text",on:{click:t.handleDescriptionClick}},[t._v(t._s(t.entityDescription))]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:0==t.descriptionEdit&&""==t.entityDescription&&t.entity.isEditable,expression:"descriptionEdit == false && entityDescription == '' && entity.isEditable"}],staticClass:"description-placeholder",on:{click:t.handleDescriptionClick}},[t._v("\n Click to enter a description\n ")]),t._v(" "),n("textarea",{directives:[{name:"show",rawName:"v-show",value:1==t.descriptionEdit,expression:"descriptionEdit == true"},{name:"model",rawName:"v-model",value:t.entity.description,expression:"entity.description"}],ref:"descriptionEdit",staticClass:"description",domProps:{value:t.entity.description},on:{blur:function(e){t.descriptionEdit=!1,t.$emit("descriptionUpdate")},input:function(e){e.target.composing||t.$set(t.entity,"description",e.target.value)}}})]),t._v(" "),t.entity.loadStatust.DamLoadStatus.READING_SKETCHUP?n("tbody",[n("tr",[n("td",{staticClass:"stat-title"},[t._v("Layers")]),t._v(" "),n("td",[t._v("\n "+t._s(t.entity.layerCount)+"\n ")]),t._v(" "),n("td",{staticClass:"stat-title"},[t._v("Materials")]),t._v(" "),n("td",[t._v("\n "+t._s(t.entity.materialCount)+"\n ")])]),t._v(" "),n("tr",[n("td",{staticClass:"stat-title"},[t._v("Polygons")]),t._v(" "),n("td",[t._v("\n "+t._s(t.entity.polygonCount)+"\n ")]),t._v(" "),n("td",{staticClass:"stat-title"},[t._v("Components")]),t._v(" "),n("td",[t._v("\n "+t._s(t.entity.componentCount)+"\n ")])]),t._v(" "),n("tr",[n("td",{staticClass:"stat-title"},[t._v("Groups")]),t._v(" "),n("td",[t._v("\n "+t._s(t.entity.groupCount)+"\n ")]),t._v(" "),n("td",{staticClass:"stat-title"},[t._v("IsDynamic")]),t._v(" "),n("td",[t._v("\n "+t._s(t.entity.isDynamic)+"\n ")])]),t._v(" "),n("tr",[n("td",{staticClass:"stat-title"},[t._v("Views")]),t._v(" "),n("td",[t._v("\n "+t._s(t.entity.views)+"\n ")]),t._v(" "),n("td",{staticClass:"stat-title"},[t._v("Downloads")]),t._v(" "),n("td",[t._v("\n "+t._s(t.entity.downloads)+"\n ")])])]):t._e()])]),t._v(" "),n("div",{staticClass:"dates"},[n("table",[n("tr",[n("td",{staticClass:"date-title"},[t._v(" Last Modified ")]),t._v(" "),n("td",[t._v(" "+t._s(t.entity.lastModifiedDate)+" ")])]),t._v(" "),n("tr",[n("td",{staticClass:"date-title"},[t._v(" Uploaded ")]),t._v(" "),n("td",[t._v(" "+t._s(t.entity.uploadedDate)+" ")])])])]),t._v(" "),t.entity.isEditable?n("div",{staticClass:"action-items"},[n("div",{staticClass:"delete-button",attrs:{title:"Delete this Model"},on:{click:t.handleDelete}})]):t._e()])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(5),i=(n.n(r),n(714)),o=(n.n(i),n(63)),a=n(25),s=n(12),l=n(717),c=n(98),u=function(){function t(t,e){this.modelFile=null,this.uploadProgress=0,this.isUploading=!1,this.file=e,this.id=i.v4(),this.store=t}return t.prototype.init=function(){return this.modelFile=new o.b(this.file),this.modelFile.init()},Object.defineProperty(t.prototype,"loadStatus",{get:function(){return this.modelFile.status-1:t.commentsDisabled},on:{change:function(e){var n=t.commentsDisabled,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.commentsDisabled=n.concat([null])):o>-1&&(t.commentsDisabled=n.slice(0,o).concat(n.slice(o+1)))}else t.commentsDisabled=i}}}),t._v(" "),n("label",{staticClass:"switch-paddle",attrs:{for:"edit-model-disable-comments"}},[n("span",{staticClass:"show-for-sr"},[t._v(t._s(t.$t("Disable Comments")))])])])]),t._v(" "),n("div",{staticClass:"switch-container"},[n("div",{staticClass:"label float-left"},[t._v(t._s(t.$t("Private Model"))+"\n "),n("help-callout",{attrs:{calloutText:t.$t("Make this model visible to you only")}})],1),t._v(" "),n("div",{staticClass:"switch float-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isPrivate,expression:"isPrivate"}],staticClass:"switch-input",attrs:{type:"checkbox",id:"edit-model-is-private",name:"IsPrivate"},domProps:{checked:Array.isArray(t.isPrivate)?t._i(t.isPrivate,null)>-1:t.isPrivate},on:{change:function(e){var n=t.isPrivate,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isPrivate=n.concat([null])):o>-1&&(t.isPrivate=n.slice(0,o).concat(n.slice(o+1)))}else t.isPrivate=i}}}),t._v(" "),n("label",{staticClass:"switch-paddle",attrs:{for:"edit-model-is-private"}},[n("span",{staticClass:"show-for-sr"},[t._v(t._s(t.$t("Private Model")))])])])]),t._v(" "),t.enableModelScores?n("discoverability-bar",{ref:"discBar",attrs:{blocks:t.modelBlocks,pageStyling:"edit-model"}}):t._e(),t._v(" "),n("button",{staticClass:"button lightup-button",attrs:{id:"button-delete"},on:{click:t.openConfirmDeleteModal}},[t._v("\n "+t._s(t.$t("Delete Model"))+"\n ")])],1)]),t._v(" "),n("div",{staticClass:"edit-buttons"},[n("button",{staticClass:"button",attrs:{id:"button-save",disabled:!(t.isEdited&&t.editsValid)},on:{click:t.saveChanges}},[t._v("\n "+t._s(t.$t("Save Changes"))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("button",{staticClass:"button lightup-button",attrs:{id:"button-cancel"},on:{click:t.cancel}},[t._v("\n "+t._s(t.$t("Cancel"))+"\n ")])])],1):n("item-not-found",{attrs:{itemFound:t.entity,itemType:t.$t("model")}})],1),t._v(" "),n("footer-panel",{staticClass:"page-footer-panel"})],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"re-rendering-content"},[e("img",{staticClass:"re-rendering-image",attrs:{src:"/static/images/magic.svg"}})])}]},function(t,e,n){"use strict";var r=n(365),i=n(741),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";e.c=function(t,e,n){var u=a[e];u||(u={dataPromise:null,timeout:0,labelPromise:null},a[e]=u);var d=Date.now();if(!u.dataPromise||u.timeout\n ")])])])]),t._v(" "),n("div",{attrs:{id:"manufacturer-promo"}},[t._m(1),t._v(" "),n("div",{attrs:{id:"manufacturer-promo-text"}},[n("h1",[t._v(t._s(t.$t("Manufacturers")))]),t._v(" "),n("p",{staticClass:"promo-text-right"},[t._v("\n "+t._s(t.$t("Hey, Product Manufacturers!"))+"\n "),n("br"),t._v("\n "+t._s(t.$t("3D Warehouse is the ultimate distribution platform to promote your SketchUp Models."))+"\n ")]),t._v(" "),n("p",[n("a",{attrs:{href:"http://www.sketchup.com/programs/3dwh-manufacturers",target:"_blank"}},[t._v(t._s(t.$t("Learn More"))+" >")])])])])])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{overflow:"hidden"},attrs:{id:"sketchup-promo-bg"}},[e("img",{staticStyle:{"margin-left":"0px","margin-top":"0px",width:"350px",height:"75px"},attrs:{alt:"SketchUp",src:"/static/img/SU_Logo_Color.png"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{overflow:"hidden"},attrs:{id:"manufacturer-promo-bg"}},[e("img",{staticStyle:{"margin-left":"0px","margin-top":"0px",width:"350px",height:"127px"},attrs:{alt:"3D Warehouse Manufacturers",src:"/static/img/Manfr-Graphic.png"}})])}]},,function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"index-page"},[n("header-panel",{staticClass:"no-left-panel",attrs:{autoFocusSearchBar:!0}}),t._v(" "),n("main",[n("div",{staticClass:"featured-models carousel-content"},[n("featured-strip-label",{attrs:{label:t.featuredModelsLabel}}),t._v(" "),n("div",{staticClass:"featured-models-next featured-next-arrow"}),t._v(" "),n("div",{staticClass:"featured-models-prev featured-prev-arrow"}),t._v(" "),n("div",{staticClass:"featured-models-content"},t._l(t.featuredModels,function(t,e){return n("div",{key:"featured-"+e},[n("featured-model-card",{attrs:{model:t}})],1)}))],1),t._v(" "),n("div",{staticClass:"featured-catalogs carousel-content"},[n("div",{staticClass:"featured-catalogs-next featured-next-arrow"}),t._v(" "),n("div",{staticClass:"featured-catalogs-prev featured-prev-arrow"}),t._v(" "),n("div",{staticClass:"featured-catalogs-content"},t._l(t.featuredCatalogs,function(t,e){return n("div",{key:"featured-"+e},[n("div",{staticClass:"featured-catalog-card"},[n("a",{attrs:{href:t.collection.detailsPageUrl}},[n("img",{attrs:{alt:t.collection.title,src:t.logoUrl}})])])])}))]),t._v(" "),n("div",{staticClass:"featured-geo-models carousel-content"},[n("featured-strip-label",{attrs:{label:t.featuredEventModelsLabel}}),t._v(" "),n("div",{staticClass:"featured-geo-next featured-next-arrow"}),t._v(" "),n("div",{staticClass:"featured-geo-prev featured-prev-arrow"}),t._v(" "),n("div",{staticClass:"featured-geo-models-content"},t._l(t.featuredEventModels,function(t,e){return n("div",{key:"featured-"+e},[n("featured-model-card",{attrs:{model:t}})],1)}))],1),t._v(" "),n("div",{staticClass:"featured-collections carousel-content"},[n("div",{staticClass:"featured-collections-next featured-next-arrow"}),t._v(" "),n("div",{staticClass:"featured-collections-prev featured-prev-arrow"}),t._v(" "),n("div",{staticClass:"featured-collections-content"},t._l(t.featuredCollections,function(t,e){return n("div",{key:"featured-"+e},[n("div",{staticClass:"featured-collection-card columns"},[n("search-result-card",{attrs:{collectionElement:t}})],1)])}))]),t._v(" "),n("index-promo-text")],1),t._v(" "),n("footer-panel")],1)},i=[]},function(t,e,n){"use strict";var r=n(369),i=n(746),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"collection-element-metadata"},[n("div",{staticClass:"metadata-panel"},[t._l(t.displayFields,function(e){return[n("div",{key:e,staticClass:"metadata-field",class:{"metadata-link":t.metadata[e].isLink},on:{click:function(n){t.metadataInspect(e)}}},[n("div",{staticClass:"metadata-content"},[n("div",{staticClass:"wrapper"},[n("div",{staticClass:"metadata-left-cell"},[t._v("\n "+t._s(t.metadata[e].label)+"\n ")]),t._v(" "),n("div",{staticClass:"metadata-right-cell"},[n("span",{staticClass:"metadata-value"},[t._v(t._s(t.metadata[e].value))])]),t._v(" "),n("div",{staticClass:"metadata-chevron",class:{hidden:!t.metadata[e].isLink}},[n("chevron",{attrs:{scale:"1",expanded:!0,speed:.25,orientation:"vertical",direction:"right"}})],1)])])])]})],2)])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"material-page"},[n("header-panel",{staticClass:"no-left-panel"}),t._v(" "),n("main",[n("div",{staticClass:"page-main-content"},[n("div",{staticClass:"row item-preview"},[n("div",{staticClass:"medium-9 columns"},[n("div",{staticClass:"material-preview",style:{"background-image":"url("+t.imageUrl+")"}})]),t._v(" "),n("collection-element-metadata-panel",{attrs:{displayFields:t.metadataDisplayValues,metadata:t.itemMetadata,title:t.metadataTitle}})],1),t._v(" "),n("div",{staticClass:"row"},[n("h1",{staticClass:"medium-9 columns page-title end"},[t._v(t._s(t.itemMetadata[t.fieldIds.Title].value)+" ")])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"details medium-9 columns"},[n("h2",{staticClass:"details-header"},[t._v(t._s(t.$t("Details")))]),t._v(" "),n("div",{staticClass:"details-description"},[t._v("\n "+t._s(t.itemMetadata[t.fieldIds.Description].value)+"\n ")])])])])]),t._v(" "),n("footer-panel",{staticClass:"page-footer-panel"})],1)},i=[]},function(t,e,n){"use strict";var r=n(372),i=n(818),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";var r=n(373),i=n(753),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";var r=n(374),i=n(752),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"svg-icon icon-add-to-collection",attrs:{id:"button-add-to-collection"},on:{click:function(e){t.buttonClick()}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"100",height:"100",viewBox:"0 0 100 100"}},[n("g",{attrs:{id:"plus-/-circle-outline",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"plus-icon"}},[n("mask",{attrs:{id:"mask-plus-circle-2",fill:"#fff"}},[n("path",{staticClass:"pathFill",attrs:{d:"M95.986 50C95.986 24.6 75.398 4.014 50 4.014 24.602 4.014 4.014 24.6 4.014 50c0 25.394 20.59 45.986 45.986 45.986 25.395 0 45.986-20.592 45.986-45.986zM100 50c0 27.61-22.388 50-50 50S0 77.61 0 50C0 22.383 22.385 0 50 0s50 22.383 50 50zm-47.993-2.007h24.171a2.007 2.007 0 1 1 0 4.014H52.007v24.171a2.007 2.007 0 1 1-4.014 0V52.007H23.822a2.007 2.007 0 1 1 0-4.014h24.171V23.822a2.007 2.007 0 1 1 4.014 0v24.171z"}})]),t._v(" "),n("path",{staticClass:"pathFill",attrs:{id:"path-plus-circle",fill:"#474655","fill-rule":"nonzero",d:"M95.986 50C95.986 24.6 75.398 4.014 50 4.014 24.602 4.014 4.014 24.6 4.014 50c0 25.394 20.59 45.986 45.986 45.986 25.395 0 45.986-20.592 45.986-45.986zM100 50c0 27.61-22.388 50-50 50S0 77.61 0 50C0 22.383 22.385 0 50 0s50 22.383 50 50zm-47.993-2.007h24.171a2.007 2.007 0 1 1 0 4.014H52.007v24.171a2.007 2.007 0 1 1-4.014 0V52.007H23.822a2.007 2.007 0 1 1 0-4.014h24.171V23.822a2.007 2.007 0 1 1 4.014 0v24.171z"}})])])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"add-to-collection-root"},[n("icon-add-to-collection",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Add to collection"),expression:"$t('Add to collection')"}],attrs:{buttonClick:t.initialize}}),t._v(" "),t.isMounted?n("div",{staticClass:"modal-dialog",attrs:{id:"add-to-collection-ui"}},[n("div",{staticClass:"small reveal",attrs:{id:"add-to-collection","data-reveal":"","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("div",{staticClass:"modal-container grid-container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"large-12 columns"},[n("div",{staticClass:"modal-header"},[n("h2",[t._v(t._s(t.$t("Add to collection")))]),t._v(" "),n("h3",[t._v(t._s(t.bodyText))])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"modal-error-placeholder",class:{active:t.errorState}},[t.errorState?n("div",{staticClass:"modal-error"},[t._v("\n "+t._s(t.errorText)+"\n ")]):t._e()])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"large-12"},[n("div",{staticClass:"modal-body"},[n("div",{staticClass:"row body-grid"},[n("div",{staticClass:"item-info large-6 medium-6 columns hide-for-small-only"},[n("img",{attrs:{src:t.itemThumbnailSrc}}),t._v(" "),n("div",{staticClass:"item-title"},[t._v(t._s(t.title))])]),t._v(" "),n("div",{staticClass:"collection-list large-6 medium-6 columns"},[t.loading?n("div",{staticClass:"loading"}):t._e(),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.newCollectionTitle,expression:"newCollectionTitle"}],attrs:{name:"new-collection",id:"new-collection-input",type:"text",title:t.$t("{LIMIT} character limit for title",{LIMIT:t.maxTitleLength}),maxlength:t.maxTitleLength,placeholder:t.$t("New Collection")},domProps:{value:t.newCollectionTitle},on:{input:function(e){e.target.composing||(t.newCollectionTitle=e.target.value)}}}),t._v(" "),n("div",{attrs:{id:"button-new-collection",title:t.$t("Create New Collection")},on:{click:t.onNewCollectionClicked}}),t._v(" "),t._l(t.collections,function(e){return n("div",{key:e.id,staticClass:"collection-checkbox"},[e.permissionDenied?[n("div",{staticClass:"permission-denied"},[n("input",{attrs:{type:"checkbox",id:"add-to-"+e.id},on:{click:t.onPermissionDeniedClick}}),t._v(" "),n("label",{attrs:{for:"add-to-"+e.id}},[t._v(t._s(e.title))]),t._v(" "),n("span",{staticClass:"alert-icon",attrs:{title:t.permissionDeniedText},on:{click:t.onPermissionDeniedClick}})])]:[n("div",[n("input",{attrs:{type:"checkbox",id:"add-to-"+e.id,disabled:e.disabled},domProps:{checked:e.containsItem},on:{change:function(n){t.onContainsToggle(e)}}}),t._v(" "),n("label",{attrs:{for:"add-to-"+e.id}},[t._v(t._s(e.title))])]),t._v(" "),n("div",{staticClass:"item-state",class:[""===e.alertState?"item-state-hidden":"item-state-displayed"]},[t._v("\n "+t._s(e.alertState)+"\n ")])]],2)})],2)])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"large-12 columns"},[n("div",{staticClass:"modal-footer"},[n("button",{staticClass:"btn-primary-default",on:{click:t.close}},[t._v("\n "+t._s(t.$t("Done"))+"\n ")])])])])])])]):t._e()],1)},i=[]},function(t,e,n){"use strict";var r=n(375),i=n(770),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";var r=n(376),i=n(760),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(377),i=n(758),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"svg-icon",on:{click:function(e){t.buttonClick()}}},[n("svg",{staticClass:"action-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M0 0h20v20H0z"}}),t._v(" "),n("path",{staticClass:"pathFill",attrs:{fill:"#8C8B96","fill-rule":"nonzero",d:"M15.108 9.564c0-.23.178-.418.397-.418.22 0 .398.187.398.418v10.019c0 .23-.178.417-.398.417H.398A.408.408 0 0 1 0 19.583V2.05c0-.23.178-.418.398-.418h11.131c.22 0 .398.187.398.418 0 .23-.178.417-.398.417H.795v16.698h14.313V9.564zm3.017-6.785L16.44 1.008 8.284 9.57l-1.265 3.1 2.951-1.328 8.155-8.563zm-7.771 9.299l-3.936 1.77c-.33.15-.663-.2-.522-.547l1.687-4.134.084-.13 8.49-8.915a.384.384 0 0 1 .563 0l2.249 2.361a.432.432 0 0 1 0 .59l-8.49 8.916-.125.089zm7.155-8.062a.432.432 0 0 1 0 .59.384.384 0 0 1-.562 0l-2.25-2.361a.432.432 0 0 1 0-.59.384.384 0 0 1 .563 0l2.25 2.361zM10.48 11.4a.432.432 0 0 1-.001.59.384.384 0 0 1-.562 0L7.667 9.627a.432.432 0 0 1 0-.59.384.384 0 0 1 .563 0l2.248 2.362z"}})])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"svg-icon icon-flag",attrs:{id:"button-report-abuse"},on:{click:function(e){t.buttonClick()}}},[t.altSvg?n("svg",{staticClass:"action-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"20",viewBox:"0 0 17 20"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M-2 0h20v20H-2z"}}),t._v(" "),n("path",{staticClass:"pathFill",attrs:{fill:"#E72B2D","fill-rule":"nonzero",d:"M0 .417a.417.417 0 1 1 .833 0v19.166a.417.417 0 1 1-.833 0V.417zm16.14 1.842a.417.417 0 0 1 .527.402v10.035a.417.417 0 0 1-.31.403 26.979 26.979 0 0 1-1.566.348c-.704.134-1.395.237-2.045.295-2.45.22-3.996-.185-3.996-1.658 0-.682-1.089-.874-3.053-.528-.528.094-1.09.221-1.67.375a27.744 27.744 0 0 0-1.805.546.417.417 0 0 1-.555-.393v-10c0-.177.111-.334.278-.393a28.57 28.57 0 0 1 1.868-.565C4.414.965 5 .833 5.553.735 8.016.3 9.583.578 9.583 2.084c0 .713 1.11.999 3.086.811a20.372 20.372 0 0 0 1.945-.29 26.24 26.24 0 0 0 1.527-.346z"}})])]):n("svg",{staticClass:"action-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"20",viewBox:"0 0 17 20"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{d:"M-2 0h20v20H-2z"}}),t._v(" "),n("path",{staticClass:"pathFill",attrs:{fill:"#8C8B96","fill-rule":"nonzero",d:"M0 .417a.417.417 0 1 1 .833 0v19.166a.417.417 0 1 1-.833 0V.417zm16.14 1.842a.417.417 0 0 1 .527.402v10.035a.417.417 0 0 1-.31.403 26.979 26.979 0 0 1-1.566.348 21.08 21.08 0 0 1-2.045.295c-2.45.22-3.996-.185-3.996-1.658 0-.682-1.089-.874-3.053-.528-.528.094-1.09.221-1.67.375a27.744 27.744 0 0 0-1.805.546.417.417 0 0 1-.555-.393v-10c0-.177.111-.334.278-.393a28.57 28.57 0 0 1 1.868-.565 20.807 20.807 0 0 1 1.74-.391C8.016.3 9.583.578 9.583 2.084c0 .713 1.11.999 3.086.811a20.372 20.372 0 0 0 1.945-.29 26.24 26.24 0 0 0 1.527-.346zm-1.367 1.164c-.698.136-1.381.24-2.025.302-2.451.232-3.998-.167-3.998-1.641 0-.682-1.089-.874-3.053-.528-.528.094-1.09.221-1.67.375a27.744 27.744 0 0 0-1.527.452v9.124c.411-.13.854-.26 1.313-.382a21.954 21.954 0 0 1 1.74-.39c2.463-.434 4.03-.157 4.03 1.349 0 .714 1.111 1.006 3.088.828.62-.055 1.285-.154 1.964-.284a26.15 26.15 0 0 0 1.198-.257V3.195c-.33.078-.686.155-1.06.228z"}})])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"comment-card",class:{"edit-mode":t.editing}},[n("div",{staticClass:"commenter-image"},[n("a",{attrs:{href:t.commenterUrl}},[n("img",{attrs:{src:t.picture}})])]),t._v(" "),n("div",{staticClass:"comment-details"},[n("div",{staticClass:"comment-header"},[n("a",{attrs:{href:t.commenterUrl}},[t._v(t._s(t.comment.displayName))])]),t._v(" "),0===t.comment.reportCount||t.viewAnyway?n("div",{staticClass:"comment-text",on:{click:function(e){t.viewAnyway=!1}}},[t._v("\n "+t._s(this.comment.commentText)+"\n ")]):n("div",{staticClass:"comment-text abusive",on:{click:function(e){t.viewAnyway=!0}}},[t._v("\n "+t._s(t.$t("This comment has been flagged as abusive. Click here to see the comment anyway."))+"\n ")])]),t._v(" "),t.editing?t._e():n("div",{staticClass:"comment-right-col"},[n("div",{staticClass:"comment-date"},[t._v(t._s(t.date))]),t._v(" "),n("div",{staticClass:"comment-actions"},[t.canEdit?n("icon-edit",{attrs:{buttonClick:t.editComment,title:t.$t("Edit")}}):t._e(),t._v(" "),t.canEdit?n("icon-delete",{attrs:{buttonClick:t.deleteComment,title:t.$t("Delete")}}):t._e(),t._v(" "),t.canReport?n("icon-flag",{attrs:{buttonClick:t.reportComment,altSvg:t.hasBeenReported}}):t._e()],1)])])},i=[]},function(t,e,n){"use strict";var r=n(381),i=n(765),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"comment-post-modal modal-dialog reveal",attrs:{id:"comment-post","data-reveal":"","data-close-on-click":"false","data-close-on-esc":"true","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("div",{staticClass:"modal-dialog-header grid-container"},[n("div",{staticClass:"modal-close-x",on:{click:t.closeModal}}),t._v(" "),n("div",{staticClass:"modal-dialog-header"},[n("div",{staticClass:"modal-dialog-title-text title comment-post-title"},[n("span",[t._v(t._s(t.titleText))])])])]),t._v(" "),n("div",{staticClass:"modal-dialog-content comment-post-content"},[n("error-in-context",{attrs:{errorState:t.errorState,errorText:t.errorText,contextHeader:t.placeholder}}),t._v(" "),n("div",{staticClass:"comment-post-text"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentText,expression:"commentText"}],class:{"input-field-error-bar":t.errorState},attrs:{name:"new-comment",id:"new-comment-input",maxlength:t.maxlength,placeholder:t.$t("Comment")},domProps:{value:t.commentText},on:{input:[function(e){e.target.composing||(t.commentText=e.target.value)},t.clearErrorState],focus:function(e){t.inputFocused=!0},blur:function(e){t.inputFocused=!1}}})]),t._v(" "),n("div",{staticClass:"chars-remaining",class:{"input-full":t.charactersRemaining<=0}},[t._v("\n "+t._s(t.$t("{count} characters remaining",{count:t.charactersRemaining}))+"\n ")])],1),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("button",{staticClass:"modal-dialog-button-ok button",attrs:{id:"commentPost",disabled:!t.isCommentValid},on:{click:t.commentPost}},[t._v("\n "+t._s(t.buttonText)+"\n ")])])])},i=[]},function(t,e,n){"use strict";e.a=function(t){var e=window.location.href,n=i.n(e,e),o=r.a.SIGNED_IN_FOR_FEATURE;r.f(o,[t,"true"]),i.x(n)};var r=n(13),i=n(7)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"comment-card",class:{"comment-post":t.isSignedIn,"comment-signin":!t.isSignedIn},on:{click:t.postComment}},[t.isSignedIn?[n("div",{staticClass:"commenter-image"},[n("img",{attrs:{src:t.picture}})]),t._v(" "),n("div",{staticClass:"comment-details"},[n("div",{staticClass:"comment-post-text",attrs:{id:"button-post-comment"}},[t._v("\n "+t._s(t.$t("Post a comment"))+"\n ")])])]:[n("div",{staticClass:"join-image"}),t._v(" "),n("div",{staticClass:"join-tagline"},[t._v(t._s(t.$t("Join the Conversation")))]),t._v(" "),n("button",{staticClass:"lightup-button join-action",on:{click:t.signIn}},[t._v(t._s(t.$t("Sign In")))])]],2)},i=[]},function(t,e,n){"use strict";var r=n(385),i=n(768),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"comment-report-modal modal-dialog reveal small",attrs:{"data-reveal":"","data-close-on-click":"false","data-close-on-esc":"true","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("div",{staticClass:"modal-close-x",on:{click:t.closeModal}}),t._v(" "),n("div",{staticClass:"modal-dialog-header"},[n("span",{staticClass:"modal-dialog-title-text comment-report-title"},[t._v("\n "+t._s(t.$t("What's Wrong?"))+"\n ")])]),t._v(" "),n("div",{staticClass:"modal-dialog-content comment-report-content"},[n("error-in-context",{attrs:{errorState:t.errorState,errorText:t.errorText,alignment:"center"}}),t._v(" "),n("span",{staticClass:"report-header"},[t._v("\n "+t._s(t.$t("Can you let us know what's wrong with this comment?"))+"\n ")]),t._v(" "),n("div",{staticClass:"radio-button-group"},[t._l(t.reasons,function(e){return n("div",{key:e.key,staticClass:"radio-button"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.key,expression:"key"}],attrs:{type:"radio",name:"ReportReason",id:"radio"+e.key},domProps:{value:e.key,checked:t._q(t.key,e.key)},on:{change:function(n){t.key=e.key}}}),t._v(" "),n("label",{attrs:{for:"radio"+e.key}},[t._v(t._s(e.value))])])}),t._v(" "),"Other"===t.key?n("div",{staticClass:"other-reason"},[n("error-in-context",{attrs:{errorState:!1,contextHeader:t.otherReasonHeader}}),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.otherReasonText,expression:"otherReasonText"}],attrs:{maxlength:t.MAX_OTHER_REASON_LENGTH,placeholder:t.$t("Other Reason")},domProps:{value:t.otherReasonText},on:{focus:function(e){t.reasonFocused=!0},blur:function(e){t.reasonFocused=!1},input:function(e){e.target.composing||(t.otherReasonText=e.target.value)}}}),t._v(" "),n("div",{staticClass:"chars-remaining",class:{"input-full":t.charactersRemaining<=0}},[t._v("\n "+t._s(t.$t("{count} characters remaining",{count:t.charactersRemaining}))+"\n ")])],1):t._e()],2)],1),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("button",{staticClass:"modal-dialog-button-ok button",attrs:{id:"commentReportAccept",disabled:!t.canExecute},on:{click:t.onAccept}},[t._v("\n "+t._s(t.$t("Submit"))+"\n ")])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r,i=n(5),o=(n.n(i),n(34)),a=n(384),s=n(8),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){var n=t.call(this,e)||this;return n.offset=1,n}return l(e,t),e.prototype.open=function(){return 0===this.items.length?this.loadMore():Promise.resolve(this.items)},e.prototype.loadMore=function(){var t=this;if(!this.isValidLoadRequest())return Promise.resolve(this.items);this.isLoading=!0;var e=i.whp.HttpMethod.Get,n={subjectId:this.source.id,subjectClass:this.source.subjectClass,startRow:this.offset,endRow:this.offset+o.a.CONTENT_SCROLL_INCREMENT-1,sortBy:s.c.CreateTimeAsc};return this.handler.performLegacyApiRequest("/GetComments",n,{method:e}).then(function(e){return t.isScrolledToEnd=e.endRow>=e.total,e.entries.forEach(function(e){var n=new a.a(e);t.items.push(n)}),t.offset+=o.a.CONTENT_SCROLL_INCREMENT,t.isLoading=!1,Promise.resolve(t.items)},function(e){return t.isLoading=!1,Promise.reject(e)})},e}(o.b)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"comments-container"},[n("accordion",{ref:"accordionPanel",attrs:{id:"comments-accordion"}},[n("accordion-item",{attrs:{id:"modelCommentsPanel",analyticsName:"comments",title:t.$t("Comments")},model:{value:t.expanded.comments,callback:function(e){t.$set(t.expanded,"comments",e)},expression:"expanded.comments"}},[t.allowComments?n("div",{ref:"scrollTarget",staticClass:"comment-cards"},[n("comment-post-card"),t._v(" "),t._l(t.comments,function(e){return n("comment-card",{key:e.id,attrs:{comment:e,currentUser:t.currentUser}})})],2):n("div",{staticClass:"comments-disabled"},[t._v("\n "+t._s(t.$t("Comments are disabled."))+"\n ")]),t._v(" "),t.isLoading?n("div",{staticClass:"loading"}):t._e()])],1)],1)},i=[]},function(t,e,n){"use strict";var r=n(386),i=n(790),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";var r=n(387),i=n(775),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"contributor-card"},[n("div",{staticClass:"creator-container"},[n("a",{attrs:{href:t.contributor.userPageUrl}},[n("div",{staticClass:"creator-image"},[n("img",{attrs:{src:t.avatarUrl}})])]),t._v(" "),n("div",{staticClass:"creator-name"},[n("a",{attrs:{href:t.contributor.userPageUrl}},[t._v("\n "+t._s(t.contributor.creatorName)+"\n ")])])]),t._v(" "),n("div",{staticClass:"contributor-models"},t._l(t.contributor.models,function(t){return n("search-result-card",{key:t.id,attrs:{collectionElement:t}})})),t._v(" "),t.contributor.modelCount>2?n("div",{staticClass:"expand-panel",on:{click:t.expandToggle}},[t.expanded?t._e():n("div",{staticClass:"expand-title"},[t._v(t._s(t.expandText))]),t._v(" "),n("chevron",{staticClass:"expand-chevron",attrs:{expanded:!0,speed:0,direction:t.expanded?"up":"down"}})],1):t._e()])},i=[]},function(t,e,n){"use strict";var r=n(388),i=n(778),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"contributor-count"},[e("span",{staticClass:"title"},[this._v(this._s(this.$t("Contributors")))]),this._v(" "),e("span",{staticClass:"number"},[this._v(this._s(this.count))])])},i=[]},function(t,e,n){"use strict";var r=n(389),i=n(780),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content-card material"},[t.materialsEnabled?n("a",{attrs:{href:t.pageUrl}},[n("span",{staticClass:"content-image",style:{backgroundImage:"url("+t.materialUrl+")"}})]):n("span",{staticClass:"content-image material-image",style:{backgroundImage:"url("+t.materialUrl+")"}}),t._v(" "),n("div",{staticClass:"content-details"},[n("div",{staticClass:"content-info"},[n("div",{staticClass:"content-name"},[t.materialsEnabled?n("a",{attrs:{href:t.pageUrl}},[t._v("\n "+t._s(t.material.title)+"\n ")]):n("span",[t._v("\n "+t._s(t.material.title)+"\n ")])]),t._v(" "),n("div",{staticClass:"content-dimensions"},[t._v(t._s(t.dimensions))]),t._v(" "),n("div",{staticClass:"content-size"},[t._v("\n "+t._s(t.$t("File Size: {fileSize}",{fileSize:t.fileSize}))+"\n ")])]),t._v(" "),n("div",{staticClass:"content-download",on:{click:t.download}},[t._v(t._s(t.$t("Download")))])])])},i=[]},function(t,e,n){"use strict";var r=n(390),i=n(783),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"reviewer-card"},[n("a",{attrs:{href:t.pageUrl}},[n("span",{staticClass:"reviewer-image",style:{backgroundImage:"url("+t.user.avatarUrl+")"}})]),t._v(" "),n("div",{staticClass:"reviewer-details"},[n("div",{staticClass:"reviewer-name"},[n("a",{attrs:{href:t.pageUrl}},[t._v("\n "+t._s(t.user.displayName)+"\n ")])]),t._v(" "),n("div",{staticClass:"reviewer-models"},[t._v("\n "+t._s(t.$t("{modelCount} models",{modelCount:t.user.entityCount}))+"\n ")]),t._v(" "),n("div",{staticClass:"reviewer-models"},[t._v("\n "+t._s(t.$t("{likedCount} liked models",{likedCount:t.user.reviewedEntityCount}))+"\n ")])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r,i=n(5),o=(n.n(i),n(34)),a=n(66),s=n(4),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){return t.call(this,e)||this}return l(e,t),e.prototype.open=function(){return 0===this.items.length?this.loadMore():Promise.resolve(this.items)},e.prototype.loadMore=function(){if(!this.isValidLoadRequest())return Promise.resolve(this.items);this.isLoading=!0;var t={show:i.whp.PrivacyLevel.Public,showBinaryMetadata:!0,offset:this.offset,count:o.a.CONTENT_SCROLL_INCREMENT,contentType:i.whp.ContentType.Warehouse3D,recordEvent:!1};return this.browseType===s.c.ContainingCollections?this.loadContainingCollections(t):this.loadAuthorCollections(t)},e.prototype.loadContainingCollections=function(t){var e=this;return t.fq="containsEntityId=="+this.source.id,t.searchElasticsearch=!0,this.handler.getCollections(t).then(function(t){return e.processResponse(t)},function(t){return e.isLoading=!1,Promise.reject(t)})},e.prototype.loadAuthorCollections=function(t){var e=this;return t.fq="creatorId=="+this.source.creatorId,t.searchElasticsearch=!0,this.handler.getCollections(t).then(function(t){return e.processResponse(t)},function(t){return e.isLoading=!1,Promise.reject(t)})},e.prototype.processResponse=function(t){var e=this;return this.isScrolledToEnd=t.endRow>=t.total,t.entries.forEach(function(t){e.items.push(a.a.create(t))}),this.offset+=o.a.CONTENT_SCROLL_INCREMENT,this.isLoading=!1,Promise.resolve(this.items)},e}(o.b)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r,i=n(5),o=(n.n(i),n(786)),a=n(34),s=n(25),l=n(8),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e){var n=t.call(this,e)||this;return n.selfContributor=null,n}return c(e,t),e.prototype.open=function(){return 0===this.items.length&&null==this.selfContributor?this.loadMore():Promise.resolve(this.items)},e.prototype.loadMore=function(){var t=this;if(!this.isValidLoadRequest())return Promise.resolve(this.items);this.isLoading=!0;var e=this.source.subComponents,n={fq:"id=="+e.join(",id=="),sortBy:l.c.TitleAsc,count:e.length,showBinaryMetadata:!0,contentType:i.whp.ContentType.Warehouse3D,searchElasticSearch:!0,recordEvent:!1};return this.handler.getEntities(n).then(function(e){return t.items=t.buildContributors(e),t.isScrolledToEnd=!0,t.isLoading=!1,Promise.resolve(t.items)},function(e){return t.isLoading=!1,Promise.reject(e)})},e.prototype.buildContributors=function(t){var e=this;this.selfContributor=null;var n=[];return t.entries.forEach(function(t){var r=new s.a(t),i=e.getContributor(t.creator.id,n);null==i?(i=new o.a(r,e.handler),e.source.creatorId===i.creatorId?e.selfContributor=i:n.push(i)):i.add(r),n.sort(function(t,e){return t.creatorName.localeCompare(e.creatorName)}),e.selfContributor&&e.selfContributor.sort(),n.forEach(function(t){return t.sort()})}),n},e.prototype.getContributor=function(t,e){if(this.selfContributor&&this.selfContributor.creatorId===t)return this.selfContributor;for(var n=0;n=e.total,e.entries.forEach(function(e){t.items.push(new a.a(e))}),t.offset+=o.a.CONTENT_SCROLL_INCREMENT,t.isLoading=!1,Promise.resolve(t.items)},function(e){return t.isLoading=!1,Promise.reject(e)})},e}(o.b)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r,i=n(5),o=(n.n(i),n(34)),a=n(25),s=n(4),l=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){return t.call(this,e)||this}return l(e,t),e.prototype.open=function(){return 0===this.items.length?this.loadMore():Promise.resolve(this.items)},e.prototype.loadMore=function(){if(!this.isValidLoadRequest())return Promise.resolve(this.items);this.isLoading=!0;var t={show:i.whp.PrivacyLevel.Public,showBinaryMetadata:!0,offset:this.offset,count:o.a.CONTENT_SCROLL_INCREMENT,contentType:i.whp.ContentType.Warehouse3D,searchElasticsearch:!0,recordEvent:!1};return this.browseType===s.c.RelatedModels?this.loadRelatedModels(t):this.loadCreatorModels(t)},e.prototype.loadRelatedModels=function(t){var e=this,n="/entities/"+this.source.id+"/related";return this.handler.performApiRequest(n,t).then(function(t){return e.processResponse(t.data,!0)},function(t){return e.isLoading=!1,Promise.reject(t)})},e.prototype.loadCreatorModels=function(t){var e=this;return t.fq="creatorId=="+this.source.creatorId+";id!="+this.source.id,t.searchElasticsearch=!0,this.handler.getEntities(t).then(function(t){return e.processResponse(t)},function(t){return e.isLoading=!1,Promise.reject(t)})},e.prototype.processResponse=function(t,e){var n=this;return void 0===e&&(e=!1),this.isScrolledToEnd=t.endRow>=t.total,t.entries.forEach(function(t){var r=new a.a(t);(!e||n.items.findIndex(function(t){return t.id===r.id})<0)&&n.items.push(r)}),this.offset+=o.a.CONTENT_SCROLL_INCREMENT,this.isLoading=!1,Promise.resolve(this.items)},e}(o.b)},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r,i=n(5),o=(n.n(i),n(34)),a=n(62),s=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e){var n=t.call(this,e)||this;return n.user=e.getters.currentUser,n}return s(e,t),e.prototype.open=function(){return 0===this.items.length?this.loadFirst():Promise.resolve(this.items)},e.prototype.loadFirst=function(){var t=this;if(""===this.currentUserId)return this.loadMore();var e=i.whp.HttpMethod.Get,n={createUserId:this.user.id,subjectId:this.source.id,subjectClass:this.source.subjectClass,startRow:this.offset,endRow:this.offset+o.a.CONTENT_SCROLL_INCREMENT-1};return this.handler.performLegacyApiRequest("/GetReviews",n,{method:e}).then(function(e){if(e.entries.length>0){var n=new a.a(e.entries[0]);t.items.push(n)}return t.loadMore()},function(t){return Promise.reject(t)})},e.prototype.loadMore=function(){var t=this;if(!this.isValidLoadRequest())return Promise.resolve(this.items);this.isLoading=!0;var e=i.whp.HttpMethod.Get,n={subjectId:this.source.id,subjectClass:this.source.subjectClass,startRow:this.offset,endRow:this.offset+o.a.CONTENT_SCROLL_INCREMENT-1};return this.handler.performLegacyApiRequest("/GetReviews",n,{method:e}).then(function(e){return t.isScrolledToEnd=e.endRow>=e.total,e.entries.forEach(function(e){if(e.userId!==t.currentUserId){var n=new a.a(e);n.id=e.userId,n.reviewedEntityCount=e.reviewedEntityCount,e.entityCount&&e.entityCount.SKETCHUP_MODEL&&(n.entityCount=e.entityCount.SKETCHUP_MODEL),t.items.push(n)}}),t.offset+=o.a.CONTENT_SCROLL_INCREMENT,t.isLoading=!1,Promise.resolve(t.items)},function(e){return t.isLoading=!1,Promise.reject(e)})},Object.defineProperty(e.prototype,"currentUserId",{get:function(){return this.user&&this.user.id?this.user.id:""},enumerable:!0,configurable:!0}),e}(o.b)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-right-panel content-browser",class:{open:t.isOpen},attrs:{id:"content-browser"}},[n("div",{staticClass:"content-container"},[n("div",{staticClass:"content-title"},[t._v("\n "+t._s(t.contentTitle)+"\n ")]),t._v(" "),n("div",{staticClass:"modal-close-x",on:{click:function(e){t.close()}}}),t._v(" "),n("div",{ref:"scrollTrigger",staticClass:"content-scroller"},[t.isLoading?n("div",{staticClass:"loading"}):t._e(),t._v(" "),n("div",{ref:"scrollTarget",staticClass:"content-cards"},[t.browseComponents?[null!=t.selfContributor?n("contributor-card",{attrs:{contributor:t.selfContributor}}):t._e(),t._v(" "),t.items.length>0?n("contributor-count",{attrs:{count:t.items.length}}):t._e(),t._v(" "),t._l(t.items,function(t){return n("div",{key:t.id},[n("contributor-card",{attrs:{contributor:t}})],1)})]:t.browseMaterials?t._l(t.items,function(t){return n("material-card",{key:t.id,attrs:{material:t}})}):t.browseUsers?t._l(t.items,function(t){return n("reviewer-card",{key:t.id,attrs:{user:t}})}):t.browseModels||t.browseCollections?t._l(t.items,function(e){return n("search-result-card",{key:e.id,staticClass:"content-card",class:{model:t.browseModels,collection:t.browseCollections},attrs:{collectionElement:e}})}):t._e()],2)])])])},i=[]},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.entity?n("div",{ref:"downloadControls",staticClass:"download-controls",attrs:{id:"download-controls"}},[n("div",{staticClass:"download-controls-content"},[n("button",{staticClass:"button button-download",class:{nonSkpClient:t.nonSkpClient},attrs:{id:"download-button-"+t.entity.id,title:t.$t("Download")},on:{click:t.onDownloadButtonClicked}},[n("span",{staticClass:"download-button-text"},[t._v(t._s(t.$t("Download")))]),t._v(" "),n("chevron",{staticClass:"expand-chevron",attrs:{expanded:!0,direction:"down"}})],1),t._v(" "),t.showOptions?n("div",{staticClass:"download-select"},t._l(t.downloadableBinaries,function(e,r){return n("div",{key:r,staticClass:"download-option"},[n("button",{attrs:{id:"download-option-"+e.name,title:t.$t(t.getBinaryString(e.name))},on:{click:function(n){t.onDownloadLinkClicked(e.name)}}},[t._v(t._s(t.$t(t.getBinaryString(e.name))))])])})):t._e()])]):t._e()},i=[]},function(t,e,n){"use strict";var r=n(393),i=n(795),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"embed-model-modal modal-dialog reveal",attrs:{"data-reveal":"","data-close-on-esc":"true","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("div",{staticClass:"modal-close-x",on:{click:t.closeModal}}),t._v(" "),n("div",{staticClass:"modal-dialog-header"},[n("span",{staticClass:"modal-dialog-title-text"},[t._v("\n "+t._s(t.$t("Sharing is Caring"))+"\n ")])]),t._v(" "),n("div",{staticClass:"modal-dialog-content"},[n("span",{staticClass:"instruction-text"},[t._v("\n "+t._s(t.$t("Use this code to embed the model to your website."))+"\n ")]),t._v(" "),n("div",{staticClass:"embed-text",attrs:{contenteditable:"",id:"embed-dialog-text"},on:{click:t.selectEmbedText}},[t._v(t._s(t.embedText))])]),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("button",{staticClass:"modal-dialog-button-primary button",class:{completed:t.isCopied},attrs:{id:"embed-dialog-copy"},on:{click:t.copyEmbedText}},[t._v("\n "+t._s(t.copyButtonLabel)+"\n ")])])])},i=[]},function(t,e,n){"use strict";var r=n(394),i=n(798),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"geolocation-modal modal-dialog reveal",attrs:{"data-reveal":"","data-close-on-click":"false","data-close-on-esc":"true","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("div",{staticClass:"modal-dialog-header"},[n("span",{staticClass:"modal-dialog-title-text",attrs:{title:t.title}},[t._v("\n "+t._s(t.title)+"\n ")])]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"modal-dialog-footer"},[n("button",{staticClass:"modal-dialog-button-close lightup-button button",attrs:{id:"geolocation-dialog-close"},on:{click:t.closeModal}},[t._v("\n "+t._s(t.$t("Done"))+"\n ")])])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-dialog-content"},[e("div",{staticClass:"row column",attrs:{id:"geolocation-maps-container"}})])}]},function(t,e,n){"use strict";var r=n(395),i=n(800),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"svg-icon",attrs:{id:"button-3d-embed"},on:{click:function(e){t.buttonClick()}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"100",height:"100",viewBox:"0 0 100 100"}},[n("g",{attrs:{id:"icons",fill:"none","fill-rule":"evenodd",transform:"translate(-865 -376)"}},[n("g",{attrs:{id:"embed",transform:"translate(865 376)"}},[n("g",{attrs:{id:"share-/-embed-/-24px"}},[n("mask",{attrs:{id:"mask-embed-2",fill:"#fff"}},[n("path",{attrs:{d:"M95.826 50C95.826 24.688 75.312 4.174 50 4.174S4.174 24.688 4.174 50 24.688 95.826 50 95.826 95.826 75.312 95.826 50zM100 50c0 27.617-22.383 50-50 50S0 77.617 0 50 22.383 0 50 0s50 22.383 50 50zM37.699 62.629a2.087 2.087 0 1 1-2.951 2.951L19.36 50.198a2.087 2.087 0 0 1 0-2.951l15.388-15.388a2.087 2.087 0 1 1 2.95 2.951l-13.91 13.912 13.91 13.907zM61.023 34.81a2.087 2.087 0 0 1 2.952-2.951l15.387 15.388a2.087 2.087 0 0 1 0 2.951L63.974 65.58a2.087 2.087 0 0 1-2.95-2.951l13.911-13.907L61.023 34.81zm-6.76-2.137a2.087 2.087 0 0 1 3.797 1.734L44.208 64.724a2.087 2.087 0 1 1-3.796-1.735l13.852-30.316z"}})]),t._v(" "),n("path",{attrs:{id:"path-embed",fill:"#474655","fill-rule":"nonzero",d:"M95.826 50C95.826 24.688 75.312 4.174 50 4.174S4.174 24.688 4.174 50 24.688 95.826 50 95.826 95.826 75.312 95.826 50zM100 50c0 27.617-22.383 50-50 50S0 77.617 0 50 22.383 0 50 0s50 22.383 50 50zM37.699 62.629a2.087 2.087 0 1 1-2.951 2.951L19.36 50.198a2.087 2.087 0 0 1 0-2.951l15.388-15.388a2.087 2.087 0 1 1 2.95 2.951l-13.91 13.912 13.91 13.907zM61.023 34.81a2.087 2.087 0 0 1 2.952-2.951l15.387 15.388a2.087 2.087 0 0 1 0 2.951L63.974 65.58a2.087 2.087 0 0 1-2.95-2.951l13.911-13.907L61.023 34.81zm-6.76-2.137a2.087 2.087 0 0 1 3.797 1.734L44.208 64.724a2.087 2.087 0 1 1-3.796-1.735l13.852-30.316z"}}),t._v(" "),n("g",{staticClass:"pathFill",attrs:{id:"✓-trimble-/-gray-/-474655",fill:"#474655",mask:"url(#mask-embed-2)"}},[n("path",{attrs:{d:"M0 0h146v146H0z",transform:"translate(-20.833 -25)"}})])])])])])])},i=[]},function(t,e,n){"use strict";var r=n(396),i=n(802),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"svg-icon icon-heart",class:{selected:t.altSvg},attrs:{id:"button-like"},on:{click:function(e){t.buttonClick()}}},[t.altSvg?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"100",height:"100",viewBox:"0 0 100 100"}},[n("g",{attrs:{id:"icons",fill:"none","fill-rule":"evenodd",transform:"translate(-997 -370)"}},[n("g",{attrs:{id:"heart-/-circle-filled",transform:"translate(997 370)"}},[n("g",{attrs:{id:"heart-/-circle"}},[n("mask",{attrs:{id:"mask-heart-filled-2",fill:"#fff"}},[n("path",{attrs:{d:"M95.993 50C95.993 24.596 75.404 4.007 50 4.007 24.596 4.007 4.007 24.596 4.007 50c0 25.402 20.59 45.993 45.993 45.993 25.403 0 45.993-20.591 45.993-45.993zM100 50c0 27.615-22.384 50-50 50S0 77.615 0 50C0 22.383 22.383 0 50 0s50 22.383 50 50zm-25.042-4.02c0 2.808-.976 5.81-2.778 8.993-2.107 3.72-5.298 7.618-9.288 11.595a110.392 110.392 0 0 1-8.038 7.223 107.76 107.76 0 0 1-2.65 2.1c-.484.37-.833.631-1.026.77a1.999 1.999 0 0 1-2.356 0c-.193-.139-.542-.4-1.026-.77a107.76 107.76 0 0 1-2.65-2.1 110.392 110.392 0 0 1-8.038-7.223c-3.99-3.977-7.181-7.874-9.288-11.595-1.802-3.183-2.778-6.185-2.778-8.992 0-15.7 17.965-19.889 24.958-7.06 6.993-12.829 24.958-8.64 24.958 7.06z"}})]),t._v(" "),n("path",{attrs:{id:"path-heart-filled",fill:"#474655","fill-rule":"nonzero",d:"M95.993 50C95.993 24.596 75.404 4.007 50 4.007 24.596 4.007 4.007 24.596 4.007 50c0 25.402 20.59 45.993 45.993 45.993 25.403 0 45.993-20.591 45.993-45.993zM100 50c0 27.615-22.384 50-50 50S0 77.615 0 50C0 22.383 22.383 0 50 0s50 22.383 50 50zm-25.042-4.02c0 2.808-.976 5.81-2.778 8.993-2.107 3.72-5.298 7.618-9.288 11.595a110.392 110.392 0 0 1-8.038 7.223 107.76 107.76 0 0 1-2.65 2.1c-.484.37-.833.631-1.026.77a1.999 1.999 0 0 1-2.356 0c-.193-.139-.542-.4-1.026-.77a107.76 107.76 0 0 1-2.65-2.1 110.392 110.392 0 0 1-8.038-7.223c-3.99-3.977-7.181-7.874-9.288-11.595-1.802-3.183-2.778-6.185-2.778-8.992 0-15.7 17.965-19.889 24.958-7.06 6.993-12.829 24.958-8.64 24.958 7.06z"}}),t._v(" "),n("g",{staticClass:"pathFill",attrs:{id:"✓-sketchup-/-hover",fill:"#D52A33",mask:"url(#mask-heart-filled-2)"}},[n("path",{attrs:{id:"sketchup-/-red-/-hover",d:"M0 0h208v208H0z",transform:"translate(-53.125 -53.125)"}})])])])])]):n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"100",height:"100",viewBox:"0 0 100 100"}},[n("g",{attrs:{id:"icons",fill:"none","fill-rule":"evenodd",transform:"translate(-860 -465)"}},[n("g",{attrs:{id:"heart-/-circle-outline",transform:"translate(860 465)"}},[n("g",{attrs:{id:"heart-/-circle"}},[n("mask",{attrs:{id:"mask-heart-2",fill:"#fff"}},[n("path",{attrs:{d:"M95.993 50C95.993 24.596 75.404 4.007 50 4.007 24.596 4.007 4.007 24.596 4.007 50c0 25.402 20.59 45.993 45.993 45.993 25.403 0 45.993-20.591 45.993-45.993zM100 50c0 27.615-22.384 50-50 50S0 77.615 0 50C0 22.383 22.383 0 50 0s50 22.383 50 50zm-25.042-4.02c0 2.808-.976 5.81-2.778 8.993-2.107 3.72-5.298 7.618-9.288 11.595a110.392 110.392 0 0 1-8.038 7.223 107.76 107.76 0 0 1-2.65 2.1c-.484.37-.833.631-1.026.77a1.999 1.999 0 0 1-2.356 0c-.193-.139-.542-.4-1.026-.77a107.76 107.76 0 0 1-2.65-2.1 110.392 110.392 0 0 1-8.038-7.223c-3.99-3.977-7.181-7.874-9.288-11.595-1.802-3.183-2.778-6.185-2.778-8.992 0-15.7 17.965-19.889 24.958-7.06 6.993-12.829 24.958-8.64 24.958 7.06zM52.32 70.69a106.45 106.45 0 0 0 7.744-6.96c3.755-3.741 6.73-7.375 8.63-10.73 1.49-2.63 2.259-4.995 2.259-7.018 0-12.857-15.609-15.076-19.004-.955-.492 2.047-3.404 2.047-3.896 0-3.395-14.121-19.004-11.902-19.004.955 0 2.023.77 4.388 2.259 7.018 1.9 3.355 4.875 6.989 8.63 10.73a106.45 106.45 0 0 0 7.744 6.96c.833.68 1.611 1.297 2.319 1.843.708-.546 1.486-1.163 2.32-1.843z"}})]),t._v(" "),n("path",{attrs:{id:"path-heart",fill:"#474655","fill-rule":"nonzero",d:"M95.993 50C95.993 24.596 75.404 4.007 50 4.007 24.596 4.007 4.007 24.596 4.007 50c0 25.402 20.59 45.993 45.993 45.993 25.403 0 45.993-20.591 45.993-45.993zM100 50c0 27.615-22.384 50-50 50S0 77.615 0 50C0 22.383 22.383 0 50 0s50 22.383 50 50zm-25.042-4.02c0 2.808-.976 5.81-2.778 8.993-2.107 3.72-5.298 7.618-9.288 11.595a110.392 110.392 0 0 1-8.038 7.223 107.76 107.76 0 0 1-2.65 2.1c-.484.37-.833.631-1.026.77a1.999 1.999 0 0 1-2.356 0c-.193-.139-.542-.4-1.026-.77a107.76 107.76 0 0 1-2.65-2.1 110.392 110.392 0 0 1-8.038-7.223c-3.99-3.977-7.181-7.874-9.288-11.595-1.802-3.183-2.778-6.185-2.778-8.992 0-15.7 17.965-19.889 24.958-7.06 6.993-12.829 24.958-8.64 24.958 7.06zM52.32 70.69a106.45 106.45 0 0 0 7.744-6.96c3.755-3.741 6.73-7.375 8.63-10.73 1.49-2.63 2.259-4.995 2.259-7.018 0-12.857-15.609-15.076-19.004-.955-.492 2.047-3.404 2.047-3.896 0-3.395-14.121-19.004-11.902-19.004.955 0 2.023.77 4.388 2.259 7.018 1.9 3.355 4.875 6.989 8.63 10.73a106.45 106.45 0 0 0 7.744 6.96c.833.68 1.611 1.297 2.319 1.843.708-.546 1.486-1.163 2.32-1.843z"}}),t._v(" "),n("g",{staticClass:"pathFill",attrs:{id:"✓-trimble-/-gray-/-474655",fill:"#474655",mask:"url(#mask-heart-2)"}},[n("path",{attrs:{d:"M0 0h208v208H0z",transform:"translate(-53.125 -53.125)"}})])])])])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return this.circle?e("span",{staticClass:"svg-icon"},[e("svg",{staticClass:"lock",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[e("g",{attrs:{id:"Advanced-Search",fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{id:"Quickview-Modal","fill-rule":"nonzero",transform:"translate(-887 -269)"}},[e("g",{attrs:{id:"lock-icon-circle",transform:"translate(887 269)"}},[e("circle",{attrs:{id:"Oval",cx:"12",cy:"12",r:"12",fill:"#FFF"}}),this._v(" "),e("path",{attrs:{id:"Combined-Shape",fill:"#8C8B96",d:"M12.042 13.122a.04.04 0 0 0-.042-.04.04.04 0 0 0-.042.04c0 .022.02.04.042.04.022 0 .042-.018.042-.04zm.916 0c0 .504-.43.913-.958.913-.529 0-.958-.41-.958-.913 0-.504.429-.912.958-.912.53 0 .958.408.958.912zm-1.416.477c0-.241.205-.437.458-.437s.458.196.458.437v.952a.448.448 0 0 1-.458.436.448.448 0 0 1-.458-.436v-.952zm4-3.028c.253 0 .458.196.458.437v5.555a.448.448 0 0 1-.458.437H8.458A.448.448 0 0 1 8 16.563v-5.555c0-.241.205-.437.458-.437h7.084zm-.459.873H8.917v4.683h6.166v-4.683zm-1.25-1.825c0-.964-.82-1.746-1.833-1.746s-1.833.782-1.833 1.746v.952h3.666V9.62zm-4.583 0C9.25 8.172 10.481 7 12 7s2.75 1.172 2.75 2.619v1.389a.448.448 0 0 1-.458.436H9.708a.448.448 0 0 1-.458-.436V9.619z"}})])])])])]):e("span",{staticClass:"svg-icon"},[e("svg",{staticClass:"lock",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"22",viewBox:"0 0 17 22"}},[e("g",{attrs:{id:"Model-Detail",fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{id:"Author-View-(Private)",stroke:"#8C8B96",transform:"translate(-613 -612)"}},[e("g",{attrs:{id:"lock",transform:"translate(614 613)"}},[e("path",{attrs:{id:"Stroke-17","stroke-linejoin":"round",d:"M8.56 12.443a1.009 1.009 0 0 1-2.014 0 1.006 1.006 0 1 1 2.013 0z"}}),this._v(" "),e("path",{attrs:{id:"Line-2","stroke-linecap":"round",d:"M7.552 13.45v2.014"}}),this._v(" "),e("path",{attrs:{id:"Stroke-21","stroke-linejoin":"round",d:"M14.685 7.972H.42V19.72h14.265z"}}),this._v(" "),e("path",{attrs:{id:"Stroke-23","stroke-linejoin":"round",d:"M2.937 5.035a4.615 4.615 0 1 1 9.23 0v2.937h-9.23V5.035z"}})])])])])])},i=[]},function(t,e,n){"use strict";var r=n(399),i=n(809),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";var r=n(400),i=n(808),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"collection-element-card",class:t.collectionElement.subjectClass},[n("div",{staticClass:"card-content"},[t.isCollection?n("div",{staticClass:"shadow far"}):t._e(),t._v(" "),t.isCollection?n("div",{staticClass:"shadow near"}):t._e(),t._v(" "),n("a",{attrs:{tabindex:"0",href:t.collectionElement.detailsPageUrl}},[n("div",{staticClass:"thumbnail"},[n("img",{attrs:{src:t.collectionElement.thumbnailUrl,onerror:"this.style.display='none'"}})]),t._v(" "),n("div",{staticClass:"card-details"},[n("div",{staticClass:"card-title title",attrs:{title:t.collectionElement.title}},[t._v(t._s(t.collectionElement.title))])])])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"related-content-panel"},[t.isLoading?n("div",{staticClass:"loading"}):n("div",[n("error-in-context",{attrs:{errorState:t.errorState,errorText:t.errorText,isPlaceholder:!1,showIcon:!0,alignment:"center"}}),t._v(" "),t.errorState?t._e():n("div",[n("div",{staticClass:"content-cards row small-up-2 medium-up-4 client-up-2"},t._l(t.items,function(t){return n("div",{key:t.id,staticClass:"columns"},[n("collection-element-card",{attrs:{collectionElement:t}})],1)})),t._v(" "),t.noResults?n("no-results-card",{attrs:{text:t.resultText}}):t.totalCount>4?n("div",{staticClass:"see-more",class:{collection:t.isCollection}},[n("span",{on:{click:t.seeMore}},[t._v(t._s(t.$t("See more")))])]):t._e()],1)],1)])},i=[]},function(t,e,n){"use strict";var r=n(401),i=n(812),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this.$createElement,e=this._self._c||t;return this.entity?e("div",{ref:"rerenderControls",staticClass:"rerender-controls"},[e("button",{staticClass:"button button-rerender",attrs:{title:this.$t("Re-Render")},on:{click:this.onRerenderButtonClicked}},[e("span",{staticClass:"download-button-text"},[this._v("Re-Render (Admin Only)")])])]):this._e()},i=[]},function(t,e,n){"use strict";var r=n(402),i=n(817),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";var r=n(403),i=n(816),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"svg-icon",on:{click:function(e){t.buttonClick()}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"6",height:"24",viewBox:"0 0 6 24"}},[n("path",{staticClass:"pathFill",attrs:{fill:"#8C8B96","fill-rule":"nonzero",d:"M3 6a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 9a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 9a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"}})])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.menu.length>0?n("icon-supplemental",{ref:"supplementalMenu",staticClass:"supplemental-menu",attrs:{buttonClick:t.toggleMenu}}):t._e(),t._v(" "),t.isOpen?n("div",{staticClass:"supplemental-select"},t._l(t.menu,function(e){return n("div",{key:e.eventName,staticClass:"supplemental-option"},[n("button",{attrs:{id:"menu-option-"+e.eventName,title:e.params},on:{click:function(n){t.optionSelected(e)}}},[t._v(t._s(e.params)+"\n ")])])})):t._e()],1)},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"model-page"},[n("header-panel",{staticClass:"no-left-panel",attrs:{autoFocusSearchBar:!0}}),t._v(" "),n("main",[t.item?n("div",{attrs:{id:"model-content-container"}},[n("div",{staticClass:"row medium-uncollapse"},[n("div",{staticClass:"client-9 columns"},[n("div",{staticClass:"model-preview",class:{"view-3d-supported":t.modelAllows3dView,"view-3d-active":t.show3dView}},[n("img",{class:{hide:!this.imageUrl},attrs:{src:t.imageUrl,alt:t.itemMetadata[t.fieldIds.Title].value}}),t._v(" "),t.entity.isRendering?n("div",{staticClass:"re-rendering-overlay"},[n("div",{staticClass:"re-rendering-content"},[n("img",{staticClass:"re-rendering-image",attrs:{src:"/static/images/magic.svg"}}),t._v(" "),n("br"),t._v(" "),n("span",{staticClass:"title"},[t._v(t._s(t.$t("Sprinkling some magic")))]),t._v(" "),n("br"),t._v(" "),n("span",[t._v(t._s(t.$t("This model is currently being re-rendered.")))]),t._v(" "),n("br"),t._v(" "),n("span",[t._v(t._s(t.$t("Please check back in a few!")))])])]):n("div",{staticClass:"view-3d-button-container"},[n("button",{attrs:{id:"view-3d-button",title:t.$t("Click to view this model in 3D")},on:{click:t.view3DClicked}},[n("img",{attrs:{src:"/static/images/icon-eye.svg"}}),t._v(" "),n("span",[t._v(t._s(t.$t("3D Model")))])])]),t._v(" "),t.show3dView?n("iframe",{attrs:{id:"model-3d-view-iframe",src:t.view3dEmbedUrl,allowfullscreen:"true",onmousewheel:""}}):t._e()]),t._v(" "),n("div",{attrs:{id:"model-title-banner"}},[n("h1",{attrs:{title:t.itemMetadata[t.fieldIds.Title].value}},[t._v(t._s(t.itemMetadata[t.fieldIds.Title].value))]),t._v(" "),t.item.isPrivate?n("icon-lock",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Private model"),expression:"$t('Private model')"}],staticClass:"private-model-icon"}):t._e(),t._v(" "),n("a",{staticClass:"link-to-user-page responsive-user-link",attrs:{href:t.entity.creatorPageUrl,title:t.entity.creatorDisplayName}},[n("span",[t._v(t._s(t.entity.creatorDisplayName))])]),t._v(" "),n("supplemental-menu",{attrs:{menu:t.supplementalMenu}})],1),t._v(" "),n("div",{staticClass:"model-social-media-bar"},[n("div",{staticClass:"icons"},[n("icon-embed",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Embed"),expression:"$t('Embed')"}],attrs:{buttonClick:t.openEmbedModal}}),t._v(" "),n("add-to-collection"),t._v(" "),n("icon-like",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.likeActionTitle,expression:"likeActionTitle"}],attrs:{buttonClick:t.performLikeAction,altSvg:t.isLiked}})],1),t._v(" "),n("div",{staticClass:"counters"},[n("div",{staticClass:"popularity-counts"},[n("span",{staticClass:"likesCount"},[t._v("\n "+t._s(t.$t("{count} Likes",{count:t.formattedLikeCount}))+"\n ")]),t._v(" "),n("span",[t._v(" | ")]),t._v(" "),n("span",{staticClass:"downloadsCount"},[t._v("\n "+t._s(t.$t("{count} Downloads",{count:t.formattedDownloadCount}))+"\n ")]),t._v(" "),n("span",[t._v(" | ")]),t._v(" "),n("span",{staticClass:"viewsCount"},[t._v("\n "+t._s(t.$t("{count} Views",{count:t.formattedViewCount}))+"\n ")])]),t._v(" "),n("a",{staticClass:"report-abuse",attrs:{href:t.reportAbuseUrl,target:t.reportAbuseTarget}},[n("icon-flag",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Report Abuse / DMCA"),expression:"$t(/** Translate as 'Report Abuse'*/'Report Abuse / DMCA')"}]})],1)]),t._v(" "),n("download-button",{attrs:{entity:t.$store.getters.currentItem}})],1),t._v(" "),n("description-panel",{attrs:{description:t.itemMetadata[t.fieldIds.Description].value,externalUrl:t.item.externalUrl}}),t._v(" "),n("comments-panel",{attrs:{id:"model-comments"}})],1),t._v(" "),n("div",{staticClass:"client-3 columns"},[n("user-card"),t._v(" "),t.isAdmin?n("rerender-button",{attrs:{entity:t.$store.getters.currentItem}}):t._e(),t._v(" "),n("accordion",{ref:"accordionPanel",attrs:{id:"sections-accordion"}},[n("accordion-item",{attrs:{id:"model-metadata-panel",analyticsName:"metadata",title:t.$t("Model Info")},model:{value:t.metadataPanelOpen,callback:function(e){t.metadataPanelOpen=e},expression:"metadataPanelOpen"}},[n("collection-element-metadata-panel",{attrs:{displayFields:t.metadataDisplayValues,metadata:t.itemMetadataProp}})],1),t._v(" "),n("accordion-item",{attrs:{id:"related-models-panel",analyticsName:"models",title:t.relatedModelsTitle},model:{value:t.modelsPanelOpen,callback:function(e){t.modelsPanelOpen=e},expression:"modelsPanelOpen"}},[t.isProduct?n("related-content-panel",{attrs:{itemType:"entity",searchParams:t.modelsByCreatorParams,isProduct:!0}}):n("related-content-panel",{attrs:{itemType:"entity",searchParams:t.relatedModelsParams,relatedItemId:t.entity.id,isProduct:!1}})],1),t._v(" "),n("accordion-item",{attrs:{id:"related-collections-panel",analyticsName:"collections",title:t.relatedCollectionsTitle},model:{value:t.collectionsPanelOpen,callback:function(e){t.collectionsPanelOpen=e},expression:"collectionsPanelOpen"}},[t.isProduct?n("related-content-panel",{attrs:{itemType:"collection",searchParams:t.collectionsByCreatorParams,isProduct:!0}}):n("related-content-panel",{attrs:{itemType:"collection",searchParams:t.containingCollectionsParams,isProduct:!1}})],1)],1)],1)])]):n("item-not-found",{attrs:{itemFound:t.item,itemType:t.$t("model")}})],1),t._v(" "),n("footer-panel",{staticClass:"page-footer-panel"}),t._v(" "),n("content-browser",{ref:"browser"})],1)},i=[]},function(t,e,n){"use strict";var r=n(404),i=n(836),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";var r=n(405),i=n(823),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item-selector",attrs:{tabindex:"-1",id:t.id},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.clicked()},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key))return null;e.stopPropagation(),e.preventDefault(),t.next()},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key))return null;e.stopPropagation(),e.preventDefault(),t.prev()},function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;e.stopPropagation(),e.preventDefault(),t.selectCurrent()}],keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key))return null;e.stopPropagation(),e.preventDefault(),t.deactivate()},blur:function(e){t.deactivate()}}},[n("div",{staticClass:"control-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.title,expression:"title"}],staticClass:"title",on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.deactivate()}}},[t._v(t._s(t.title))]),t._v(" "),n("div",{ref:"wrapperEl",staticClass:"selection-wrapper",attrs:{id:t.id+"-selection-wrapper"}},[n("div",{staticClass:"selected"},[t._v("\n "+t._s(t.boundSelection?t.boundSelection.label:"")+"\n ")]),t._v(" "),n("div",{staticClass:"select-icon"})]),t._v(" "),t.icon?n("div",{staticClass:"alternate-icon"},[n("img",{attrs:{src:t.icon}})]):t._e()]),t._v(" "),n("div",{staticClass:"list-wrapper"},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],ref:"listEl",staticClass:"selector-list"},t._l(t.boundItems,function(e,r){return n("li",{key:r,staticClass:"select-item",class:{selected:r===t.currentRow,highlight:e.value===t.value},attrs:{id:t.id+"-item-"+r,value:e.value},on:{click:function(n){n.stopPropagation(),n.preventDefault(),t.select(e,r)},mouseover:function(e){t.setCurrent(r)}}},[t._v("\n "+t._s(e.label)+"\n ")])}))])])},i=[]},function(t,e,n){"use strict";var r=n(406),i=n(826),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"model-preview-modal reveal",attrs:{"data-reveal":"","data-close-on-esc":"true","data-animation-in":"slide-in-up fast","data-animation-out":"slide-out-down fast"}},[n("div",{staticClass:"modal-close-x",on:{click:t.closeModal}}),t._v(" "),t.fetchModelFailed?n("div",[n("item-not-found",{attrs:{itemFound:t.modelData,itemType:t.itemType}})],1):t.isLoading?n("div",{staticClass:"loading"}):n("div",[n("error-in-context",{attrs:{errorState:t.errorState,errorText:t.errorText,isPlaceholder:!1,showIcon:!0,alignment:"center"}}),t._v(" "),n("div",{staticClass:"center-align-container"},[n("h1",{staticClass:"title"},[t._v(t._s(t.modelData.title))]),t._v(" "),n("img",{attrs:{src:t.modelData.thumbnailUrl,onerror:"this.style.display='none'"}}),t._v(" "),t.modelData.isPrivate?n("icon-lock",{staticClass:"preview-private-model-icon",attrs:{circle:!0}}):t._e(),t._v(" "),n("div",{staticClass:"model-stats-container"},[n("div",{staticClass:"model-stats"},[n("span",[t._v("\n "+t._s(t.$t("{count} Likes",{count:t.likesCountShort()}))+"\n ")]),t._v(" "),n("span",[t._v(" | ")]),t._v(" "),n("span",[t._v("\n "+t._s(t.$t("{count} Downloads",{count:t.downloadsCountShort()}))+"\n ")]),t._v(" "),n("span",[t._v(" | ")]),t._v(" "),n("span",[t._v("\n "+t._s(t.$t("{count} Views",{count:t.viewsCountShort()}))+"\n ")])]),t._v(" "),n("download-button",{attrs:{entity:t.modelData}})],1)],1),t._v(" "),n("div",{staticClass:"model-info-container"},[n("ul",{ref:"accordionPanel",staticClass:"accordion skp"},[n("li",{staticClass:"accordion-item"},[n("div",{staticClass:"meta-panel-main-container"},[n("div",{staticClass:"meta-panel-item-container"},[n("span",[t._v(t._s(t.$t("Components")))]),t._v(" "),n("span",[t._v(t._s(t.componentCount))])]),t._v(" "),n("div",{staticClass:"meta-panel-item-container"},[n("span",[t._v(t._s(t.$t("Materials")))]),t._v(" "),n("span",[t._v(t._s(t.materialsCount))])]),t._v(" "),n("div",{staticClass:"meta-panel-item-container"},[n("span",[t._v(t._s(t.$t("Polygons")))]),t._v(" "),n("span",[t._v(t._s(t.polygonCount))])]),t._v(" "),n("div",{staticClass:"meta-panel-item-container"},[n("span",[t._v(t._s(t.$t("File Size")))]),t._v(" "),n("span",[t._v(t._s(t.fileSizeCount))])]),t._v(" "),n("div",{staticClass:"meta-panel-item-container"},[n("span",[t._v(t._s(t.$t("Modified Date")))]),t._v(" "),n("span",[t._v(t._s(t.modifiedDate))])])])])])]),t._v(" "),n("div",{staticClass:"center-align-container"},[n("div",{staticClass:"link-to-model-details"},[n("a",{attrs:{href:t.modelData.detailsPageUrl}},[t._v(t._s(t.$t("See more details")))])])])],1)])},i=[]},function(t,e,n){"use strict";var r=n(407),i=n(835),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(408),i=n(833),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(411),i=n(831),o=n(1),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);e.a=a.exports},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],ref:"wrap",class:["vue-slider-component",t.flowDirection,t.disabledClass,{"vue-slider-has-label":t.piecewiseLabel}],style:t.wrapStyles,on:{click:t.wrapClick}},[n("div",{ref:"elem",staticClass:"vue-slider",style:[t.elemStyles,t.bgStyle],attrs:{"aria-hidden":"true"}},[t.isRange?[n("div",{ref:"dot0",class:[t.tooltipStatus,"vue-slider-dot"],style:[t.dotStyles,t.sliderStyles[0]],on:{mousedown:function(e){t.moveStart(e,0)},touchstart:function(e){t.moveStart(e,0)}}},[n("span",{class:["vue-slider-tooltip-"+t.tooltipDirection[0],"vue-slider-tooltip-wrap"]},[t._t("tooltip",[n("span",{staticClass:"vue-slider-tooltip",style:t.tooltipStyles[0]},[t._v(t._s(t.formatter?t.formatting(t.val[0]):t.val[0]))])],{value:t.val[0],index:0})],2)]),t._v(" "),n("div",{ref:"dot1",class:[t.tooltipStatus,"vue-slider-dot"],style:[t.dotStyles,t.sliderStyles[1]],on:{mousedown:function(e){t.moveStart(e,1)},touchstart:function(e){t.moveStart(e,1)}}},[n("span",{class:["vue-slider-tooltip-"+t.tooltipDirection[1],"vue-slider-tooltip-wrap"]},[t._t("tooltip",[n("span",{staticClass:"vue-slider-tooltip",style:t.tooltipStyles[1]},[t._v(t._s(t.formatter?t.formatting(t.val[1]):t.val[1]))])],{value:t.val[1],index:1})],2)])]:[n("div",{ref:"dot",class:[t.tooltipStatus,"vue-slider-dot"],style:[t.dotStyles,t.sliderStyles],on:{mousedown:t.moveStart,touchstart:t.moveStart}},[n("span",{class:["vue-slider-tooltip-"+t.tooltipDirection,"vue-slider-tooltip-wrap"]},[t._t("tooltip",[n("span",{staticClass:"vue-slider-tooltip",style:t.tooltipStyles},[t._v(t._s(t.formatter?t.formatting(t.val):t.val))])],{value:t.val})],2)])],t._v(" "),n("ul",{staticClass:"vue-slider-piecewise"},t._l(t.piecewiseDotWrap,function(e,r){return n("li",{key:r,staticClass:"vue-slider-piecewise-item",style:[t.piecewiseDotStyle,e.style]},[t._t("piecewise",[t.piecewise?n("span",{staticClass:"vue-slider-piecewise-dot",style:[t.piecewiseStyle,e.inRange?t.piecewiseActiveStyle:null]}):t._e()],{label:e.label,index:r,first:0===r,last:r===t.piecewiseDotWrap.length-1}),t._v(" "),t._t("label",[t.piecewiseLabel?n("span",{staticClass:"vue-slider-piecewise-label",style:[t.labelStyle,e.inRange?t.labelActiveStyle:null]},[t._v("\n "+t._s(e.label)+"\n ")]):t._e()],{label:e.label,index:r,first:0===r,last:r===t.piecewiseDotWrap.length-1})],2)})),t._v(" "),n("div",{ref:"process",staticClass:"vue-slider-process",style:t.processStyle})],2),t._v(" "),t.isRange||t.data?t._e():n("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:"vue-slider-sr-only",attrs:{type:"range",min:t.min,max:t.max},domProps:{value:t.val},on:{__r:function(e){t.val=e.target.value}}})])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.show?n("vue-slider",t._b({ref:"slider",staticClass:"slider",attrs:{disabled:t.disabled,min:t.minBound,max:t.maxBound,interval:t.boundStep},on:{callback:t.updateValues},model:{value:t.values,callback:function(e){t.values=e},expression:"values"}},"vue-slider",t.options,!1)):t._e()],1)},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showAdminFilters?n("accordion-item",{attrs:{id:"filter-accordion-admin",title:"Admin Features"},model:{value:t.isAdminOpen,callback:function(e){t.isAdminOpen=e},expression:"isAdminOpen"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.categoryName,expression:"params.categoryName"}],attrs:{type:"text",placeholder:"Search by Category"},domProps:{value:t.params.categoryName},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.addCategoryName()},input:function(e){e.target.composing||t.$set(t.params,"categoryName",e.target.value)}}}),t._v(" "),n("div",{staticClass:"filter-slider"},[n("div",{staticClass:"slider-label"},[t._v("Confidence Score")]),t._v(" "),n("div",{staticClass:"slider-label"},[t._v(t._s(t.params.categoryScoreMin)+" - "+t._s(t.params.categoryScoreMax))]),t._v(" "),n("slider",{ref:"categoriesScoreSlider",attrs:{minBound:t.catsSliderMin,maxBound:t.catsSliderMax,step:t.catsSliderStep,minValue:t.params.categoryScoreMin,maxValue:t.params.categoryScoreMax},on:{changed:function(e){t.submitSearch()},"update:minValue":function(e){t.$set(t.params,"categoryScoreMin",e)},"update:maxValue":function(e){t.$set(t.params,"categoryScoreMax",e)}}})],1),t._v(" "),n("div",{staticClass:"switch-container"},[n("span",{staticClass:"label float-left"},[t._v("Adult Content")]),t._v(" "),n("div",{staticClass:"switch float-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.isAdultContent,expression:"params.isAdultContent"}],staticClass:"switch-input",attrs:{type:"checkbox",id:"is-adult-content-filter",name:"IsAdultContent"},domProps:{checked:Array.isArray(t.params.isAdultContent)?t._i(t.params.isAdultContent,null)>-1:t.params.isAdultContent},on:{change:function(e){var n=t.params.isAdultContent,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.params.isAdultContent=n.concat([null])):o>-1&&(t.params.isAdultContent=n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.params,"isAdultContent",i)}}}),t._v(" "),n("label",{staticClass:"switch-paddle",attrs:{for:"is-adult-content-filter"}},[n("span",{staticClass:"show-for-sr"},[t._v("Adult Content")])])])]),t._v(" "),n("div",{staticClass:"relevancy-params"},[n("label",[n("h2",[t._v("Relevancy Params")])]),t._v(" "),n("label",{attrs:{for:"relevancy-input"}},[n("span",{},[t._v(" titleBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.titleBoost,expression:"params.relevancy.titleBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.titleBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"titleBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" titleTranslationsBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.titleTranslationsBoost,expression:"params.relevancy.titleTranslationsBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.titleTranslationsBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"titleTranslationsBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" descriptionBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.descriptionBoost,expression:"params.relevancy.descriptionBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.descriptionBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"descriptionBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" descriptionTranslationsBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.descriptionTranslationsBoost,expression:"params.relevancy.descriptionTranslationsBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.descriptionTranslationsBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"descriptionTranslationsBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" tagsBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.tagsBoost,expression:"params.relevancy.tagsBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.tagsBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"tagsBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" creatorNameBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.creatorNameBoost,expression:"params.relevancy.creatorNameBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.creatorNameBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"creatorNameBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" viewsPopularityFactor ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.params.relevancy.viewsPopularityFactor,expression:"params.relevancy.viewsPopularityFactor",modifiers:{number:!0}}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.viewsPopularityFactor},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"viewsPopularityFactor",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}}),t._v(" "),n("label",[n("span",{},[t._v(" downloadsPopularityFactor ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.params.relevancy.downloadsPopularityFactor,expression:"params.relevancy.downloadsPopularityFactor",modifiers:{number:!0}}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.downloadsPopularityFactor},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"downloadsPopularityFactor",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}}),t._v(" "),n("label",[n("span",{},[t._v(" copyrightBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.copyrightBoost,expression:"params.relevancy.copyrightBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.copyrightBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"copyrightBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" copyrightTranslationsBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.copyrightTranslationsBoost,expression:"params.relevancy.copyrightTranslationsBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.copyrightTranslationsBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"copyrightTranslationsBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" detailsBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.detailsBoost,expression:"params.relevancy.detailsBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.detailsBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"detailsBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" detailsTranslationsBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.detailsTranslationsBoost,expression:"params.relevancy.detailsTranslationsBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.detailsTranslationsBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"detailsTranslationsBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" externalUrlBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.externalUrlBoost,expression:"params.relevancy.externalUrlBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.externalUrlBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"externalUrlBoost",e.target.value)}}}),t._v(" "),n("label",[n("span",{},[t._v(" externalUrlTranslationsBoost ")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.relevancy.externalUrlTranslationsBoost,expression:"params.relevancy.externalUrlTranslationsBoost"}],staticClass:"relevancy-input",attrs:{type:"text"},domProps:{value:t.params.relevancy.externalUrlTranslationsBoost},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitSearch()},input:function(e){e.target.composing||t.$set(t.params.relevancy,"externalUrlTranslationsBoost",e.target.value)}}})])]):t._e()},i=[]},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-left-panel refine-search-panel"},[n("div",{staticClass:"search-panel-content"},[n("div",{staticClass:"close-button modal-close-x",on:{click:t.closePanelClicked}}),t._v(" "),n("div",{staticClass:"row refine-search-subtitle title"},[t._v(t._s(t.$t("Keywords")))]),t._v(" "),n("div",{staticClass:"pillbox-control refine-filter-content"},[n("div",{staticClass:"row collapse add-phrase "},[n("div",{staticClass:"column add-filter-keyword"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchTermsToAdd,expression:"searchTermsToAdd"}],attrs:{type:"text",autofocus:"",placeholder:t.$t("Add Keyword")},domProps:{value:t.searchTermsToAdd},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.addSearchTerm()},input:function(e){e.target.composing||(t.searchTermsToAdd=e.target.value)}}}),t._v(" "),n("div",{staticClass:"add-button",on:{click:t.addSearchTerm}})])]),t._v(" "),n("div",{staticClass:"row column pillbox-container"},t._l(t.searchTermsAsArray,function(e,r){return n("div",{key:r,staticClass:"remove-search-term pillbox",on:{click:function(e){e.stopPropagation(),t.removeSearchTerm(r)}}},[n("div",{staticClass:"pillbox-label",attrs:{title:e}},[t._v(t._s(e))]),t._v(" "),n("div",{staticClass:"remove"},[t._v("×")])])}))]),t._v(" "),n("accordion",{ref:"filtersAccordion",attrs:{id:"filters-accordion"}},[n("accordion-item",{directives:[{name:"show",rawName:"v-show",value:t.supportedFilters.fileSize,expression:"supportedFilters.fileSize"}],attrs:{id:"filter-accordion-title-filesize",title:t.$t("File size")},model:{value:t.isFileSizeOpen,callback:function(e){t.isFileSizeOpen=e},expression:"isFileSizeOpen"}},[n("div",{staticClass:"filter-slider"},[n("div",{staticClass:"slider-label"},[t._v(t._s(t.fileSizeMinFormatted)+" - "+t._s(t.fileSizeMaxFormatted))]),t._v(" "),n("slider",{ref:"modelFileSizeSlider",attrs:{minBound:t.fileSizeSliderMin,maxBound:t.fileSizeSliderMax,minValue:t.fileSizeMin,maxValue:t.fileSizeMax},on:{changed:function(e){t.submitSearch("fileSize")},"update:minValue":function(e){t.fileSizeMin=e},"update:maxValue":function(e){t.fileSizeMax=e}}})],1)]),t._v(" "),n("accordion-item",{directives:[{name:"show",rawName:"v-show",value:t.supportedFilters.matFileSize,expression:"supportedFilters.matFileSize"}],attrs:{id:"filter-accordion-title-matfilesize",title:t.$t("File size")},model:{value:t.isMatFileSizeOpen,callback:function(e){t.isMatFileSizeOpen=e},expression:"isMatFileSizeOpen"}},[n("div",{staticClass:"filter-slider"},[n("div",{staticClass:"slider-label"},[t._v(t._s(t.matFileSizeMinFormatted)+" - "+t._s(t.matFileSizeMaxFormatted))]),t._v(" "),n("slider",{ref:"matFileSizeSlider",attrs:{minBound:t.matFileSizeSliderMin,maxBound:t.matFileSizeSliderMax,minValue:t.matFileSizeMin,maxValue:t.matFileSizeMax},on:{changed:function(e){t.submitSearch("matFileSize")},"update:minValue":function(e){t.matFileSizeMin=e},"update:maxValue":function(e){t.matFileSizeMax=e}}})],1)]),t._v(" "),n("accordion-item",{directives:[{name:"show",rawName:"v-show",value:t.supportedFilters.polygons,expression:"supportedFilters.polygons"}],attrs:{id:"filter-accordion-title-polygons",title:t.$t("Complexity")},model:{value:t.isComplexityOpen,callback:function(e){t.isComplexityOpen=e},expression:"isComplexityOpen"}},[n("div",{staticClass:"filter-slider"},[n("div",{staticClass:"slider-label"},[t._v(t._s(t.polygonsMinFormatted)+" - "+t._s(t.polygonsMaxFormatted))]),t._v(" "),n("div",{staticClass:"slider-label"},[t._v(t._s(t.$t("Polygons")))]),t._v(" "),n("slider",{ref:"polygonSlider",attrs:{minBound:t.polygonSliderMin,maxBound:t.polygonSliderMax,minValue:t.polygonsMin,maxValue:t.polygonsMax,dataFunction:t.polygonsDataFunction,dataFunctionBase:t.polygonsDataFunctionBase},on:{changed:function(e){t.submitSearch("polygons")},"update:minValue":function(e){t.polygonsMin=e},"update:maxValue":function(e){t.polygonsMax=e}}})],1)]),t._v(" "),n("accordion-item",{directives:[{name:"show",rawName:"v-show",value:t.supportedFilters.showFeatures,expression:"supportedFilters.showFeatures"}],attrs:{id:"filter-accordion-title-features",title:t.$t("Features")},model:{value:t.featuresOpen,callback:function(e){t.featuresOpen=e},expression:"featuresOpen"}},[t.supportedFilters.isProduct?n("div",{staticClass:"switch-container"},[n("span",{staticClass:"label float-left"},[t._v(t._s(t.$t("Manufacturer Model")))]),t._v(" "),n("div",{staticClass:"switch float-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isProduct,expression:"isProduct"}],staticClass:"switch-input",attrs:{type:"checkbox",id:"is-product-filter",name:"IsProduct"},domProps:{checked:Array.isArray(t.isProduct)?t._i(t.isProduct,null)>-1:t.isProduct},on:{change:function(e){var n=t.isProduct,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isProduct=n.concat([null])):o>-1&&(t.isProduct=n.slice(0,o).concat(n.slice(o+1)))}else t.isProduct=i}}}),t._v(" "),n("label",{staticClass:"switch-paddle",attrs:{for:"is-product-filter"}},[n("span",{staticClass:"show-for-sr"},[t._v(t._s(t.$t("Contained in Catalog")))])])])]):t._e(),t._v(" "),t.supportedFilters.isDynamicComponent?n("div",{staticClass:"switch-container"},[n("span",{staticClass:"label float-left"},[t._v(t._s(t.$t("Dynamic Component")))]),t._v(" "),n("div",{staticClass:"switch float-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isDynamicComponent,expression:"isDynamicComponent"}],staticClass:"switch-input",attrs:{type:"checkbox",id:"is-dynamic-component-filter",name:"IsDynamicComponent"},domProps:{checked:Array.isArray(t.isDynamicComponent)?t._i(t.isDynamicComponent,null)>-1:t.isDynamicComponent},on:{change:function(e){var n=t.isDynamicComponent,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isDynamicComponent=n.concat([null])):o>-1&&(t.isDynamicComponent=n.slice(0,o).concat(n.slice(o+1)))}else t.isDynamicComponent=i}}}),t._v(" "),n("label",{staticClass:"switch-paddle",attrs:{for:"is-dynamic-component-filter"}},[n("span",{staticClass:"show-for-sr"},[t._v(t._s(t.$t("Dynamic Component")))])])])]):t._e(),t._v(" "),t.supportedFilters.isGeoLocated?n("div",{staticClass:"switch-container"},[n("span",{staticClass:"label float-left"},[t._v(t._s(t.$t("Geolocated")))]),t._v(" "),n("div",{staticClass:"switch float-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isGeoLocated,expression:"isGeoLocated"}],staticClass:"switch-input",attrs:{type:"checkbox",id:"is-geolocated-filter",name:"IsGeolocated"},domProps:{checked:Array.isArray(t.isGeoLocated)?t._i(t.isGeoLocated,null)>-1:t.isGeoLocated},on:{change:function(e){var n=t.isGeoLocated,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isGeoLocated=n.concat([null])):o>-1&&(t.isGeoLocated=n.slice(0,o).concat(n.slice(o+1)))}else t.isGeoLocated=i}}}),t._v(" "),n("label",{staticClass:"switch-paddle",attrs:{for:"is-geolocated-filter"}},[n("span",{staticClass:"show-for-sr"},[t._v(t._s(t.$t("Geolocated")))])])])]):t._e(),t._v(" "),t.supportedFilters.isCatalog?n("div",{staticClass:"switch-container"},[n("span",{staticClass:"label float-left"},[t._v(t._s(t.$t("Manufacturer Catalog")))]),t._v(" "),n("div",{staticClass:"switch float-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isCatalog,expression:"isCatalog"}],staticClass:"switch-input",attrs:{type:"checkbox",id:"is-catalog-filter",name:"IsCatalog"},domProps:{checked:Array.isArray(t.isCatalog)?t._i(t.isCatalog,null)>-1:t.isCatalog},on:{change:function(e){var n=t.isCatalog,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.isCatalog=n.concat([null])):o>-1&&(t.isCatalog=n.slice(0,o).concat(n.slice(o+1)))}else t.isCatalog=i}}}),t._v(" "),n("label",{staticClass:"switch-paddle",attrs:{for:"is-catalog-filter"}},[n("span",{staticClass:"show-for-sr"},[t._v(t._s(t.$t("Manufacturer Catalog")))])])])]):t._e()]),t._v(" "),n("accordion-item",{directives:[{name:"show",rawName:"v-show",value:t.supportedFilters.showOther,expression:"supportedFilters.showOther"}],attrs:{id:"filter-accordion-title-other",title:t.$t("Title & Author")},model:{value:t.titleAuthorOpen,callback:function(e){t.titleAuthorOpen=e},expression:"titleAuthorOpen"}},[t.supportedFilters.title?n("div",{staticClass:"row column filter-input"},[n("span",{staticClass:"label"},[t._v(t._s(t.$t("Title")))]),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],attrs:{type:"text",placeholder:t.$t("Enter title")},domProps:{value:t.title},on:{change:function(e){t.submitSearch("title")},input:function(e){e.target.composing||(t.title=e.target.value)}}})])]):t._e(),t._v(" "),t.supportedFilters.creatorName?n("div",{staticClass:"row column filter-input"},[n("span",{staticClass:"label"},[t._v(t._s(t.$t("Author")))]),t._v(" "),n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.creatorName,expression:"creatorName"}],attrs:{type:"text",placeholder:t.$t("Enter author name")},domProps:{value:t.creatorName},on:{change:function(e){t.submitSearch("author")},input:function(e){e.target.composing||(t.creatorName=e.target.value)}}})])]):t._e()]),t._v(" "),n("accordion-item",{attrs:{id:"filter-accordion-title-date",title:t.$t("Modified Date")},model:{value:t.modifiedOpen,callback:function(e){t.modifiedOpen=e},expression:"modifiedOpen"}},[n("div",{staticClass:"filter-input"},[n("span",{staticClass:"label"},[t._v(t._s(t.$t("From")))]),t._v(" "),n("div",[n("date-picker",{attrs:{name:"modifyFromDateFilter",id:"modifyFromDateFilter"},model:{value:t.modifyFromDate,callback:function(e){t.modifyFromDate=e},expression:"modifyFromDate"}})],1)]),t._v(" "),n("div",{staticClass:"filter-input"},[n("span",{staticClass:"label"},[t._v(t._s(t.$t("To")))]),t._v(" "),n("div",[n("date-picker",{attrs:{name:"modifyToDateFilter",id:"modifyToDateFilter"},model:{value:t.modifyToDate,callback:function(e){t.modifyToDate=e},expression:"modifyToDate"}})],1)])]),t._v(" "),n("admin-search-panel",{attrs:{"search-tab":t.searchTab,value:t.adminParams,"is-admin-user":t.isAdminUser},on:{changed:function(e){t.handleAdminParamsChanged(e)}}})],1)],1)])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search-page",class:{"page-left-panel-open":t.showPageLeftPanel,"single-news-item-shown":t.singleNewsItemShown,"multiple-news-items-shown":t.multipleNewsItemsShown}},[n("header-panel",{ref:"headerPanel",staticClass:"has-left-panel"}),t._v(" "),n("main",[n("refine-search-panel",{ref:"searchPanel",attrs:{"search-tab":t.searchTab,"sort-by":t.sortBy,"is-admin-user":t.isAdmin},on:{performSearch:t.performSearch}}),t._v(" "),n("div",{staticClass:"page-main-content"},[n("div",{staticClass:"row columns",attrs:{id:"search-results-header"}},[n("h1",[t._v(t._s(t.$t("Here are your results")))]),t._v(" "),t.totalSearchResults<=t.maxSearchResults?n("span",{staticClass:"num-search-results"},[t._v("\n ( "+t._s(t.$t("{totalSearchResults} items found",{totalSearchResults:t.formattedTotalSearchResults}))+" )\n ")]):n("span",{staticClass:"num-search-results"},[t._v("\n ( "+t._s(t.$t("More than {maxSearchResults} items found",{maxSearchResults:t.formattedMaxSearchResults}))+" )\n ")])]),t._v(" "),n("div",{staticClass:"row columns"},[n("ul",{staticClass:"radio-toolbar row dropdown menu clearfix"},[n("li",{staticClass:"toolbar-item open-filter-panel-button"},[n("span",{staticClass:"open-filter-panel-icon toolbar-label",on:{click:t.openLeftPanel}})]),t._v(" "),n("li",{staticClass:"toolbar-item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.boundSearchTab,expression:"boundSearchTab"}],attrs:{name:"SearchTab",type:"radio",value:"model",id:"SearchModelsRadioButton"},domProps:{checked:t._q(t.boundSearchTab,"model")},on:{change:function(e){t.boundSearchTab="model"}}}),t._v(" "),n("label",{staticClass:"toolbar-label title",attrs:{for:"SearchModelsRadioButton"}},[t._v(t._s(t.$t("Models")))])]),t._v(" "),n("li",{staticClass:"toolbar-item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.boundSearchTab,expression:"boundSearchTab"}],attrs:{name:"SearchTab",type:"radio",value:"collection",id:"SearchCollectionsRadioButton"},domProps:{checked:t._q(t.boundSearchTab,"collection")},on:{change:function(e){t.boundSearchTab="collection"}}}),t._v(" "),n("label",{staticClass:"toolbar-label title",attrs:{for:"SearchCollectionsRadioButton"}},[t._v(t._s(t.$t("Collections")))])]),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.materialsEnabled,expression:"materialsEnabled"}],staticClass:"toolbar-item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.boundSearchTab,expression:"boundSearchTab"}],attrs:{name:"SearchTab",type:"radio",value:"material",id:"SearchMaterialsRadioButton"},domProps:{checked:t._q(t.boundSearchTab,"material")},on:{change:function(e){t.boundSearchTab="material"}}}),t._v(" "),n("label",{staticClass:"toolbar-label title",attrs:{for:"SearchMaterialsRadioButton"}},[t._v(t._s(t.$t("Materials")))])]),t._v(" "),n("li",{staticClass:"toolbar-item float-right column sort-selection"},[n("item-selector",{staticClass:"sortby-select",attrs:{id:"search-sort-by",items:t.sortOptions,title:t.$t("Sort by:"),icon:"/static/images/icon-sort.svg"},model:{value:t.sortSelection,callback:function(e){t.sortSelection=e},expression:"sortSelection"}})],1)])]),t._v(" "),n("div",{staticClass:"row column search-results"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.noSearchResults,expression:"noSearchResults"}],staticClass:"no-search-results"},[n("div",{staticClass:"center-elements-table"},[n("div",{staticClass:"center-elements-cell"},[n("no-results-card",{attrs:{text:t.$t("There are no search results.")}}),t._v(" "),n("div",{staticClass:"extra-text"},[t._v(t._s(t.$t("Try adjusting your search parameters or reset your filters.")))]),t._v(" "),n("div",{staticClass:"reset-filters-container"},[n("button",{on:{click:t.resetFilters}},[t._v(t._s(t.$t("Reset Filters")))])])],1)])]),t._v(" "),n("div",{ref:"scrollTarget",staticClass:"row small-up-1 medium-up-2 client-up-3 large-up-4",attrs:{"data-equalizer":"","data-equalize-on":"medium"}},t._l(t.searchResults,function(e){return n("div",{key:e.id,staticClass:"columns"},[n("search-result-card",{attrs:{collectionElement:e,enableQuickViewButton:t.enableQuickViewButton}})],1)})),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.scrollStopped,expression:"scrollStopped"}],staticClass:"scroll-stop",attrs:{id:"scrollLimit"},on:{click:t.continueScrolling}},[n("span",[t._v(t._s(t.$t("Maybe it's time to change search parameters.")))]),t._v(" "),n("br"),t._v(" "),n("span",[t._v(t._s(t.$t("Click here to continue with current results ...")))])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingData,expression:"loadingData"}],staticClass:"loading",class:{"loading-new-search":t.loadingNewSearch}})])])],1)],1)},i=[]},function(t,e,n){"use strict";e.a=function(){return new o.a.Store({state:{currentItem:null,currentItemCreator:null,currentItemLiked:!1,currentUser:null,errors:{searchDownloadError:null,currentSearchError:null,currentUserError:null},baseUrl:null,instanceGlobals:{apiHandler:null,eventBus:null},language:"",notifications:{statusbar:null,modal:[]},pendingPromises:{currentSearchPromise:null,currentGetUserPromise:null,currentGetItemPromise:null,currentGetItemCreatorPromise:null,currentGetItemLikedPromise:null,currentGetFeatureTogglePromise:null},searchResults:[],totalSearchResults:0,translations:{}},actions:a.a,mutations:l.a,getters:s.a})};var r=n(3),i=n.n(r),o=n(838),a=n(839),s=n(840),l=n(841);i.a.use(o.a)},,function(t,e,n){"use strict";var r=n(5),i=(n.n(r),n(235)),o=(n.n(i),n(10)),a=n(16),s=n(21),l=n(8);e.a={SEARCH:function(t,e){var n=t.commit,r=t.state,i=t.getters,c=e.searchParameters;r.pendingPromises.currentSearchPromise&&(r.pendingPromises.currentSearchPromise.cancelled=!0);var u=l.a.UrlParameters.SearchTab;c.searchTerms=l.i(c.searchTerms);var d=l.d(c);d.showBinaryMetadata=!0,c.searchTab!==u.COLLECTION&&(d.showBinaryAttributes=!0);var p=a.a.USE_ELASTICSEARCH;r.currentFeatureToggles[a.a[p]]&&(d.searchElasticsearch=!0);var h,f=i.apiHandler;switch(c.searchTab){case u.ALL:h=f.getItems(d);break;case u.COLLECTION:h=f.getCollections(d);break;case u.MATERIAL:h=f.getMaterials(d);break;default:h=f.getEntities(d)}r.pendingPromises.currentSearchPromise=h;var m=!c.offset;return h.then(function(t){return r.pendingPromises.currentSearchPromise=null,h.cancelled||n("SET_SEARCHRESULTS",{data:t,clearResults:m}),null!=r.errors.currentSearchError&&(n("REMOVE_STATUS_NOTIFICATION",r.errors.currentSearchError),r.errors.currentSearchError=null),Promise.resolve(t)},function(t){r.pendingPromises.currentSearchPromise=null;var e={text:o.c.FAILED_TO_LOAD_SEARCH},i=new s.c(e,s.b.ERROR);return r.errors.currentSearchError=i,n("ADD_STATUS_NOTIFICATION",r.errors.currentSearchError),Promise.reject(t)})},CLEAR_SEARCH:function(t){(0,t.commit)("CLEAR_SEARCHRESULTS")},FETCH_CURRENT_USER:function(t){var e=t.commit,n=t.state,r=t.getters;n.pendingPromises.currentGetUserPromise&&(n.pendingPromises.currentGetUserPromise.cancelled=!0);var i=r.apiHandler.fetchCurrentUser({recordEvent:!1});return n.pendingPromises.currentGetUserPromise=i,i.then(function(t){n.pendingPromises.currentGetUserPromise=null,i.cancelled||e("SET_CURRENT_USER",{data:t}),null!=n.errors.currentUserError&&(e("REMOVE_STATUS_NOTIFICATION",n.errors.currentUserError),n.errors.currentUserError=null)},function(t){if(n.pendingPromises.currentGetUserPromise=null,!i.cancelled){e("SET_CURRENT_USER",{user:null})}if(401===t.statusCode)null!=n.errors.currentUserError&&(e("REMOVE_STATUS_NOTIFICATION",n.errors.currentUserError),n.errors.currentUserError=null);else{var r={text:o.c.GET_USER_FAILURE},a=new s.c(r,s.b.ERROR);n.errors.currentUserError=a,e("ADD_STATUS_NOTIFICATION",n.errors.currentUserError)}})},GET_CURRENT_ITEM_CREATOR:function(t,e){var n=t.commit,r=t.state,i=t.getters,o=e.userid,a=i.apiHandler;r.pendingPromises.currentGetItemCreatorPromise&&(r.pendingPromises.currentGetItemCreatorPromise.cancelled=!0);var s=a.fetchUserById(o,{recordEvent:!1});return s.then(function(t){r.pendingPromises.currentGetItemCreatorPromise=null,s.cancelled||n("SET_CURRENT_ITEM_CREATOR",{data:t})},function(t){if(r.pendingPromises.currentGetItemCreatorPromise=null,!s.cancelled){n("SET_CURRENT_ITEM_CREATOR",{item:null})}})},GET_CURRENT_ITEM_LIKED:function(t){var e=t.commit,n=t.state,i=t.getters,o=i.apiHandler;n.pendingPromises.currentGetItemLikedPromise&&(n.pendingPromises.currentGetItemLikedPromise.cancelled=!0);var a=i.currentUser?i.currentUser.id:null,s=i.currentItem?i.currentItem.id:null;if(null==a||null==s)return e("SET_CURRENT_ITEM_LIKED",!1),Promise.resolve();var l=r.whp.HttpMethod.Get,c={createUserId:a,subjectId:s,subjectClass:i.currentItem.subjectClass};return o.performLegacyApiRequest("/GetReviews",c,{method:l}).then(function(t){n.pendingPromises.currentGetItemLikedPromise=null,e("SET_CURRENT_ITEM_LIKED",t.entries.length>0)},function(t){n.pendingPromises.currentGetItemLikedPromise=null,e("SET_CURRENT_ITEM_LIKED",!1)})},GET_CURRENT_ITEM:function(t,e){var n,r=t.commit,o=t.state,a=t.getters,s=e.subjectId,l=e.subjectClass,c=a.apiHandler;o.pendingPromises.currentGetItemPromise&&(o.pendingPromises.currentGetItemPromise.cancelled=!0);var u={recordEvent:!0};return"material"===l?n=c.getMaterial(s,u):"collection"===l?n=c.getCollection(s,u):"entity"===l&&(n=c.getEntity(s,u)),n.then(function(t){if(!t.subjectClass)switch(l){case"collection":t.subjectClass=i.DataStoreSubjectClass.Collection;break;case"entity":t.subjectClass=i.DataStoreSubjectClass.Entity;break;case"material":t.subjectClass=i.DataStoreSubjectClass.Material}o.pendingPromises.currentGetItemPromise=null,n.cancelled||r("SET_CURRENT_ITEM",{data:t})},function(t){if(o.pendingPromises.currentGetItemPromise=null,!n.cancelled){r("SET_CURRENT_ITEM",{item:null})}})}}},function(t,e,n){"use strict";e.a={apiHandler:function(t){return t.instanceGlobals.apiHandler},baseUrl:function(t){return t.baseUrl},currentItem:function(t){return t.currentItem},currentUser:function(t){return t.currentUser},eventBus:function(t){return t.instanceGlobals.eventBus},language:function(t){return t.language||"en"},modalNotifications:function(t){return t.notifications.modal},searchResults:function(t){return t.searchResults},statusBarNotification:function(t){return t.notifications.statusbar},currentItemCreator:function(t){return t.currentItemCreator},currentItemLiked:function(t){return t.currentItemLiked},currentFeatureToggles:function(t){return t.currentFeatureToggles},totalSearchResults:function(t){return t.totalSearchResults},translations:function(t){return t.translations}}},function(t,e,n){"use strict";var r=n(66),i=n(62),o=n(37),a=n(21);e.a={ADD_MODAL_NOTIFICATION:function(t,e){for(var n=t.notifications.modal,r=0;r=0;r--)if(a.a.isDuplicate(n[r],e))return void n.splice(r,1)},REMOVE_STATUS_NOTIFICATION:function(t,e){t.notifications.statusbar&&e&&e.message===t.notifications.statusbar.message&&e.level===t.notifications.statusbar.level&&(t.notifications.statusbar=null)},SET_BASEURL:function(t,e){var n=e.data;t.baseUrl=n},SET_CURRENT_ITEM:function(t,e){var n=e.data,i=null;n&&(i=r.a.create(n)),t.currentItem=i},SET_CURRENT_USER:function(t,e){var n=e.data,r=null;n&&(r=new i.a(n)),t.currentUser=r},SET_LANGUAGE:function(t,e){var n=e.language;Object(o.c)(n)?t.language=n:t.language="en"},SET_SEARCHRESULTS:function(t,e){var n=e.data;if(e.clearResults&&(t.searchResults=[],t.totalSearchResults=0),n&&n.entries){t.totalSearchResults=n.total||0;for(var i=0,o=n.entries;i