1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84088],{51815:(e,l,a)=>{a.d(l,{M:()=>i});var t=a(53498),r=a(34402);async function i(e){try{let l=(0,r.k)(e).hostname.trim(),a=(0,r.l)(e);return t.f.find(e=>e.domains.some(t=>"twitter"===e.name?l===t||l==="www.".concat(t):l.includes(t.trim())||a.includes(t.trim())||t==l))}catch(e){throw Error("No matching app found for URL")}}},84088:(e,l,a)=>{a.r(l),a.d(l,{SnapchatWidget:()=>E});var t=a(95155),r=a(12115),i=a(36524),s=a(44490),n=a(12532),d=a(65436),o=a(13045),c=a(39367),u=a(20672),g=a(9516),h=a(55150),x=a(14426),p=a(84323),C=a(14995),f=a(6913),b=a(53387);let m=e=>{let{width:l,height:a}=e;return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:a,viewBox:"0 0 16 16",fill:"none","data-testid":"snapchat-icon",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_9336_3325)",children:[(0,t.jsx)("path",{d:"M0 5.36667C0 3.46836 0 2.51921 0.375289 1.79675C0.69154 1.18794 1.18794 0.69154 1.79675 0.375289C2.51921 0 3.46836 0 5.36667 0H10.6333C12.5316 0 13.4808 0 14.2032 0.375289C14.8121 0.69154 15.3085 1.18794 15.6247 1.79675C16 2.51921 16 3.46836 16 5.36667V10.6333C16 12.5316 16 13.4808 15.6247 14.2032C15.3085 14.8121 14.8121 15.3085 14.2032 15.6247C13.4808 16 12.5316 16 10.6333 16H5.36667C3.46836 16 2.51921 16 1.79675 15.6247C1.18794 15.3085 0.69154 14.8121 0.375289 14.2032C0 13.4808 0 12.5316 0 10.6333V5.36667Z",fill:"#FFFC00"}),(0,t.jsx)("path",{d:"M12.9244 10.6608C11.1465 9.80014 10.8631 8.47134 10.8505 8.37278C10.8352 8.25339 10.8179 8.15953 10.9496 8.03809C11.0767 7.92075 11.6402 7.57198 11.7965 7.46286C12.0549 7.28217 12.1687 7.10177 12.0848 6.88001C12.0262 6.72659 11.8833 6.66881 11.7328 6.66881C11.6854 6.66895 11.6381 6.67426 11.5918 6.68465C11.3078 6.74625 11.0321 6.88851 10.8725 6.92694C10.8533 6.93188 10.8336 6.93454 10.8138 6.93486C10.7288 6.93486 10.6965 6.89702 10.7047 6.79465C10.7247 6.4843 10.7669 5.87857 10.7179 5.31273C10.6507 4.53422 10.3996 4.14849 10.1019 3.80734C9.95789 3.6419 9.28909 2.93115 7.99842 2.93115C6.70775 2.93115 6.03983 3.6419 5.89669 3.80529C5.59807 4.14643 5.34727 4.53217 5.28069 5.31067C5.2317 5.87651 5.2757 6.48195 5.29389 6.79259C5.29975 6.88998 5.26983 6.93281 5.18477 6.93281C5.16497 6.93247 5.14528 6.92981 5.1261 6.92489C4.96682 6.88646 4.69109 6.74419 4.40714 6.68259C4.36082 6.67221 4.31351 6.6669 4.26605 6.66675C4.11498 6.66675 3.97271 6.72542 3.91405 6.87795C3.83015 7.09971 3.94338 7.28011 4.20269 7.46081C4.35903 7.56993 4.92253 7.91841 5.04954 8.03603C5.18095 8.15747 5.16394 8.25134 5.14869 8.37073C5.13607 8.47075 4.85242 9.79955 3.07482 10.6587C2.97069 10.7092 2.79351 10.816 3.10591 10.9884C3.59637 11.2595 3.92285 11.2304 4.17658 11.3938C4.39189 11.5326 4.26458 11.8318 4.42122 11.9397C4.61365 12.0726 5.18242 11.9303 5.91722 12.1729C6.53322 12.3759 6.90751 12.9494 7.99989 12.9494C9.09226 12.9494 9.47741 12.3733 10.0826 12.1729C10.8159 11.9303 11.3858 12.0726 11.5786 11.9397C11.7349 11.8318 11.6079 11.5326 11.8232 11.3938C12.0769 11.2304 12.4031 11.2595 12.8939 10.9884C13.2057 10.818 13.0285 10.7112 12.9244 10.6608Z",fill:"white"}),(0,t.jsx)("path",{d:"M13.6977 10.5598C13.6179 10.3427 13.4659 10.2266 13.2929 10.1304C13.2603 10.1113 13.2304 10.096 13.2049 10.0843C13.1532 10.0576 13.1004 10.0318 13.0479 10.0045C12.5085 9.71851 12.0873 9.35771 11.7951 8.93003C11.7121 8.80963 11.6402 8.682 11.5801 8.5487C11.5552 8.47742 11.5563 8.43694 11.5742 8.39998C11.592 8.3715 11.6155 8.34703 11.6432 8.32811C11.7359 8.2668 11.8315 8.20462 11.8963 8.16267C12.0119 8.08787 12.1034 8.02862 12.1624 7.98667C12.3838 7.83179 12.5387 7.66723 12.6355 7.48331C12.7031 7.35624 12.7424 7.21612 12.751 7.07247C12.7595 6.92882 12.7371 6.78502 12.6851 6.65083C12.5384 6.2648 12.1738 6.02515 11.732 6.02515C11.6389 6.02506 11.5459 6.0349 11.4548 6.05448C11.4305 6.05976 11.4062 6.06534 11.3824 6.0715C11.3865 5.8075 11.3806 5.52883 11.3572 5.25456C11.2739 4.29038 10.9362 3.78496 10.5842 3.38192C10.3588 3.12936 10.0933 2.91569 9.7984 2.7495C9.26424 2.44443 8.6585 2.28955 7.99821 2.28955C7.33792 2.28955 6.73512 2.44443 6.20037 2.7495C5.90472 2.91574 5.63868 3.12984 5.41306 3.3831C5.06106 3.78614 4.72344 4.29243 4.64013 5.25574C4.61666 5.53 4.6108 5.81014 4.61461 6.07267C4.59085 6.066
151 4.5668 6.06094 4.54245 6.05566C4.45135 6.03607 4.35843 6.02624 4.26525 6.02632C3.8232 6.02632 3.458 6.26598 3.31192 6.652C3.2597 6.78625 3.237 6.93016 3.24535 7.07396C3.2537 7.21775 3.29291 7.35807 3.36032 7.48536C3.45741 7.66928 3.61229 7.83385 3.83376 7.98872C3.89242 8.02979 3.98424 8.08905 4.09981 8.16472C4.16229 8.2052 4.25352 8.26446 4.34298 8.32371C4.37428 8.34395 4.40089 8.37065 4.42101 8.40203C4.43978 8.44046 4.44037 8.48182 4.4125 8.55808C4.35323 8.68859 4.28245 8.81355 4.20101 8.9315C3.9153 9.3495 3.5064 9.70384 2.98426 9.9875C2.70765 10.1342 2.42018 10.2321 2.29874 10.5621C2.20722 10.8112 2.26706 11.0945 2.49968 11.3333C2.58505 11.4224 2.68406 11.4974 2.79301 11.5554C3.01969 11.6799 3.26074 11.7764 3.5108 11.8425C3.5624 11.8558 3.61139 11.8778 3.6557 11.9074C3.74048 11.9816 3.72845 12.0933 3.84138 12.257C3.89807 12.3416 3.97011 12.4148 4.05376 12.4729C4.29077 12.6366 4.55712 12.6469 4.8393 12.6577C5.09421 12.6674 5.38314 12.6785 5.71314 12.7874C5.84984 12.8325 5.99181 12.92 6.15637 13.022C6.55149 13.2649 7.0924 13.5973 7.99762 13.5973C8.90285 13.5973 9.44757 13.2632 9.84562 13.0194C10.009 12.9191 10.1501 12.8325 10.283 12.7885C10.613 12.6794 10.9019 12.6686 11.1568 12.6589C11.439 12.648 11.7054 12.6378 11.9424 12.4741C12.0414 12.405 12.124 12.3148 12.1841 12.2101C12.2653 12.0719 12.2633 11.9754 12.3395 11.908C12.3811 11.8798 12.4271 11.8587 12.4756 11.8458C12.7291 11.7794 12.9734 11.6821 13.2031 11.556C13.3189 11.4939 13.4231 11.4123 13.5111 11.3148L13.514 11.3113C13.7323 11.0778 13.7871 10.8027 13.6977 10.5598ZM12.8931 10.9922C12.4023 11.2632 12.0761 11.2342 11.8224 11.3976C11.6068 11.5363 11.7344 11.8355 11.5778 11.9434C11.3853 12.0763 10.8166 11.9341 10.0818 12.1766C9.47573 12.377 9.08912 12.9531 7.99909 12.9531C6.90906 12.9531 6.53154 12.3782 5.91554 12.1752C5.18221 11.9326 4.61226 12.0749 4.41954 11.942C4.2632 11.834 4.39021 11.5348 4.1749 11.3961C3.92088 11.2327 3.59469 11.2617 3.10424 10.9922C2.79184 10.8197 2.96901 10.7129 3.07314 10.6625C4.85074 9.80182 5.1344 8.47302 5.14701 8.37446C5.16226 8.25507 5.17928 8.1612 5.04786 8.03976C4.92085 7.92243 4.35736 7.57366 4.20101 7.46454C3.94229 7.28384 3.82848 7.10344 3.91237 6.88168C3.97104 6.72827 4.11418 6.67048 4.26437 6.67048C4.31184 6.67063 4.35915 6.67594 4.40546 6.68633C4.68941 6.74792 4.96514 6.89019 5.12442 6.92862C5.1436 6.93354 5.16329 6.9362 5.18309 6.93654C5.26816 6.93654 5.29808 6.89371 5.29221 6.79633C5.27402 6.48568 5.23002 5.88024 5.27901 5.3144C5.34618 4.5359 5.59698 4.15016 5.89501 3.80902C6.03816 3.64504 6.71077 2.9343 7.99704 2.9343C9.2833 2.9343 9.95768 3.64211 10.1008 3.8055C10.3991 4.14664 10.6502 4.53238 10.7168 5.31088C10.7658 5.87672 10.7236 6.48246 10.7036 6.7928C10.6969 6.89518 10.7277 6.93302 10.8127 6.93302C10.8325 6.9327 10.8522 6.93004 10.8714 6.9251C11.031 6.88667 11.3067 6.7444 11.5907 6.6828C11.637 6.67242 11.6843 6.66711 11.7318 6.66697C11.8828 6.66697 12.0251 6.72563 12.0838 6.87816C12.1676 7.09992 12.0544 7.28032 11.7954 7.46102C11.6391 7.57014 11.0756 7.91862 10.9486 8.03624C10.8168 8.15768 10.8342 8.25155 10.8494 8.37094C10.862 8.47096 11.1454 9.79977 12.9233 10.6589C13.0283 10.7114 13.2055 10.8182 12.8931 10.9922Z",fill:"black"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_9336_3325",children:(0,t.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})},w=e=>{let{width:l,height:a}=e;return(0,t.jsx)("svg",{width:l,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M19.5404 18.6947C20.0401 18.3741 20.6836 18.4316 21.6521 17.8965C22.269 17.5559 21.9175 17.3459 21.7185 17.2464C18.2115 15.5503 17.652 12.9278 17.6277 12.731C17.5967 12.4944 17.5636 12.3087 17.8223 12.0699C18.0722 11.8377 19.1844 11.15 19.4918 10.9355C20.0003 10.5795 20.2259 10.2235 20.06 9.7857C19.9451 9.48498 19.662 9.36999 19.3635 9.36999C19.2706 9.36999 19.1756 9.38105 19.0849 9.40095C18.5255 9.52257 17.9815 9.80339 17.6675 9.87857C17.6255 9.88963 17.5857 9.89405 17.5525 9.89405C17.3867 9.89405 17.3248 9.81887 17.338 9.61765C17.3778 9.00514 17.4619 7.81108 17.3646 6.69442C17.2319 5.15762 16.7366 4.39696 16.1484 3.72475C15.8654 3.40191 14.5453 2 12.0024 2C9.46609 2 8.13936 3.40191 7.85632 3.72475C7.26814 4.39917 6.77283 5.15983 6.64015 6.69442C6.54286 7.81108 6.63131 9.00514 6.66669 9.61765C6.67774 9.81003 6.62025 9.89405 6.4522 9.89405C6.41903 9.89405 6.38144 9.88963 6.33721 9.87857C6.02322 9.80339 5.47926 9.52257 4.91982 9.40095C4.82916 9.38105 4.73408 9.36999 4.64121 9.36999C4.3427 9.36999 4.05966 9.48277 3.94468 9.7857C3.77883 10.2235 4.00217 10.5795 4.51296 10.9355C4.82032 11.15 5.93256 11.8377 6.18243 12.0699C6.44114 12.3109 6.40797 12.4967 6.37702 12.731C6.35048 12.9278 5.79325 15.5503 2.28626 17.2464C2.08062 17.3459 1.73125 17.5559 2.34818 17.8965C3.31669 18.4294 3.96015 18.3719 4.45989 18.6947C4.88444 18.9689 4.63458 19.5593 4.94194 19.7716C5.32005 20.0347 6.44335 19.7539 7.8917 20.2315C9.10345 20.6317 9.84421 21.7617 12.0001 21.7617C14.1517 21.7617 14.9145 20.6273 16.1086 20.2315C17.5569 19.7539 18.678 20.0347 19.0584 19.7716C19.3657 19.5593 19.1158 18.9689 19.5404 18.6947Z",stroke:"#000000",strokeLinejoin:"round"})})};var v=a(12769),k=a(20634),j=a(54781),y=a(51815),N=a(34402),M=a(12202);let E=e=>{var l;let{id:a,size:E,data:z,editable:I,linkId:B,originalLink:P,displayMode:S,totalColumns:F,isMenuVisible:L,isDarkMode:D,isLb:q}=e,R=(0,r.useContext)(n.Ay),_=(0,r.useContext)(b.Ay),A=(0,o.A)(E,S),[T,W]=(0,r.useState)(!I||void 0!==z),[U,Z]=(0,r.useState)((null==z?void 0:z.username)||""),[V,H]=(0,r.useState)((null==z?void 0:z.thumbnail)||""),[G,X]=(0,r.useState)(B),[K,Y]=(0,r.useState)(!1),[J,O]=(0,r.useState)(!1),[Q,$]=(0,r.useState)(!1),[ee,el]=(0,r.useState)([]),{i18n:ea}=(0,s.Bd)(),et=(0,r.useContext)(h.A),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),es=(0,r.useRef)([]);(0,r.useEffect)(()=>{var e;es.current=(null==(e=R.currentPage)?void 0:e.widgets)||[]}
1,[null==(l=R.currentPage)?void 0:l.widgets]),(0,r.useEffect)(()=>{!T&&!z&&P&&I&&en(P)},[P,T,z,I]);let en=async e=>{var l,t,r,i;try{let r=await c.A.getFirebaseToken(),i=null==(l=R.currentPageLink)?void 0:l.code,s=_.domains.find(e=>{var l;return e.id===(null==(l=R.currentPageLink)?void 0:l.domainId)}),n=(0,j.ID)(null==s?void 0:s.domain,i),d=await (0,u.A)({linkInBioName:n,token:r,url:e,workspaceId:(null==(t=R.currentPage)?void 0:t.workspaceId)||""}),o=null==d?void 0:d.data,g=null==d?void 0:d.app;if(Z(null==o?void 0:o.username),H(null==o?void 0:o.thumbnail),X(null==d?void 0:d.linkId),I){let e=[...es.current||[]];e.map(e=>(e.id===a&&(e.data=o,e.linkId=null==d?void 0:d.linkId,e.type=g),e)),R.updateCurrentPageWidgets(e)}}catch(l){if(I){let t=await c.A.getFirebaseToken(),s=null==(r=R.currentPageLink)?void 0:r.code,n=_.domains.find(e=>{var l;return e.id===(null==(l=R.currentPageLink)?void 0:l.domainId)}),d=(0,j.ID)(null==n?void 0:n.domain,s),o=await (0,g.h)({url:e,workspaceId:(null==(i=R.currentPage)?void 0:i.workspaceId)||"",linkInBioName:d,token:t,userId:_.userId}),u=[...es.current||[]],h=await (0,y.M)(e),x=(0,N.k)(e).hostname;u.map(e=>(e.id===a&&(e.data={favicon:(null==h?void 0:h.logo)||null,hostname:x||null,title:(null==h?void 0:h.name)||x||null,socialImage:null,description:null},e.type="chrome",e.linkId=null==o?void 0:o.linkId),e)),R.updateCurrentPageWidgets(u),console.error("Error getting link data:",l)}}finally{W(!0)}},ed=async(e,l)=>{var a;let t=null==(a=e.target.files)?void 0:a[0];if(t&&R.currentPage){if(t.size>0xa00000)return void alert("File size should not exceed 10MB");Y(!0);try{let e=await (0,k.Z)({file:t,userId:_.userId,pageId:R.currentPage.id,storage:f.IG});H(e)}catch(e){console.error("Erreur lors de l'upload :",e),et.showToast({severity:"error",message:ea.t("toast.error")})}finally{Y(!1)}}},eo=async e=>{if(V.startsWith("firebasestorage.googleapis.com"))try{let e=(0,C.KR)(f.IG,V);await (0,C.XR)(e)}catch(e){console.error("Error deleting image:",e)}H("")};return(0,r.useEffect)(()=>{if(I&&T&&(U!==(null==z?void 0:z.username)||V!==(null==z?void 0:z.thumbnail))){var e;let l=[...(null==(e=R.currentPage)?void 0:e.widgets)||[]];l.map(e=>(e.id===a&&(e.data={...e.data,username:U||"",thumbnail:V||""}),e)),R.updateCurrentPageWidgets(l)}},[U,V,T,I]),(0,t.jsxs)("div",{className:"relative tracking-normal transition-all h-full w-full ".concat(I?"cursor-pointer":""," visible"),children:[(0,t.jsxs)("div",{ref:ei,className:"".concat("rectangle"===A||"square"===A?"pt-[13px]":"narrow"==A?"py-[0px] px-[0px]":"wide"===A?"py-[15px] px-[15px]":"p-[0px]"," bg-background-light dark:bg-background-dark relative rounded-[21px] h-full overflow-hidden ").concat(R.isTouchDevice&&L&&I?"border-[1.5px] border-primary":"border border-[#E5E5EA] dark:border-border-dark"," ").concat(!T?"loader":""," ").concat(q&&B?J?"scale-95":"scale-100":""," transition-transform duration-150 ease-in-out"),style:{boxShadow:q&&B&&Q?"0px 6px 24px 0px rgba(43, 65, 77, 0.10), 0px 2px 6px 0px rgba(43, 65, 77, 0.06)":"\n 0 3px 4px -2px rgba(10, 11, 36, 0.015),\n 0 8px 4px -4px rgba(10, 11, 36, 0.015),\n 0 16px 4px -6px rgba(10, 11, 36, 0.015)\n ",transition:"all 0.25s cubic-bezier(0.4, 0, 0.2, 1)"},onMouseDown:()=>q&&B&&O(!0),onMouseUp:()=>q&&B&&O(!1),onMouseEnter:()=>q&&B&&$(!0),onMouseLeave:()=>{q&&B&&(O(!1),$(!1))},onTouchStart:()=>q&&B&&O(!0),onTouchEnd:()=>q&&B&&O(!1),onClick:e=>{q&&B&&!I&&(e=>{if(!q||!B||!ei.current)return;let l=ei.current.getBoundingClientRect(),a=2*Math.max(l.width,l.height),t={x:e.clientX-l.left,y:e.clientY-l.top,size:a,id:Date.now()};el(e=>[...e,t]),setTimeout(()=>{el(e=>e.filter(e=>e.id!==t.id))},1e3)})(e)},children:[T?null:(0,t.jsx)("div",{className:"flex items-center justify-center flex-grow h-full w-full absolute top-0 left-0 right-0 bottom-0 z-[1000]",children:(0,t.jsx)(x.A,{size:24,color:"secondary"})}),q&&B&&ee.map(e=>(0,t.jsx)(M.P.span,{initial:{scale:0,opacity:.5},animate:{scale:2,opacity:0},transition:{duration:1,ease:[.4,0,.2,1]},style:{position:"absolute",left:e.x-e.size/2,top:e.y-e.size/2,width:e.size,height:e.size,borderRadius:"50%",backgroundColor:"rgba(29, 29, 30, 0.15)",pointerEvents:"none",zIndex:1e4}},e.id)),"wide"===A&&(0,t.jsxs)("div",{className:"flex items-center justify-between w-full h-full",children:[(0,t.jsxs)("div",{className:"flex relative items-center w-full",children:[(0,t.jsx)("div",{className:"absolute",children:(0,t.jsx)(m,{width:23,height:23})}),(0,t.jsxs)("div",{className:"flex ml-9 items-center w-[88%] relative",children:[(0,t.jsx)("input",{ref:er,spellCheck:!1,className:"text-[13px] custom-placeholder bg-background-light dark:bg-background-dark text-text-primary-light dark:text-text-primary-dark font-bold border-none focus:outline-none disabled:bg-background-light dark:disabled:bg-background-dark disabled:opacity-100 whitespace-nowrap leading-none flex-grow ".concat(I?"":"pointer-events-none"),value:null!=U?U:"",placeholder:"Snapchat",onChange:e=>Z(e.target.value),disabled:!I,onClick:e=>{I&&e.stopPropagation()}}),(0,t.jsx)(v.A,{isDarkMode:D,width:7})]})]}),(0,t.jsx)(i.l,{width:16,height:16,strokeWidth:1,className:"text-text-primary-light dark:text-text-primary-dark"})]}),"rectangle"===A&&(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)("div",{className:"flex flex-col gap-[7px]",style:{padding:"0px 16px"},children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex w-[90%] relative",children:[(0,t.jsx)("input",{ref:er,spellCheck:!1,className:"text-[14px] custom-placeholder bg-background-light dark:bg-background-dark text-text-primary-light dark:text-text-primary-dark font-bold border-none focus:outline-none disabled:bg-background-light dark:disabled:bg-background-dark disabled:opacity-100 whitespace-nowrap leading-none w-full ".concat(I?"":"pointer-events-none"),value:null!=U?U:"",placeholder:"Snapchat",onChange:e=>Z(e.target.value),disabled:!I,onClick:e=>{I&&e.stopPropagation()}}),(0,t.jsx)(v.A,{isDarkMode:D,width:7})]}),(0,t.jsx)(m,{width:22,height:22})]})}),(0,t.jsx)("div",{className:"mt-[3%] flex-grow",children:(0,t.jsx)("div",{className:"relative flex flex-col items-center h-full w-full",children:(0,t.jsx)("div",{className:"relative overflow-hidden w-[90%] h-[90%] rounded-[16px] shadow-[0_0_16px_rgba(0,0,0,0.03)] z-[10] bg-[#F8F8F8] dark:bg-[#141414]",style:{border:D?"0.4px solid #373737":"0.481px solid #EBEBEB"},children:(0,t.jsx)("div",{className:"absolute flex items-center justify-center -translate-y-1/2 left-1/2 -translate-x-1/2 roun
1ded-[90%]\n w-[53%] aspect-square\n ",style:{background:D?"linear-gradient(180deg, rgba(255, 252, 0, 0.05) 0%, rgba(255, 252, 0, 0.03) 100%)":"rgba(255, 252, 0, 0.03)",top:"60%"},children:(0,t.jsx)("div",{className:"\n flex items-center justify-center pb-1 rounded-full w-[65%] aspect-square\n ",style:{background:D?"linear-gradient(180deg, rgba(255, 252, 0, 0.11) 0%, rgba(255, 252, 0, 0.02) 100%)":"rgba(255, 252, 0, 0.13)"},children:(0,t.jsx)(p.mz,{showBlurBorder:!0,widgetId:a,className:"aspect-square w-[69%]",imgContainerClassNames:["rounded-full w-full h-full"],imgClassNames:["object-cover w-full h-full rounded-full"],imageUrls:[V],onChange:ed,onRemove:eo,width:200,height:200,logo:(0,t.jsx)(w,{width:18,height:18}),logoContainerSize:28,logoSize:20,showMenu:L})})})})})})]}),"narrow"===A&&(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)("div",{className:"flex flex-col gap-[7px] px-[10px] py-[15px]",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex w-[90%] relative",children:[(0,t.jsx)("input",{ref:er,spellCheck:!1,className:"text-[12px] custom-placeholder bg-background-light dark:bg-background-dark text-text-primary-light dark:text-text-primary-dark font-bold border-none focus:outline-none disabled:bg-background-light dark:disabled:bg-background-dark disabled:opacity-100 whitespace-nowrap leading-none w-full ".concat(I?"":"pointer-events-none"),value:null!=U?U:"",placeholder:"Snapchat",onChange:e=>Z(e.target.value),disabled:!I,onClick:e=>{I&&e.stopPropagation()}}),(0,t.jsx)(v.A,{isDarkMode:D,width:7})]}),(0,t.jsx)(m,{width:22,height:22})]})}),(0,t.jsx)("div",{className:"mt-[30%] bg-[#F2F2F2] dark:bg-[#282828] pt-[12px] flex-grow",children:(0,t.jsx)("div",{className:"h-full bg-[#E7E7E7] dark:bg-[#303030] pt-[12px] px-[0px]",children:(0,t.jsx)("div",{className:"relative overflow-hidden bg-[#F8F8F8] dark:bg-[#141414] px-[10px] w-full h-full",style:{border:D?"0.4px solid #373737":"0.481px solid #EBEBEB"},children:(0,t.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2 \n w-[85%] aspect-square flex justify-center items-center\n rounded-full",style:{background:D?"linear-gradient(180deg, rgba(255, 252, 0, 0.05) 0%, rgba(255, 252, 0, 0.03) 100%)":"rgba(255, 252, 0, 0.03)"},children:(0,t.jsx)("div",{className:"w-[71%] aspect-square flex justify-center items-center\n rounded-full",style:{background:D?"linear-gradient(180deg, rgba(255, 252, 0, 0.11) 0%, rgba(255, 252, 0, 0.02) 100%)":"rgba(255, 252, 0, 0.13)"},children:(0,t.jsx)(p.mz,{showBlurBorder:!0,widgetId:a,className:"aspect-square w-[71%]",imgContainerClassNames:[" rounded-full w-full h-full"],imgClassNames:["object-cover w-full h-full rounded-full"],imageUrls:[V],onChange:ed,onRemove:eo,width:200,height:200,logo:(0,t.jsx)(w,{width:12,height:12}),logoContainerSize:20,logoSize:10,showMenu:L})})})})})})]}),"large-square"===A&&(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)("div",{className:"flex px-[15px] pt-[15px] flex-col gap-[7px]",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex w-[90%] relative",children:[(0,t.jsx)("input",{ref:er,spellCheck:!1,className:"text-[14px] custom-placeholder bg-background-light dark:bg-background-dark text-text-primary-light dark:text-text-primary-dark font-bold border-none focus:outline-none disabled:bg-background-light dark:disabled:bg-background-dark disabled:opacity-100 whitespace-nowrap leading-none w-full ".concat(I?"":"pointer-events-none"),value:null!=U?U:"",placeholder:"Snapchat",onChange:e=>Z(e.target.value),disabled:!I,onClick:e=>{I&&e.stopPropagation()}}),(0,t.jsx)(v.A,{isDarkMode:D,width:7})]}),(0,t.jsx)(m,{width:22,height:22})]})}),(0,t.jsx)("div",{className:"mt-[2%] w-full flex-grow",children:(0,t.jsx)("div",{className:"relative flex flex-col justify-center items-center h-full w-full",children:(0,t.jsx)("div",{className:"relative overflow-hidden w-[90%] h-[90%] rounded-[15p
1x] z-[10] flex justify-center items-center bg-[#F8F8F8] dark:bg-[#141414]",style:{border:D?"0.4px solid #373737":"0.481px solid #EBEBEB"},children:(0,t.jsx)("div",{className:"flex justify-center rounded-full items-center w-[54%] aspect-square",style:{background:D?"linear-gradient(180deg, rgba(255, 252, 0, 0.05) 0%, rgba(255, 252, 0, 0.03) 100%)":"rgba(255, 252, 0, 0.03)"},children:(0,t.jsx)("div",{className:"relative w-[72%] aspect-square flex justify-center items-center\n rounded-full",style:{background:D?"linear-gradient(180deg, rgba(255, 252, 0, 0.11) 0%, rgba(255, 252, 0, 0.02) 100%)":"rgba(255, 252, 0, 0.13)"},children:(0,t.jsx)(p.mz,{showBlurBorder:!0,widgetId:a,className:"aspect-square w-[73%]",imgContainerClassNames:["rounded-full w-full h-full"],imgClassNames:["object-cover w-full h-full rounded-full"],imageUrls:[V],onChange:ed,onRemove:eo,width:200,height:200,logo:(0,t.jsx)(w,{width:23,height:23}),logoContainerSize:35,logoSize:22,logoClassName:"-bottom-[5px]",showMenu:L})})})})})})]}),"square"===A&&(0,t.jsxs)("div",{className:"flex flex-col h-full justify-between",children:[(0,t.jsx)("div",{className:"flex flex-col gap-[7px] px-[13px]",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex w-[90%] relative",children:[(0,t.jsx)("input",{ref:er,spellCheck:!1,className:"text-[12px] bg-background-light dark:bg-background-dark text-text-primary-light dark:text-text-primary-dark font-bold border-none focus:outline-none disabled:bg-background-light dark:disabled:bg-background-dark disabled:opacity-100 whitespace-nowrap leading-none w-full ".concat(I?"":"pointer-events-none"),value:null!=U?U:"",placeholder:"Snapchat",onChange:e=>Z(e.target.value),disabled:!I,onClick:e=>{I&&e.stopPropagation()}}),(0,t.jsx)(v.A,{isDarkMode:D,width:7})]}),(0,t.jsx)(m,{width:22,height:22})]})}),(0,t.jsx)("div",{className:"mt-[10px] relative flex-grow",children:(0,t.jsx)("div",{className:"relative overflow-hidden w-full flex justify-center px-[13px] bg-[#F8F8F8] dark:bg-[#141414] items-center h-full",style:{borderTopLeftRadius:"15px",borderTopRightRadius:"15px",border:D?"0.4px solid #373737":"0.481px solid #EBEBEB"},children:(0,t.jsx)("div",{className:"absolute flex justify-center rounded-full items-center",style:{background:D?"linear-gradient(180deg, rgba(255, 252, 0, 0.05) 0%, rgba(255, 252, 0, 0.03) 100%)":"rgba(255, 252, 0, 0.03)",height:"105%",width:"79%",top:"5px"},children:(0,t.jsx)("div",{className:"w-[70%] flex justify-center items-center mt-1 aspect-square rounded-full",style:{background:D?"linear-gradient(180deg, rgba(255, 252, 0, 0.11) 0%, rgba(255, 252, 0, 0.02) 100%)":"rgba(255, 252, 0, 0.13)"},children:(0,t.jsx)(p.mz,{showBlurBorder:!0,widgetId:a,className:"aspect-square w-[70%]",imgContainerClassNames:[" rounded-full w-full h-full"],imgClassNames:["object-cover w-full h-full rounded-full"],imageUrls:[V],onChange:ed,onRemove:eo,width:200,height:200,logo:(0,t.jsx)(w,{width:11,height:11}),logoContainerSize:19,logoSize:11,showMenu:L})})})})})]})]}),(0,t.jsx)("div",{className:"-bottom-[40px] absolute ".concat("rectangle"===A||"wide"===A||"large-square"===A?"left-1/2 -translate-x-1/2":E[S].x===F-1?"right-0":"left-0"," z-[1000] transition-opacity duration-[300ms] ").concat(L?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-auto"),style:{width:"max-content"},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},children:I&&!R.isTouchDevice&&(0,t.jsx)(d.E,{selectedSize:A||"",widgetId:a,size:E,isMenuVisible:L,isDarkMode:D,disabled:!T})}),I&&R.isTouchDevice&&(0,t.jsx)("div",{className:"drag-handle -bottom-[23px] absolute z-[2000] p-[8px] left-1/2 -translate-x-1/2 transition-opacity duration-[300ms] ".concat(L?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-auto"),onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsx)("div",{className:"bg-primary p-[6px] rounded-full z-[1000]",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,t.jsx)("g",{clipPath:"url(#clip0_11827_944)",children:(0,t.jsx)("path",{d:"M14.0002 10.
10004H19.0004M19.0004 10.0004L16.5003 7.50028M19.0004 10.0004L16.5003 12.5005M10 6.00021V1M10 1L7.49989 3.50011M10 1L12.5001 3.50011M5.99983 10.0004H0.999617M0.999617 10.0004L3.49972 12.5005M0.999617 10.0004L3.49972 7.50028M10 14.0006V19.0008M10 19.0008L12.5001 16.5007M10 19.0008L7.49989 16.5007",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_11827_944",children:(0,t.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})})})]})}}}]);
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.