1import{e as D,f as F,i as S,v as A}from"./chunk-YWDCS3B6.js";import{a as W}from"./chunk-WKOOE2PM.js";import{a as f}from"./chunk-KULUFPLZ.js";import{b as $,s as q,u as Q}from"./chunk-SPD6AKCQ.js";import"./chunk-IDP7DQ5A.js";import{Ba as P,E as B,I as u}from"./chunk-E66YEBR4.js";import{G as I}from"./chunk-5XXHSLJ7.js";import{Aa as k,Db as j,Ea as s,Eb as H,Fb as G,Ic as O,Jc as M,Na as w,Sa as v,Ta as d,Zb as p,ba as N,jd as K,lb as r,mb as c,nb as m,ob as h,r as L,ra as V,sb as C,tb as b,zb as l}from"./chunk-IAX6J4QD.js";import"./chunk-K4Z47AX6.js";import"./chunk-NCEQPEJE.js";function Y(o,t,i,e){let n=new URL(e),a=e,_=n.host,T=e+"/auth/oxygen-handleredirect",x=e+"/auth/oxygen-handleredirect?next="+escape(t)+[""].concat(i).join("&"),g=P.O2ConsumerKey,y={"openid.ns":"http://specs.openid.net/auth/2.0","openid.mode":"checkid_setup","openid.claimed_id":"http://specs.openid.net/auth/2.0/identifier_select","openid.realm":a,"openid.return_to":x,"openid.ax.type.autodesk_authprovideruid":"http://axschema.org/autodesk/authprovideruid","openid.ax.mode":"fetch_request","openid.ax.required":"namePerson_friendly,namePerson,contact_email,autodesk_userid,autodesk_screenname,autodesk_authprovider,autodesk_authprovideruid,autodesk_pref_emailoptin,autodesk_authtoken,autodesk_age,autodesk_company_industry,company_title,company_name,contact_address1,contact_address2,contact_city,contact_country,contact_phone_business,contact_phone_cell,contact_phone_home,contact_postalcode,contact_state,namePerson_first,namePerson_last,autodesk_child_moderatoremail,autodesk_media_image_176","openid.ax.type.contact_city":"http://axschema.org/contact/city/home","openid.ax.type.namePerson_last":"http://axschema.org/namePerson/last","openid.pape.max_auth_age":"0","openid.ax.type.autodesk_pref_emailoptin":"http://axschema.org/autodesk/pref/emailoptin","openid.ax.type.autodesk_userid":"http://axschema.org/autodesk/userid","openid.ax.type.namePerson_first":"http://axschema.org/namePerson/first",parentemail:"HIDDEN","openid.ns.pape":"http://specs.openid.net/extensions/pape/1.0","openid.identity":"http://specs.openid.net/auth/2.0/identifier_select","openid.ns.ax":"http://openid.net/srv/ax/1.0","openid.ax.type.autodesk_authprovider":"http://axschema.org/autodesk/authprovider",parentshouldreceiveemail:"true","openid.ax.type.contact_phone_home":"http://axschema.org/contact/phone/home","openid.ax.type.contact_email":"http://axschema.org/contact/email","openid.ns.alias5":"http://specs.openid.net/extensions/ui/1.0","openid.alias5.mode":"iframe","openid.alias5.iframe_refresh_url":T,"openid.ns.alias6":"http://specs.openid.net/extensions/oauth/1.0","openid.alias6.scope":_,"openid.alias6.consumer":g,"openid.ns.alias8":"http://autodesk.com/openid/ext/authtype/1.0","openid.alias8.x_openid_mode":"socialoradsk","openid.alias8.x_auth_auto_login":"false","openid.alias8.x_auth_social_providers":"FB,GO,YH,WL,AP","openid.ax.type.namePerson":"http://axschema.org/namePerson","openid.ax.type.namePerson_friendly":"http://axschema.org/namePerson/friendly","openid.ax.type.autodesk_screenname":"http://axschema.org/autodesk/screenname","openid.ax.type.contact_country":"http://axschema.org/autodesk/profile/country","openid.ax.type.autodesk_child_moderatoremail":"http://axschema.org/autodesk/child/moderatoremail","openid.ax.type.autodesk_age":"http://axschema.org/autodesk/age","openid.ax.type.autodesk_company_industry":"http://axschema.org/autodesk/company/industry","openid.ax.type.contact_phone_business":"http://axschema.org/contact/phone/business","openid.ax.type.contact_phone_cell":"http://axschema.org/contact/phone/cell","openid.ax.type.contact_postalcode":"http://axschema.org/contact/postalCode/home","openid.ax.type.company_title":"http://axschema.org/company/title","openid.ax.type.contact_address2":"http://axschema.org/contact/postalAddressAdditional/home","openid.ax.type.contact_address1":"http://axschema.org/contact/postalAddress/home","openid.ax.type.autodesk_authtoken":"http://axschema.org/autodesk/authtoken","openid.ax.type.contact_state":"http://axschema.org/contact/state/home","openid.ax.type.company_name":"http://axschema.org/company/name","openid.ax.type.autodesk_media_image_176":"http://axschema.org/autodesk/media/image/176"};return o&&(y["openid.ns.alias9"]="http://autodesk.com/openid/ext/register/1.0",y["openid.alias9.Mode"]="register"),y}var ee=["o2Form"];function te(o,t){if(o&1&&h(0,"input",8),o&2){let i=t.$implicit,e=l(2);r("name",p(i))("value",p(e.openIDMap[i]))("hidden",!0)}}function oe(o,t){if(o&1&&(C(0),d(1,te,1,5,"input",7),b()),o&2){let i=l();s(),r("ngForOf",i.objectKeys(i.openIDMap))}}var R=(()=>{let t=class t extends W{constructor(){super(...arguments),this.objectKeys=Object.keys,this.register=!1,this.authService=N(Q),this.tinkerpowerService=N(q),this.apiService=N($),this.route=N(K)}set o2Form(e){this._form=e,this.registerOrLogin()}ngOnInit(){this.appReadyWithoutHeaderAndFooter()}registerOrLogin(){L([this.route.queryParams,this.tinkerpowerService.isEnabled(B.FORGE_LOGIN)]).subscribe(([e,n])=>{let{next:a=""}=e,_=`${this.authService.redirectUrl||a||"/"}`,T=document.createElement("a");T.href=_;let x=T.href,g=[];if(this.register&&this.checkForTeacherAgreement(e)&&(P.createCookie("teacher_agreement","1",1/48,!0,".tinkercad.com"),g.push("teacherAgreement=1")),e.toTeacherAgreement&&g.pu
1sh(`toTeacherAgreement=${encodeURIComponent("/teacher-agreement")}`),e.joinClassCode&&g.push(`joinClassCode=${e.joinClassCode}`),P.createCookie("login_next",x,1/48,!0,".tinkercad.com"),this.nextUrl=x,n)window.location.href=P.getForgeLoginUrl(this.register,x,g,e.sociallogin);else{let y=this.apiService.getAPIEndpoint("TINKERCAD_V2_ENDPOINT"),E=Y(this.register,x,g,y);e.sociallogin!==null&&e.sociallogin!==void 0&&e.sociallogin!==""&&(E["openid.alias8.x_auth_social_providers"]=e.sociallogin,E["openid.alias8.x_auth_auto_login"]="true",E["openid.alias8.x_auth_view_mode"]="redirect"),this.submitUrl=this.apiService.getAPIEndpoint("O2_HOST")+"/SignIn",this.openIDMap=E,this.submitUrl&&setTimeout(()=>this._form.nativeElement.submit(),0)}})}checkForTeacherAgreement(e){return e.teacherAgreement!==null&&e.teacherAgreement!==void 0&&e.teacherAgreement==="1"}};t.\u0275fac=(()=>{let e;return function(a){return(e||(e=V(t)))(a||t)}})(),t.\u0275cmp=w({type:t,selectors:[["tk-oxygen-redirect"]],viewQuery:function(n,a){if(n&1&&j(ee,7),n&2){let _;H(_=G())&&(a.o2Form=_.first)}},features:[v],decls:7,vars:3,consts:[["o2Form",""],["id","container"],["id","progressbar"],["id","progress"],["id","stripes"],["method","POST","name","openid_message",3,"action"],[4,"ngIf"],[3,"hidden","name","value",4,"ngFor","ngForOf"],[3,"hidden","name","value"]],template:function(n,a){n&1&&(c(0,"div",1)(1,"div",2)(2,"div",3),h(3,"div",4),m()()(),c(4,"form",5,0),d(6,oe,2,1,"ng-container",6),m()),n&2&&(s(4),r("action",p(a.submitUrl),k),s(2),r("ngIf",a.openIDMap))},dependencies:[I,O,M,A,S,D,F],styles:["@media only screen and (min-width:480px){#container[_ngcontent-%COMP%]{width:300px}}#container[_ngcontent-%COMP%]{display:block;margin:0 auto;min-height:250px!important;width:300px}#progressbar[_ngcontent-%COMP%]{position:absolute;top:50%;left:25%;width:50%;height:4px;background-color:#f4f1eb;padding:2px;margin:.5em 0;border:1px solid #D5D5D5;border-radius:4px;clear:both}#progress[_ngcontent-%COMP%]{background:#019fde;height:4px;width:100%;max-width:100%;-webkit-animation:_ngcontent-%COMP%_progress 2s 1 forwards;-moz-animation:progress 2s 1 forwards;-ms-animation:progress 2s 1 forwards;animation:_ngcontent-%COMP%_progress 2s 1 forwards;float:left;border-radius:4px}#stripes[_ngcontent-%COMP%]{height:4px;width:100%;overflow:hidden;border-radius:2px;-moz-opacity:.25;-khtml-opacity:.25;opacity:.25}@-webkit-keyframes _ngcontent-%COMP%_progress{0%{width:0%}to{width:90%}}@-moz-keyframes progress{0%{width:0%}to{width:90%}}@-ms-keyframes progress{0%{width:0%}to{width:90%}}@keyframes _ngcontent-%COMP%_progress{0%{width:0%}to{width:90%}}"]});let o=t;return o})();function ne(o,t){if(o&1&&h(0,"input",8),o&2){let i=t.$implicit,e=l(2);r("name",p(i))("value",p(e.openIDMap[i]))("hidden",!0)}}function ie(o,t){if(o&1&&(C(0),d(1,ne,1,5,"input",7),b()),o&2){let i=l();s(),r("ngForOf",i.objectKeys(i.openIDMap))}}var U=(()=>{let t=class t extends R{constructor(){super()}ngOnInit(){super.ngOnInit()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=w({type:t,selectors:[["tk-sign-in-redirect"]],features:[v],decls:7,vars:3,consts:[["o2Form",""],["id","container"],["id","progressbar"],["id","progress"],["id","stripes"],["method","POST","name","openid_message",3,"action"],[4,"ngIf"],[3,"hidden","name","value",4,"ngFor","ngForOf"],[3,"hidden","name","value"]],template:function(n,a){n&1&&(c(0,"div",1)(1,"div",2)(2,"div",3),h(3,"div",4),m()()(),c(4,"form",5,0),d(6,ie,2,1,"ng-container",6),m()),n&2&&(s(4),r("action",p(a.submitUrl),k),s(2),r("ngIf",a.openIDMap))},dependencies:[I,O,M,A,S,D,F],styles:["@media only screen and (min-width:480px){#container[_ngcontent-%COMP%]{width:300px}}#container[_ngcontent-%COMP%]{display:block;margin:0 auto;min-height:250px!important;width:300px}#progressbar[_ngcontent-%COMP%]{position:absolute;top:50%;left:25%;width:50%;height:4px;background-color:#f4f1eb;padding:2px;margin:.5em 0;border:1px solid #D5D5D5;border-radius:4px;clear:both}#progress[_ngcontent-%COMP%]{background:#019fde;height:4px;width:100%;max-width:100%;-webkit-animation:_ngcontent-%COMP%_progress 2s 1 forwards;-moz-animation:progress 2s 1 forwards;-ms-animation:progress 2s 1 forwards;animation:_ngcontent-%COMP%_progress 2s 1 forwards;float:left;border-radius:4px}
1#stripes[_ngcontent-%COMP%]{height:4px;width:100%;overflow:hidden;border-radius:2px;-moz-opacity:.25;-khtml-opacity:.25;opacity:.25}@-webkit-keyframes _ngcontent-%COMP%_progress{0%{width:0%}to{width:90%}}@-moz-keyframes progress{0%{width:0%}to{width:90%}}@-ms-keyframes progress{0%{width:0%}to{width:90%}}@keyframes _ngcontent-%COMP%_progress{0%{width:0%}to{width:90%}}"]});let o=t;return o})();function ae(o,t){if(o&1&&h(0,"input",8),o&2){let i=t.$implicit,e=l(2);r("name",p(i))("value",p(e.openIDMap[i]))("hidden",!0)}}function re(o,t){if(o&1&&(C(0),d(1,ae,1,5,"input",7),b()),o&2){let i=l();s(),r("ngForOf",i.objectKeys(i.openIDMap))}}var z=(()=>{let t=class t extends R{constructor(){super(),this.register=!0}ngOnInit(){super.ngOnInit()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=w({type:t,selectors:[["tk-sign-up-redirect"]],features:[v],decls:7,vars:3,consts:[["o2Form",""],["id","container"],["id","progressbar"],["id","progress"],["id","stripes"],["method","POST","name","openid_message",3,"action"],[4,"ngIf"],[3,"hidden","name","value",4,"ngFor","ngForOf"],[3,"hidden","name","value"]],template:function(n,a){n&1&&(c(0,"div",1)(1,"div",2)(2,"div",3),h(3,"div",4),m()()(),c(4,"form",5,0),d(6,re,2,1,"ng-container",6),m()),n&2&&(s(4),r("action",p(a.submitUrl),k),s(2),r("ngIf",a.openIDMap))},dependencies:[I,O,M,A,S,D,F],styles:["@media only screen and (min-width:480px){#container[_ngcontent-%COMP%]{width:300px}}#container[_ngcontent-%COMP%]{display:block;margin:0 auto;min-height:250px!important;width:300px}#progressbar[_ngcontent-%COMP%]{position:absolute;top:50%;left:25%;width:50%;height:4px;background-color:#f4f1eb;padding:2px;margin:.5em 0;border:1px solid #D5D5D5;border-radius:4px;clear:both}#progress[_ngcontent-%COMP%]{background:#019fde;height:4px;width:100%;max-width:100%;-webkit-animation:_ngcontent-%COMP%_progress 2s 1 forwards;-moz-animation:progress 2s 1 forwards;-ms-animation:progress 2s 1 forwards;animation:_ngcontent-%COMP%_progress 2s 1 forwards;float:left;border-radius:4px}#stripes[_ngcontent-%COMP%]{height:4px;width:100%;overflow:hidden;border-radius:2px;-moz-opacity:.25;-khtml-opacity:.25;opacity:.25}@-webkit-keyframes _ngcontent-%COMP%_progress{0%{width:0%}to{width:90%}}@-moz-keyframes progress{0%{width:0%}to{width:90%}}@-ms-keyframes progress{0%{width:0%}to{width:90%}}@keyframes _ngcontent-%COMP%_progress{0%{width:0%}to{width:90%}}"]});let o=t;return o})();var se=[{path:"register",component:z,pathMatch:"full",canActivate:[f],data:{headerType:u.HIDDEN,announcementsVisible:!1}},{path:"shadowbox_register_fullscreen",component:z,pathMatch:"full",canActivate:[f],data:{headerType:u.HIDDEN,announcementsVisible:!1}},{path:"shadowbox_register",component:z,pathMatch:"full",canActivate:[f],data:{headerType:u.HIDDEN,announcementsVisible:!1}},{path:"shadowbox_fullscreen",component:U,pathMatch:"full",canActivate:[f],data:{headerType:u.HIDDEN,announcementsVisible:!1}},{path:"shadowbox",component:U,pathMatch:"full",canActivate:[f],data:{headerType:u.HIDDEN,announcementsVisible:!1}},{path:"login",component:U,pathMatch:"full",canActivate:[f],data:{headerType:u.HIDDEN,announcementsVisible:!1}}],Ue=se;export{Ue as default};
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.