1(self.webpackChunklamaco=self.webpackChunklamaco||[]).push([[778],{26958:t=>{t.exports=(t,e,a)=>[[t,e,a],[(t+120)%360,e,a],[(t+240)%360,e,a]]},40778:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>y});var n=a(89379),s=a(57641),i=a(13382),o=a(43801),c=a(15444),r=a(95920),l=a(73216),m=a(31669),h=a(67634),d=a.n(h),p=a(18254),g=a(68262),u=a(65043),x=a(95406),w=a(74117),f=a(57645),v=a(70579);const y=function(){const{t:t}=(0,w.Bd)("store/create/artist-name"),e=(0,l.Zp)(),{mutateAsync:a,isLoading:h}=(0,m.ei)(),y=(0,m.h$)(),{domain:b,onboarding:j}=(0,x.IT)(),[A,N]=(0,u.useState)({artistName:!1}),k={transition:"opacity 0.3s ease, height 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease",opacity:A.artistName?1:0,marginTop:A.artistName?"38px":"10px",height:A.artistName?"":"0px",maxHeight:A.artistName?"":"0px"};return(0,v.jsx)(s.Z,{siderImage:"https://lamaco-strapi.s3.eu-west-3.amazonaws.com/artist_domain_b0d691621b.jpg",thumbnailSiderImage:"https://lamaco-strapi.s3.eu-west-3.amazonaws.com/artist_domain_tn_c0d888a4e0.jpg",children:(0,v.jsxs)("div",{className:"d-flex flex-column h-100 w-100",style:{maxWidth:"550px"},children:[(0,v.jsxs)("div",{style:{marginBottom:"40px"},children:[(0,v.jsxs)(i.Ay,{type:"link",className:"p-0 font-weight-semibold",style:{color:"black"},onClick:()=>e(-1),children:[(0,v.jsx)(r.A,{}),t("button.back")]}),"true"!==j&&(0,v.jsxs)("p",{className:"mt-5",style:{fontSize:"16px"},children:[t("message.congrats"),b?(0,v.jsxs)(w.x6,{i18nKey:"message.domain_is_yours",values:{domain:b,lama_domain:f.uY?f.Jc:"lama.co"},t:t,components:{b:(0,v.jsx)("b",{})},children:[","," ",(0,v.jsxs)("b",{children:[f.uY?f.Jc:"lama.co","/",b]})," ","is yours!"]}):""]}),(0,v.jsx)("h2",{children:t("heading.title")})]}),(0,v.jsxs)(o.A,{requiredMark:"optional",layout:"vertical",onFinish:async function(t){try{const n=d()(t.artistName,80),s=encodeURIComponent(n),i=new Image;i.onload=async()=>{var n;const s=document.createElement("canvas"),o=s.getContext("2d");s.width=i.width,s.height=i.height,null===o||void 0===o||o.drawImage(i,0,0,i.width,i.height);const c=s.toDataURL("image/jpeg"),r=await fetch(c),l=await r.blob(),m=new File([l],"".concat(t.artistName,"-header.jpg"),{type:"image/jpg"}),h=new FormData;h.append("images",m);const d=await y.mutateAsync(h);await a({creativeName:t.artistName,header_image:null===d||void 0===d||null===(n=d[0])||void 0===n?void 0:n.url,eshop_handle:b},{onSuccess:async()=>{e("../setup?step=1"),await p.q.invalidateQueries(g.fdI.all),await p.q.invalidateQueries(["page"])}})},i.src="data:image/svg+xml,"+s}catch(n){console.log(n)}},children:[(0,v.jsx)(o.A.Item,{name:"artistName",className:"mb-5",style:{maxWidth:"400px"},rules:[{required:!0,message:t("message.input_name")}],children:(0,v.jsx)(c.A,{style:{height:"39px"},autoFocus:!0,className:"form-input-high",placeholder:t("placeholder.creative_name"),onChange:t=>{t.target.value.length>0?N((0,n.A)((0,n.A)({},A),{},{artistName:!0})):N((0,n.A)((0,n.A)({},A),{},{artistName:!1}))}})}),(0,v.jsx)("div",{style:(0,n.A)({},k),children:(0,v.jsx)(o.A.Item,{children:(0,v.jsx)(i.Ay,{type:"primary",htmlType:"submit",className:"rounded-pill w-100",loading:h,style:{height:"50px",maxWidth:"400px"},children:t("button.continue")})})})]})]})})}},66940:t=>{"use strict";t.exports=function(t){for(var e=5381,a=t.length;a;)e=33*e^t.charCodeAt(--a);return e>>>0}},67634:(t,e,a)=>{const n=a(66940),s=a(26958),i=a(80913);t.exports=(t,e)=>{const a=n(t),o=s(a%360,1,.5),c=i(o[0][0],o[0][1],o[0][2]),r=i(o[1][0],o[1][1],o[1][2]),l="rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")"),m="rgb(".concat(r[0],", ").concat(r[1],", ").concat(r[2],")"),h=Math.floor(Math.random()*Date.now());return'<?xml version="1.0" encoding="UTF-8"?>\n<svg '.concat(void 0!=e?'width="'.concat(e,'px" height="').concat(e,'px"'):"",' viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n <linearGradient x1="0%" y1="0%" x2="100%" y2="100%" id="').concat(h,'">\n <stop stop-color="').concat(l,'" offset="0%"></stop>\n <stop stop-color="').concat(m,'" offset="100%"></stop>\n </linearGradient>\n </defs>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect id="Rectangle" fill="url(#').concat(h,')" x="0" y="0" width="80" height="80"></rect>\n </g>\n</svg>')}},80913:t=>{const e=(t,e,a)=>(a<0&&(a+=1),a>1&&(a-=1),a<1/6?t+6*(e-t)*a:a<.5?e:a<2/3?t+(e-t)*(2/3-a)*6:t);t.exports=(t,a,n)=>{let s,i,o;if(t/=360,0==a)s=i=o=n;else{const c=n<.5?n*(1+a):n+a-n*a,r=2*n-c;s=e(r,c,t+1/3),i=e(r,c,t),o=e(r,c,t-1/3)}return[Math.max(0,Math.min(Math.round(255*s),255)),Math.max(0,Math.min(Math.round(255*i),255)),Math.max(0,Math.min(Math.round(255*o),255))]}},95920:(t,e,a)=>{"use strict";a.d(e,{A:()=>r});var n=a(58168),s=a(65043);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};var o=a(6127),c=function(t,e){return s.createElement(o.A,(0,n.A)({},t,{ref:e,icon:i}))};const r=s.forwardRef(c)}}]);
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.