bimplus-webclient 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.add=t():e.add=t()}(self,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{BimExplorer:()=>u,BimFilesIsoSelect:()=>m,BimFilesSelect:()=>y,BimModelsIsoSelect:()=>M,BimModelsSelect:()=>S,BimObjectProperties:()=>f,BimPortal:()=>r,BimTaskList:()=>p,BimTaskProperties:()=>h,ExportManager:()=>g,ExternalClient:()=>n,getUrlParameter:()=>b});var n=function e(t){this._messageHandlers={},this._clientName=t,e.prototype.initialize=function(){var e=this;console.log("ExternalClient initialized"),window.addEventListener("message",(function(t){var n=t.data;""===n&&(n="{}"),e.messageReceived(JSON.parse(n))}))},e.prototype.addMessageHandler=function(e,t){this._messageHandlers[e]=t},e.prototype.removeMessageHandler=function(e){delete this._messageHandlers[e]},e.prototype.messageReceived=function(e){var t=this._messageHandlers[e.message];t&&t(e.data)},e.prototype.sendMessage=function(e,t,n){var o=document.getElementById(e);null!=o&&o.contentWindow&&o.contentWindow.postMessage(JSON.stringify({messageType:"bimplusMessageIn",message:t,data:n}),"*")},e.prototype.getClientName=function(){return this._clientName}};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var c=s((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));l(c,"embedded","?embedded=1"),l(c,"url",(function(e){var t="https://portal";return e&&("dev"===e&&(t+="-dev"),"stage"===e&&(t+="-stage")),t+=".bimplus.net/"})),l(c,"token",(function(e){return"&token="+e})),l(c,"client",(function(e){return e?"&external_client=PostMessage:"+e.getClientName():""})),l(c,"source",(function(e){return e&&"string"==typeof e?"&source="+e:""}));var a=function e(t,n,o){this._client=n,this._domId=t,this._env=o,e.prototype.sendMessage=function(e,t){this._client&&this._client.sendMessage(this._domId,e,t)},e.prototype.getDOMElementId=function(){return this._domId},e.prototype.initMessageHandlers=function(){},e.prototype.loadIFrame=function(e){var t=document.getElementById(this._domId);t?t.src=e:console.error("DOM Element not found: "+this._domId)}},r=function e(t,n,o,i){a.call(this,t,o,i),this.onTeamChanged=null,this.onProjectSelected=null,this.onAttachmentSelected=null,this.onAttachmentSelectedDetails=null,e.prototype.getUrl=function(){return c.url(i)+c.embedded+c.token(n)+c.client(o)},e.prototype.load=function(){var e=this.getUrl();this.loadIFrame(e),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;a.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("TeamChanged",(function(t){e.onTeamChanged&&e.onTeamChanged(t.id)})),this._client.addMessageHandler("ProjectSelected",(function(t){e.onProjectSelected&&e.onProjectSelected(t.id)})),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(t&&t.id?t.id:t)})),this._client.addMessageHandler("AttachmentSelectedDetails",(function(t){e.onAttachmentSelectedDetails&&e.onAttachmentSelectedDetails(t&&t.id?t.id:t)}))}};r.prototype=new a,r.prototype.constructor=a;var u=function e(t,n,o,i){a.call(this,t,o,i),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onPinSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,this.onClickedHyperlink=null,e.prototype.getUrl=function(e,t){return(i&&"localhost"===i?"http://127.0.0.1:4200/":c.url(i))+"#/viewer"+c.embedded+c.token(n)+c.client(o)+"&project_id="+t+"&team_id="+e},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;a.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("PinSelected",(function(t){e.onPinSelected&&e.onPinSelected(t.id)})),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()})),this._client.addMessageHandler("ClickedHyperlink",(function(t){e.onClickedHyperlink&&e.onClickedHyperlink(t.url)}))},e.prototype.resetView=function(){this.sendMessage("ResetView")},e.prototype.centerObject=function(e,t){this.sendMessage("CenterObject",{id:e,flyTo:t})},e.prototype.selectPin=function(e){this.sendMessage("PinSelected",{id:e})},e.prototype.selectObjects=function(e,t,n,o){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:o})},e.prototype.isolateObjects=function(e){this.sendMessage("ObjectsIsolated",{ids:e})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectStructure=function(e,t,n,o,i,s){this.sendMessage("StructureSelected",{id:e,visibleNodes:t,showAll:n,expandAll:o,hideUnreferencedTopology:i,isolate:s})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})},e.prototype.colorizeObjects=function(e,t){this.sendMessage("ColorizeObjects",{ids:e,color:t})}};u.prototype=new a,u.prototype.constructor=a;var p=function e(t,n,o,i){a.call(this,t,o,i),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,e.prototype.getUrl=function(e,t,s){return c.url(i)+"viewer/"+c.embedded+"&destination=EMBEDDED_ISSUE_LIST"+c.source(s)+c.token(n)+c.client(o)+"/#/embeddedissuelist?project_id="+t+"&team_id="+e},e.prototype.load=function(e,t,n){var o=this.getUrl(e,t,n);this.loadIFrame(o),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;a.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()}))},e.prototype.selectObjects=function(e,t,n,o){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:o})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})}};p.prototype=new a,p.prototype.constructor=a;var h=function e(t,n,o,i){a.call(this,t,o,i),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onPinSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,this.onClickedHyperlink=null,e.prototype.getUrl=function(e,t,s,l){return c.url(i)+"viewer/"+c.embedded+"&destination=EMBEDDED_ISSUE"+c.source(l)+c.token(n)+c.client(o)+"/#/embeddedissue?project_id="+t+"&issue_id="+s+"&team_id="+e},e.prototype.load=function(e,t,n,o){var i=this.getUrl(e,t,n,o);this.loadIFrame(i),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;a.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("PinSelected",(function(t){e.onPinSelected&&e.onPinSelected(t.id)})),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()})),this._client.addMessageHandler("ClickedHyperlink",(function(t){e.onClickedHyperlink&&e.onClickedHyperlink(t.url)}))},e.prototype.selectPin=function(e){this.sendMessage("PinSelected",{id:e})},e.prototype.selectObjects=function(e,t,n,o){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:o})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})}};h.prototype=new a,h.prototype.constructor=a;var f=function e(t,n,o,i){a.call(this,t,o,i),e.prototype.getUrl=function(e,t,s){var l=c.url(i);return l+="viewer/#/objproperties"+c.embedded+c.token(n)+c.client(o)+"&project_id="+t+"&team_id="+e+"&object_id="+s},e.prototype.initMessageHandlers=function(){a.prototype.initMessageHandlers.call(this)},e.prototype.load=function(e,t,n){var o=this.getUrl(e,t,n);this.loadIFrame(o),this.initMessageHandlers()}};f.prototype=new a,f.prototype.constructor=a;var g=function e(t,n,o,i){u.call(this,t,n,o,i),this.onExportStarted=null,e.prototype.getUrl=function(e,t){var s=i&&"localhost"===i?"http://127.0.0.1:4200/":c.url(i)+"export-manager/";return s+="#/viewer"+c.embedded+c.token(n)+c.client(o)+"&project_id="+t+"&team_id="+e},e.prototype.initMessageHandlers=function(){var e=this;u.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ExportStarted",(function(t){e.onExportStarted&&e.onExportStarted(t.id)}))}};g.prototype=new u,g.prototype.constructor=u;var y=function e(t,n,o,i){a.call(this,t,o,i),this.onAttachmentSelected=null,this.onAttachmentSelectedDetails=null,e.prototype.getUrl=function(e,t){var s=c.url(i);return s+=c.embedded+c.token(n)+c.client(o)+"/#/project/"+e+"/"+t+"/files/select"},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;a.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(null!=t&&t.id?t.id:t)})),this._client.addMessageHandler("AttachmentSelectedDetails",(function(t){e.onAttachmentSelectedDetails&&e.onAttachmentSelectedDetails(t&&t.id?t.id:t)}))}};y.prototype=new a,y.prototype.constructor=a;var S=function e(t,n,o,i){a.call(this,t,o,i),this.onModelSelected=null,this.onModelSelectedDetails=null,e.prototype.getUrl=function(e,t){var s=c.url(i);return s+=c.embedded+c.token(n)+c.client(o)+"/#/project/"+e+"/"+t+"/models/select"},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;a.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ModelSelected",(function(t){e.onModelSelected&&e.onModelSelected(t&&t.id?t.id:t)})),this._client.addMessageHandler("ModelSelectedDetails",(function(t){e.onModelSelectedDetails&&e.onModelSelectedDetails(t&&t.id?t.id:t)}))}};S.prototype=new a,S.prototype.constructor=a;var m=function e(t,n,o,i){a.call(this,t,o,i),this.onAttachmentSelected=null,this.onAttachmentSelectedDetails=null,e.prototype.getUrl=function(e,t,s){var l=s||c.url(i);return l+=c.embedded+c.token(n)+c.client(o)+"/#/project/"+e+"/"+t+"/files/isoselect"},e.prototype.load=function(e,t,n){var o=this.getUrl(e,t,n);this.loadIFrame(o),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;a.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(t&&t.id?t.id:t)})),this._client.addMessageHandler("AttachmentSelectedDetails",(function(t){e.onAttachmentSelectedDetails&&e.onAttachmentSelectedDetails(t&&t.id?t.id:t)}))}};m.prototype=new a,m.prototype.constructor=a;var M=function e(t,n,o,i){a.call(this,t,o,i),this.onModelSelected=null,this.onModelSelectedDetails=null,e.prototype.getUrl=function(e,t,s){var l=s||c.url(i);return l+=c.embedded+c.token(n)+c.client(o)+"/#/project/"+e+"/"+t+"/models/isoselect"},e.prototype.load=function(e,t,n){var o=this.getUrl(e,t,n);this.loadIFrame(o),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;a.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ModelSelected",(function(t){e.onModelSelected&&e.onModelSelected(t&&t.id?t.id:t)})),this._client.addMessageHandler("ModelSelectedDetails",(function(t){e.onModelSelectedDetails&&e.onModelSelectedDetails(null!=t&&t.id?t.id:t)}))}};M.prototype=new a,M.prototype.constructor=a;var b=function(e){var t,n,o=decodeURIComponent(window.location.search.substring(1)).split("&");for(n=0;n<o.length;n++)if((t=o[n].split("="))[0]===e)return void 0===t[1]||t[1]};return t})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.add=t():e.add=t()}(self,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{BimExplorer:()=>u,BimFilesIsoSelect:()=>m,BimFilesSelect:()=>S,BimModelsIsoSelect:()=>M,BimModelsSelect:()=>y,BimObjectProperties:()=>f,BimPortal:()=>a,BimTaskList:()=>p,BimTaskProperties:()=>h,ExportManager:()=>g,ExternalClient:()=>n,getUrlParameter:()=>b});var n=function e(t){this._messageHandlers={},this._clientName=t,e.prototype.initialize=function(){var e=this;console.log("ExternalClient initialized"),window.addEventListener("message",(function(t){var n=t.data;""===n&&(n="{}"),e.messageReceived(JSON.parse(n))}))},e.prototype.addMessageHandler=function(e,t){this._messageHandlers[e]=t},e.prototype.removeMessageHandler=function(e){delete this._messageHandlers[e]},e.prototype.messageReceived=function(e){var t=this._messageHandlers[e.message];t&&t(e.data)},e.prototype.sendMessage=function(e,t,n){var o=document.getElementById(e);return!(null==o||!o.contentWindow)&&(o.contentWindow.postMessage(JSON.stringify({messageType:"bimplusMessageIn",message:t,data:n}),"*"),!0)},e.prototype.getClientName=function(){return this._clientName}};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function l(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var c=l((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));s(c,"embedded","?embedded=1"),s(c,"url",(function(e){var t="https://portal";return e&&("dev"===e&&(t+="-dev"),"stage"===e&&(t+="-stage")),t+=".bimplus.net/"})),s(c,"token",(function(e){return"&token="+e})),s(c,"client",(function(e){return e?"&external_client=PostMessage:"+e.getClientName():""})),s(c,"source",(function(e){return e&&"string"==typeof e?"&source="+e:""}));var r=function e(t,n,o){this._client=n,this._domId=t,this._env=o,e.prototype.sendMessage=function(e,t){if(!this._client){var n="Error for SendMessage. Client not defined.";throw console.error(n),ReferenceError(n)}this._client.sendMessage(this._domId,e,t)},e.prototype.getDOMElementId=function(){return this._domId},e.prototype.initMessageHandlers=function(){},e.prototype.loadIFrame=function(e){var t=document.getElementById(this._domId);if(!t){var n="DOM element not found: "+this._domId;throw console.error(n),ReferenceError(n)}t.src=e}},a=function e(t,n,o,i){r.call(this,t,o,i),this.onTeamChanged=null,this.onProjectSelected=null,this.onAttachmentSelected=null,this.onAttachmentSelectedDetails=null,e.prototype.getUrl=function(){return c.url(i)+c.embedded+c.token(n)+c.client(o)},e.prototype.load=function(){var e=this.getUrl();this.loadIFrame(e),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;r.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("TeamChanged",(function(t){e.onTeamChanged&&e.onTeamChanged(t.id)})),this._client.addMessageHandler("ProjectSelected",(function(t){e.onProjectSelected&&e.onProjectSelected(t.id)})),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(null!=t&&t.id?t.id:t)})),this._client.addMessageHandler("AttachmentSelectedDetails",(function(t){e.onAttachmentSelectedDetails&&e.onAttachmentSelectedDetails(null!=t&&t.id?t.id:t)}))}};a.prototype=new r,a.prototype.constructor=r;var u=function e(t,n,o,i){r.call(this,t,o,i),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onPinSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,this.onClickedHyperlink=null,e.prototype.getUrl=function(e,t){return(i&&"localhost"===i?"http://127.0.0.1:4200/":c.url(i))+"#/viewer"+c.embedded+c.token(n)+c.client(o)+"&project_id="+t+"&team_id="+e},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;r.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("PinSelected",(function(t){e.onPinSelected&&e.onPinSelected(t.id)})),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()})),this._client.addMessageHandler("ClickedHyperlink",(function(t){e.onClickedHyperlink&&e.onClickedHyperlink(t.url)}))},e.prototype.resetView=function(){this.sendMessage("ResetView")},e.prototype.centerObject=function(e,t){this.sendMessage("CenterObject",{id:e,flyTo:t})},e.prototype.selectPin=function(e){this.sendMessage("PinSelected",{id:e})},e.prototype.selectObjects=function(e,t,n,o){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:o})},e.prototype.isolateObjects=function(e){this.sendMessage("ObjectsIsolated",{ids:e})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectStructure=function(e,t,n,o,i,l){this.sendMessage("StructureSelected",{id:e,visibleNodes:t,showAll:n,expandAll:o,hideUnreferencedTopology:i,isolate:l})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})},e.prototype.colorizeObjects=function(e,t){this.sendMessage("ColorizeObjects",{ids:e,color:t})}};u.prototype=new r,u.prototype.constructor=r;var p=function e(t,n,o,i){r.call(this,t,o,i),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,e.prototype.getUrl=function(e,t,l){return c.url(i)+"viewer/"+c.embedded+"&destination=EMBEDDED_ISSUE_LIST"+c.source(l)+c.token(n)+c.client(o)+"/#/embeddedissuelist?project_id="+t+"&team_id="+e},e.prototype.load=function(e,t,n){var o=this.getUrl(e,t,n);this.loadIFrame(o),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;r.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()}))},e.prototype.selectObjects=function(e,t,n,o){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:o})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})}};p.prototype=new r,p.prototype.constructor=r;var h=function e(t,n,o,i){r.call(this,t,o,i),this.onObjectSelected=null,this.onObjectsSelected=null,this.onIssueSelected=null,this.onPinSelected=null,this.onCheckAlive=null,this.onDataLoaded=null,this.onClickedHyperlink=null,e.prototype.getUrl=function(e,t,l,s){return c.url(i)+"viewer/"+c.embedded+"&destination=EMBEDDED_ISSUE"+c.source(s)+c.token(n)+c.client(o)+"/#/embeddedissue?project_id="+t+"&issue_id="+l+"&team_id="+e},e.prototype.load=function(e,t,n,o){var i=this.getUrl(e,t,n,o);this.loadIFrame(i),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;r.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("PinSelected",(function(t){e.onPinSelected&&e.onPinSelected(t.id)})),this._client.addMessageHandler("ObjectSelected",(function(t){e.onObjectSelected&&e.onObjectSelected(t.Id,t.multiSelect,t.selected)})),this._client.addMessageHandler("ObjectsSelected",(function(t){e.onObjectsSelected&&e.onObjectsSelected(t.ids,t.multiSelect,t.selected)})),this._client.addMessageHandler("IssueSelected",(function(t){e.onIssueSelected&&e.onIssueSelected(t.id)})),this._client.addMessageHandler("CheckAlive",(function(t){e.onCheckAlive&&e.onCheckAlive(t.client)})),this._client.addMessageHandler("DataLoaded",(function(){e.onDataLoaded&&e.onDataLoaded()})),this._client.addMessageHandler("ClickedHyperlink",(function(t){e.onClickedHyperlink&&e.onClickedHyperlink(t.url)}))},e.prototype.selectPin=function(e){this.sendMessage("PinSelected",{id:e})},e.prototype.selectObjects=function(e,t,n,o){this.sendMessage("ObjectsSelected",{ids:e,multiSelect:t,isolate:n,blockProperties:o})},e.prototype.checkAlive=function(){this.sendMessage("CheckAlive",{})},e.prototype.selectIssue=function(e){this.sendMessage("IssueSelected",{id:e})}};h.prototype=new r,h.prototype.constructor=r;var f=function e(t,n,o,i){r.call(this,t,o,i),e.prototype.getUrl=function(e,t,l){var s=c.url(i);return s+="viewer/#/objproperties"+c.embedded+c.token(n)+c.client(o)+"&project_id="+t+"&team_id="+e+"&object_id="+l},e.prototype.initMessageHandlers=function(){r.prototype.initMessageHandlers.call(this)},e.prototype.load=function(e,t,n){var o=this.getUrl(e,t,n);this.loadIFrame(o),this.initMessageHandlers()}};f.prototype=new r,f.prototype.constructor=r;var g=function e(t,n,o,i){u.call(this,t,n,o,i),this.onExportStarted=null,e.prototype.getUrl=function(e,t){var l=i&&"localhost"===i?"http://127.0.0.1:4200/":c.url(i)+"export-manager/";return l+="#/viewer"+c.embedded+c.token(n)+c.client(o)+"&project_id="+t+"&team_id="+e},e.prototype.initMessageHandlers=function(){var e=this;u.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ExportStarted",(function(t){e.onExportStarted&&e.onExportStarted(t.id)}))}};g.prototype=new u,g.prototype.constructor=u;var S=function e(t,n,o,i){r.call(this,t,o,i),this.onAttachmentSelected=null,this.onAttachmentSelectedDetails=null,e.prototype.getUrl=function(e,t){var l=c.url(i);return l+=c.embedded+c.token(n)+c.client(o)+"/#/project/"+e+"/"+t+"/files/select"},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;r.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(null!=t&&t.id?t.id:t)})),this._client.addMessageHandler("AttachmentSelectedDetails",(function(t){e.onAttachmentSelectedDetails&&e.onAttachmentSelectedDetails(null!=t&&t.id?t.id:t)}))}};S.prototype=new r,S.prototype.constructor=r;var y=function e(t,n,o,i){r.call(this,t,o,i),this.onModelSelected=null,this.onModelSelectedDetails=null,e.prototype.getUrl=function(e,t){var l=c.url(i);return l+=c.embedded+c.token(n)+c.client(o)+"/#/project/"+e+"/"+t+"/models/select"},e.prototype.load=function(e,t){var n=this.getUrl(e,t);this.loadIFrame(n),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;r.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ModelSelected",(function(t){e.onModelSelected&&e.onModelSelected(null!=t&&t.id?t.id:t)})),this._client.addMessageHandler("ModelSelectedDetails",(function(t){e.onModelSelectedDetails&&e.onModelSelectedDetails(null!=t&&t.id?t.id:t)}))}};y.prototype=new r,y.prototype.constructor=r;var m=function e(t,n,o,i){r.call(this,t,o,i),this.onAttachmentSelected=null,this.onAttachmentSelectedDetails=null,e.prototype.getUrl=function(e,t,l){var s=l||c.url(i);return s+=c.embedded+c.token(n)+c.client(o)+"/#/project/"+e+"/"+t+"/files/isoselect"},e.prototype.load=function(e,t,n){var o=this.getUrl(e,t,n);this.loadIFrame(o),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;r.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("AttachmentSelected",(function(t){e.onAttachmentSelected&&e.onAttachmentSelected(null!=t&&t.id?t.id:t)})),this._client.addMessageHandler("AttachmentSelectedDetails",(function(t){e.onAttachmentSelectedDetails&&e.onAttachmentSelectedDetails(null!=t&&t.id?t.id:t)}))}};m.prototype=new r,m.prototype.constructor=r;var M=function e(t,n,o,i){r.call(this,t,o,i),this.onModelSelected=null,this.onModelSelectedDetails=null,e.prototype.getUrl=function(e,t,l){var s=l||c.url(i);return s+=c.embedded+c.token(n)+c.client(o)+"/#/project/"+e+"/"+t+"/models/isoselect"},e.prototype.load=function(e,t,n){var o=this.getUrl(e,t,n);this.loadIFrame(o),this.initMessageHandlers()},e.prototype.initMessageHandlers=function(){var e=this;r.prototype.initMessageHandlers.call(this),this._client.addMessageHandler("ModelSelected",(function(t){e.onModelSelected&&e.onModelSelected(null!=t&&t.id?t.id:t)})),this._client.addMessageHandler("ModelSelectedDetails",(function(t){e.onModelSelectedDetails&&e.onModelSelectedDetails(null!=t&&t.id?t.id:t)}))}};M.prototype=new r,M.prototype.constructor=r;var b=function(e){var t,n,o=decodeURIComponent(window.location.search.substring(1)).split("&");for(n=0;n<o.length;n++)if((t=o[n].split("="))[0]===e)return void 0===t[1]||t[1]};return t})()));
|