PageSourceSearch

https://photobucket.com/assets/js/AppLayout-mYlUGqNH.js

js photobucket.com collected 2026-09-24 06:57:00 UTC 16,521 bytes, 1 lines download raw bytes

1var ae=Object.defineProperty,ne=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var M=(t,r,o)=>r in t?ae(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,z=(t,r)=>{for(var o in r||(r={}))se.call(r,o)&&M(t,o,r[o]);if(U)for(var o of U(r))le.call(r,o)&&M(t,o,r[o]);return t},j=(t,r)=>ne(t,ie(r));import{_ as e,a,b as ce}from"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-B177jzqY.js";import{u as ue,a as F,B as de,b as H,c as Y,d as G,X as R,O as q,D as me,e as pe,f as fe,g as he,h as be,i as K,l as ge,j as ve,k as xe,m as ye,n as W,o as Ce,p as Ne,U as we}from"./index-C8DIms-h.js";import{a as D,e as B,b as $}from"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react__loadShare__.js-ClGO9exV.js";import{d as ke,_ as _e,b as Se}from"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_2_router_mf_2_dom__loadShare__.js-CK4j7iSY.js";import{u as Pe,B as Ae,H as De,M as Ge,a as Ee}from"./BackgroundGradients-d-Pknfh4.js";import{S as V,a as X,b as Q,c as J,d as Z,e as Oe,f as Re}from"./sheet-7LhS4d8a.js";import{I as ee}from"./input-BAKHZGps.js";import{u as Te,C as Be}from"./CreateAlbumDrawerContext-BrLdwoFb.js";import{a as Ie,b as Le}from"./albumCacheLinks-COyuqQrC.js";import{f as Ue,u as Me}from"./useBucketMediaUpload-CDHeH3K-.js";import{u as te}from"./useDormantMigrationProgress-DJLNmhqd.js";import{u as ze,p as je,c as Fe}from"./coverImageProcessor-BxMTeS1Q.js";import{I as He}from"./ImageIcon-D2XgVoX2.js";import{P as Ye}from"./PlusIcon-Cwk4M6I2.js";import{u as qe,C as Ke}from"./CreateGroupDrawerContext-CYmLA6sq.js";import{s as We,i as $e}from"./groupCapUpsell-C7pFxje8.js";import{R as Ve}from"./RebrandAnnouncementBanner-CEc1Nl0b.js";import"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare___mf_0_unleash_mf_1_proxy_mf_2_client_mf_2_react__loadShare__.js-BdtqsXmB.js";import{G as Xe}from"./groupsyChrome-CLCFmWEd.js";import"./__virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react__loadShare__.js_commonjs-proxy-D_fXcg40.js";import"./virtualExposes-_ivNhQLP.js";import"./remoteEntry-uboCqDRT.js";import"./preload-helper-s0Msbe4-.js";import"./index-DM2295YJ.js";import"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-_fD68H2V.js";import"./__virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_2_dom__loadShare__.js_commonjs-proxy-BYnSnx8j.js";import"./_virtual_mf___mfe_internal__host__mf_owner__1__loadShare__react_mf_2_dom__loadShare__.js-ckyQG2Wp.js";import"./popover-CQUNDO09.js";import"./getInitials-DL7R944W.js";import"./ToolbarRootContext-CFM4y31V.js";import"./useValueChanged-DjAsLpO_.js";import"./usePositioner-D-LvJytS.js";import"./DirectionContext-CJiZK74l.js";import"./useGroupBucket-BPvA6FsQ.js";import"./SearchSmIcon-cJdnDzsa.js";import"./ShieldTickIcon-B1g8tTTC.js";import"./UsersIcon-FFXIPf6P.js";import"./IconButton-Cswe56TH.js";import"./LoadingIcon-BUCARp-P.js";import"./FolderIcon-Djop75le.js";import"./GridIcon-8_Np-10u.js";import"./formatStorageBytes-B0bS0L06.js";import"./formatBytes-jRUNT9z8.js";import"./Link1Icon-b7kYrNLi.js";import"./Star1Icon-BLgURgew.js";import"./Trash1Icon-Dznmln5s.js";import"./useControlled-DMkbsAxB.js";import"./useRegisterFieldControl-B2c9p962.js";import"./index-CKJ3iTdM.js";import"./index--eSQkUPx.js";import"./placeholders-BhfK6KrI.js";import"./useAnalytics-Bqtss9LT.js";const Qe="Say hello to Groupsy by Photobucket! One Library for all your personal photos and videos. Private Groups to share them with the people who matter most.",Je="/home",Ze="_pb_groupsyRebrandBannerDismissed:";function et(){return e(Ve,{message:Qe,path:Je,storageKeyPrefix:Ze,className:"px-24 pt-16"})}function tt(t,r){const o=ue(),i=t!=null?t:o,{mutationsLocked:l}=te(),[m,{loading:c,error:s}]=F(de,{update:(n,{data:h})=>{const p=h==null?void 0:h.bucketAlbumCreate;if(!p)return;const C=n.identify(p);C&&(n.modify({fields:{bucketAlbums:(v,{storeFieldName:b,readField:f})=>{var g,w;const N=Ue(b);if(N.bucketId!==p.bucketId||((g=N.albumId)!=null?g:void 0)!==r)return v;const x=v,P=(w=x==null?void 0:x.items)!=null?w:[];if(P.some(k=>k.__ref===C))return v;const u=k=>{var A;return String((A=f("title",k))!=null?A:"").toLowerCase()},y=[...P,{__ref:C}].sort((k,A)=>u(k).localeCompare(u(A)));return j(z({},x),{items:y})}}}),r?Ie(n,r,1):Le(n,p.bucketId,1))}});return{createAlbum:n=>!i||l?Promise.resolve(null):m({variables:{bucketId:i,data:{title:n,parentId:r!=null?r:i}}}),loading:c,error:s,disabled:!i||l}}function rt(){const{isOpen:t,close:r,bucketId:o,parentAlbumId:i,onCreated:l,entryPoint:m}=Te(),{createAlbum:c,loading:s,error:d,disabled:n}=tt(o,i),{trackEvent:h}=H(),p=Y(),[C,v]=D(""),b=!!i,f=C.trim(),N=f.length>0&&!s&&!n,x=()=>{v(""),r()};return e(V,{open:t,onOpenChange:u=>{u||x()},children:a(X,{children:[e(Q,{}),e(J,{side:"right","data-groupsy-root":!0,className:"w-full sm:w-[400px] bg-background p-24",children:a("form",{onSubmit:async u=>{var y;if(u.preventDefault(),!!N)try{const g=await c(f),w=(y=g==null?void 0:g.data)==null?void 0:y.bucketAlbumCreate;w&&(h(q.ALBUM_ADDED,{album_id:w.id,platform:p,entry_point:m}),l==null||l(w),x())}catch(g){}}
1,className:"flex h-full flex-col",children:[e(Z,{className:"font-display pr-40 text-2xl font-semibold text-foreground",children:b?"Create New Sub-Album":"Create New Album"}),a("div",{className:"-mx-4 mt-24 flex min-h-0 flex-1 flex-col gap-16 overflow-y-auto px-4",children:[e(Oe,{className:"text-muted-foreground text-base",children:b?"Break this album down further so your media stays easy to find and share!":"Organize your uploads in albums so they are easy to find and share!"}),a("div",{children:[e(ee,{"aria-label":b?"Sub-album name":"Album name",placeholder:b?"Give your sub-album a name…":"Give your album a name…",value:C,onChange:u=>v(u.target.value),"aria-invalid":d?!0:void 0,className:"h-48"}),d&&a("p",{role:"alert",className:"text-destructive mt-8 text-sm",children:["Something went wrong creating your ",b?"sub-album":"album",". Please try again."]})]})]}),a("div",{className:"flex gap-16 pt-16",children:[e(G,{type:"button",variant:"outline",onClick:x,className:"font-display h-48 flex-1 rounded-24 font-semibold",children:"Cancel"}),e(G,{type:"submit",disabled:!N,className:"bg-gradient-purple-pink font-display h-48 flex-1 rounded-24 font-semibold text-white hover:opacity-90",children:"Create"})]}),e(Re,{"aria-label":"Close",className:"absolute top-24 right-24 z-10 flex items-center rounded-12 text-foreground outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:e(R,{size:"small"})})]})})]})})}function ot({open:t,onKeepEditing:r,onLeave:o}){return e(me,{open:t,onOpenChange:i=>!i&&r(),children:a(pe,{children:[e(fe,{}),a(he,{"data-groupsy-root":!0,className:"rounded-24 bg-background flex w-[448px] max-w-[calc(100vw-32px)] flex-col gap-40 p-40",children:[a("div",{className:"flex items-start gap-16",children:[a("div",{className:"flex-1 text-center",children:[e(be,{className:"font-display text-foreground text-xl font-bold",children:"Leave without saving?"}),e("p",{className:"font-text text-foreground mt-2 text-base",children:"This Group won't be saved."})]}),e("button",{type:"button","aria-label":"Keep editing",onClick:r,className:"text-foreground focus-visible:ring-ring/50 rounded-12 outline-none focus-visible:ring-3",children:e(R,{size:"small"})})]}),a("div",{className:"flex gap-12",children:[e(G,{variant:"outline",onClick:r,className:"font-display rounded-24 h-48 flex-1 text-base font-semibold",children:"Cancel"}),e(G,{variant:"destructive",onClick:o,className:"font-display rounded-24 h-48 flex-1 text-base font-semibold",children:"Leave"})]})]})]})})}function at(){const[t,r]=D(null),{createAlert:o}=K(),{uploadSingle:i}=Me(t==null?void 0:t.bucketId),{mutation:l}=ze(),m=B(i);return m.current=i,$(function(){if(!t)return;let s=!1;return(async()=>{try{const n=await m.current(t.file);if(s||!n)return;const h=await je(t.file);if(s)return;await l({variables:{bucketId:t.bucketId,mediaId:n,data:h.map(p=>({coverImageType:p.coverImageType,data:p.data,type:p.type}))}})}catch(n){ge.error("Failed to set the group cover photo:",n),s||o("Your Group was created, but its cover photo could not be set.")}finally{s||r(null)}})(),()=>{s=!0}},[t,o,l]),{setCoverPhoto:(c,s)=>r({bucketId:c,file:s})}}function nt(){var m;const t=(m=ve().currentUser)==null?void 0:m.uid,[r,{loading:o,error:i}]=F(xe,{onError:We,update:(c,{data:s})=>{var d;(d=s==null?void 0:s.bucketCreate)!=null&&d.id&&(c.evict({id:"ROOT_QUERY",fieldName:"bucketsByUserId"}),t&&c.modify({id:c.identify({__typename:"UserProfile",id:t}),fields:{groupCount:n=>typeof n=="number"?n+1:n,'bucketsOwnedByUserCount({"bucketType":"GROUP"})':n=>typeof n=="number"?n+1:n}}),c.gc())}});return{createGroup:async c=>{var n,h;const d=(n=(await r({variables:{data:{title:c,bucketType:ye.Group}}})).data)==null?void 0:n.bucketCreate;return d!=null&&d.id?{id:d.id,title:(h=d.title)!=null?h:c}:null},loading:o,error:$e(i)?void 0:i}}const it="image/*,.heic,.heif",st="blob:",lt=["size-[103px] rotate-[13.66deg] opacity-40 left-[36px] top-[18px]","size-[103px] -rotate-[16.12deg] opacity-40 -left-[28px] top-[22px]","size-[118px] -rotate-[9.91deg] -left-[20px] -top-[3px]","size-[118px] rotate-[4.72deg] left-[20px] top-[4px]"];function ct(){return e("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",children:lt.map(t=>e("span",{className:W("bg-brand-100 rounded-16 absolute",t)},t))})}function ut(){const{isOpen:t,close:r,entryPoint:o}=qe(),i=ke(),{createAlert:l}=K(),{createGroup:m,loading:c,error:s}=nt(),{setCoverPhoto:d}=at(),{trackEvent:n}=H(),h=Y(),[p,C]=D(""),[v,b]=D(null),[f,N]=D(null),[x,P]=D(!1),u=B(null),y=B(0);$(function(){if(f)return()=>URL.revokeObjectURL(f)},[f]);const g=p.trim(),w=g.length>0||v!==null,k=g.length>0&&!c,A=()=>{y.current+=1,C(""),b(null),N(null),P(!1),u.current&&(u.current.value="")},I=()=>{A(),r()},T=()=>{w?P(!0):I()},re=async _=>{var L;const S=(L=_.target.files)==null?void 0:L[0];if(!S)return;y.current+=1;const E=y.current,O=await Fe(S).catch(()=>null);if(E!==y.current){O&&URL.revokeObjectURL(O);return}if(!O){l("That file could not be used as a cover photo. Please choose an image."),u.current&&(u.current.value="");return}b(S),N(O)},oe=()=>{y.current+=1,b(null),N(null),u.current&&(u.current.value="")};return a(ce,{children:[e(V,{open:t,onOpenChange:_=>!_&&T(),children:a(X,{children:[e(Q,{}),e(J,{side:"right","data-groupsy-root":!0,className:"bg-background w-full p-24 sm:w-[378px]",children:a("form",{onSubmit:async _=>{if(_.preventDefault(),!k)return;const S=await m(g).catch(()=>null);if(!S)return;n(q.GROUP_CREATED,{bucket_id:S.id,platform:h,entry_point:o});const E=v;A(),r(),l("The new Group has been successfully created!","success"),i("/groups/".concat(S.id)),E&&d(S.id,E)},className:"flex h-full flex-col",children:[a("div",{className:"flex items-center gap-20",children:[e(Z,{className:"font-display text-foreground flex-1 text-2xl font-semibold",children:"New Group"}),e("button",{type:"button","aria-label":"Close",onClick:T,className:"text-foreground focus-visible:ring-ring/50 rounded-12 outline-none focus-visible:ring-3",children:e(R,{size:"base"})})]}),a("div",{className:"-mx-4 min-h-0 grow overflow-y-auto px-4",children:[a("p",{className:"text-muted-foreground mt-48 text-center text-base",children:["Add a Group name (required)",e("br",{}),"Choose a cover photo (optional)"]}),a("div",{className:"mt-48 flex flex-col items-center gap-8",children:[e("p",{className:"text-muted-foreground text-sm",children:"Optional"}),a("div",{className:"relative",children:[e(ct,{}),e("div",{className:"border-brand-200 rounded-16 shadow-elevation-soft relative flex size-[131px] items-center justify-center overflow-hidden border border-dashed bg-white",children:f!=null&&f.startsWith(st)?e("img",{src:f,alt:"Chosen cover",className:"size-full object-cover"}):e(He,{size:"large",className:"text-brand-500"})}
1),f?e("button",{type:"button","aria-label":"Remove cover photo",onClick:oe,className:"bg-gradient-purple-pink focus-visible:ring-ring/50 absolute -right-12 bottom-0 flex size-40 items-center justify-center rounded-full text-white outline-none focus-visible:ring-3",children:e(R,{size:"base"})}):a("span",{className:"bg-gradient-purple-pink focus-within:ring-ring/50 absolute -right-12 bottom-0 flex size-40 items-center justify-center rounded-full text-white focus-within:ring-3",children:[e(Ye,{size:"base","aria-hidden":"true"}),e("input",{ref:u,type:"file",accept:it,"aria-label":"Add a cover photo",onChange:re,className:"absolute inset-0 cursor-pointer opacity-0"})]})]})]}),a("div",{className:"mt-48 flex flex-col gap-2",children:[a("div",{className:"flex items-start gap-8 text-sm",children:[e("label",{htmlFor:"group-name",className:"font-text text-foreground flex-1 font-semibold",children:"Group Name"}),e("span",{className:"text-muted-foreground",children:"Required"})]}),e(ee,{id:"group-name",placeholder:"Give your Group a name",value:p,onChange:_=>C(_.target.value),"aria-invalid":s?!0:void 0,className:"h-48"}),s&&e("p",{role:"alert",className:"text-destructive mt-8 text-sm",children:"Something went wrong creating your Group. Please try again."})]})]}),a("div",{className:"flex gap-12 pt-24",children:[e(G,{type:"button",variant:"outline",onClick:T,className:"font-display rounded-24 h-48 flex-1 font-semibold",children:"Cancel"}),e(G,{type:"submit",disabled:!k,className:"bg-gradient-purple-pink font-display rounded-24 h-48 flex-1 font-semibold text-white hover:opacity-90",children:"Create"})]})]})})]})}),e(ot,{open:x,onKeepEditing:()=>P(!1),onLeave:I})]})}const dt="Welcome back! Your stored media is being migrated.",mt=t=>"You have ".concat(t," photo and video memories in our long-term storage. It shouldn't take too long, but feel free to follow along here in the meantime."),pt="We couldn't finish migrating your media.",ft="Some of your photos and videos are still in long-term storage. Please contact support so we can finish restoring them. Uploading and organizing stay unavailable until this is resolved.";function ht(){const{shouldShow:t,migrationFailed:r,approximateMediaCount:o,migratedMediaCount:i,totalMediaCount:l}=te({poll:!0});if(r)return e("div",{className:"px-16 pt-16 in-data-[viewport=desktop]:px-24",children:a("div",{role:"alert",className:"bg-destructive text-destructive-foreground flex flex-col gap-8 rounded-16 p-16",children:[e("p",{className:"font-display text-center text-base font-semibold",children:pt}),e("p",{className:"font-text text-center text-sm",children:ft})]})});if(!t)return null;const m=Math.min(i/l*100,100),c=i.toLocaleString(),s=o.toLocaleString();return e("div",{className:"px-16 pt-16 in-data-[viewport=desktop]:px-24",children:a("div",{role:"region","aria-label":"Media migration",className:"bg-brand text-brand-foreground flex flex-col gap-12 rounded-16 p-16",children:[e("p",{className:"font-display text-center text-base font-semibold",children:dt}),e("p",{className:"font-text text-center text-sm",children:mt(s)}),e("div",{role:"progressbar","aria-label":"Migration progress","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":i,"aria-valuetext":"".concat(c," of ").concat(s," photos and videos migrated"),className:"relative h-8 w-full overflow-hidden rounded-full bg-white/30",children:e("div",{className:"absolute inset-y-0 left-0 rounded-full bg-white transition-[width] duration-300 ease-out motion-reduce:transition-none",style:{width:"".concat(m,"%")}})}),a("p",{className:"font-text text-center text-sm",children:[c," / ",s," photos/videos migrated"]})]})})}function br(){const t=Pe(),r=Ce(Ne),[o,i]=D(null),l=_e().pathname.startsWith("/subscription");return e(we,{children:e(Xe.Provider,{value:!l,children:e(Be,{children:e(Ke,{children:a("div",{"data-groupsy-root":!0,"data-viewport":r?"desktop":"mobile",className:W("text-foreground font-text relative flex h-screen flex-col overflow-hidden",t&&"bg-background"),children:[e(Ae,{}),e(et,{}),e(ht,{}),!l&&(r?e("div",{className:"relative px-24 pt-16",children:e(De,{})}):a("div",{className:"relative",children:[e(Ge,{onOpenNav:()=>i("nav"),onOpenAccount:()=>i("account")}
1),e(Ee,{open:o!==null,view:o!=null?o:"nav",onClose:()=>i(null)})]})),e("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:e(Se,{})}),e(rt,{}),e(ut,{})]})})})})})}export{br as AppLayout,br 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.