solid-panes 5.1.0-2 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/RDFXMLPane.d.ts.map +1 -1
- package/dist/RDFXMLPane2.cjs.js +1 -1
- package/dist/RDFXMLPane2.cjs.js.map +1 -1
- package/dist/RDFXMLPane2.esm.js +3 -3
- package/dist/RDFXMLPane2.esm.js.map +1 -1
- package/dist/components/editor-card/EditorCard.cjs.js +2 -2
- package/dist/components/editor-card/EditorCard.cjs.js.map +1 -1
- package/dist/components/editor-card/EditorCard.d.ts +2 -0
- package/dist/components/editor-card/EditorCard.d.ts.map +1 -1
- package/dist/components/editor-card/EditorCard.esm.js +68 -43
- package/dist/components/editor-card/EditorCard.esm.js.map +1 -1
- package/dist/components/editor-card/EditorCard.styles.cjs.js.map +1 -1
- package/dist/components/editor-card/EditorCard.styles.esm.js.map +1 -1
- package/dist/components/header/Header.cjs.js.map +1 -1
- package/dist/components/header/Header.esm.js.map +1 -1
- package/dist/components/header/Header.styles.cjs.js.map +1 -1
- package/dist/components/header/Header.styles.esm.js.map +1 -1
- package/dist/components/navbar/Navbar.cjs.js.map +1 -1
- package/dist/components/navbar/Navbar.esm.js.map +1 -1
- package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -1
- package/dist/components/navbar/Navbar.styles.esm.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.cjs.js +6 -6
- package/dist/components/profile-heading/ProfileHeading.cjs.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.d.ts +4 -0
- package/dist/components/profile-heading/ProfileHeading.d.ts.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.esm.js +123 -107
- package/dist/components/profile-heading/ProfileHeading.esm.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.styles.cjs.js +1 -1
- package/dist/components/profile-heading/ProfileHeading.styles.cjs.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.styles.esm.js +1 -1
- package/dist/components/profile-heading/ProfileHeading.styles.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js +19 -19
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js +86 -86
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/imageHelpers.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/imagePreview.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js +1 -1
- package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js +61 -61
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/rowState.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/textUtils.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/textUtils.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/texts/dialogTexts.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/texts/messageTexts.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/texts/messageTexts.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/ui/dialog2.cjs.js +1 -1
- package/dist/components/profile-heading/editor/ui/dialog2.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/ui/dialog2.esm.js +1 -1
- package/dist/components/profile-heading/editor/ui/dialog2.esm.js.map +1 -1
- package/dist/components/profile-heading/friendActions.cjs.js +1 -1
- package/dist/components/profile-heading/friendActions.cjs.js.map +1 -1
- package/dist/components/profile-heading/friendActions.esm.js +5 -5
- package/dist/components/profile-heading/profileHeadingData.cjs.js.map +1 -1
- package/dist/components/resource-action-dialog/ResourceActionDialog.cjs.js +33 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.cjs.js.map +1 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.d.ts +16 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.d.ts.map +1 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.esm.js +309 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.esm.js.map +1 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.styles.cjs.js +2 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.styles.cjs.js.map +1 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.styles.esm.js +6 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.styles.esm.js.map +1 -0
- package/dist/dataContentPane.d.ts.map +1 -1
- package/dist/dataContentPane2.cjs.js +1 -1
- package/dist/dataContentPane2.cjs.js.map +1 -1
- package/dist/dataContentPane2.esm.js +90 -78
- package/dist/dataContentPane2.esm.js.map +1 -1
- package/dist/humanReadablePane.d.ts +1 -0
- package/dist/humanReadablePane.d.ts.map +1 -1
- package/dist/humanReadablePane2.cjs.js +147 -15
- package/dist/humanReadablePane2.cjs.js.map +1 -1
- package/dist/humanReadablePane2.esm.js +281 -114
- package/dist/humanReadablePane2.esm.js.map +1 -1
- package/dist/imagePane.d.ts.map +1 -1
- package/dist/imagePane2.cjs.js +1 -1
- package/dist/imagePane2.cjs.js.map +1 -1
- package/dist/imagePane2.esm.js +9 -7
- package/dist/imagePane2.esm.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +16 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/internal/internalPane.d.ts.map +1 -1
- package/dist/internal/internalPane2.cjs.js +1 -1
- package/dist/internal/internalPane2.cjs.js.map +1 -1
- package/dist/internal/internalPane2.esm.js +55 -60
- package/dist/internal/internalPane2.esm.js.map +1 -1
- package/dist/mainPage/header.cjs.js +1 -1
- package/dist/mainPage/header.esm.js +2 -2
- package/dist/mainPage/index.cjs.js +1 -1
- package/dist/mainPage/index.cjs.js.map +1 -1
- package/dist/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.esm.js +44 -24
- package/dist/mainPage/index.esm.js.map +1 -1
- package/dist/mainPage/navbar.cjs.js +1 -1
- package/dist/mainPage/navbar.cjs.js.map +1 -1
- package/dist/mainPage/navbar.esm.js +15 -15
- package/dist/mainPage/navigation.cjs.js +1 -1
- package/dist/mainPage/navigation.cjs.js.map +1 -1
- package/dist/mainPage/navigation.esm.js +4 -4
- package/dist/mainPage/profileHeading.d.ts +2 -1
- package/dist/mainPage/profileHeading.d.ts.map +1 -1
- package/dist/mainPage/profileHeading2.cjs.js +1 -1
- package/dist/mainPage/profileHeading2.cjs.js.map +1 -1
- package/dist/mainPage/profileHeading2.esm.js +76 -76
- package/dist/mainPage/profileHeading2.esm.js.map +1 -1
- package/dist/n3Pane.d.ts.map +1 -1
- package/dist/n3Pane2.cjs.js +1 -1
- package/dist/n3Pane2.cjs.js.map +1 -1
- package/dist/n3Pane2.esm.js +1 -1
- package/dist/n3Pane2.esm.js.map +1 -1
- package/dist/navigation/browserEvents.cjs.js +1 -1
- package/dist/navigation/browserEvents.cjs.js.map +1 -1
- package/dist/navigation/browserEvents.d.ts.map +1 -1
- package/dist/navigation/browserEvents.esm.js +17 -17
- package/dist/navigation/browserEvents.esm.js.map +1 -1
- package/dist/navigation/chrome.cjs.js +1 -1
- package/dist/navigation/chrome.cjs.js.map +1 -1
- package/dist/navigation/chrome.d.ts +20 -2
- package/dist/navigation/chrome.d.ts.map +1 -1
- package/dist/navigation/chrome.esm.js +14 -8
- package/dist/navigation/chrome.esm.js.map +1 -1
- package/dist/navigation/controller.cjs.js +1 -1
- package/dist/navigation/controller.cjs.js.map +1 -1
- package/dist/navigation/controller.d.ts +3 -0
- package/dist/navigation/controller.d.ts.map +1 -1
- package/dist/navigation/controller.esm.js +50 -29
- package/dist/navigation/controller.esm.js.map +1 -1
- package/dist/navigation/options.cjs.js +1 -1
- package/dist/navigation/options.cjs.js.map +1 -1
- package/dist/navigation/options.d.ts +12 -0
- package/dist/navigation/options.d.ts.map +1 -1
- package/dist/navigation/options.esm.js +4 -1
- package/dist/navigation/options.esm.js.map +1 -1
- package/dist/navigation/podContext.cjs.js +1 -1
- package/dist/navigation/podContext.cjs.js.map +1 -1
- package/dist/navigation/podContext.d.ts.map +1 -1
- package/dist/navigation/podContext.esm.js +17 -17
- package/dist/navigation/podContext.esm.js.map +1 -1
- package/dist/navigation/state.cjs.js +1 -1
- package/dist/navigation/state.cjs.js.map +1 -1
- package/dist/navigation/state.d.ts +4 -0
- package/dist/navigation/state.d.ts.map +1 -1
- package/dist/navigation/state.esm.js +18 -5
- package/dist/navigation/state.esm.js.map +1 -1
- package/dist/outline/fileExplorerHelpers.cjs.js +1 -1
- package/dist/outline/fileExplorerHelpers.cjs.js.map +1 -1
- package/dist/outline/fileExplorerHelpers.d.ts +2 -5
- package/dist/outline/fileExplorerHelpers.d.ts.map +1 -1
- package/dist/outline/fileExplorerHelpers.esm.js +11 -13
- package/dist/outline/fileExplorerHelpers.esm.js.map +1 -1
- package/dist/outline/manager2.cjs.js +1 -1
- package/dist/outline/manager2.cjs.js.map +1 -1
- package/dist/outline/manager2.esm.js +355 -296
- package/dist/outline/manager2.esm.js.map +1 -1
- package/dist/registerPanes.cjs.js +1 -1
- package/dist/registerPanes.cjs.js.map +1 -1
- package/dist/registerPanes.esm.js +1 -1
- package/dist/registerPanes.esm.js.map +1 -1
- package/dist/slideshow/slideshowPane.cjs.js +1 -1
- package/dist/slideshow/slideshowPane.cjs.js.map +1 -1
- package/dist/slideshow/slideshowPane.esm.js +30 -30
- package/dist/slideshow/slideshowPane.esm.js.map +1 -1
- package/dist/social/socialPane2.cjs.js +1 -1
- package/dist/social/socialPane2.esm.js +1 -1
- package/dist/social/socialSections.cjs.js +1 -1
- package/dist/social/socialSections.esm.js +1 -1
- package/dist/utils/paneUtils.cjs.js +1 -1
- package/dist/utils/paneUtils.cjs.js.map +1 -1
- package/dist/utils/paneUtils.esm.js +15 -15
- package/dist/versionInfo.cjs.js +1 -1
- package/dist/versionInfo.cjs.js.map +1 -1
- package/dist/versionInfo.esm.js +9 -9
- package/dist/versionInfo.esm.js.map +1 -1
- package/package.json +11 -12
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=require("lit").css`:host{--profile-avatar-size:8.75rem;--profile-fallback-padding:36.4px;width:100%;color:var(--color-text-secondary,#4a5565);font-family:inherit;display:block}.profile-heading{box-sizing:border-box;background:var(--solid-ui-color-white,#fff);border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);border-radius:5px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"avatar info edit\"\"avatar details details\";align-items:start;gap:20px;width:100%;padding:25px;transition:box-shadow .2s,transform .2s,padding .3s,row-gap .3s;display:grid;overflow-x:clip}.profile-heading:hover{box-shadow:0 8px 10px #7c4dff1a}.avatar{grid-area:avatar}.image-frame{width:var(--profile-avatar-size);aspect-ratio:1;place-items:center;transition:width .3s;display:grid;position:relative;overflow:hidden}.image-frame--fallback{border:1px dashed var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-slate-50,#f8fafc);box-sizing:border-box}.hero{border:1px solid var(--solid-ui-color-primary,#7c4dff);background:var(--color-surface-placeholder,var(--gray-300,#d1d5dc)) 50% / cover no-repeat;object-fit:cover;object-position:center;box-sizing:border-box;border-radius:10px;width:100%;height:100%;position:absolute;inset:0}.hero-fallback{width:100%;height:100%;padding:0 var(--profile-fallback-padding);box-sizing:border-box;justify-content:center;align-items:center;transition:padding .3s;display:none}.hero-fallback icon-lucide-circle-user-round{color:#cbd5e1;width:100%;height:100%;display:block}.image-frame--fallback .hero-fallback{display:flex}.info{grid-area:info;min-width:0}.profile__heading-edit-action{grid-area:edit;justify-content:flex-end;place-self:flex-start end;align-items:flex-start;gap:8px;margin-bottom:0;margin-left:auto;margin-right:0;padding:0;display:flex}.profile-friends-button__section{gap:8px;max-width:16rem;display:grid}.profile__btn-friends-icon{align-self:center;width:14px;height:14px;display:block;transform:translateY(-3px)}.friend-message{text-align:center;font-size:var(--solid-ui-font-size-sm,.875rem);overflow-wrap:anywhere}.friend-message[role=alert]{color:var(--solid-ui-color-red-700,#b91c1c)}.friend-message[role=status]{color:var(--solid-ui-color-green-700,#15803d)}.profile-section-collapsible__edit-button{min-width:0}.mobile-edit-button{color:var(--solid-ui-color-primary,#7c4dff);display:none}.profile-section-collapsible__action-label{font-size:var(--solid-ui-font-size-sm,.875rem)}.profile__add-more-icon{margin-right:0;line-height:0;position:relative;top:0;transform:translateY(0)}.profile__add-more-icon icon-lucide-pencil,.profile-section-collapsible__edit-icon icon-lucide-pencil{width:14px;height:14px;display:block}.header-bar{flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:0;padding:0;display:flex}.identity{flex-wrap:wrap;align-items:baseline;gap:7px;width:100%;display:flex}.name{color:var(--color-text-heading,#000);overflow-wrap:anywhere;margin:0;font-size:1.75rem;font-weight:600;line-height:1.2;display:block}.pronouns{color:var(--color-text-secondary,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400;line-height:1.2}.role{width:100%;color:var(--solid-ui-color-gray-800,#101828);font-size:var(--solid-ui-font-size-lg,1.125rem);overflow-wrap:anywhere;font-weight:500;line-height:1.25}.details-collapse{grid-area:details;grid-template-rows:1fr;transition:grid-template-rows .3s,opacity .3s;display:grid}.details{width:100%;min-width:0;min-height:0;font-size:var(--font-size-sm,.875rem);flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:12px 32px;display:flex;overflow:hidden}:host([compact]) .profile-heading{row-gap:0;padding:12.5px}:host([compact]) .image-frame{width:calc(var(--profile-avatar-size) / 2)}:host([compact]) .hero-fallback{padding-inline:calc(var(--profile-fallback-padding) / 2)}:host([compact]) .info{align-self:center}:host([compact]) .name{white-space:normal;overflow-wrap:anywhere}:host([compact]) .details-collapse{opacity:0;visibility:hidden;grid-template-rows:0fr}.pronouns[hidden]{display:none}.detail-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px clamp(12px,2vw,24px);width:min(100%,544px);display:grid}.detail-item{align-items:flex-start;gap:7px;min-width:0;display:flex}.detail-icon{flex:0 0 16px;width:16px;height:16px;margin-top:1px;display:inline-flex}.detail-icon>icon-lucide-cake,.detail-icon>icon-lucide-map-pin,.detail-icon>icon-lucide-phone,.detail-icon>icon-lucide-mail{color:currentColor;width:16px;height:16px;display:block}.detail-value{overflow-wrap:anywhere;word-break:break-word;min-width:0}@media (width<=1200px){:host{--profile-avatar-size:6.5rem;--profile-fallback-padding:27px}.profile-heading{column-gap:15px}}@media (width<=768px){.profile-heading:has(.profile-friends-button__section) .name{white-space:normal;overflow-wrap:anywhere}.profile__btn-friends-icon,.profile__btn-friends[disabled]:not([aria-busy=true]){display:none}:host{--profile-avatar-size:4.375rem;--profile-fallback-padding:0px}.profile-heading{grid-template-areas:\"avatar info edit\"\"details details details\";gap:12px 8px}.profile-section-collapsible__edit-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px)}.desktop-edit-button{display:none}.mobile-edit-button{display:inline-flex;position:relative;top:-12px;right:-12px}.profile-section-collapsible__edit-icon{justify-content:center;align-items:center;line-height:0;display:inline-flex}.profile-heading{column-gap:10px}.hero-fallback icon-lucide-circle-user-round{width:3rem;height:3rem;transition:width .3s,height .3s}:host([compact]) .hero-fallback icon-lucide-circle-user-round{width:1.5rem;height:1.5rem}.name{white-space:normal;overflow-wrap:anywhere;font-size:1.375rem;line-height:1.15;display:inline}.identity{gap:0}.pronouns{white-space:nowrap;margin-left:2px;font-size:.6875rem;line-height:1.1}.role{font-size:var(--solid-ui-font-size-sm,.875rem)}.details{gap:12px;font-size:.75rem}.detail-row{column-gap:2px}}@media (prefers-reduced-motion:reduce){.profile-heading,.image-frame,.hero-fallback,.hero-fallback icon-lucide-circle-user-round,.details-collapse{transition:none}}`;exports.default=e;
|
|
1
|
+
var e=require("lit").css`:host{--profile-avatar-size:8.75rem;--profile-fallback-padding:36.4px;width:100%;color:var(--color-text-secondary,#4a5565);font-family:inherit;display:block}.profile-heading{box-sizing:border-box;background:var(--solid-ui-color-white,#fff);border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);border-radius:5px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"avatar info edit\"\"avatar details details\";align-items:start;gap:20px;width:100%;padding:25px;transition:box-shadow .2s,transform .2s,padding .3s,row-gap .3s;display:grid;overflow-x:clip}.profile-heading:hover{box-shadow:0 8px 10px #7c4dff1a}.avatar{grid-area:avatar}.image-frame{width:var(--profile-avatar-size);aspect-ratio:1;place-items:center;transition:width .3s;display:grid;position:relative;overflow:hidden}.image-frame--fallback{border:1px dashed var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-slate-50,#f8fafc);box-sizing:border-box}.hero{border:1px solid var(--solid-ui-color-primary,#7c4dff);background:var(--color-surface-placeholder,var(--gray-300,#d1d5dc)) 50% / cover no-repeat;object-fit:cover;object-position:center;box-sizing:border-box;border-radius:10px;width:100%;height:100%;position:absolute;inset:0}.hero-fallback{width:100%;height:100%;padding:0 var(--profile-fallback-padding);box-sizing:border-box;justify-content:center;align-items:center;transition:padding .3s;display:none}.hero-fallback icon-lucide-circle-user-round{color:#cbd5e1;width:100%;height:100%;display:block}.image-frame--fallback .hero-fallback{display:flex}.info{grid-area:info;min-width:0}.profile__heading-edit-action{grid-area:edit;justify-content:flex-end;place-self:flex-start end;align-items:flex-start;gap:8px;margin-bottom:0;margin-left:auto;margin-right:0;padding:0;display:flex}.profile-friends-button__section{gap:8px;max-width:16rem;display:grid}.profile__btn-friends-icon{align-self:center;width:14px;height:14px;display:block;transform:translateY(-3px)}.friend-message{text-align:center;font-size:var(--solid-ui-font-size-sm,.875rem);overflow-wrap:anywhere}.friend-message[role=alert]{color:var(--solid-ui-color-red-700,#b91c1c)}.friend-message[role=status]{color:var(--solid-ui-color-green-700,#15803d)}.profile-section-collapsible__edit-button{min-width:0}.mobile-edit-button{color:var(--solid-ui-color-primary,#7c4dff);display:none}.profile-section-collapsible__action-label{font-size:var(--solid-ui-font-size-sm,.875rem)}.profile__add-more-icon{margin-right:0;line-height:0;position:relative;top:0;transform:translateY(0)}.profile__add-more-icon icon-lucide-pencil,.profile-section-collapsible__edit-icon icon-lucide-pencil{width:14px;height:14px;display:block}.header-bar{flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:0;padding:0;display:flex}.identity{flex-wrap:wrap;align-items:baseline;gap:7px;width:100%;display:flex}.name{color:var(--color-text-heading,#000);overflow-wrap:anywhere;margin:0;font-size:1.75rem;font-weight:600;line-height:1.2;display:block}.pronouns{color:var(--color-text-secondary,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400;line-height:1.2}.role{width:100%;color:var(--solid-ui-color-gray-800,#101828);font-size:var(--solid-ui-font-size-lg,1.125rem);overflow-wrap:anywhere;font-weight:500;line-height:1.25}.details-collapse{grid-area:details;grid-template-rows:1fr;transition:grid-template-rows .3s,opacity .3s;display:grid}.details{width:100%;min-width:0;min-height:0;font-size:var(--font-size-sm,.875rem);flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:12px 32px;display:flex;overflow:hidden}:host([compact]) .profile-heading{row-gap:0;padding:12.5px}:host([compact]) .image-frame{width:calc(var(--profile-avatar-size) / 2)}:host([compact]) .hero-fallback{padding-inline:calc(var(--profile-fallback-padding) / 2)}:host([compact]) .info,:host([compact]) .profile__heading-edit-action{align-self:center}:host([compact]) .name{white-space:normal;overflow-wrap:anywhere}:host([compact]) .details-collapse{opacity:0;visibility:hidden;grid-template-rows:0fr}.pronouns[hidden]{display:none}.detail-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px clamp(12px,2vw,24px);width:min(100%,544px);display:grid}.detail-item{align-items:flex-start;gap:7px;min-width:0;display:flex}.detail-icon{flex:0 0 16px;width:16px;height:16px;margin-top:1px;display:inline-flex}.detail-icon>icon-lucide-cake,.detail-icon>icon-lucide-map-pin,.detail-icon>icon-lucide-phone,.detail-icon>icon-lucide-mail{color:currentColor;width:16px;height:16px;display:block}.detail-value{overflow-wrap:anywhere;word-break:break-word;min-width:0}@media (width<=1200px){:host{--profile-avatar-size:6.5rem;--profile-fallback-padding:27px}.profile-heading{column-gap:15px}}@media (width<=768px){.profile-heading:has(.profile-friends-button__section) .name{white-space:normal;overflow-wrap:anywhere}.profile__btn-friends-icon,.profile__btn-friends[disabled]:not([aria-busy=true]){display:none}:host{--profile-avatar-size:4.375rem;--profile-fallback-padding:0px}.profile-heading{grid-template-areas:\"avatar info edit\"\"details details details\";gap:12px 8px}.profile-section-collapsible__edit-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px)}.desktop-edit-button{display:none}.mobile-edit-button{display:inline-flex;position:relative;top:-12px;right:-12px}.profile-section-collapsible__edit-icon{justify-content:center;align-items:center;line-height:0;display:inline-flex}.profile-heading{column-gap:10px}.hero-fallback icon-lucide-circle-user-round{width:3rem;height:3rem;transition:width .3s,height .3s}:host([compact]) .hero-fallback icon-lucide-circle-user-round{width:1.5rem;height:1.5rem}.name{white-space:normal;overflow-wrap:anywhere;font-size:1.375rem;line-height:1.15;display:inline}.identity{gap:0}.pronouns{white-space:nowrap;margin-left:2px;font-size:.6875rem;line-height:1.1}.role{font-size:var(--solid-ui-font-size-sm,.875rem)}.details{gap:12px;font-size:.75rem}.detail-row{column-gap:2px}}@media (prefers-reduced-motion:reduce){.profile-heading,.image-frame,.hero-fallback,.hero-fallback icon-lucide-circle-user-round,.details-collapse{transition:none}}`;exports.default=e;
|
|
2
2
|
//# sourceMappingURL=ProfileHeading.styles.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileHeading.styles.cjs.js","names":["ProfileHeading_styles_default"],"sources":[
|
|
1
|
+
{"version":3,"file":"ProfileHeading.styles.cjs.js","names":["ProfileHeading_styles_default"],"sources":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
2
2
|
// src/components/profile-heading/ProfileHeading.styles.css
|
|
3
|
-
var t = e`:host{--profile-avatar-size:8.75rem;--profile-fallback-padding:36.4px;width:100%;color:var(--color-text-secondary,#4a5565);font-family:inherit;display:block}.profile-heading{box-sizing:border-box;background:var(--solid-ui-color-white,#fff);border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);border-radius:5px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"avatar info edit\"\"avatar details details\";align-items:start;gap:20px;width:100%;padding:25px;transition:box-shadow .2s,transform .2s,padding .3s,row-gap .3s;display:grid;overflow-x:clip}.profile-heading:hover{box-shadow:0 8px 10px #7c4dff1a}.avatar{grid-area:avatar}.image-frame{width:var(--profile-avatar-size);aspect-ratio:1;place-items:center;transition:width .3s;display:grid;position:relative;overflow:hidden}.image-frame--fallback{border:1px dashed var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-slate-50,#f8fafc);box-sizing:border-box}.hero{border:1px solid var(--solid-ui-color-primary,#7c4dff);background:var(--color-surface-placeholder,var(--gray-300,#d1d5dc)) 50% / cover no-repeat;object-fit:cover;object-position:center;box-sizing:border-box;border-radius:10px;width:100%;height:100%;position:absolute;inset:0}.hero-fallback{width:100%;height:100%;padding:0 var(--profile-fallback-padding);box-sizing:border-box;justify-content:center;align-items:center;transition:padding .3s;display:none}.hero-fallback icon-lucide-circle-user-round{color:#cbd5e1;width:100%;height:100%;display:block}.image-frame--fallback .hero-fallback{display:flex}.info{grid-area:info;min-width:0}.profile__heading-edit-action{grid-area:edit;justify-content:flex-end;place-self:flex-start end;align-items:flex-start;gap:8px;margin-bottom:0;margin-left:auto;margin-right:0;padding:0;display:flex}.profile-friends-button__section{gap:8px;max-width:16rem;display:grid}.profile__btn-friends-icon{align-self:center;width:14px;height:14px;display:block;transform:translateY(-3px)}.friend-message{text-align:center;font-size:var(--solid-ui-font-size-sm,.875rem);overflow-wrap:anywhere}.friend-message[role=alert]{color:var(--solid-ui-color-red-700,#b91c1c)}.friend-message[role=status]{color:var(--solid-ui-color-green-700,#15803d)}.profile-section-collapsible__edit-button{min-width:0}.mobile-edit-button{color:var(--solid-ui-color-primary,#7c4dff);display:none}.profile-section-collapsible__action-label{font-size:var(--solid-ui-font-size-sm,.875rem)}.profile__add-more-icon{margin-right:0;line-height:0;position:relative;top:0;transform:translateY(0)}.profile__add-more-icon icon-lucide-pencil,.profile-section-collapsible__edit-icon icon-lucide-pencil{width:14px;height:14px;display:block}.header-bar{flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:0;padding:0;display:flex}.identity{flex-wrap:wrap;align-items:baseline;gap:7px;width:100%;display:flex}.name{color:var(--color-text-heading,#000);overflow-wrap:anywhere;margin:0;font-size:1.75rem;font-weight:600;line-height:1.2;display:block}.pronouns{color:var(--color-text-secondary,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400;line-height:1.2}.role{width:100%;color:var(--solid-ui-color-gray-800,#101828);font-size:var(--solid-ui-font-size-lg,1.125rem);overflow-wrap:anywhere;font-weight:500;line-height:1.25}.details-collapse{grid-area:details;grid-template-rows:1fr;transition:grid-template-rows .3s,opacity .3s;display:grid}.details{width:100%;min-width:0;min-height:0;font-size:var(--font-size-sm,.875rem);flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:12px 32px;display:flex;overflow:hidden}:host([compact]) .profile-heading{row-gap:0;padding:12.5px}:host([compact]) .image-frame{width:calc(var(--profile-avatar-size) / 2)}:host([compact]) .hero-fallback{padding-inline:calc(var(--profile-fallback-padding) / 2)}:host([compact]) .info{align-self:center}:host([compact]) .name{white-space:normal;overflow-wrap:anywhere}:host([compact]) .details-collapse{opacity:0;visibility:hidden;grid-template-rows:0fr}.pronouns[hidden]{display:none}.detail-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px clamp(12px,2vw,24px);width:min(100%,544px);display:grid}.detail-item{align-items:flex-start;gap:7px;min-width:0;display:flex}.detail-icon{flex:0 0 16px;width:16px;height:16px;margin-top:1px;display:inline-flex}.detail-icon>icon-lucide-cake,.detail-icon>icon-lucide-map-pin,.detail-icon>icon-lucide-phone,.detail-icon>icon-lucide-mail{color:currentColor;width:16px;height:16px;display:block}.detail-value{overflow-wrap:anywhere;word-break:break-word;min-width:0}@media (width<=1200px){:host{--profile-avatar-size:6.5rem;--profile-fallback-padding:27px}.profile-heading{column-gap:15px}}@media (width<=768px){.profile-heading:has(.profile-friends-button__section) .name{white-space:normal;overflow-wrap:anywhere}.profile__btn-friends-icon,.profile__btn-friends[disabled]:not([aria-busy=true]){display:none}:host{--profile-avatar-size:4.375rem;--profile-fallback-padding:0px}.profile-heading{grid-template-areas:\"avatar info edit\"\"details details details\";gap:12px 8px}.profile-section-collapsible__edit-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px)}.desktop-edit-button{display:none}.mobile-edit-button{display:inline-flex;position:relative;top:-12px;right:-12px}.profile-section-collapsible__edit-icon{justify-content:center;align-items:center;line-height:0;display:inline-flex}.profile-heading{column-gap:10px}.hero-fallback icon-lucide-circle-user-round{width:3rem;height:3rem;transition:width .3s,height .3s}:host([compact]) .hero-fallback icon-lucide-circle-user-round{width:1.5rem;height:1.5rem}.name{white-space:normal;overflow-wrap:anywhere;font-size:1.375rem;line-height:1.15;display:inline}.identity{gap:0}.pronouns{white-space:nowrap;margin-left:2px;font-size:.6875rem;line-height:1.1}.role{font-size:var(--solid-ui-font-size-sm,.875rem)}.details{gap:12px;font-size:.75rem}.detail-row{column-gap:2px}}@media (prefers-reduced-motion:reduce){.profile-heading,.image-frame,.hero-fallback,.hero-fallback icon-lucide-circle-user-round,.details-collapse{transition:none}}`;
|
|
3
|
+
var t = e`:host{--profile-avatar-size:8.75rem;--profile-fallback-padding:36.4px;width:100%;color:var(--color-text-secondary,#4a5565);font-family:inherit;display:block}.profile-heading{box-sizing:border-box;background:var(--solid-ui-color-white,#fff);border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);border-radius:5px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:\"avatar info edit\"\"avatar details details\";align-items:start;gap:20px;width:100%;padding:25px;transition:box-shadow .2s,transform .2s,padding .3s,row-gap .3s;display:grid;overflow-x:clip}.profile-heading:hover{box-shadow:0 8px 10px #7c4dff1a}.avatar{grid-area:avatar}.image-frame{width:var(--profile-avatar-size);aspect-ratio:1;place-items:center;transition:width .3s;display:grid;position:relative;overflow:hidden}.image-frame--fallback{border:1px dashed var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-slate-50,#f8fafc);box-sizing:border-box}.hero{border:1px solid var(--solid-ui-color-primary,#7c4dff);background:var(--color-surface-placeholder,var(--gray-300,#d1d5dc)) 50% / cover no-repeat;object-fit:cover;object-position:center;box-sizing:border-box;border-radius:10px;width:100%;height:100%;position:absolute;inset:0}.hero-fallback{width:100%;height:100%;padding:0 var(--profile-fallback-padding);box-sizing:border-box;justify-content:center;align-items:center;transition:padding .3s;display:none}.hero-fallback icon-lucide-circle-user-round{color:#cbd5e1;width:100%;height:100%;display:block}.image-frame--fallback .hero-fallback{display:flex}.info{grid-area:info;min-width:0}.profile__heading-edit-action{grid-area:edit;justify-content:flex-end;place-self:flex-start end;align-items:flex-start;gap:8px;margin-bottom:0;margin-left:auto;margin-right:0;padding:0;display:flex}.profile-friends-button__section{gap:8px;max-width:16rem;display:grid}.profile__btn-friends-icon{align-self:center;width:14px;height:14px;display:block;transform:translateY(-3px)}.friend-message{text-align:center;font-size:var(--solid-ui-font-size-sm,.875rem);overflow-wrap:anywhere}.friend-message[role=alert]{color:var(--solid-ui-color-red-700,#b91c1c)}.friend-message[role=status]{color:var(--solid-ui-color-green-700,#15803d)}.profile-section-collapsible__edit-button{min-width:0}.mobile-edit-button{color:var(--solid-ui-color-primary,#7c4dff);display:none}.profile-section-collapsible__action-label{font-size:var(--solid-ui-font-size-sm,.875rem)}.profile__add-more-icon{margin-right:0;line-height:0;position:relative;top:0;transform:translateY(0)}.profile__add-more-icon icon-lucide-pencil,.profile-section-collapsible__edit-icon icon-lucide-pencil{width:14px;height:14px;display:block}.header-bar{flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:0;padding:0;display:flex}.identity{flex-wrap:wrap;align-items:baseline;gap:7px;width:100%;display:flex}.name{color:var(--color-text-heading,#000);overflow-wrap:anywhere;margin:0;font-size:1.75rem;font-weight:600;line-height:1.2;display:block}.pronouns{color:var(--color-text-secondary,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400;line-height:1.2}.role{width:100%;color:var(--solid-ui-color-gray-800,#101828);font-size:var(--solid-ui-font-size-lg,1.125rem);overflow-wrap:anywhere;font-weight:500;line-height:1.25}.details-collapse{grid-area:details;grid-template-rows:1fr;transition:grid-template-rows .3s,opacity .3s;display:grid}.details{width:100%;min-width:0;min-height:0;font-size:var(--font-size-sm,.875rem);flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:12px 32px;display:flex;overflow:hidden}:host([compact]) .profile-heading{row-gap:0;padding:12.5px}:host([compact]) .image-frame{width:calc(var(--profile-avatar-size) / 2)}:host([compact]) .hero-fallback{padding-inline:calc(var(--profile-fallback-padding) / 2)}:host([compact]) .info,:host([compact]) .profile__heading-edit-action{align-self:center}:host([compact]) .name{white-space:normal;overflow-wrap:anywhere}:host([compact]) .details-collapse{opacity:0;visibility:hidden;grid-template-rows:0fr}.pronouns[hidden]{display:none}.detail-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px clamp(12px,2vw,24px);width:min(100%,544px);display:grid}.detail-item{align-items:flex-start;gap:7px;min-width:0;display:flex}.detail-icon{flex:0 0 16px;width:16px;height:16px;margin-top:1px;display:inline-flex}.detail-icon>icon-lucide-cake,.detail-icon>icon-lucide-map-pin,.detail-icon>icon-lucide-phone,.detail-icon>icon-lucide-mail{color:currentColor;width:16px;height:16px;display:block}.detail-value{overflow-wrap:anywhere;word-break:break-word;min-width:0}@media (width<=1200px){:host{--profile-avatar-size:6.5rem;--profile-fallback-padding:27px}.profile-heading{column-gap:15px}}@media (width<=768px){.profile-heading:has(.profile-friends-button__section) .name{white-space:normal;overflow-wrap:anywhere}.profile__btn-friends-icon,.profile__btn-friends[disabled]:not([aria-busy=true]){display:none}:host{--profile-avatar-size:4.375rem;--profile-fallback-padding:0px}.profile-heading{grid-template-areas:\"avatar info edit\"\"details details details\";gap:12px 8px}.profile-section-collapsible__edit-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px)}.desktop-edit-button{display:none}.mobile-edit-button{display:inline-flex;position:relative;top:-12px;right:-12px}.profile-section-collapsible__edit-icon{justify-content:center;align-items:center;line-height:0;display:inline-flex}.profile-heading{column-gap:10px}.hero-fallback icon-lucide-circle-user-round{width:3rem;height:3rem;transition:width .3s,height .3s}:host([compact]) .hero-fallback icon-lucide-circle-user-round{width:1.5rem;height:1.5rem}.name{white-space:normal;overflow-wrap:anywhere;font-size:1.375rem;line-height:1.15;display:inline}.identity{gap:0}.pronouns{white-space:nowrap;margin-left:2px;font-size:.6875rem;line-height:1.1}.role{font-size:var(--solid-ui-font-size-sm,.875rem)}.details{gap:12px;font-size:.75rem}.detail-row{column-gap:2px}}@media (prefers-reduced-motion:reduce){.profile-heading,.image-frame,.hero-fallback,.hero-fallback icon-lucide-circle-user-round,.details-collapse{transition:none}}`;
|
|
4
4
|
export { t as default };
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=ProfileHeading.styles.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileHeading.styles.esm.js","names":["ProfileHeading_styles_default"],"sources":[
|
|
1
|
+
{"version":3,"file":"ProfileHeading.styles.esm.js","names":["ProfileHeading_styles_default"],"sources":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`html[data-layout=mobile] .profile-edit-dialog__row{flex-direction:column;align-items:stretch;max-width:100%}html[data-layout=mobile] .profile-edit-dialog__row--equal>.profile-edit-dialog__field,html[data-layout=mobile] .profile-edit-dialog__row--equal>.profile-edit-dialog__field-type,html[data-layout=mobile] .profile-edit-dialog__field-type{flex:auto}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__field--dob{align-self:stretch;width:100%;min-width:0;max-width:100%;overflow:hidden}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__row--heading-dob{flex-direction:column;align-items:stretch}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__row--heading-dob>.profile-edit-dialog__field,html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__row--heading-dob>.profile-edit-dialog__field-type{flex:auto;width:100%;min-width:0;max-width:100%}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob{height:var(--solid-ui-clickable-area,42px);min-height:var(--solid-ui-clickable-area,42px);max-height:var(--solid-ui-clickable-area,42px);box-sizing:border-box;width:100%;min-width:0;max-width:100%;line-height:var(--line-height-base,1.5);display:block}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-date-and-time-value{text-align:center;width:100%;min-width:0;max-width:100%;overflow:hidden}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-datetime-edit{text-align:center;width:100%;min-width:0;max-width:100%;overflow:hidden}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-datetime-edit-fields-wrapper{text-align:center;width:100%;min-width:0;max-width:100%;overflow:hidden}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-date-and-time-value{text-align:center;white-space:nowrap}@media (hover:none) and (pointer:coarse){html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob{height:var(--solid-ui-clickable-area,42px);min-height:var(--solid-ui-clickable-area,42px);max-height:var(--solid-ui-clickable-area,42px);line-height:calc(var(--solid-ui-clickable-area,42px) - 2px);width:calc(100% - 24px);max-width:calc(100% - 24px);padding-block:0}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-date-and-time-value{line-height:calc(var(--solid-ui-clickable-area,42px) - 2px)}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-datetime-edit{line-height:calc(var(--solid-ui-clickable-area,42px) - 2px)}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-datetime-edit-fields-wrapper{line-height:calc(var(--solid-ui-clickable-area,42px) - 2px)}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-calendar-picker-indicator{margin:0;padding:0}}html[data-layout=mobile] .profile__edit-form{--profile-edit-dialog-mobile-image-button-font-size:var(--solid-ui-font-size-md,1rem);--profile-edit-dialog-mobile-image-label-font-size:var(--solid-ui-font-size-sm,.875rem);--profile-edit-dialog-mobile-image-description-font-size:.625rem}html[data-layout=mobile] #profile-modal .modal label.profile-edit-dialog__field,html[data-layout=mobile] #profile-modal .modal label.profile-edit-dialog__field-type,html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog__field>.label,html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog__field-type>.label,html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog__field-description{font-size:var(--solid-ui-font-size-sm,.875rem);line-height:1.5}html[data-layout=mobile] .profile-edit-dialog__field input,html[data-layout=mobile] .profile-edit-dialog__field-type input{font-size:var(--solid-ui-font-size-md,1rem)}html[data-layout=mobile] .profile-edit-dialog__field-type--contact-point{flex:auto;width:100%;max-width:100%}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--contact-point{flex-direction:row;align-items:stretch}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--contact-point.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type.profile-edit-dialog__field-type--contact-point{flex:0 0 103px;width:103px;min-width:103px;max-width:103px}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo{flex-flow:row;align-items:center;gap:12px;width:100%;max-width:100%}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo>header{flex:none;margin-bottom:0}html[data-layout=mobile] .profile-edit-dialog--heading{--profile-edit-dialog-avatar-size:5rem}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__hero-alt{padding:0}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__image-frame--fallback .profile__hero-alt{justify-content:center;align-items:center;display:flex}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview{flex:auto;gap:5px;width:100%;min-width:0}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-label{font-size:var(--profile-edit-dialog-mobile-image-label-font-size);line-height:1.25}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-description{font-size:var(--profile-edit-dialog-mobile-image-description-font-size);line-height:1.4}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-actions{grid-template-columns:repeat(2,max-content);justify-content:start;align-items:stretch;gap:8px;width:100%;display:grid}@media (width<=576px){.profile-edit-dialog__row{flex-direction:column;align-items:stretch;max-width:100%}.profile__edit-form{--profile-edit-dialog-mobile-image-button-font-size:var(--solid-ui-font-size-md,1rem);--profile-edit-dialog-mobile-image-label-font-size:var(--solid-ui-font-size-sm,.875rem);--profile-edit-dialog-mobile-image-description-font-size:.625rem}.profile-edit-dialog__row--equal>.profile-edit-dialog__field,.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type,.profile-edit-dialog__field-type{flex:auto}.profile-edit-dialog__field input,.profile-edit-dialog__field-type input{font-size:var(--solid-ui-font-size-sm,.875rem)}.profile-edit-dialog__field-type--contact-point{flex:auto;width:100%;max-width:100%}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point{flex-direction:row;align-items:stretch}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type.profile-edit-dialog__field-type--contact-point{flex:0 0 103px;width:103px;min-width:103px;max-width:103px}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo{flex-flow:row;align-items:center;gap:12px;width:100%;max-width:100%}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo>header{flex:none;margin-bottom:0}.profile__edit-form.profile-edit-dialog--heading{--profile-edit-dialog-avatar-size:5rem}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__hero-alt{padding:0}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__image-frame--fallback .profile__hero-alt{justify-content:center;align-items:center;display:flex}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview{flex:auto;gap:5px;width:100%;min-width:0}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-label{font-size:var(--profile-edit-dialog-mobile-image-label-font-size);line-height:var(--line-height-tight,1.25)}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-description{font-size:var(--profile-edit-dialog-mobile-image-description-font-size);line-height:var(--line-height-base,1.4)}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-actions{grid-template-columns:repeat(2,max-content);justify-content:start;align-items:stretch;gap:8px;width:100%;display:grid}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-button{width:auto;min-width:0}}.profile__edit-form{--profile-edit-dialog-row-max-width:544px;--profile-edit-dialog-muted-text:var(--solid-ui-color-gray-600,#4a5565);--profile-edit-dialog-quiet-text:var(--solid-ui-color-gray-700,#364153);--profile-edit-dialog-mobile-image-button-font-size:.75rem;--profile-edit-dialog-mobile-image-label-font-size:var(--solid-ui-font-size-sm,.875rem);--profile-edit-dialog-mobile-image-description-font-size:.625rem;--profile-edit-dialog-mobile-image-button-padding:6.6px 12px 7px 14px;width:100%}.profile-edit-dialog__section,.profile-edit-dialog__section--education{flex-direction:column;gap:12px;display:flex}.profile-edit{flex-direction:column;gap:25px;display:flex}.profile-edit-dialog__section h4{margin:0}.profile-edit-dialog__section fieldset{width:100%;border:0;gap:15px;min-inline-size:0;margin:0;padding:0;display:grid}.profile-edit-dialog__field-description{color:var(--profile-edit-dialog-muted-text);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400;line-height:1.5}.profile-edit-dialog__row{max-width:var(--profile-edit-dialog-row-max-width);align-items:flex-start;gap:15px;display:flex}.profile-edit-dialog__row--heading-photo{gap:10px}.profile-edit-dialog__row--full{width:100%;max-width:100%}.profile-edit-dialog__field,.profile-edit-dialog__field-type{margin:0;display:block}.profile-edit-dialog__field-type{width:100%}.profile-edit-dialog__field{min-width:0}.profile-edit-dialog__field--stack{display:grid}.profile-edit-dialog__field--stack>small{text-align:right;justify-self:end;width:100%;display:block}.profile-edit-dialog__field--full{width:100%;max-width:100%!important}.profile-edit-dialog__field--row-width{width:100%;max-width:544px}.profile-edit-dialog__login-message{font-size:var(--solid-ui-font-size-xs,.75rem);color:var(--solid-ui-color-error,#b00020);margin:0}.profile-edit-dialog__section+.profile-edit-dialog__login-message,.profile__edit-form--projects .profile-edit-dialog__login-message{margin-top:15px}.profile-edit-dialog__actions{flex:none;justify-content:flex-end;align-items:center;display:flex}.profile-edit-dialog__actions--edge{margin-left:auto}.profile-edit-dialog__input-wrap{width:100%;position:relative}.profile-edit-dialog__input--with-action{box-sizing:border-box;width:100%;padding-right:120px}.profile-edit-dialog__image-preview{display:grid}.profile-edit-dialog__image-preview-header{margin-bottom:0}.profile-edit-dialog__image-preview-actions{align-items:center;gap:12px;display:flex}.profile-edit-dialog__image-preview-label{color:var(--gray-900,#101828);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:600}.profile-edit-dialog__image-preview-description{color:var(--solid-ui-color-gray-600,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400}.profile-edit-dialog__image-preview-label,.profile-edit-dialog__image-preview-description{margin:0}.profile-edit-dialog--heading{--profile-edit-dialog-avatar-size:5.625rem}.profile-edit-dialog__image-frame{width:var(--profile-edit-dialog-avatar-size,5.625rem);height:var(--profile-edit-dialog-avatar-size,5.625rem);vertical-align:top;font-size:0;line-height:0;display:inline-block;position:relative;overflow:visible}.profile-edit-dialog__image-frame>solid-ui-photo-capture{pointer-events:none;display:block;position:absolute;inset:0}.profile-edit-dialog__image-frame>solid-ui-photo-capture>*{pointer-events:auto}.profile__image-frame{width:var(--profile-edit-dialog-avatar-size,5.625rem);height:var(--profile-edit-dialog-avatar-size,5.625rem);border:1px solid var(--solid-ui-color-primary,#7c4dff);background:var(--solid-ui-color-slate-50,#f8fafc);box-sizing:border-box;border-radius:10px;margin:0;padding:0;display:block;position:relative;overflow:hidden}.profile__image-frame--fallback{border:1px dashed var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-slate-50,#f8fafc)}.profile__hero,.profile__hero-alt{box-sizing:border-box;border-radius:10px;width:100%;height:100%;display:block}.profile__hero{object-fit:cover;object-position:center;background:var(--color-surface-placeholder,var(--gray-300,#d1d5dc)) 50% / cover no-repeat}.profile__hero-alt{background:var(--solid-ui-color-slate-50,#f8fafc);justify-content:center;align-items:center;display:none}.profile__image-frame--fallback .profile__hero-alt{display:flex}.profile__hero-icon{box-sizing:border-box;justify-content:center;align-items:center;width:100%;height:100%;padding:1.125rem;display:flex}.profile__hero-icon icon-lucide-circle-user-round,.profile__hero-alt icon-lucide-circle-user-round{color:#d9e1f2;width:1.75rem;height:1.75rem;display:block}.profile-edit-dialog__image-camera-button{z-index:1;border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-white,#fff);width:1.75rem;min-width:1.75rem;height:1.75rem;min-height:1.75rem;color:var(--solid-ui-color-gray-700,#364153);cursor:pointer;box-sizing:border-box;border-radius:7px;justify-content:center;align-items:center;padding:0;line-height:0;transition:none;display:inline-flex;position:absolute;bottom:5px;right:5px;box-shadow:0 2px 6px #0f172a1f}.profile-edit-dialog__image-camera-button:hover,.profile-edit-dialog__image-camera-button:focus-visible,.profile-edit-dialog__image-camera-button:active{border-color:var(--solid-ui-color-slate-200,#e2e8f0);background:color-mix(in srgb, var(--solid-ui-color-primary,#7c4dff) 12%, #fff);width:1.75rem;min-width:1.75rem;height:1.75rem;min-height:1.75rem;color:var(--solid-ui-color-primary,#7c4dff);padding:0;transform:none;box-shadow:0 2px 6px #0f172a1f}.profile-edit-dialog__image-camera-button icon-lucide-camera{vertical-align:middle;flex-shrink:0;width:.875rem;height:.875rem;margin:.05rem;display:block}.profile-edit-dialog__image-camera-capture-row{justify-content:center;width:100%;display:flex}.profile-edit-dialog__image-camera-capture-frame{box-sizing:border-box;border:1px solid var(--solid-color-gray-200,#e5e7eb);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:fit-content;max-width:100%;margin:6px auto 12px;padding:10px;display:flex;position:relative}.profile-edit-dialog__image-camera-capture-frame[hidden]{display:none}.profile-edit-dialog__paste-button{white-space:nowrap;z-index:1;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.profile-edit-dialog__paste-icon{width:.875rem;height:.875rem;stroke:var(--solid-ui-color-primary,#7c4dff);fill:var(--solid-ui-color-primary,#7c4dff)}.profile-edit-dialog__paste-icon svg{display:block;transform:translate(1px,1px)}solid-ui-button.profile-edit-dialog__drag-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}solid-ui-button.profile-edit-dialog__drag-handle:active{cursor:grabbing}.profile-edit-dialog__row--drop-target{outline:1px dashed var(--solid-ui-color-gray-400,#99a1af);outline-offset:2px}.profile-edit-dialog__field input,.profile-edit-dialog__field select,.profile-edit-dialog__field-type input,.profile-edit-dialog__field-type select{box-sizing:border-box;width:100%;max-width:100%;min-height:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px);border:1px solid var(--solid-ui-color-gray-400,#99a1af);background:var(--solid-ui-color-white,#fff);color:var(--color-text-subheading,var(--gray-900,#101828));font-size:var(--solid-ui-font-size-sm,.875rem);border-radius:5px;margin-block-start:0;padding:10px;font-weight:500}.profile-edit-dialog__field input[type=date],.profile-edit-dialog__field-type input[type=date]{min-width:0}.profile-edit-dialog__field textarea,.profile-edit-dialog__field-type textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:var(--solid-ui-clickable-area,42px)}.profile-edit-dialog__textarea{color:var(--color-text-subheading,var(--gray-900,#101828));font-size:var(--solid-ui-font-size-sm,.875rem);border:1px solid var(--solid-ui-color-gray-400,#99a1af);background:var(--solid-ui-color-white,#fff);resize:vertical;border-radius:5px;height:auto;font-weight:500;line-height:1.6;min-height:160px!important}.profile__edit-form--heading{flex-direction:column;gap:12px;display:flex}.profile-edit-dialog__bio-field-container{width:100%;max-width:var(--profile-edit-dialog-row-max-width);box-sizing:border-box;flex-direction:column;align-items:flex-start;gap:12px;margin:0;padding:0;display:flex}.profile-edit-dialog__row--language{margin-left:0}.profile-edit-dialog__row--language>.profile-edit-dialog__field--language-name{flex:1 1 0;min-width:0}.profile-edit-dialog__field-type--language-proficiency,.profile-edit-dialog__field-type--language-proficiency[hidden]{display:none!important}.profile-edit-dialog__actions--language{margin-left:0}.profile-edit-dialog__row--social{width:100%;max-width:100%;margin-left:-10px}.profile-edit-dialog__field--social-type{flex:0 0 96px;width:96px;max-width:96px}.profile-edit-dialog__field--social-url{flex:auto;min-width:0}.profile-edit-dialog__row--project{width:100%;max-width:100%}.profile-edit-dialog__row--resume-entry-header{border-bottom:1px solid var(--solid-ui-color-gray-400,#99a1af);align-items:center}.profile-edit-dialog__row--resume-entry-header>.profile-edit-dialog__entry-heading{margin:0}.profile-edit-dialog__entry-heading{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-sm,.875rem);margin:0;font-weight:500}.profile-edit-dialog__section--education .profile-edit-dialog__section-heading{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-md,1rem);margin:0;font-weight:500}.profile-edit-dialog__row--equal>.profile-edit-dialog__field,.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type{flex:1 1 0;min-width:0}.profile-edit-dialog--heading .profile-edit-dialog__image-camera-capture-row{margin-bottom:-12.5px}.profile-edit-dialog--heading .profile-edit-dialog__image-camera-capture-row:has(>[hidden]){display:none}.profile-edit-dialog--heading .profile-edit-dialog__image-camera-capture-frame{margin-top:3px;margin-bottom:6px}.profile__edit-form--resume .profile-edit-dialog__field,.profile__edit-form--resume .profile-edit-dialog__field-type:not(.hidden),.profile__edit-form--contact-info .profile-edit-dialog__field,.profile__edit-form--contact-info .profile-edit-dialog__field-type:not(.hidden){flex-direction:column;flex:1 0 0;align-items:flex-start;gap:5px;display:flex}.profile__edit-form--resume .profile-edit-dialog__row{width:100%;max-width:100%}.profile__edit-form--resume .profile-edit-dialog__section fieldset>.profile-edit-dialog__field{max-width:100%}.profile__edit-form--resume .profile-edit-dialog__field>input,.profile__edit-form--resume .profile-edit-dialog__field>solid-ui-select,.profile__edit-form--resume .profile-edit-dialog__field>solid-ui-combobox,.profile__edit-form--resume .profile-edit-dialog__field>textarea,.profile__edit-form--resume .profile-edit-dialog__field-type>input,.profile__edit-form--resume .profile-edit-dialog__field-type>solid-ui-select,.profile__edit-form--resume .profile-edit-dialog__field-type>textarea,.profile__edit-form--contact-info .profile-edit-dialog__field>input,.profile__edit-form--contact-info .profile-edit-dialog__field>solid-ui-select,.profile__edit-form--contact-info .profile-edit-dialog__field>textarea,.profile__edit-form--contact-info .profile-edit-dialog__field-type>input,.profile__edit-form--contact-info .profile-edit-dialog__field-type>solid-ui-select,.profile__edit-form--contact-info .profile-edit-dialog__field-type>textarea{align-self:stretch}.profile-edit-dialog__field>solid-ui-combobox,.profile-edit-dialog__field-type>solid-ui-combobox{box-sizing:border-box;align-self:stretch;width:100%;min-width:0;max-width:100%;display:block}.profile__edit-form solid-ui-combobox{background:var(--solid-ui-color-white,#fff);color:var(--color-text-subheading,var(--gray-900,#101828));font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:500;line-height:calc(var(--solid-ui-clickable-area,42px) - 22px);border-radius:5px}.profile-edit-dialog__field--resume-location{flex:1 0 0;width:auto;max-width:none}.profile-edit-dialog__row--resume-dates{width:100%;max-width:100%}.profile-edit-dialog__field--date-group{flex:1 1 0;min-width:0}.profile-edit-dialog__date-pair{align-items:center;gap:15px;width:100%;display:flex}.profile-edit-dialog__date-pair>solid-ui-select{flex:1 1 0;min-width:0}.profile-edit-dialog__resume-date-select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:block}.profile-edit-dialog__resume-date-select--disabled{pointer-events:none;opacity:var(--opacity-input-disabled,.75)}.profile-edit-dialog__bio-field-container>small{text-align:right;align-self:flex-end}.profile-edit-dialog--heading .profile-edit-dialog__row,.profile-edit-dialog--heading .profile-edit-dialog__field--row-width{width:100%;max-width:100%}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo{border-bottom:1px solid var(--solid-ui-color-slate-200,#e2e8f0);padding-bottom:20px}.profile-edit-dialog--heading .profile-edit{gap:12.5px}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__hero-alt{padding:0}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point{gap:10px;width:100%;max-width:100%}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point>.profile-edit-dialog__field{flex:1 1 0;min-width:0}.profile-edit-dialog--heading .profile-edit-dialog__field-type--contact-point{padding-top:calc(var(--solid-ui-font-size-sm,.875rem) * 1.5)}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point>.profile-edit-dialog__field>.label{width:100%;display:block}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type.profile-edit-dialog__field-type--contact-point{flex:0 0 103px;width:103px;min-width:103px;max-width:103px}.profile-edit-dialog__row--address-header{max-width:var(--profile-edit-dialog-row-max-width);align-items:flex-end}.profile-edit-dialog__row--inline-end{justify-content:flex-end;max-width:100%}.profile-edit-dialog__checkbox-label{cursor:var(--profile-interactive-cursor,pointer);align-items:center;gap:12px;margin-left:auto;display:inline-flex}.profile-edit-dialog__checkbox-input{width:var(--icon-xxs,1rem);height:var(--icon-xxs,1rem);accent-color:var(--solid-ui-color-primary,#7c4dff);cursor:var(--profile-interactive-cursor,pointer);flex:none;margin:0}.profile-edit-dialog__checkbox-input:focus-visible{outline:var(--focus-indicator-width,2px) solid var(--solid-ui-color-primary,#7c4dff);outline-offset:2px}.profile-edit-dialog__checkbox-input:disabled{opacity:var(--opacity-disabled,.5)}.profile-edit-dialog__section fieldset>.profile-edit-dialog__field{max-width:var(--profile-edit-dialog-row-max-width)}.profile-edit-dialog__field-type--wide{flex:auto;width:100%;min-width:0;max-width:100%}.profile-edit-dialog__field-type--contact-point{flex:none;align-self:flex-start;width:auto;max-width:none}.profile-edit-dialog__social-account-select{box-sizing:border-box;contain:inline-size;width:100%;min-width:0;max-width:100%;display:block}.profile-edit-dialog__resume-organization-type-select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:block}.profile-edit-dialog__bio-field-container textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:var(--solid-ui-clickable-area,42px)}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();const e=require("../../ui/dialog2.cjs.js"),t=require("./imagePreview.cjs.js");require("../../texts/dialogTexts.cjs.js");const n=require("../../texts/messageTexts.cjs.js"),r=require("./mutations.cjs.js"),i=require("../shared/phoneCountries.cjs.js"),a=require("../../textUtils.cjs.js"),o=require("../shared/contactTypeUtils.cjs.js"),s=require("../shared/rowState.cjs.js");require("../../../../../_virtual/~icons/lucide/camera.cjs.js");const c=require("../shared/sanitizeUtils.cjs.js"),l=require("./dateHelpers.cjs.js"),u=require("./imageHelpers.cjs.js");let d=require("lit-html");require("solid-ui/components/button"),require("solid-ui/components/combobox"),require("solid-ui/components/combobox-option"),require("solid-ui/components/photo-capture");var f=[{label:`Mobile`,value:`Mobile`},{label:`Home`,value:`Home`},{label:`Work`,value:`Work`}],p=[{label:`Personal`,value:`Personal`},{label:`Office`,value:`Office`}],m=[{label:`He/Him`,value:`He/Him`},{label:`She/Her`,value:`She/Her`},{label:`They/Them`,value:`They/Them`}];function h(e){return`value`in e}function g(e){return`streetAddress`in e}function _(e){return`name`in e}function v(e,t){return t.some(t=>t.value===e)?e:t[0]?.value||``}function y(e){return e===`phone`?f:p}function b(e,t){return{...e,type:v(e.type||``,y(t))}}function x(e){return h(e)?a.hasNonEmptyText(e.value):g(e)?[e.streetAddress,e.locality,e.region,e.postalCode,e.countryName].some(a.hasNonEmptyText):_(e)?[e.name,e.nickname,e.imageSrc,e.location,e.pronouns,e.dateOfBirth].some(a.hasNonEmptyText):!1}function S(e){let t=a.sanitizeTextValue(e||``).toLowerCase().replace(/\s+/g,``);return t?t===`he`||t===`he/him`?`He/Him`:t===`she`||t===`she/her`?`She/Her`:t===`they`||t===`they/them`?`They/Them`:e||``:``}function C(e){let t={name:a.sanitizeTextValue(a.toText(e.name)),nickname:a.sanitizeTextValue(a.toText(e.nickname||``)),imageSrc:a.sanitizeTextValue(a.toText(e.imageSrc||``)),location:a.sanitizeTextValue(a.toText(e.location||``)),pronouns:S(a.toText(e.pronouns||``)),dateOfBirth:a.sanitizeTextValue(a.toText(e.dateOfBirth||``)),entryNode:a.toText(e.entryNode),status:a.toText(e.entryNode)?`existing`:`new`},n=e.primaryEmail,r=e.primaryPhone,i=e.primaryAddress,s=!o.normalizeEmailTypeForEdit(n?.type),l=!o.normalizePhoneTypeForEdit(r?.type),u=o.normalizeEmailTypeForEdit(n?.type),d=o.normalizePhoneTypeForEdit(r?.type),f={value:c.sanitizeEmailValue(a.toText(n?.valueNode).replace(/^mailto:/i,``)),type:u,entryNode:a.toText(n?.entryNode),status:a.toText(n?.entryNode)?`existing`:`new`},p={value:a.sanitizeTextValue(a.toText(r?.valueNode||r?.entryNode||``).replace(/^tel:/i,``)),type:d,entryNode:a.toText(r?.entryNode||``),status:a.toText(r?.entryNode||``)?`existing`:`new`},m={streetAddress:c.sanitizeAddressFieldValue(a.toText(i?.streetAddress)),locality:c.sanitizeAddressFieldValue(a.toText(i?.locality)),region:c.sanitizeAddressFieldValue(a.toText(i?.region)),postalCode:c.sanitizeAddressFieldValue(a.toText(i?.postalCode)),countryName:c.sanitizeAddressFieldValue(a.toText(i?.countryName)),type:a.toTypeLabel(i?.type),entryNode:a.toText(i?.entryNode),status:a.toText(i?.entryNode)?`existing`:`new`};return{basicInfo:t||{name:``,nickname:``,imageSrc:``,location:``,pronouns:``,dateOfBirth:``,entryNode:``,status:`new`},email:f||{value:``,type:``,entryNode:``,status:`new`},phone:p||{value:``,type:``,entryNode:``,status:`new`},address:m||{streetAddress:``,locality:``,region:``,postalCode:``,countryName:``,type:``,entryNode:``,status:`new`},emailTypeWasMissing:s,phoneTypeWasMissing:l,imagePreviewSrc:``,clearImagePreview:()=>void 0}}function w(e,t){if(e.clearImagePreview(),typeof URL.createObjectURL!=`function`){e.imagePreviewSrc=``,e.clearImagePreview=()=>void 0;return}let n=URL.createObjectURL(t);e.imagePreviewSrc=n,e.clearImagePreview=()=>{URL.revokeObjectURL(n),e.imagePreviewSrc=``,e.clearImagePreview=()=>void 0}}function T(e,t){e.clearImagePreview(),t&&(e.imagePreviewSrc=t,e.clearImagePreview=()=>{e.imagePreviewSrc=``,e.clearImagePreview=()=>void 0})}function E(e){let t=e=>({...b(e,`email`),type:o.toSavedHeadingEmailType(b(e,`email`).type)});return{create:e.create.map(t),update:e.update.map(t),remove:e.remove.map(t)}}function D(e){let t=e=>({...b(e,`phone`),type:o.toSavedHeadingPhoneType(b(e,`phone`).type)});return{create:e.create.map(t),update:e.update.map(t),remove:e.remove.map(t)}}function O(e,t,n){let r=s.summarizeRowOps([e],x);return n&&e.entryNode&&e.status===`existing`&&x(e)&&r.create.length===0&&r.update.length===0&&r.remove.length===0?{create:r.create,update:[b({...e,status:`modified`},t)],remove:r.remove}:r}function k({phone:e}){let t=`Mobile Number`,n=`Phone Type 1`,r=`phone-value`,a=i.splitPhoneValue(e?.value||``),o=a.dialCode;return d.html`
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`html[data-layout=mobile] .profile-edit-dialog__row{flex-direction:column;align-items:stretch;max-width:100%}html[data-layout=mobile] .profile-edit-dialog__row--equal>.profile-edit-dialog__field,html[data-layout=mobile] .profile-edit-dialog__row--equal>.profile-edit-dialog__field-type,html[data-layout=mobile] .profile-edit-dialog__field-type{flex:auto}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__field--dob{align-self:stretch;width:100%;min-width:0;max-width:100%;overflow:hidden}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__row--heading-dob{flex-direction:column;align-items:stretch}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__row--heading-dob>.profile-edit-dialog__field,html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__row--heading-dob>.profile-edit-dialog__field-type{flex:auto;width:100%;min-width:0;max-width:100%}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob{height:var(--solid-ui-clickable-area,42px);min-height:var(--solid-ui-clickable-area,42px);max-height:var(--solid-ui-clickable-area,42px);box-sizing:border-box;width:100%;min-width:0;max-width:100%;line-height:var(--line-height-base,1.5);display:block}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-date-and-time-value{text-align:center;width:100%;min-width:0;max-width:100%;overflow:hidden}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-datetime-edit{text-align:center;width:100%;min-width:0;max-width:100%;overflow:hidden}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-datetime-edit-fields-wrapper{text-align:center;width:100%;min-width:0;max-width:100%;overflow:hidden}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-date-and-time-value{text-align:center;white-space:nowrap}@media (hover:none) and (pointer:coarse){html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob{height:var(--solid-ui-clickable-area,42px);min-height:var(--solid-ui-clickable-area,42px);max-height:var(--solid-ui-clickable-area,42px);line-height:calc(var(--solid-ui-clickable-area,42px) - 2px);width:calc(100% - 24px);max-width:calc(100% - 24px);padding-block:0}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-date-and-time-value{line-height:calc(var(--solid-ui-clickable-area,42px) - 2px)}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-datetime-edit{line-height:calc(var(--solid-ui-clickable-area,42px) - 2px)}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-datetime-edit-fields-wrapper{line-height:calc(var(--solid-ui-clickable-area,42px) - 2px)}html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog--heading .profile-edit-dialog__input--dob::-webkit-calendar-picker-indicator{margin:0;padding:0}}html[data-layout=mobile] .profile__edit-form{--profile-edit-dialog-mobile-image-button-font-size:var(--solid-ui-font-size-md,1rem);--profile-edit-dialog-mobile-image-label-font-size:var(--solid-ui-font-size-sm,.875rem);--profile-edit-dialog-mobile-image-description-font-size:.625rem}html[data-layout=mobile] #profile-modal .modal label.profile-edit-dialog__field,html[data-layout=mobile] #profile-modal .modal label.profile-edit-dialog__field-type,html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog__field>.label,html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog__field-type>.label,html[data-layout=mobile] #profile-modal .modal .profile-edit-dialog__field-description{font-size:var(--solid-ui-font-size-sm,.875rem);line-height:1.5}html[data-layout=mobile] .profile-edit-dialog__field input,html[data-layout=mobile] .profile-edit-dialog__field-type input{font-size:var(--solid-ui-font-size-md,1rem)}html[data-layout=mobile] .profile-edit-dialog__field-type--contact-point{flex:auto;width:100%;max-width:100%}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--contact-point{flex-direction:row;align-items:stretch}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--contact-point.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type.profile-edit-dialog__field-type--contact-point{flex:0 0 103px;width:103px;min-width:103px;max-width:103px}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo{flex-flow:row;align-items:center;gap:12px;width:100%;max-width:100%}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo>header{flex:none;margin-bottom:0}html[data-layout=mobile] .profile-edit-dialog--heading{--profile-edit-dialog-avatar-size:5rem}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__hero-alt{padding:0}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__image-frame--fallback .profile__hero-alt{justify-content:center;align-items:center;display:flex}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview{flex:auto;gap:5px;width:100%;min-width:0}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-label{font-size:var(--profile-edit-dialog-mobile-image-label-font-size);line-height:1.25}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-description{font-size:var(--profile-edit-dialog-mobile-image-description-font-size);line-height:1.4}html[data-layout=mobile] .profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-actions{grid-template-columns:repeat(2,max-content);justify-content:start;align-items:stretch;gap:8px;width:100%;display:grid}@media (width<=576px){.profile-edit-dialog__row{flex-direction:column;align-items:stretch;max-width:100%}.profile__edit-form{--profile-edit-dialog-mobile-image-button-font-size:var(--solid-ui-font-size-md,1rem);--profile-edit-dialog-mobile-image-label-font-size:var(--solid-ui-font-size-sm,.875rem);--profile-edit-dialog-mobile-image-description-font-size:.625rem}.profile-edit-dialog__row--equal>.profile-edit-dialog__field,.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type,.profile-edit-dialog__field-type{flex:auto}.profile-edit-dialog__field input,.profile-edit-dialog__field-type input{font-size:var(--solid-ui-font-size-sm,.875rem)}.profile-edit-dialog__field-type--contact-point{flex:auto;width:100%;max-width:100%}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point{flex-direction:row;align-items:stretch}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type.profile-edit-dialog__field-type--contact-point{flex:0 0 103px;width:103px;min-width:103px;max-width:103px}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo{flex-flow:row;align-items:center;gap:12px;width:100%;max-width:100%}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo>header{flex:none;margin-bottom:0}.profile__edit-form.profile-edit-dialog--heading{--profile-edit-dialog-avatar-size:5rem}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__hero-alt{padding:0}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__image-frame--fallback .profile__hero-alt{justify-content:center;align-items:center;display:flex}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview{flex:auto;gap:5px;width:100%;min-width:0}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-label{font-size:var(--profile-edit-dialog-mobile-image-label-font-size);line-height:var(--line-height-tight,1.25)}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-description{font-size:var(--profile-edit-dialog-mobile-image-description-font-size);line-height:var(--line-height-base,1.4)}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-preview-actions{grid-template-columns:repeat(2,max-content);justify-content:start;align-items:stretch;gap:8px;width:100%;display:grid}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile-edit-dialog__image-button{width:auto;min-width:0}}.profile__edit-form{--profile-edit-dialog-row-max-width:544px;--profile-edit-dialog-muted-text:var(--solid-ui-color-gray-600,#4a5565);--profile-edit-dialog-quiet-text:var(--solid-ui-color-gray-700,#364153);--profile-edit-dialog-mobile-image-button-font-size:.75rem;--profile-edit-dialog-mobile-image-label-font-size:var(--solid-ui-font-size-sm,.875rem);--profile-edit-dialog-mobile-image-description-font-size:.625rem;--profile-edit-dialog-mobile-image-button-padding:6.6px 12px 7px 14px;width:100%}.profile-edit-dialog__section,.profile-edit-dialog__section--education{flex-direction:column;gap:12px;display:flex}.profile-edit{flex-direction:column;gap:25px;display:flex}.profile-edit-dialog__section h4{margin:0}.profile-edit-dialog__section fieldset{width:100%;border:0;gap:15px;min-inline-size:0;margin:0;padding:0;display:grid}.profile-edit-dialog__field-description{color:var(--profile-edit-dialog-muted-text);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400;line-height:1.5}.profile-edit-dialog__row{max-width:var(--profile-edit-dialog-row-max-width);align-items:flex-start;gap:15px;display:flex}.profile-edit-dialog__row--heading-photo{gap:10px}.profile-edit-dialog__row--full{width:100%;max-width:100%}.profile-edit-dialog__field,.profile-edit-dialog__field-type{margin:0;display:block}.profile-edit-dialog__field-type{width:100%}.profile-edit-dialog__field{min-width:0}.profile-edit-dialog__field--stack{display:grid}.profile-edit-dialog__field--stack>small{text-align:right;justify-self:end;width:100%;display:block}.profile-edit-dialog__field--full{width:100%;max-width:100%!important}.profile-edit-dialog__field--row-width{width:100%;max-width:544px}.profile-edit-dialog__login-message{font-size:var(--solid-ui-font-size-xs,.75rem);color:var(--solid-ui-color-error,#b00020);margin:0}.profile-edit-dialog__section+.profile-edit-dialog__login-message,.profile__edit-form--projects .profile-edit-dialog__login-message{margin-top:15px}.profile-edit-dialog__actions{flex:none;justify-content:flex-end;align-items:center;display:flex}.profile-edit-dialog__actions--edge{margin-left:auto}.profile-edit-dialog__input-wrap{width:100%;position:relative}.profile-edit-dialog__input--with-action{box-sizing:border-box;width:100%;padding-right:120px}.profile-edit-dialog__image-preview{display:grid}.profile-edit-dialog__image-preview-header{margin-bottom:0}.profile-edit-dialog__image-preview-actions{align-items:center;gap:12px;display:flex}.profile-edit-dialog__image-preview-label{color:var(--gray-900,#101828);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:600}.profile-edit-dialog__image-preview-description{color:var(--solid-ui-color-gray-600,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:400}.profile-edit-dialog__image-preview-label,.profile-edit-dialog__image-preview-description{margin:0}.profile-edit-dialog--heading{--profile-edit-dialog-avatar-size:5.625rem}.profile-edit-dialog__image-frame{width:var(--profile-edit-dialog-avatar-size,5.625rem);height:var(--profile-edit-dialog-avatar-size,5.625rem);vertical-align:top;font-size:0;line-height:0;display:inline-block;position:relative;overflow:visible}.profile-edit-dialog__image-frame>solid-ui-photo-capture{pointer-events:none;display:block;position:absolute;inset:0}.profile-edit-dialog__image-frame>solid-ui-photo-capture>*{pointer-events:auto}.profile__image-frame{width:var(--profile-edit-dialog-avatar-size,5.625rem);height:var(--profile-edit-dialog-avatar-size,5.625rem);border:1px solid var(--solid-ui-color-primary,#7c4dff);background:var(--solid-ui-color-slate-50,#f8fafc);box-sizing:border-box;border-radius:10px;margin:0;padding:0;display:block;position:relative;overflow:hidden}.profile__image-frame--fallback{border:1px dashed var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-slate-50,#f8fafc)}.profile__hero,.profile__hero-alt{box-sizing:border-box;border-radius:10px;width:100%;height:100%;display:block}.profile__hero{object-fit:cover;object-position:center;background:var(--color-surface-placeholder,var(--gray-300,#d1d5dc)) 50% / cover no-repeat}.profile__hero-alt{background:var(--solid-ui-color-slate-50,#f8fafc);justify-content:center;align-items:center;display:none}.profile__image-frame--fallback .profile__hero-alt{display:flex}.profile__hero-icon{box-sizing:border-box;justify-content:center;align-items:center;width:100%;height:100%;padding:1.125rem;display:flex}.profile__hero-icon icon-lucide-circle-user-round,.profile__hero-alt icon-lucide-circle-user-round{color:#d9e1f2;width:1.75rem;height:1.75rem;display:block}.profile-edit-dialog__image-camera-button{z-index:1;border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);background:var(--solid-ui-color-white,#fff);width:1.75rem;min-width:1.75rem;height:1.75rem;min-height:1.75rem;color:var(--solid-ui-color-gray-700,#364153);cursor:pointer;box-sizing:border-box;border-radius:7px;justify-content:center;align-items:center;padding:0;line-height:0;transition:none;display:inline-flex;position:absolute;bottom:5px;right:5px;box-shadow:0 2px 6px #0f172a1f}.profile-edit-dialog__image-camera-button:hover,.profile-edit-dialog__image-camera-button:focus-visible,.profile-edit-dialog__image-camera-button:active{border-color:var(--solid-ui-color-slate-200,#e2e8f0);background:color-mix(in srgb, var(--solid-ui-color-primary,#7c4dff) 12%, #fff);width:1.75rem;min-width:1.75rem;height:1.75rem;min-height:1.75rem;color:var(--solid-ui-color-primary,#7c4dff);padding:0;transform:none;box-shadow:0 2px 6px #0f172a1f}.profile-edit-dialog__image-camera-button icon-lucide-camera{vertical-align:middle;flex-shrink:0;width:.875rem;height:.875rem;margin:.05rem;display:block}.profile-edit-dialog__image-camera-capture-row{justify-content:center;width:100%;display:flex}.profile-edit-dialog__image-camera-capture-frame{box-sizing:border-box;border:1px solid var(--solid-color-gray-200,#e5e7eb);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:fit-content;max-width:100%;margin:6px auto 12px;padding:10px;display:flex;position:relative}.profile-edit-dialog__image-camera-capture-frame[hidden]{display:none}.profile-edit-dialog__paste-button{white-space:nowrap;z-index:1;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.profile-edit-dialog__paste-icon{width:.875rem;height:.875rem;stroke:var(--solid-ui-color-primary,#7c4dff);fill:var(--solid-ui-color-primary,#7c4dff)}.profile-edit-dialog__paste-icon svg{display:block;transform:translate(1px,1px)}solid-ui-button.profile-edit-dialog__drag-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}solid-ui-button.profile-edit-dialog__drag-handle:active{cursor:grabbing}.profile-edit-dialog__row--drop-target{outline:1px dashed var(--solid-ui-color-gray-400,#99a1af);outline-offset:2px}.profile-edit-dialog__field input,.profile-edit-dialog__field select,.profile-edit-dialog__field-type input,.profile-edit-dialog__field-type select{box-sizing:border-box;width:100%;max-width:100%;min-height:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px);border:1px solid var(--solid-ui-color-gray-400,#99a1af);background:var(--solid-ui-color-white,#fff);color:var(--color-text-subheading,var(--gray-900,#101828));font-size:var(--solid-ui-font-size-sm,.875rem);border-radius:5px;margin-block-start:0;padding:10px;font-weight:500}.profile-edit-dialog__field input[type=date],.profile-edit-dialog__field-type input[type=date]{min-width:0}.profile-edit-dialog__field textarea,.profile-edit-dialog__field-type textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:var(--solid-ui-clickable-area,42px)}.profile-edit-dialog__textarea{color:var(--color-text-subheading,var(--gray-900,#101828));font-size:var(--solid-ui-font-size-sm,.875rem);border:1px solid var(--solid-ui-color-gray-400,#99a1af);background:var(--solid-ui-color-white,#fff);resize:vertical;border-radius:5px;height:auto;font-weight:500;line-height:1.6;min-height:160px!important}.profile__edit-form--heading{flex-direction:column;gap:12px;display:flex}.profile-edit-dialog__bio-field-container{width:100%;max-width:var(--profile-edit-dialog-row-max-width);box-sizing:border-box;flex-direction:column;align-items:flex-start;gap:12px;margin:0;padding:0;display:flex}.profile-edit-dialog__row--language{margin-left:0}.profile-edit-dialog__row--language>.profile-edit-dialog__field--language-name{flex:1 1 0;min-width:0}.profile-edit-dialog__field-type--language-proficiency,.profile-edit-dialog__field-type--language-proficiency[hidden]{display:none!important}.profile-edit-dialog__actions--language{margin-left:0}.profile-edit-dialog__row--social{width:100%;max-width:100%;margin-left:-10px}.profile-edit-dialog__field--social-type{flex:0 0 96px;width:96px;max-width:96px}.profile-edit-dialog__field--social-url{flex:auto;min-width:0}.profile-edit-dialog__row--project{width:100%;max-width:100%}.profile-edit-dialog__row--resume-entry-header{border-bottom:1px solid var(--solid-ui-color-gray-400,#99a1af);align-items:center}.profile-edit-dialog__row--resume-entry-header>.profile-edit-dialog__entry-heading{margin:0}.profile-edit-dialog__entry-heading{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-sm,.875rem);margin:0;font-weight:500}.profile-edit-dialog__section--education .profile-edit-dialog__section-heading{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-md,1rem);margin:0;font-weight:500}.profile-edit-dialog__row--equal>.profile-edit-dialog__field,.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type{flex:1 1 0;min-width:0}.profile-edit-dialog--heading .profile-edit-dialog__image-camera-capture-row{margin-bottom:-12.5px}.profile-edit-dialog--heading .profile-edit-dialog__image-camera-capture-row:has(>[hidden]){display:none}.profile-edit-dialog--heading .profile-edit-dialog__image-camera-capture-frame{margin-top:3px;margin-bottom:6px}.profile__edit-form--resume .profile-edit-dialog__field,.profile__edit-form--resume .profile-edit-dialog__field-type:not(.hidden),.profile__edit-form--contact-info .profile-edit-dialog__field,.profile__edit-form--contact-info .profile-edit-dialog__field-type:not(.hidden){flex-direction:column;flex:1 0 0;align-items:flex-start;gap:5px;display:flex}.profile__edit-form--resume .profile-edit-dialog__row{width:100%;max-width:100%}.profile__edit-form--resume .profile-edit-dialog__section fieldset>.profile-edit-dialog__field{max-width:100%}.profile__edit-form--resume .profile-edit-dialog__field>input,.profile__edit-form--resume .profile-edit-dialog__field>solid-ui-select,.profile__edit-form--resume .profile-edit-dialog__field>solid-ui-combobox,.profile__edit-form--resume .profile-edit-dialog__field>textarea,.profile__edit-form--resume .profile-edit-dialog__field-type>input,.profile__edit-form--resume .profile-edit-dialog__field-type>solid-ui-select,.profile__edit-form--resume .profile-edit-dialog__field-type>textarea,.profile__edit-form--contact-info .profile-edit-dialog__field>input,.profile__edit-form--contact-info .profile-edit-dialog__field>solid-ui-select,.profile__edit-form--contact-info .profile-edit-dialog__field>textarea,.profile__edit-form--contact-info .profile-edit-dialog__field-type>input,.profile__edit-form--contact-info .profile-edit-dialog__field-type>solid-ui-select,.profile__edit-form--contact-info .profile-edit-dialog__field-type>textarea{align-self:stretch}.profile-edit-dialog__field>solid-ui-combobox,.profile-edit-dialog__field-type>solid-ui-combobox{box-sizing:border-box;align-self:stretch;width:100%;min-width:0;max-width:100%;display:block}.profile__edit-form solid-ui-combobox{background:var(--solid-ui-color-white,#fff);color:var(--color-text-subheading,var(--gray-900,#101828));font-size:var(--solid-ui-font-size-sm,.875rem);font-weight:500;line-height:calc(var(--solid-ui-clickable-area,42px) - 22px);border-radius:5px}.profile-edit-dialog__field--resume-location{flex:1 0 0;width:auto;max-width:none}.profile-edit-dialog__row--resume-dates{width:100%;max-width:100%}.profile-edit-dialog__field--date-group{flex:1 1 0;min-width:0}.profile-edit-dialog__date-pair{align-items:center;gap:15px;width:100%;display:flex}.profile-edit-dialog__date-pair>solid-ui-select{flex:1 1 0;min-width:0}.profile-edit-dialog__resume-date-select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:block}.profile-edit-dialog__resume-date-select--disabled{pointer-events:none;opacity:var(--opacity-input-disabled,.75)}.profile-edit-dialog__bio-field-container>small{text-align:right;align-self:flex-end}.profile-edit-dialog--heading .profile-edit-dialog__row,.profile-edit-dialog--heading .profile-edit-dialog__field--row-width{width:100%;max-width:100%}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo{border-bottom:1px solid var(--solid-ui-color-slate-200,#e2e8f0);padding-bottom:20px}.profile-edit-dialog--heading .profile-edit{gap:12.5px}.profile-edit-dialog--heading .profile-edit-dialog__row--heading-photo .profile__hero-alt{padding:0}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point{gap:10px;width:100%;max-width:100%}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point>.profile-edit-dialog__field{flex:1 1 0;min-width:0}.profile-edit-dialog--heading .profile-edit-dialog__field-type--contact-point{padding-top:calc(var(--solid-ui-font-size-sm,.875rem) * 1.5)}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point>.profile-edit-dialog__field>.label{width:100%;display:block}.profile-edit-dialog--heading .profile-edit-dialog__row--contact-point.profile-edit-dialog__row--equal>.profile-edit-dialog__field-type.profile-edit-dialog__field-type--contact-point{flex:0 0 103px;width:103px;min-width:103px;max-width:103px}.profile-edit-dialog__row--address-header{max-width:var(--profile-edit-dialog-row-max-width);align-items:flex-end}.profile-edit-dialog__row--inline-end{justify-content:flex-end;max-width:100%}.profile-edit-dialog__checkbox-label{cursor:var(--profile-interactive-cursor,pointer);align-items:center;gap:12px;margin-left:auto;display:inline-flex}.profile-edit-dialog__checkbox-input{width:var(--icon-xxs,1rem);height:var(--icon-xxs,1rem);accent-color:var(--solid-ui-color-primary,#7c4dff);cursor:var(--profile-interactive-cursor,pointer);flex:none;margin:0}.profile-edit-dialog__checkbox-input:focus-visible{outline:var(--focus-indicator-width,2px) solid var(--solid-ui-color-primary,#7c4dff);outline-offset:2px}.profile-edit-dialog__checkbox-input:disabled{opacity:var(--opacity-disabled,.5)}.profile-edit-dialog__section fieldset>.profile-edit-dialog__field{max-width:var(--profile-edit-dialog-row-max-width)}.profile-edit-dialog__field-type--wide{flex:auto;width:100%;min-width:0;max-width:100%}.profile-edit-dialog__field-type--contact-point{flex:none;align-self:flex-start;width:auto;max-width:none}.profile-edit-dialog__social-account-select{box-sizing:border-box;contain:inline-size;width:100%;min-width:0;max-width:100%;display:block}.profile-edit-dialog__resume-organization-type-select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:block}.profile-edit-dialog__bio-field-container textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:var(--solid-ui-clickable-area,42px)}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();const e=require("../../ui/dialog2.cjs.js"),t=require("./imagePreview.cjs.js");;const n=require("./mutations.cjs.js"),r=require("../shared/phoneCountries.cjs.js"),i=require("../shared/contactTypeUtils.cjs.js"),a=require("../shared/rowState.cjs.js"),o=require("../../textUtils.cjs.js");require("../../texts/dialogTexts.cjs.js");const s=require("../../texts/messageTexts.cjs.js");require("../../../../../_virtual/~icons/lucide/camera.cjs.js");const c=require("../shared/sanitizeUtils.cjs.js"),l=require("./dateHelpers.cjs.js"),u=require("./imageHelpers.cjs.js");let d=require("lit-html");require("solid-ui/components/button"),require("solid-ui/components/combobox"),require("solid-ui/components/combobox-option"),require("solid-ui/components/photo-capture");var f=[{label:`Mobile`,value:`Mobile`},{label:`Home`,value:`Home`},{label:`Work`,value:`Work`}],p=[{label:`Personal`,value:`Personal`},{label:`Office`,value:`Office`}],m=[{label:`He/Him`,value:`He/Him`},{label:`She/Her`,value:`She/Her`},{label:`They/Them`,value:`They/Them`}];function h(e){return`value`in e}function g(e){return`streetAddress`in e}function _(e){return`name`in e}function v(e,t){return t.some(t=>t.value===e)?e:t[0]?.value||``}function y(e){return e===`phone`?f:p}function b(e,t){return{...e,type:v(e.type||``,y(t))}}function x(e){return h(e)?o.hasNonEmptyText(e.value):g(e)?[e.streetAddress,e.locality,e.region,e.postalCode,e.countryName].some(o.hasNonEmptyText):_(e)?[e.name,e.nickname,e.imageSrc,e.location,e.pronouns,e.dateOfBirth].some(o.hasNonEmptyText):!1}function S(e){let t=o.sanitizeTextValue(e||``).toLowerCase().replace(/\s+/g,``);return t?t===`he`||t===`he/him`?`He/Him`:t===`she`||t===`she/her`?`She/Her`:t===`they`||t===`they/them`?`They/Them`:e||``:``}function C(e){let t={name:o.sanitizeTextValue(o.toText(e.name)),nickname:o.sanitizeTextValue(o.toText(e.nickname||``)),imageSrc:o.sanitizeTextValue(o.toText(e.imageSrc||``)),location:o.sanitizeTextValue(o.toText(e.location||``)),pronouns:S(o.toText(e.pronouns||``)),dateOfBirth:o.sanitizeTextValue(o.toText(e.dateOfBirth||``)),entryNode:o.toText(e.entryNode),status:o.toText(e.entryNode)?`existing`:`new`},n=e.primaryEmail,r=e.primaryPhone,a=e.primaryAddress,s=!i.normalizeEmailTypeForEdit(n?.type),l=!i.normalizePhoneTypeForEdit(r?.type),u=i.normalizeEmailTypeForEdit(n?.type),d=i.normalizePhoneTypeForEdit(r?.type),f={value:c.sanitizeEmailValue(o.toText(n?.valueNode).replace(/^mailto:/i,``)),type:u,entryNode:o.toText(n?.entryNode),status:o.toText(n?.entryNode)?`existing`:`new`},p={value:o.sanitizeTextValue(o.toText(r?.valueNode||r?.entryNode||``).replace(/^tel:/i,``)),type:d,entryNode:o.toText(r?.entryNode||``),status:o.toText(r?.entryNode||``)?`existing`:`new`},m={streetAddress:c.sanitizeAddressFieldValue(o.toText(a?.streetAddress)),locality:c.sanitizeAddressFieldValue(o.toText(a?.locality)),region:c.sanitizeAddressFieldValue(o.toText(a?.region)),postalCode:c.sanitizeAddressFieldValue(o.toText(a?.postalCode)),countryName:c.sanitizeAddressFieldValue(o.toText(a?.countryName)),type:o.toTypeLabel(a?.type),entryNode:o.toText(a?.entryNode),status:o.toText(a?.entryNode)?`existing`:`new`};return{basicInfo:t||{name:``,nickname:``,imageSrc:``,location:``,pronouns:``,dateOfBirth:``,entryNode:``,status:`new`},email:f||{value:``,type:``,entryNode:``,status:`new`},phone:p||{value:``,type:``,entryNode:``,status:`new`},address:m||{streetAddress:``,locality:``,region:``,postalCode:``,countryName:``,type:``,entryNode:``,status:`new`},emailTypeWasMissing:s,phoneTypeWasMissing:l,imagePreviewSrc:``,clearImagePreview:()=>void 0}}function w(e,t){if(e.clearImagePreview(),typeof URL.createObjectURL!=`function`){e.imagePreviewSrc=``,e.clearImagePreview=()=>void 0;return}let n=URL.createObjectURL(t);e.imagePreviewSrc=n,e.clearImagePreview=()=>{URL.revokeObjectURL(n),e.imagePreviewSrc=``,e.clearImagePreview=()=>void 0}}function T(e,t){e.clearImagePreview(),t&&(e.imagePreviewSrc=t,e.clearImagePreview=()=>{e.imagePreviewSrc=``,e.clearImagePreview=()=>void 0})}function E(e){let t=e=>({...b(e,`email`),type:i.toSavedHeadingEmailType(b(e,`email`).type)});return{create:e.create.map(t),update:e.update.map(t),remove:e.remove.map(t)}}function D(e){let t=e=>({...b(e,`phone`),type:i.toSavedHeadingPhoneType(b(e,`phone`).type)});return{create:e.create.map(t),update:e.update.map(t),remove:e.remove.map(t)}}function O(e,t,n){let r=a.summarizeRowOps([e],x);return n&&e.entryNode&&e.status===`existing`&&x(e)&&r.create.length===0&&r.update.length===0&&r.remove.length===0?{create:r.create,update:[b({...e,status:`modified`},t)],remove:r.remove}:r}function k({phone:e}){let t=`Mobile Number`,n=`Phone Type 1`,i=`phone-value`,o=r.splitPhoneValue(e?.value||``),s=o.dialCode;return d.html`
|
|
2
2
|
<div class="profile-edit-dialog__row profile-edit-dialog__row--equal profile-edit-dialog__row--contact-point">
|
|
3
3
|
<div class="profile-edit-dialog__field">
|
|
4
4
|
<label aria-label=${t} class="label">
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<input
|
|
7
7
|
class="input"
|
|
8
8
|
type="tel"
|
|
9
|
-
name=${
|
|
10
|
-
.value=${
|
|
9
|
+
name=${i}
|
|
10
|
+
.value=${o.localNumber}
|
|
11
11
|
required
|
|
12
12
|
data-contact-field="value"
|
|
13
13
|
data-entry-node=${e?.entryNode||``}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
placeholder=${t}
|
|
16
16
|
autocomplete="tel-national"
|
|
17
17
|
inputmode="tel"
|
|
18
|
-
@input=${t=>{let n=t.target,
|
|
18
|
+
@input=${t=>{let n=t.target,i=c.sanitizePhoneLocalValue(n.value);e&&a.applyRowFieldChange(e,`value`,r.combinePhoneValue(s,i),x)}}
|
|
19
19
|
/>
|
|
20
20
|
</label>
|
|
21
21
|
</div>
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
<solid-ui-combobox
|
|
24
24
|
select-only
|
|
25
25
|
class="profile-edit-dialog__type-select"
|
|
26
|
-
id=${`phone-type-select-${
|
|
26
|
+
id=${`phone-type-select-${i}`}
|
|
27
27
|
aria-label=${n}
|
|
28
28
|
.value=${v(e?.type||``,f)}
|
|
29
|
-
@change=${t=>{let n=t;if(!n.detail.option)return;let r=String(n.detail.option.value);e&&
|
|
29
|
+
@change=${t=>{let n=t;if(!n.detail.option)return;let r=String(n.detail.option.value);e&&a.applyRowSelectChange(e,`type`,r)}}
|
|
30
30
|
>
|
|
31
31
|
${f.map(e=>d.html`<solid-ui-combobox-option value=${e.value}>${e.label}</solid-ui-combobox-option>`)}
|
|
32
32
|
</solid-ui-combobox>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
placeholder="Email Address"
|
|
49
49
|
autocomplete="email"
|
|
50
50
|
inputmode="email"
|
|
51
|
-
@input=${t=>{let n=t.target,r=c.sanitizeEmailValue(n.value);e&&
|
|
51
|
+
@input=${t=>{let n=t.target,r=c.sanitizeEmailValue(n.value);e&&a.applyRowFieldChange(e,`value`,r,x)}}
|
|
52
52
|
/>
|
|
53
53
|
</label>
|
|
54
54
|
<label aria-label=${n} class="label profile-edit-dialog__field-type profile-edit-dialog__field-type--contact-point">
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
id=${`email-type-select-${r}`}
|
|
59
59
|
aria-label=${n}
|
|
60
60
|
.value=${v(e?.type||``,p)}
|
|
61
|
-
@change=${t=>{let n=t;if(!n.detail.option)return;let r=String(n.detail.option.value);e&&
|
|
61
|
+
@change=${t=>{let n=t;if(!n.detail.option)return;let r=String(n.detail.option.value);e&&a.applyRowSelectChange(e,`type`,r)}}
|
|
62
62
|
>
|
|
63
63
|
${p.map(e=>d.html`<solid-ui-combobox-option value=${e.value}>${e.label}</solid-ui-combobox-option>`)}
|
|
64
64
|
</solid-ui-combobox>
|
|
65
65
|
</label>
|
|
66
66
|
</div>
|
|
67
|
-
`}function j({address:e}){let t=`Address`,n=t=>n=>{let r=n.target,i=c.sanitizeAddressFieldValue(r.value);e&&
|
|
67
|
+
`}function j({address:e}){let t=`Address`,n=t=>n=>{let r=n.target,i=c.sanitizeAddressFieldValue(r.value);e&&a.applyRowFieldChange(e,t,i,x)};return d.html`
|
|
68
68
|
<label aria-label=${`${t} Street`} class="label profile-edit-dialog__field profile-edit-dialog__field--row-width">
|
|
69
69
|
Street Address
|
|
70
70
|
<input
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
/>
|
|
152
152
|
</label>
|
|
153
153
|
</div>
|
|
154
|
-
`}function M(e,n){let{basicInfo:r,phone:i,email:
|
|
154
|
+
`}function M(e,n){let{basicInfo:r,phone:i,email:o,imagePreviewSrc:s}=e,u=`Full Name`,f=`Nickname`,p=`Pronouns`,h=e=>t=>{let n=t.target,i=c.sanitizeBasicInputFieldValue(n.value);r&&a.applyRowFieldChange(r,e,i,x)};return d.html`
|
|
155
155
|
<div class="profile-edit-dialog__row profile-edit-dialog__row--heading-photo">
|
|
156
156
|
<header class="profile-edit-dialog__image-preview-header" aria-label="Profile Image">
|
|
157
157
|
<div class="profile-edit-dialog__image-frame">
|
|
158
|
-
${t.Image(
|
|
158
|
+
${t.Image(s||r.imageSrc,r.name)}
|
|
159
159
|
<solid-ui-photo-capture
|
|
160
160
|
capture-label="Take Photo"
|
|
161
161
|
confirm-label="Use Photo"
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
class="profile-edit-dialog__image-button profile-edit-dialog__image-remove-button"
|
|
198
198
|
aria-label="Delete profile photo"
|
|
199
199
|
title="Remove"
|
|
200
|
-
@click=${async()=>{r&&(e.pendingImageFile=null,e.clearImagePreview(),
|
|
200
|
+
@click=${async()=>{r&&(e.pendingImageFile=null,e.clearImagePreview(),a.applyRowFieldChange(r,`imageSrc`,``,x),n())}}
|
|
201
201
|
>
|
|
202
202
|
Remove
|
|
203
203
|
</solid-ui-button>
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
data-heading-basic-field="pronouns"
|
|
256
256
|
aria-label=${p}
|
|
257
257
|
.value=${S(r?.pronouns||``)}
|
|
258
|
-
@change=${e=>{let t=e;if(!t.detail.option)return;let n=S(String(t.detail.option.value));r&&
|
|
258
|
+
@change=${e=>{let t=e;if(!t.detail.option)return;let n=S(String(t.detail.option.value));r&&a.applyRowFieldChange(r,`pronouns`,n,x)}}
|
|
259
259
|
>
|
|
260
260
|
${m.map(e=>d.html`<solid-ui-combobox-option value=${e.value}>${e.label}</solid-ui-combobox-option>`)}
|
|
261
261
|
</solid-ui-combobox>
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
data-lpignore="true"
|
|
277
277
|
data-1p-ignore="true"
|
|
278
278
|
data-bwignore="true"
|
|
279
|
-
@change=${e=>{let t=e.target,n=c.sanitizeBasicInputFieldValue(t.value);r&&
|
|
279
|
+
@change=${e=>{let t=e.target,n=c.sanitizeBasicInputFieldValue(t.value);r&&a.applyRowFieldChange(r,`dateOfBirth`,l.toStorageDateISO(n),x)}}
|
|
280
280
|
/>
|
|
281
281
|
</div>
|
|
282
282
|
</div>
|
|
@@ -285,13 +285,13 @@
|
|
|
285
285
|
${k({phone:i})}
|
|
286
286
|
</div>
|
|
287
287
|
<div class="profile-edit-dialog__field profile-edit-dialog__field--full">
|
|
288
|
-
${A({email:
|
|
288
|
+
${A({email:o})}
|
|
289
289
|
</div>
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
292
|
-
`}function N(e,t,
|
|
293
|
-
${M(t,()=>N(e,t,
|
|
292
|
+
`}function N(e,t,n){(0,d.render)(d.html`
|
|
293
|
+
${M(t,()=>N(e,t,n))}
|
|
294
294
|
${j({address:t.address})}
|
|
295
|
-
${
|
|
296
|
-
`,e)}function P(e,t){let n=document.createElement(`form`);n.classList.add(`profile__edit-form`,`profile__edit-form--heading`,`profile-edit-dialog--heading`),n.autocomplete=`off`,n.setAttribute(`data-lpignore`,`true`),n.setAttribute(`data-1p-ignore`,`true`),n.setAttribute(`data-bwignore`,`true`);let r=C(e);return N(n,r,t),{form:n,formState:r}}function F(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function I(e){return/^\d+$/.test(e)}function L(e){if(!
|
|
295
|
+
${n===`owner`?null:d.html`<p class="profile-edit-dialog__login-message">${s.ownerLoginRequiredDialogMessageText}</p>`}
|
|
296
|
+
`,e)}function P(e,t){let n=document.createElement(`form`);n.classList.add(`profile__edit-form`,`profile__edit-form--heading`,`profile-edit-dialog--heading`),n.autocomplete=`off`,n.setAttribute(`data-lpignore`,`true`),n.setAttribute(`data-1p-ignore`,`true`),n.setAttribute(`data-bwignore`,`true`);let r=C(e);return N(n,r,t),{form:n,formState:r}}function F(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function I(e){return/^\d+$/.test(e)}function L(e){if(!o.hasNonEmptyText(e.basicInfo.name))return`Full Name is required.`;let{localNumber:t}=r.splitPhoneValue(e.phone?.value||``);return x(e.phone)&&!I(t)?`Phone Number 1 should contain only numbers.`:x(e.email)&&!F(e.email?.value||``)?`Email address must be a valid email address.`:null}async function R(t,r,i,s,c,l){let d=document,f=o.sanitizeTextValue(o.toText(s.imageSrc||``)),{form:p,formState:m}=P(s,c);if(m.basicInfo.imageSrc){let e=await u.resolvePhotoDisplaySrc(r,m.basicInfo.imageSrc);e&&e!==m.basicInfo.imageSrc&&(T(m,e),N(p,m,c))}await e.openInputDialog({title:`Edit Heading`,dom:d,form:p,headerAction:{type:`none`},submitLabel:`Save Changes`,cancelLabel:`Cancel`,shouldCloseWithoutSave:()=>{let e=a.summarizeRowOps([m.basicInfo],x),t=O(m.phone,`phone`,m.phoneTypeWasMissing),n=O(m.email,`email`,m.emailTypeWasMissing),r=a.summarizeRowOps([m.address],x);return e.create.length===0&&e.update.length===0&&e.remove.length===0&&t.create.length===0&&t.update.length===0&&t.remove.length===0&&n.create.length===0&&n.update.length===0&&n.remove.length===0&&r.create.length===0&&r.update.length===0&&r.remove.length===0},validate:()=>c===`owner`?L(m):`You need to log in as the profile owner to save contact updates.`,onSave:async()=>{if(m.pendingImageFile){let e=await u.uploadPhotoFile(r,i,m.pendingImageFile);a.applyRowFieldChange(m.basicInfo,`imageSrc`,e,x)}let e=O(m.phone,`phone`,m.phoneTypeWasMissing),t=O(m.email,`email`,m.emailTypeWasMissing),s={basicOps:a.summarizeRowOps([m.basicInfo],x),phoneOps:D(e),emailOps:E(t),addressOps:a.summarizeRowOps([m.address],x)};await n.processHeadingMutations(r,i,s);let c=o.sanitizeTextValue(m.basicInfo.imageSrc||``);if(f&&f!==c)try{u.invalidateResolvedPhotoDisplaySrc(f)}catch(e){console.warn(`Failed to invalidate resolved photo cache`,e)}},formatSaveError:e=>e instanceof Error?e.message:`Unable to save your heading information.`})&&l&&await l()}exports.createHeadingEditDialog=R;
|
|
297
297
|
//# sourceMappingURL=HeadingEditDialog.cjs.js.map
|