PageSourceSearch

https://configurator.wago.com/chunk-6DYXCQQ6.js

js wago.com collected 2026-10-01 10:27:26 UTC 45,540 bytes, 7 lines download raw bytes

1import{a as Pt}from"./chunk-R47BOKZW.js";import{$d as W,$i as fe,Ad as Ne,B as g,Bi as st,C as we,E as ke,El as Mt,Fb as $,Fj as ht,G as E,Gb as Te,Gd as K,Ge as He,H as O,Ha as u,Hb as J,Hf as Ze,Hl as xt,Ia as h,Ib as Le,Il as ce,J as Z,Ja as de,Jh as rt,Lb as Ft,Lc as ie,Lj as Ct,Mc as Ge,N as pe,O as y,Pf as $e,Pj as _t,Qf as Je,Qj as vt,Rb as ee,Re as me,Ri as lt,Rl as St,Sa as Ue,Se as Ke,Si as ge,Sl as yt,T as I,Ti as ue,Ua as Be,Ue as oe,Ul as U,V as c,Ve as ae,Wf as et,Wh as ot,Xa as s,Xf as tt,Xl as L,Y as A,Ya as l,Ye as Xe,Yf as it,Yi as pt,Za as Ee,Zi as dt,b as Se,ba as k,be as V,bj as he,c as ye,ce as re,cj as Ce,dj as _e,ec as x,ej as ve,em as X,fa as N,fe as We,fj as Ie,ha as H,i as Q,ia as m,ie as Ve,ih as nt,ka as je,kb as Oe,kc as te,le as Fe,ma as j,nj as Ae,o as Pe,oj as be,pi as at,pj as Me,qi as ct,ra as a,rc as Re,rd as ne,rj as mt,sa as d,sf as qe,sj as gt,ta as f,uj as ut,uk as It,vc as De,vd as ze,wj as ft,xa as T,xf as Ye,xk as At,ya as b,yf as Qe,yk as bt,z as w,za as P}from"./chunk-NBBGV6ND.js";import{h as Vt,k as _}from"./chunk-24TE2FW6.js";function Ht(o,n){o&1&&f(0,"app-svg-icon",1),o&2&&m("type",n)}function Kt(o,n){if(o&1&&f(0,"img",2),o&2){let e=P();m("alt",e.text())("src",n,I)}}var F=(()=>{class o{icon=y();imageUrl=y();text=y.required();active=y();click=pe();dblclick=pe();onButtonClick(e){e.stopPropagation(),this.click.emit()}onButtonDoubleClick(e){e.stopPropagation(),this.dblclick.emit()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=k({type:o,selectors:[["app-tile-button"]],inputs:{icon:[1,"icon"],imageUrl:[1,"imageUrl"],text:[1,"text"],active:[1,"active"]},outputs:{click:"click",dblclick:"dblclick"},decls:5,vars:5,consts:[["dbltap","",3,"click","dblClicked","dblTapped"],["size","largest",3,"type"],[3,"alt","src"],[1,"break-word","w-100"]],template:function(t,i){if(t&1&&(a(0,"button",0),b("click",function(p){return i.onButtonClick(p)})("dblClicked",function(p){return i.onButtonDoubleClick(p)})("dblTapped",function(p){return i.onButtonDoubleClick(p)}
1),N(1,Ht,1,1,"app-svg-icon",1)(2,Kt,1,2,"img",2),a(3,"span",3),u(4),d()()),t&2){let r,p;je("active",i.active()),c(),j((r=i.icon())?1:-1,r),c(),j((p=i.imageUrl())?2:-1,p),c(2),h(i.text())}},dependencies:[Ct,J],styles:[`.connector-color-acate-gray[_ngcontent-%COMP%], .connector-color-black[_ngcontent-%COMP%]{background-color:#bbbaba}[_nghost-%COMP%]{pointer-events:none}button[_ngcontent-%COMP%]{background:#fffc;color:#1f2837;border:none;height:230px;width:250px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:1.2rem;font-weight:700;transition:outline-color .2s,background-color 75ms;outline:4px solid transparent;outline-offset:-4px;pointer-events:all;hyphens:auto}@media screen and (max-width: 1349px){button[_ngcontent-%COMP%]{height:180px;width:195px;font-size:1rem;line-height:1.2rem}}button[_ngcontent-%COMP%]:hover, button.active[_ngcontent-%COMP%]{outline:4px solid #6ec800!important;border:none;cursor:pointer}button[_ngcontent-%COMP%]:active{border:none;outline-color:#6ec800;background:#6ec800}button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:70%;object-fit:contain}button[_ngcontent-%COMP%]:focus{outline-color:transparent}@media (max-width: 800px){button[_ngcontent-%COMP%]{height:150px;width:180px;font-size:1rem}}
2/*# sourceMappingURL=tile-button.component-XEZKGK7K.css.map */`],changeDetection:0})}return o})();function Yt(o,n){if(o&1){let e=T();a(0,"app-tile-button",47),s(1,"translate"),b("click",function(){E(e);let i=P();return O(i.actionWithCae())}),d()}o&2&&(m("text",l(1,2,"importChoice.import.cae")),H("data-testid","import-cae"))}function Qt(o,n){if(o&1){let e=T();a(0,"app-tile-button",48),s(1,"translate"),b("click",function(){E(e);let i=P();return O(i.actionWithCsv())}),d()}o&2&&(m("text",l(1,2,"importChoice.import.csv")),H("data-testid","import-csv"))}function Zt(o,n){if(o&1){let e=T();a(0,"app-tile-button",49),s(1,"translate"),b("click",function(){E(e);let i=P();return O(i.actionWithWsp())}),d()}o&2&&(m("text",l(1,2,"importChoice.import.wsp")),H("data-testid","import-wsp"))}function $t(o,n){if(o&1){let e=T();a(0,"app-tile-button",50),s(1,"translate"),b("click",function(){E(e);let i=P();return O(i.actionWithProServe())}),d()}o&2&&(m("text",l(1,2,"importChoice.import.proserve")),H("data-testid","import-proserve"))}var kt=(()=>{class o{importWspManager;bsModalRef;userModel;proServeProjectImportManager;userPermissionService;caeImportService;csvImportService;enabledEntries=new Map;isLoggedIn;constructor(e,t,i,r,p,C,v,M){this.importWspManager=e,this.bsModalRef=t,this.userModel=r,this.proServeProjectImportManager=p,this.userPermissionService=C,this.caeImportService=v,this.csvImportService=M,i.events.pipe(Le(),Pe(S=>S instanceof ze)).subscribe(()=>this.bsModalRef.hide())}ngOnInit(){let e=this.userModel.isConstruction;this.enabledEntries=new Map([["localBackup",this.userPermissionService.isLocalBackupVisible()&&!e],["proserve",this.userPermissionService.isProServeImportVisible()&&!e],["cae",this.userPermissionService.isCAEEnabled()&&this.userPermissionService.isCAEVisible()&&!e],["csv",this.isLoggedIn]])}actionWithWsp(){return _(this,null,function*(){yield this.importWspManager.importWspProject()})}actionWithProServe(){return _(this,null,function*(){yield this.proServeProjectImportManager.importProServeProject({navigateToConfigurator:!0})})}actionWithCae(){return _(this,null,function*(){yield this.caeImportService.startCaeImport()})}actionWithCsv(){return _(this,null,function*(){yield this.csvImportService.startCsvImport()})}static \u0275fac=function(t){return new(t||o)(A(At),A(We),A(Ne),A(V),A(ut),A(gt),A(bt),A(ft))};static \u0275cmp=k({type:o,selectors:[["app-import-choice-dialog"]],decls:178,vars:157,consts:[[1,"d-flex","gap-2","align-items-center","px-4"],[3,"click"],["type","tiles","size","large"],[1,"modal-title"],[1,"pb-4","px-4"],[1,"mx-3","flex-grow-1","align-items","stretch"],[1,"py-2"],[1,"hero"],[1,"hero-content"],[1,"category-wrapper"],[1,"side-spacer"],[1,"tiles-container"],["icon","project-import","data-gatm","openProject.cae_import","id","import_cae_file","appActionLogId","import.cae.from-dashboard",3,"text"],["icon","maintenance","data-gatm","o
2penProject.csv_import","id","import_csv_file","appActionLogId","import.csv.from-dashboard",3,"text"],["icon","configuration","data-gatm","openProject.import_from_backup","id","import_wsp_file","appActionLogId","import.wsp.from-dashboard",3,"text"],["icon","configuration","data-gatm","openProject.import_old_project","id","import_old_project","appActionLogId","import.proserve.from-dashboard",3,"text"],[1,"tile-button-onclick-container"],["imageUrl","ng-assets/img/tool-icons/eplan.svg","id","cae_eplan",3,"text"],[1,"tile-button-onclick-content"],["appActionLogId","cae_api_link.eplan.interface","target","_blank","rel","noopener",3,"href"],["type","download_direct"],["appActionLogId","cae_api_link.eplan.manual","target","_blank","rel","noopener",3,"href"],["type","book"],["appActionLogId","cae_api_link.eplan.article_data","target","_blank","rel","noopener",3,"href"],["type","writing-board"],["appActionLogId","cae_api_link.eplan.more_info","target","_blank","rel","noopener",3,"href"],["type","external-link"],["imageUrl","ng-assets/img/tool-icons/wscad.svg","id","cae_wscad",3,"text"],["appActionLogId","cae_api_link.wscad.article_data","target","_blank","rel","noopener",3,"href"],["appActionLogId","cae_api_link.wscad.more_info","target","_blank","rel","noopener",3,"href"],["imageUrl","ng-assets/img/tool-icons/zuken.svg","id","cae_zuken",3,"text"],["appActionLogId","cae_api_link.zuken.e3_interface","target","_blank","rel","noopener",3,"href"],["appActionLogId","cae_api_link.zuken.article_data","target","_blank","rel","noopener",3,"href"],["appActionLogId","cae_api_link.zuken.more_info","target","_blank","rel","noopener",3,"href"],["imageUrl","ng-assets/img/tool-icons/strieplan.webp","id","cae_strieplan",3,"text"],["appActionLogId","cae_api_link.strieplan.manual","target","_blank","rel","noopener",3,"href"],["appActionLogId","cae_api_link.strieplan.article_data","target","_blank","rel","noopener",3,"href"],["appActionLogId","cae_api_link.strieplan.more_info","target","_blank","rel","noopener",3,"href"],["imageUrl","ng-assets/img/tool-icons/SEEelectrical.png","id","see-electrical",3,"text"],["appActionLogId","cae_api_link.see_electrical.more_info","target","_blank","rel","noopener",3,"href"],["imageUrl","ng-assets/img/tool-icons/SDproget.png","id","sd-proget",3,"text"],["appActionLogId","cae_api_link.sd_proget.article_data","target","_blank","rel","noopener",3,"href"],["appActionLogId","cae_api_link.sd_proget.more_info","target","_blank","rel","noopener",3,"href"],["imageUrl","ng-assets/img/tool-icons/autocad.png","id","cad_autocad",3,"text"],["appActionLogId","importChoice.cae_api.autocad.more_info","target","_blank","rel","noopener",3,"href"],[1,"modal-footer"],["type","button",1,"btn","btn-forward","btn-secondary","btn-cancel",3,"click"],["icon","project-import","data-gatm","openProject.cae_import","id","import_cae_file","appActionLogId","import.cae.from-dashboard",3,"click","text"],["icon","maintenance","data-gatm","openProject.csv_import","id","import_csv_file","appActionLogId","import.csv.from-dashboard",3,"click","text"],["icon","configuration","data-gatm","openProject.import_from_backup","id","import_wsp_file","appActionLogId","import.wsp.from-dashboard",3,"click","text"],["icon","configuration","data-gatm","openProject.import_old_project","id","import_old_project","appActionLogId","import.proserve.from-dashboard",3,"click","text"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"a",1),b("click",function(){return i.bsModalRef.hide()}),f(2,"app-svg-icon",2),d(),a(3,"h2",3),u(4),s(5,"translate"),d()(),a(6,"p",4),u(7),s(8,"translate"),d(),a(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"div",10)(15,"h3"),u(16),s(17,"translate"),d()(),a(18,"div",11),N(19,Yt,2,4,"app-tile-button",12)(20,Qt,2,4,"app-tile-button",13)(21,Zt,2,4,"app-tile-button",14)(22,$t,2,4,"app-tile-button",15),d()(),a(23,"div",9)(24,"div",10)(25,"h3"),u(26),s(27,"translate"),d()(),a(28,"div",11)(29,"div",16),f(30,"app-tile-button",17),s(31,"translate"),a(32,"div",18)(33,"h4"),u(34),s(35,"translate"),d(),a(36,"a",19),s(37,"translate"),f(38,"app-svg-icon",20),a(39,"strong"),u(40),s(41,"translate"),d()(),a(42,"a",21),s(43,"translate"),f(44,"app-svg-icon",22),a(45,"strong"),u(46),s(47,"translate"),d()(),a(48,"a",23),s(49,"translate"),f(50,"app-svg-icon",24),a(51,"strong"),u(52),s(53,"translate"),d()(),a(54,"a",25),s(55,"translate"),f(56,"app-svg-icon",26),a(57,"strong"),u(58),s(59,"translate"),d()()()(),a(60,"div",16),f(61,"app-tile-button",27),s(62,"translate"),a(63,"div",18)(64,"h4"),u(65),s(66,"translate"),d(),a(67,"a",28),s(68,"translate"),f(69,"app-svg-icon",24),a(70,"strong"),u(71),s(72,"translate"),d()(),a(73,"a",29),s(74,"translate"),f(75,"app-svg-icon",26),a(76,"strong"),u(77),s(78,"translate"),d()()()(),a(79,"div",16),f(80,"app-tile-button",30),s(81,"translate"),a(82,"div",18)(83,"h4"),u(84),s(85,"translate"),d(),a(86,"a",31),s(87,"translate"),f(88,"app-svg-icon",20),a(89,"strong"),u(90),s(91,"translate"),d()(),a(92,"a",32),s(93,"translate"),f(94,"app-svg-icon",24),a(95,"strong"),u(96),s(97,"translate"),d()(),a(98,"a",33),s(99,"translate"),f(100,"app-svg-icon",26),a(101,"strong"),u(102),s(103,"translate"),d()()()(),a(104,"div",16),f(10
25,"app-tile-button",34),s(106,"translate"),a(107,"div",18)(108,"h4"),u(109),s(110,"translate"),d(),a(111,"a",35),s(112,"translate"),f(113,"app-svg-icon",22),a(114,"strong"),u(115),s(116,"translate"),d()(),a(117,"a",36),s(118,"translate"),f(119,"app-svg-icon",24),a(120,"strong"),u(121),s(122,"translate"),d()(),a(123,"a",37),s(124,"translate"),f(125,"app-svg-icon",26),a(126,"strong"),u(127),s(128,"translate"),d()()()(),a(129,"div",16),f(130,"app-tile-button",38),s(131,"translate"),a(132,"div",18)(133,"h4"),u(134),s(135,"translate"),d(),a(136,"a",39),s(137,"translate"),f(138,"app-svg-icon",26),a(139,"strong"),u(140),s(141,"translate"),d()()()(),a(142,"div",16),f(143,"app-tile-button",40),s(144,"translate"),a(145,"div",18)(146,"h4"),u(147),s(148,"translate"),d(),a(149,"a",41),s(150,"translate"),f(151,"app-svg-icon",24),a(152,"strong"),u(153),s(154,"translate"),d()(),a(155,"a",42),s(156,"translate"),f(157,"app-svg-icon",26),a(158,"strong"),u(159),s(160,"translate"),d()()()(),a(161,"div",16),f(162,"app-tile-button",43),s(163,"translate"),a(164,"div",18)(165,"h4"),u(166),s(167,"translate"),d(),a(168,"a",44),s(169,"translate"),f(170,"app-svg-icon",26),a(171,"strong"),u(172),s(173,"translate"),d()()()()()()()()()(),a(174,"div",45)(175,"button",46),b("click",function(){return i.bsModalRef.hide()}),u(176),s(177,"translate"),d()()),t&2&&(c(4),h(l(5,55,"openProjectComponent.label.import")),c(3),h(l(8,57,"openProjectComponent.label.actions_descriptions")),c(9),h(l(17,59,"importChoice.local_files")),c(3),j(i.enabledEntries!=null&&i.enabledEntries.get("cae")?19:-1),c(),j(i.enabledEntries!=null&&i.enabledEntries.get("csv")?20:-1),c(),j(i.enabledEntries!=null&&i.enabledEntries.get("localBackup")?21:-1),c(),j(i.enabledEntries!=null&&i.enabledEntries.get("proserve")?22:-1),c(4),h(l(27,61,"importChoice.cae_apis")),c(4),m("text",l(31,63,"importChoice.cae_api.eplan")),c(4),h(l(35,65,"importChoice.cae_api.eplan")),c(2),m("href",l(37,67,"importChoice.cae_api.eplan.interface.link"),I),c(4),h(l(41,69,"importChoice.cae_api.eplan.interface")),c(2),m("href",l(43,71,"importChoice.cae_api.eplan.manual.link"),I),c(4),h(l(47,73,"importChoice.interface_manual")),c(2),m("href",l(49,75,"importChoice.cae_api.eplan.article_data.link"),I),c(4),h(l(53,77,"importChoice.cae_api.article_data")),c(2),m("href",l(55,79,"importChoice.cae_api.eplan.more_info.link"),I),c(4),h(l(59,81,"importChoice.more_info")),c(3),m("text",l(62,83,"importChoice.cae_api.wscad")),c(4),h(l(66,85,"importChoice.cae_api.wscad")),c(2),m("href",l(68,87,"importChoice.cae_api.wscad.article_data.link"),I),c(4),h(l(72,89,"importChoice.cae_api.article_data")),c(2),m("href",l(74,91,"importChoice.cae_api.wscad.more_info.link"),I),c(4),h(l(78,93,"importChoice.more_info")),c(3),m("text",l(81,95,"importChoice.cae_api.zuken")),c(4),h(l(85,97,"importChoice.cae_api.zuken")),c(2),m("href",l(87,99,"importChoice.cae_api.zuken.e3_interface.link"),I),c(4),h(l(91,101,"importChoice.cae_api.zuken.e3_interface")),c(2),m("href",l(93,103,"importChoice.cae_api.zuken.article_data.link"),I),c(4),h(l(97,105,"importChoice.cae_api.article_data")),c(2),m("href",l(99,107,"importChoice.cae_api.zuken.more_info.link"),I),c(4),h(l(103,109,"importChoice.more_info")),c(3),m("text",l(106,111,"importChoice.cae_api.strieplan")),c(4),h(l(110,113,"importChoice.cae_api.strieplan")),c(2),m("href",l(112,115,"importChoice.cae_api.strieplan.manual.link"),I),c(4),h(l(116,117,"importChoice.interface_manual")),c(2),m("href",l(118,119,"importChoice.cae_api.strieplan.article_data.link"),I),c(4),h(l(122,121,"importChoice.cae_api.article_data")),c(2),m("href",l(124,123,"importChoice.cae_api.strieplan.more_info.link"),I),c(4),h(l(128,125,"importChoice.more_info")),c(3),m("text",l(131,127,"importChoice.cae_api.see_electrical")),c(4),h(l(135,129,"importChoice.cae_api.see_electrical")),c(2),m("href",l(137,131,"importChoice.cae_api.see_electrical.more_info.link"),I),c(4),h(l(141,133,"importChoice.more_info")),c(3),m("text",l(144,135,"importChoice.cae_api.sd_proget")),c(4),h(l(148,137,"importChoice.cae_api.sd_proget")),c(2),m("href",l(150,139,"importChoice.cae_api.sd_proget.article_data.link"),I),c(4),h(l(154,141,"importChoice.cae_api.article_data")),c(2),m("href",l(156,143,"importChoice.cae_api.sd_proget.more_info.link"),I),c(4),h(l(160,145,"importChoice.more_info")),c(3),m("text",l(163,147,"importChoice.cae_api.autocad")),c(4),h(l(167,149,"importChoice.cae_api.autocad")),c(2),m("href",l(169,151,"importChoice.cae_api.autocad.more_info.link"),I),c(4),h(l(173,153,"importChoice.more_info")),c(4),h(l(177,155,"global.label.cancel")))},dependencies:[Te,$,vt,_t,J,F],styles:[`.connector-color-acate-gray[_ngcontent-%COMP%], .connector-color-black[_ngcontent-%COMP%]{background-color:#bbbaba}[_nghost-%COMP%]{display:flex;flex-direction:column}.hero[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;background-image:url(/ng-assets/img/heroes/bg-import.jpg);overflow:auto;max-height:calc(100dvh - 230px)}.hero-content[_ngcontent-%COMP%]{padding:60px 22px!important;display:flex;flex-direction:column;align-items:stretch!important;background:linear-gradient(90deg,rgba(238,238,238,.8666666667) 15%,transparent)}h3[_ngcontent-%COMP%]{width:250px;flex-grow:1;padding-left:48px}.tiles-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px}.side-spacer[_ngcontent-%COMP%]{min-width:380px}.category-wrapper[_ngcontent-%COMP%]{display:flex}@media (max-width: 1450px){.category-wrapper[_ngcontent-%COMP%]{flex-direction:column}h3[_ngcontent-%COMP%]{padding-left:12px}}.tile-button-onclick-container[_ngcontent-%COMP%]{position:relative}.tile-button-onclick-container[_ngcontent-%COMP%]   .tile-button-onclick-content[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;min-height:100%;background-color:#fff;transition:opacity .25s;opacity:0;outline:4px solid #6ec800;outline-offset:-4px;pointer-events:none;padding:12px;z-index:1}.tile-button-onclick-container[_ngcontent-%COMP%]   .tile-button-onclick-content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;padding:4px 0}.tile-button-onclick-container[_ngcontent-%COMP%]   app-tile-button[_ngcontent-%COMP%]:focus-within + .tile-button-onclick-content[_ngcontent-%COMP%], .tile-button-onclick-container[_ngcontent-%COMP%]   .tile-button-onclick-content[_ngcontent-%COMP%]:focus-within{opacity:1;pointer-events:all}
3/*# sourceMappingURL=import-choice-dialog.component-5ZUXFKUW.css.map */`,`.connector-color-acate-gray[_ngcontent-%COMP%], .connector-color-black[_ngcontent-%COMP%]{background-color:#bbbaba}.hero[_ngcontent-%COMP%]{background-size:cover;background-position:center;max-width:100dvw}.hero[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:32px;background-color:#a5a8af99;padding:min(150px,15dvh) 22px;flex-wrap:wrap}.hero[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]   .tiles-wrapper[_ngcontent-%COMP%]{gap:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,max-content));justify-content:center;min-width:100%}@media (max-width: 800px){.hero[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]   .tiles-wrapper[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(180px,max-content))}}
4/*# sourceMappingURL=hero-HQUIBC6U.css.map */`]})}return o}
4)();var se=(()=>{class o extends lt{overlayService;configurationCreationService;routeNavigationService;createProjectService;articleDataService;addArticleService;type="TEMPLATE";articleNo;constructor(e,t,i,r,p,C){super(),this.overlayService=e,this.configurationCreationService=t,this.routeNavigationService=i,this.createProjectService=r,this.articleDataService=p,this.addArticleService=C}createConfig(){return{id:"create-from-template",type:"type",imageUrl:"ng-assets/img/icons/applications.svg",label:"configurationCreation.type.template",steps:[{type:"meta",id:"meta",label:"configurationCreation.progress.configuration_data"},{type:"templateSelection",id:"templateSelection",label:"configurationCreation.progress.configuration_data"}]}}selectValue(e,t){let i=this.config.steps[e];e<0||!i||(this.articleNo=t)}create(){return _(this,null,function*(){let e=this.articleNo;if(e===void 0){te.error("No template article selected!");return}if(this.creationStarted)return;this.creationStarted=!0;let t=this.metaData;try{yield this.overlayService.doWithOverlay(()=>_(this,null,function*(){yield this.configurationCreationService.prepareNewConfiguration(t);try{yield this.routeNavigationService.toConfigurator()}catch(r){te.error("Could not navigate to configurator: ",r);return}yield this.createProjectService.createFreeMounting();let i=yield Q(this.articleDataService.getLatestArticlesByNoObservable([e]));yield this.addArticleService.addArticlesToMountingRail(i)}),K.color)}catch(i){te.error("Could not create configuraion: ",i)}finally{this.creationStarted=!1}})}static \u0275fac=function(t){return new(t||o)(g(re),g(pt),g(rt),g(st),g(Ke),g(dt))};static \u0275prov=w({token:o,factory:o.\u0275fac})}return o})();var jt=(()=>{class o{userModel;injector;wizardsByName;static MODEL_CLASSES=[o,ge,_e,ve,Me,Ce,fe,be,ue,he,Ie,Ae];constructor(e,t){this.userModel=e,this.injector=t;let i=this.injector.get(ge),r=this.injector.get(_e),p=this.injector.get(ve),C=this.injector.get(Me),v=this.injector.get(Ce),M=this.injector.get(fe),S=this.injector.get(be),G=this.injector.get(ue),z=this.injector.get(he),B=this.injector.get(Ie),q=this.injector.get(Ae);this.wizardsByName={"mounting-rail":i,"control-cabinet":i,mcs:r,"pluggable-connector":r,gds:p,"pcb-terminal-blocks":p,"splicing-connector-221":C,221:C,"marking-cards":v,ltl:M,"modular-through-connectors":M,io:S,"io-systems":S,iek:G,"distribution-boards":G,"mini-terminal":z,"mcs-maxi":B,"distribution-terminals":q}}static provideModels(){return o.MODEL_CLASSES}getWizardByNameIfAllowed(e){if(!e)return;let t=this.wizardsByName[e.toLowerCase()];if(!(!t||!this.hasPermission(t)))return t}hasPermission(e){let t=e.config.neededPermission;return t?this.userModel.user?.hasPermissions([t]):!0}static \u0275fac=function(t){return new(t||o)(g(V),g(Z))};static \u0275prov=w({token:o,factory:o.\u0275fac})}return o})();var Ut=(()=>{class o{href=y.required();text=y.required();icon=y();static \u0275fac=function(t){return new(t||o)};static \u0275cmp=k({type:o,selectors:[["app-tile-link"]],inputs:{href:[1,"href"],text:[1,"text"],icon:[1,"icon"]},decls:2,vars:3,consts:[["rel","noopener","target","_blank",3,"href"],[3,"text","icon"]],template:function(t,i){t&1&&(a(0,"a",0),f(1,"app-tile-button",1),d()),t&2&&(m("href",i.href(),I),c(),m("text",i.text())("icon",i.icon()))},dependencies:[F],encapsulation:2,changeDetection:0})}return o})();var oi=o=>({0:o});function ai(o,n){if(o&1){let e=T();a(0,"app-tile-button",13),s(1,"translate"),b("click",function(){E(e);let i=P();return O(i.openProject())}),d()}o&2&&m("text",l(1,1,"projectNavigation.my_projects"))}var pn=(()=>{class o{userModel;localeResourceManager;projectNavigationPresenter;configurationCreationWizardPresenter;windowService;projectModelService;templateModel;wizardStartupService;currentLanguage;isLoggedIn=!1;userName="";subscriptions;constructor(e,t,i,r,p,C,v,M){this.userModel=e,this.localeResourceManager=t,this.projectNavigationPresenter=i,this.configurationCreationWizardPresenter=r,this.windowService=p,this.projectModelService=C,this.templateModel=v,this.wizardStartupService=M}ngOnInit(){this.subscriptions=new Se,this.subscriptions.add(this.localeResourceManager.localeChanged$.subscribe(e=>this.onLocaleChange(e))),this.projectModelService.clearCurrentProject().then(()=>{this.openPendingWizardIfAny()})}openPendingWizardIfAny(){let e=sessionStorage.getItem("pendingWizardName");if(sessionStorage.removeItem("pendingWizardName"),!e)return;let t=this.wizardStartupService.getWizardByNameIfAllowed(e);t&&this.configurationCreationWizardPresenter.openWizard(!0,t)}openImportChoiceDialog(){this.windowService.showModalFullscreen(kt,{isLoggedIn:this.isLoggedIn})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.subscriptions=void 0}isMyProjectsEnabled(){return this.userModel.isUserLoggedIn}getGreetingName(){let e=this.userModel.userProfile;if(this.isLoggedIn=e&&e.isRegisteredUserAccount(),!this.isLoggedIn)return null;let t=`${e.user?.name??""} ${e.user?.surname??""}`.trim();return t==""&&(t=e.user.login),t}openNewConfigurationDialog(){this.configurationCreationWizardPresenter.openWizard(!0)}openCreateFromTemplateWizard(){this.configurationCreationWizardPresenter.openWizard(!0,this.templateModel)}openProject(){return _(this,null,function*(){yield this.projectNavigationPresenter.openLoadProjectDialog({navigateToConfigurator:!0,newProjectCreation:!0,fromDashBoard:!0})})}onLocaleChange(e){this.currentLanguage=e.langKey.substring(0,2).toUpperCase()}static \u0275fac=function(t){return new(t||o)(A(V),A(ne),A(It),A(mt),A(Ze),A(ce),A(se),A(jt))};static \u0275cmp=k({type:o,selectors:[["app-open-project"]],standalone:!1,features:[Ue([se])],decls:28,vars:30,consts:[[1,"app-header","navbar","noselect"],[1,"navbar-brand"],[1,"dashboard-content","app-body"],[1,"p-4"],[1,"hero"],[1,"hero-content"],[1,"tiles-wrapper"],["id","my-projects","icon","folder",3,"text","click",4,"ngIf"],["id","create-configuration","icon","plus",3,"click","text"],["id","open-from-template","icon","applications",3,"click","text"],["id","import-project","icon","import",3,"click","text"],["id","howto-videos-link","icon","external-link",3,"text","href"],[1,"p-4","disclaimer"],["id","my-projects","icon","folder",3,"click","text"]],template:function(t,i){t&1&&(a(0,"header",0),f(1,"div",1)(2,"app-header-right-content"),d(),a(3,"div",2)(4,"div",3)(5,"h1"),u(6),s(7,"translate"),s(8,"translate"),d(),a(9,"p"),u(10),s(11,"translate"),d()(),a(12,"div",4)(13,"div",5)(14,"div",6),N(15,ai,2,3,"app-tile-button",7),a(16,"app-tile-button",8),s(17,"translate"),b("click",function(){return i.openNewConfigurationDialog()}),d(),a(18,"app-tile-button",9),s(19,"translate"),b("click",function(){return i.openCreateFromTemplateWizard()}),d(),a(20,"app-tile-button",10),s(21,"translate"),b("click",function(){return i.openImportChoiceDialog()}),d(),f(22,"app-tile-link",11),s(23,"translate"),s(24,"translate"),d()()(),a(25,"div",12),u(26),s(27,"translate"),d()()),t&2&&(c(6),de(" ",Ee(8,11,"openProjectComponent.greeting",Be(28,oi,i.getGreetingName()||l(7,9,"openProjectComponent.greeting.guest")))," "),c(4),h(l(11,14,"openProjectComponent.description_short")),c(5),m("ngIf",i.isMyProjectsEnabled()),c(),m("text",l(17,16,"openProjectComponent.label.create_configuration")),c(2),m("text",l(19,18,"configurationCreation.type.template")),c(2),m("text",l(21,20,"openProjectComponent.label.import")),c(2),m("text",l(23,22,"openProjectComponent.label.howto_videos"))("href",l(24,24,"o
4penProjectComponent.label.howto_videos_url")),c(4),de(" ",l(27,26,"main.message.startup_configurator_hint")," "))},dependencies:[Oe,ht,Ut,F,$],styles:[`[_ngcontent-%COMP%]:root{--sidebar-responsive-width: 300px}@media (max-width: 1190px){[_ngcontent-%COMP%]:root{--sidebar-responsive-width: 240px}}[_ngcontent-%COMP%]:root:has(.aside-folded-in){--aside-responsive-width: 50px}[_ngcontent-%COMP%]:root:has(.aside-menu-label-editor){--aside-responsive-width: 500px}[_ngcontent-%COMP%]:root:has(.aside-menu-plausi){--aside-responsive-width: 390px}[_ngcontent-%COMP%]:root:has(.sidebar-folded-in){--sidebar-responsive-width: 50px}.connector-color-acate-gray[_ngcontent-%COMP%], .connector-color-black[_ngcontent-%COMP%]{background-color:#bbbaba}[_ngcontent-%COMP%]:root{--toolbar-responsive-height: 75px}@media (max-width: 1600px){[_ngcontent-%COMP%]:root{--toolbar-responsive-height: 42px}}[_ngcontent-%COMP%]:root{--aside-responsive-width: 290px}@media (max-width: 1190px){[_ngcontent-%COMP%]:root{--aside-responsive-width: 240px}}.hero[_ngcontent-%COMP%]{background-size:cover;background-position:center;max-width:100dvw}.hero[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:32px;background-color:#a5a8af99;padding:min(150px,15dvh) 22px;flex-wrap:wrap}.hero[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]   .tiles-wrapper[_ngcontent-%COMP%]{gap:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,max-content));justify-content:center;min-width:100%}@media (max-width: 800px){.hero[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]   .tiles-wrapper[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(180px,max-content))}}[_nghost-%COMP%]{display:flex;height:100dvh;overflow:auto;background:#eff0f1}.dashboard-content[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column}.dashboard-content[_ngcontent-%COMP%]   .hero[_ngcontent-%COMP%]{background-image:url(/ng-assets/img/heroes/bg-dashboard.jpg)}.dashboard-content[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]   .tiles[_ngcontent-%COMP%]{display:flex;align-items:center;gap:32px;flex-wrap:wrap}.disclaimer[_ngcontent-%COMP%]{color:#a5a8af}@media (max-height: 800px){.dashboard-content[_ngcontent-%COMP%]   .hero[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]{padding:50px 22px}}
5/*# sourceMappingURL=open-project.component-42UIW4WZ.css.map */`]})}return o})();var fn=(o,n)=>_(null,null,function*(){let e=we(Z),t=o.data?.guards||[];for(let i of t){let r=ke(e,()=>i(o,n));if(r instanceof Promise?r=yield r:r instanceof ye&&(r=yield Q(r)),r!==!0)return!1}return!0});var le=class{bridgeManager;containerService;connectionInfoService;_connectionIdentities;constructor(n,e,t,i){this.bridgeManager=e,this.containerService=t,this.connectionInfoService=i,this._connectionIdentities=this.getConnectionIdentities(n)}getConnectionIdentities(n){if(!n)return[];let e=[];for(let t of n){let i=this.containerService.getArticleContainer(t);i&&e.push(Re.create(i.articleGUID,t.metaElementVO.name))}return e}getConnectionCubesByIdentities(n){let e=[];for(let t of n){let i=this.connectionInfoService.findConnectionByIdentity(t);i&&e.push(i)}return e}breakPins(){let n=this.getConnectionCubesByIdentities(this._connectionIdentities);n.length>0&&this.bridgeManager.breakPins(n)}restorePins(){let n=this.getConnectionCubesByIdentities(this._connectionIdentities);n.length>0&&this.bridgeManager.recoverPins(n)}};var Bt=class extends le{constructor(n,e,t,i){super(n,e,t,i)}performRedo(){return _(this,null,function*(){this.breakPins()})}performUndo(){return _(this,null,function*(){this.restorePins()})}getOperationDescription(){return""}getQualifiedClassName(){return"UndoBreakPinsOperation"}};var D=Vt(Ft());var Et=(()=>{class o{compositeArticleUtils;_defaultInsertProcessor;_compositeMultipleBaseInsertProcessor;_coverLabelStripArticleInsertProcessor;initialized=!1;constructor(e){this.compositeArticleUtils=e}initialize(e,t,i){this._defaultInsertProcessor=e,this._compositeMultipleBaseInsertProcessor=t,this._coverLabelStripArticleInsertProcessor=i,this.initialized=!0}get(e){if(!this.initialized)throw new Error("ArticleInsertProcessorRegistry not initialized!");return this.compositeArticleUtils.isCompositeMultipleBaseArticle(e)?this._compositeMultipleBaseInsertProcessor:L.isCoverLabelStripArticle(e)?this._coverLabelStripArticleInsertProcessor:this._defaultInsertProcessor}static \u0275fac=function(t){return new(t||o)(g(it))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})}return o}
5)();var xe=class{groupId;articleContainers;forwardConnectedUsageMap},Ot=class o{projectModel;projectModelService;projectArticleService;projectMetaElementService;selectionModelService;articleManager;miniTerminalBlocksArticleManager;projectContentPresenter;insertProcessorRegistry;localeResourceManager;alertHelper;overlayService;textureConnectionUtils;compositeArticleInfoUtils;containerService;insertArticleHelperFactory;articleLineHolder;cameraControlsService;detachArticleUsageService;miniTerminalBlocksProjectCreationServiceDelegator;clearService;articleContainerService;connectionInfoService;static LINE_SEPARATOR=`
6`;static ERROR_TITLE="global.title.error";static ERROR_MESSAGE="global.message.unexpected_error";static CONVERT_RESULT_TITLE="createNewProjectWithPresetArticlesManager.copy.title.error";static CONVERT_RESULT_MESSAGE="createNewProjectWithPresetArticlesManager.copy.message.articles_can_not_added";static CONVERT_TITLE="createNewProjectWithPresetArticlesManager.copy.title.confirm_convert_project";static CONVERT_MESSAGE="createNewProjectWithPresetArticlesManager.copy.message.confirm_convert_project";static POINT_TO_SORT_BY_X=new ee(1e4,0,0);static ARTICLE_OFFSET=new ee(100,0,0);_isActive=!1;_targetArticleContainerGroups;_processedArticleLine;_insertArticleHelper;_notTransferredArticleMap=new D.Dictionary;constructor(n,e,t,i,r,p,C,v,M,S,G,z,B,q,Y,Tt,Lt,Rt,Dt,Gt,zt,Nt,Wt){this.projectModel=n,this.projectModelService=e,this.projectArticleService=t,this.projectMetaElementService=i,this.selectionModelService=r,this.articleManager=p,this.miniTerminalBlocksArticleManager=C,this.projectContentPresenter=v,this.insertProcessorRegistry=M,this.localeResourceManager=S,this.alertHelper=G,this.overlayService=z,this.textureConnectionUtils=B,this.compositeArticleInfoUtils=q,this.containerService=Y,this.insertArticleHelperFactory=Tt,this.articleLineHolder=Lt,this.cameraControlsService=Rt,this.detachArticleUsageService=Dt,this.miniTerminalBlocksProjectCreationServiceDelegator=Gt,this.clearService=zt,this.articleContainerService=Nt,this.connectionInfoService=Wt}clean(){this._isActive=!1,this._targetArticleContainerGroups=null,this._processedArticleLine=null,this._insertArticleHelper=null,this._notTransferredArticleMap=new D.Dictionary}handleSuccess(){let n=this._notTransferredArticleMap.keys();if(x.isNotEmpty(n)){let e=this.localeResourceManager.getValueByKey(o.CONVERT_RESULT_TITLE),t=this.createConvertResultMessage(this._notTransferredArticleMap);this.alertHelper.showAlert(e,t,{},[W.OK],"error")}this.articleLineHolder.clearArticleLineCache(),this.clean(),setTimeout(()=>{this.showDefaultView(),this.closeWaitPopup()},2e3)}createConvertResultMessage(n){let e="";for(let t of n.keys()){let i=n.getValue(t);e+=o.LINE_SEPARATOR+t+" (x"+i+")"}return this.localeResourceManager.getValueByKey(o.CONVERT_RESULT_MESSAGE,[e])}handleError(n,e=!0){return _(this,null,function*(){let t=this.localeResourceManager.getValueByKey(o.ERROR_TITLE),i=this.localeResourceManager.getValueByKey(n);this.closeWaitPopup(),this.alertHelper.showAlert(t,i,{},[W.OK],"exclamation"),this.clean(),e&&(yield this.projectModelService.clearCurrentProject(),this.showDefaultView())})}showDefaultView(){this.cameraControlsService.requestDefaultPosition()}openWaitPopup(){this.overlayService.requestOverlayShow(K.color)}closeWaitPopup(){this.overlayService.requestOverlayHide(K.color)}startNewProjectWithPresetArticlesHandler(){return _(this,null,function*(){let n=this.localeResourceManager.getValueByKey(o.CONVERT_TITLE),e=this.localeResourceManager.getValueByKey(o.CONVERT_MESSAGE),t=yield this.alertHelper.showAlert(n,e,{},[W.YES,W.NO],"help");W.YES===t&&(yield this.convert())})}convert(){return _(this,null,function*(){if(this.clean(),this.openWaitPopup(),this._isActive=!0,this._targetArticleContainerGroups=this.findTargetArticleContainers(),x.isEmpty(this._targetArticleContainerGroups)){yield this.handleError(o.ERROR_MESSAGE,!1);return}let n=this.getBaseRangeOnLineContainer(this._targetArticleContainerGroups);yield this.detachTargetArticleContainers(this._targetArticleContainerGroups),yield this.removeUnnecessaryArticles(this._targetArticleContainerGroups,n);let e=this.projectModel.currentProject;this.resetCurrentProject(),this.transferProjectData(this.projectModel.currentProject,e),this.projectModel.currentProject.name=this.localeResourceManager.getValueByKey("rightPanel.label.new_project"),this.projectModelService.currentProjectType="FREE_MOUNTING",this.projectModel.currentProject.options=[],this.textureConnectionUtils.updateMergeOfTextureConnectionsInContainers(this._targetArticleContainerGroups.reduce((t,i)=>
6t=t.concat(i.articleContainers),[]));try{yield this.miniTerminalBlocksArticleManager.quickLoadArticle({data:Ge.DEFAULT_FREE_MOUNTING_ARTICLE_ID,quickLoadType:oe.QUICK_LOAD_TYPE_LOAD_BY_ARTICLE_ID})}catch{this.miniTerminalBlocksProjectCreationServiceDelegator.projectCreationFailureHandler()}})}resetCurrentProject(){this.clearService.clearManagers(),this.projectModelService.resetCurrentProjectToNew(!1,!1)}transferProjectData(n,e){let t=e.infoProperties.getMultiple("brokenCodingFingerPositions");x.isEmpty(t)||n.infoProperties.setMultiple("brokenCodingFingerPositions",t)}getBaseRangeOnLineContainer(n){let e=n[0];return this.articleContainerService.getBaseRangeOnLineContainer(e.articleContainers[0])}findTargetArticleContainers(){let n=[],e=this.selectionModelService.getArticleContainers();if(e=e.filter(r=>this.isXcomArticleContainer(r)),x.isEmpty(e))return[];let t=[];this.excludeForwardConnectedXcomArticles(e);for(let r of e)if(t.indexOf(r.articleGUID)===-1)if(this.compositeArticleInfoUtils.isCompositePartArticle(r)){let p=this.containerService.getBaseCompositePartArticles(r);for(let v of p)t.push(v.articleGUID);let C=ae.getCompositeArticleUsageId(r);n.push(this.createArticleContainerGroup(C,p))}else t.push(r.articleGUID),n.push(this.createArticleContainerGroup(r.articleGUID,[r]));return this.combineArticleContainerGroups(n),this.sortArticleContainerGroups(n)}excludeForwardConnectedXcomArticles(n){if(x.isEmpty(n)||n.length===1)return;let e=n.concat(),t=[];for(let i of e){let r=i.articleGUID;t.push(r)}for(let i of e){let r=[];this.getAllBackwardConnectedArticleUsageIds(i.articleUsage,r),x.sourceArrayContainsElementFromTargetArray(r,t)&&n.splice(n.indexOf(i),1)}}createArticleContainerGroup(n,e){let t=new xe;return t.groupId=n,t.articleContainers=e,t}combineArticleContainerGroups(n){let e=new D.Dictionary;for(let i of n){let r=this.collectForwardConnectedArticleUsages(i.articleContainers);i.forwardConnectedUsageMap=r,r.isEmpty()||e.setValue(i.groupId,r.keys())}let t=[];for(let i of e.keys()){if(t.indexOf(i)!==-1)continue;t.push(i);let r=e.getValue(i);for(let p of e.keys()){if(t.indexOf(p)!==-1)continue;let C=e.getValue(p);x.sourceArrayContainsElementFromTargetArray(r,C)&&(this.combineTwoArticleGroups(i,p,n),t.push(p))}}}combineTwoArticleGroups(n,e,t){let i=this.findArticleContainerGroupByGroupId(n,t),r=i.articleContainers,p=this.findArticleContainerGroupByGroupId(e,t),C=p.articleContainers;x.mergeArrays(r,C),t.splice(t.indexOf(p),1);for(let v of p.forwardConnectedUsageMap.keys())i.forwardConnectedUsageMap.setValue(v,p.forwardConnectedUsageMap.getValue(v))}findArticleContainerGroupByGroupId(n,e){for(let t of e)if(n===t.groupId)return t;return null}calculateArticleWidth(n,e){let t=this.connectionInfoService.calculateRectangleByConnection(n[0],!0),i=this.connectionInfoService.calculateRectangleByConnection(n[n.length-1],!0),r;return U.isArticleRotated(e.articleUsage)?(r=ie.createInstanceByArticle(e.article,i.point2,t.point1),r.reverseOverlapProperties()):r=ie.createInstanceByArticle(e.article,t.point1,i.point2),r.length}sortArticleContainerGroups(n){let e=new D.Dictionary,t=[];for(let r of n){let p=r.articleContainers;p=Xe.sortArticleContainersByDistanceOfPosition(p,o.POINT_TO_SORT_BY_X),r.articleContainers=p;let C=p[0];e.setValue(C.articleGUID,r.groupId);let v=this.findFirstXcomGivingConnection(C),M=X.calculateMiddlePointByRectangle(v.compositionRectangle);t.push({usageId:C.articleGUID,position:M})}t.sort((r,p)=>{let C=r.position,v=p.position;return X.equalsNumber(C.x,v.x)?X.compare(v.z,C.z,0):X.compare(v.x,C.x,0)});let i=[];for(let r of t){let p=r.usageId,C=e.getValue(p);i.push(this.findArticleContainerGroupByGroupId(C,n))}return i}detachTargetArticleContainers(n){return _(this,null,function*(){yield this.detachWireBridgeArticleContainers(n);for(let e of n)for(let t of e.articleContainers)this.detachArticleContainerFromParent(t)})}detachWireBridgeArticleContainers(n){return _(this,null,function*(){let e=[];for(let t of n){let i=t.forwardConnectedUsageMap.values();for(let r of i){let p=this.articleManager.getCachedArticle(r.articleId,r.articleVersion);L.isWireBridgeArticle(p)&&(this.addNotTransferredArticleInformation(p.articleNo),e.push(r.i
6d),t.forwardConnectedUsageMap.remove(r.id))}}yield this.detachArticleUsageService.detachArticleUsageFromProjectByIds(e)})}addNotTransferredArticleInformation(n){this._notTransferredArticleMap.containsKey(n)||this._notTransferredArticleMap.setValue(n,0),this._notTransferredArticleMap.setValue(n,this._notTransferredArticleMap.getValue(n)+1)}detachArticleContainerFromParent(n){let e=U.getBackwardConnectedArticleUsageIds(n.articleUsage),t=n.getCurrentArticleGivingAreaIds();for(let i of t){let r=n.findMetaElementUsageByName(i.metaElementName);if(!r||!r.connection)continue;let C=r.connection.acceptingAreaId.articleUsageId;e.indexOf(C)!==-1&&n.detachMetaElementUsageByName(i.metaElementName)}}removeUnnecessaryArticles(n,e){return _(this,null,function*(){let t=[];for(let p of n)this.getExcludedUsageIds(p,t);let i=[],r=this.containerService.enumerateArticleContainersInGlobalExcept(t);for(let p of r)i.push(p.articleGUID);if(yield this.detachArticleUsageService.detachArticleUsageFromProjectByIds(i),e){let p=e.articleUsage;St.removeArticleUsage(this.projectModel.currentProject,p)}})}getExcludedUsageIds(n,e){for(let t of n.articleContainers){if(L.isCompositeArticle(t.article)){let r=this.containerService.getCompositePartArticles(t);for(let p of r)this.addUsageId(p.articleGUID,e)}else this.addUsageId(t.articleGUID,e);let i=this.getAllForwardConnectedUsageIds(t.articleUsage);for(let r of i)this.addUsageId(r,e)}}addUsageId(n,e){e.indexOf(n)===-1&&e.push(n)}isXcomArticleContainer(n){return this.findXcomGivingConnections([n]).length>0}mountingRailAttached(){return _(this,null,function*(){if(!this._isActive)return;let n=this.projectArticleService.findArticleUsagesByType(De.TYPE_MOUNTING_RAIL),e;x.isEmpty(n)||(e=this.containerService.findArticleContainerInGlobal(n[0].id)),e?(yield this.attachTargetArticles(e),this.projectContentPresenter.init(),this.handleSuccess()):yield this.handleError(o.ERROR_MESSAGE)})}attachTargetArticles(n){return _(this,null,function*(){let e=n.article,t=me.findDefaultRangeOnLineConnection(e.metaElements),i=this.projectMetaElementService.addMetaElementUsage(n.articleGUID,t);this._insertArticleHelper=this.insertArticleHelperFactory.createInstanceByAcceptingIdentity(i.identity);for(let r of this._targetArticleContainerGroups)yield this.insertArticleContainerOnRail(r,n,t)})}insertArticleContainerOnRail(n,e,t){return _(this,null,function*(){let i=n.articleContainers,r=this.findXcomGivingConnections(i);if(x.isNotEmpty(r)){this.updateRotationAngle(n.articleContainers);let p=i[0],C=this.insertProcessorRegistry.get(p.article),v=n.forwardConnectedUsageMap.keys(),M=this.getArticleContainers(v);i=i.concat(M);let S=[];for(let Y of i)S.push(Y.articleGUID),tt.removeCarrierBlockGuidAndBmk(Y.articleUsage);this.articleLineHolder.clearArticleLineCacheByGUIDs(S);let G=this.calculateArticleWidth(r,p),z=this.calculateArticleLine(n,G),B=this._insertArticleHelper.createConnectionOnLine(z,t);C.process(i,n.articleContainers,z,B,r,0,void 0,!1),B.articleContainer.disposeConnectionByName(B.id),this.updateProcessedArticleLine(n.articleContainers),this.checkInsertedArticleContainers(n)}else yield this.handleError(o.ERROR_MESSAGE)})}collectForwardConnectedArticleUsages(n){let e=new D.Dictionary;for(let t of n)this.getAllForwardConnectedUsageIdsMap(t.articleUsage,e);return e}getAllForwardConnectedUsageIds(n){let e=new D.Dictionary,t=[];this.getAllForwardConnectedUsageIdsMap(n,e);for(let i of e.values())t.push(i.id);return t}getAllForwardConnectedUsageIdsMap(n,e){let t=U.getAcceptingAreaIds(n);for(let i of t){let r=this.projectModel.getArticleUsage(i);e.containsKey(i)||e.setValue(i,r),this.getAllForwardConnectedUsageIdsMap(r,e)}}getAllBackwardConnectedArticleUsageIds(n,e){let t=U.getBackwardConnectedArticleUsageIds(n);for(let i of t){let r=this.projectModel.getArticleUsage(i);e.indexOf(r.id)===-1&&e.push(r.id),this.getAllBackwardConnectedArticleUsageIds(r,e)}}getArticleContainers(n){return this.containerService.findArticleContainersInGlobalByGuids(n)}findXcomGivingConnections(n){let e=[];for(let t of n){let i=this.findFirstXcomGivingConnection(t);i&&e.push(i)}return me.sortConnections(e,!0)}updateRotationAngle(n){for(let e of n)U.updateAppliedRotationAngle(e.articleUsage,0)}findFirstXcomGivingConnection(n){let t=L.getGivingXcomConnectionAreas(n.article)[0];return t?n.findFirstConnectionByName(t.name):null}calculateArticleLine(n,e){let t=this._insertArticleHelper.baseLine,i;this._processedArticleLine?i=this._processedArticleLine.end.sub(o.ARTICLE_OFFSET):i=t.start.clone();let r=i.clone().sub(new ee(e)),p=n.articleContainers[0];return ie.createInstanceByArticle(p.article,i,r)}updateProcessedArticleLine(n){let e=this._insertArticleHelper.calculateCommonArticlesLine(n);this._processedArticleLine=e}checkInsertedArticleContainers(n){let e=[],t=n.forwardConnectedUsageMap.values();
6for(let i of n.articleContainers)t.push(i.articleUsage);for(let i of t){if(e.indexOf(i.id)!==-1||this.containerService.findArticleContainerInGlobal(i.id))continue;let p=this.articleManager.getCachedArticle(i.articleId,i.articleVersion);if(L.isCompositeArticle(p)){let C=this.compositeArticleInfoUtils.getCompositeArticleFromUsage(i);this.addNotTransferredArticleInformation(C.articleNo);let v=this.getArticleUsageIdsWithSameCompositeUsageId(i,t);x.mergeArrays(e,v)}else e.push(i.id),this.addNotTransferredArticleInformation(p.articleNo)}}getArticleUsageIdsWithSameCompositeUsageId(n,e){let t=U.getCompositeArticleUsageIdFromUsage(n),i=[];for(let r of e)U.getCompositeArticleUsageIdFromUsage(r)===t&&i.push(r.id);return i}static \u0275fac=function(e){return new(e||o)(g(Fe),g(ce),g(qe),g(et),g(Mt),g(oe),g(at),g(Ye),g(Et),g(ne),g(Ve),g(re),g(ot),g(ae),g(yt),g(Je),g($e),g(Pt),g(Qe),g(ct),g(xt),g(nt),g(He))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};export{le as a,Bt as b,Et as c,Ot as d,jt as e,F as f,pn as g,fn as h};
7//# sourceMappingURL=chunk-6DYXCQQ6.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.