{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/symbols/support/previewWebStyleSymbol.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAe,CAAC,2BAAwB,CAAC,mCAAE,kBAAkB,aAAa,sCAAsC,SAAS,yEAAyE,mCAAmC,cAAc,qBAAqB,oBAAoB,oBAAoB,+HAA+H,qBAAqB,oDAAoD,UAAU,mDAAmD,uDAAuD,SAAS,WAAW,kDAAkD,qCAAqC,cAAc,IAAI;AAAA,oGAAE,C","file":"js/chunk-2d209207.5822de17.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../request\",\"../../core/screenUtils\"],(function(e,t,i,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.previewWebStyleSymbol=void 0,t.previewWebStyleSymbol=function(e,t,r){var h=e.thumbnail&&e.thumbnail.url;return h?i(h,{responseType:\"image\"}).then((function(e){var t=function(e,t){var i=!/\\\\.svg$/i.test(e.src)&&t&&t.disableUpsampling,r=Math.max(e.width,e.height),h=t&&null!=t.maxSize?n.pt2px(t.maxSize):120;i&&(h=Math.min(r,h));var a=Math.min(h,t&&null!=t.size?n.pt2px(t.size):r);if(a!==r){var u=0!==e.width&&0!==e.height?e.width/e.height:1;u>=1?(e.width=a,e.height=a/u):(e.width=a*u,e.height=a)}return e}(e.data,r);return r&&r.node?(r.node.appendChild(t),r.node):t})):e.fetchSymbol().then((function(e){return t(e,r)}))}}));"],"sourceRoot":""}