PageSourceSearch

https://studio.backlight.dev/assets/Create.a008a13b.hash.js

js backlight.dev collected 2026-10-03 23:44:04 UTC 5,461 bytes, 1 lines download raw bytes

1import{a as w,U as f}from"./Utils.607e8604.hash.js";import{_ as v,S as p,Y as n,Z as g,a7 as u,a6 as k,W as C,U as y,X as d,a9 as x,aa as H,b2 as V}from"./vendor.e951e079.hash.js";import{W as M,u as $,w as I,c as S,p as h,d as b,F as _}from"./main.645be4ea.hash.js";import"./modulepreload-polyfill.c41334d8.hash.js";var P=Object.defineProperty,L=Object.getOwnPropertyDescriptor,s=(e,t,i,o)=>{for(var r=o>1?void 0:o?L(t,i):t,c=e.length-1,l;c>=0;c--)(l=e[c])&&(r=(o?l(t,i,r):l(r))||r);return o&&r&&P(t,i,r),r};let a=class extends C{constructor(){super(...arguments),this.errorMessage=""}get workspaceService(){return new M(this.$quickmodal)}async created(){w(()=>import("./Editor.f31313dd.hash.js"),["assets/Editor.f31313dd.hash.js","assets/Editor.4e544436.hash.css","assets/ReleasePanel.756ec90d.hash.js","assets/ReleasePanel.2e32525f.hash.css","assets/main.645be4ea.hash.js","assets/main.613dcff2.hash.css","assets/modulepreload-polyfill.c41334d8.hash.js","assets/Utils.607e8604.hash.js","assets/vendor.e951e079.hash.js","assets/vendor.ddce1297.hash.css","assets/WorkerLoader.1f7e7119.hash.js","assets/BaseHeaderEditor.dfe3d7ec.hash.js","assets/BaseHeaderEditor.bb669f9f.hash.css","assets/Standalone.99d7169d.hash.js","assets/Standalone.e1ee8c5c.hash.css","assets/BasePillSelector.a23dc2b0.hash.js","assets/BasePillSelector.2afdf4d4.hash.css","assets/BaseHeaderNew.72e4d98a.hash.js","assets/SignInForm.9e08ae2e.hash.js","assets/SignInForm.40c28031.hash.css","assets/EditorDiffVisual.01ec0bf6.hash.js","assets/EditorDiffVisual.25b8c1b2.hash.css"])}async mounted(){await Promise.all([$(),I()]);let e=this.workspace;try{if(e){if(!S(e,f.OWNER))throw new Error(`You are not allowed to create a new ${h} in workspace ${e}`)}else e=await this.workspaceService.ensureWorkspace();const t=await this.$quickmodal.processingPromise(this.createComponent(e),`Preparing your ${h}`,()=>"Successfully created",()=>`Failed creating ${h}`);t&&t!==null?(this.collection&&await this.$quickmodal.processingPromise(b.addWebCollectionItems(this.collection,[t]),`Adding to collection ${this.collection}`,()=>`Successfully added to ${this.collection}`,()=>`Failed adding to collection ${this.collection}`),this.$router.replace({path:`/edit/${t}`,replace:!0})):this.$router.replace({path:"/404",replace:!0})}catch(t){this.errorMessage=t.message}}createComponent(e){if(this.templatetype)return _.onboardingComponentCreate({templatetype:this.templatetype}),b.createNewWebComponentFromTemplate(this.templatetype,e);if(this.componentId)return _.onboardingComponentCreate({componentId:this.componentId}),b.fork(this.componentId,e);throw new Error("Neither a template type nor a component ID was provided")}};s([p({required:!1})],a.prototype,"workspace",2);s([p({required:!1})],a.prototype,"collection",2);s([p({required:!1})],a.prototype,"templatetype",2);s([p({required:!1})],a.prototype,"componentId",2);a=s([y({components:{}})],a);const O=a,m=e=>(x("data-v-b490b82e"),e=e(),H(),e),q={id:"center",class:"row"},D={key:0,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W=V('<rect x="9" y="9" width="83" height="84" rx="4" fill="rgba(255,255,255,0)" stroke="rgba(255,255,255,1)" stroke-width="2.0px" data-v-b490b82e></rect><path d="M23 71C23 69.8954 23.8954 69 25 69H76C77.1046 69 78 69.8954 78 71V75H23V71Z" fill="rgba(255,255,255,0)" stroke-width="2.0px" data-v-b490b82e></path><path d="M78 75V71C78 69.8954 77.1046 69 76 69H25C23.8954 69 23 69.8954 23 71V75M78 75H23M78 75H86V15H15V75H23" stroke="rgba(255,255,255,1)" stroke-width="2.0px" data-v-b490b82e></path><g class="line-3d-printing1-overall" style="animation-duration:2s;" data-v-b490b82e><rect x="15" y="29" width="71" height="7" fill="rgba(255,255,255,0)" stroke="rgba(255,255,255,1)" stroke-width="2.0px" data-v-b490b82e></rect><g class="line-3d-printing1-tool" data-v-b490b82e><path d="M59 24C59 23.4477 59.4477 23 60 23H72C72.5523 23 73 23.4477 73 24V42C73 42.5523 72.5523 43 72 43H70H62H60C59.4477 43 59 42.5523 59 42V24Z" fill="rgba(255,255,255,0)" stroke-width="2.0px" data-v-b490b82e></path><path d="M62 43V48H70V43H62Z" fill="rgba(255,255,255,0)" stroke-width="2.0px" data-v-b490b82e></path>
1<path d="M70 48H62L65.1318 53.4806C65.5157 54.1524 66.4843 54.1524 66.8682 53.4806L70 48Z" fill="rgba(255,255,255,0)" stroke-width="2.0px" data-v-b490b82e></path><path d="M62 43H60C59.4477 43 59 42.5523 59 42V24C59 23.4477 59.4477 23 60 23H72C72.5523 23 73 23.4477 73 24V42C73 42.5523 72.5523 43 72 43H70M62 43V48M62 43H70M62 48H70M62 48L65.1318 53.4806C65.5157 54.1524 66.4843 54.1524 66.8682 53.4806L70 48M70 48V43" stroke="rgba(255,255,255,1)" stroke-width="2.0px" data-v-b490b82e></path></g></g><circle cx="20" cy="84" r="4" fill="rgba(255,255,255,0)" stroke="rgba(255,255,255,1)" stroke-width="2.0px" data-v-b490b82e></circle><circle cx="33" cy="84" r="4" fill="rgba(255,255,255,0)" stroke="rgba(255,255,255,1)" stroke-width="2.0px" data-v-b490b82e></circle><circle cx="46" cy="84" r="4" fill="rgba(255,255,255,0)" stroke="rgba(255,255,255,1)" stroke-width="2.0px" data-v-b490b82e></circle>',7),E=[W],N={key:1,class:"error row"},U=m(()=>u("span",null,"\xD7",-1)),B=m(()=>u("a",{class:"button",href:"/studio"},"BACK to STUDIO",-1));function F(e,t,i,o,r,c){return d(),n("div",q,[e.errorMessage?g("",!0):(d(),n("svg",D,E)),e.errorMessage?(d(),n("div",N,[U,u("p",null,k(e.errorMessage),1),B])):g("",!0)])}var T=v(O,[["render",F],["__scopeId","data-v-b490b82e"]]);export{T 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.