solid-panes 5.1.0-3 → 5.1.1

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.
Files changed (174) hide show
  1. package/dist/RDFXMLPane.d.ts.map +1 -1
  2. package/dist/RDFXMLPane2.cjs.js +1 -1
  3. package/dist/RDFXMLPane2.cjs.js.map +1 -1
  4. package/dist/RDFXMLPane2.esm.js +3 -3
  5. package/dist/RDFXMLPane2.esm.js.map +1 -1
  6. package/dist/components/editor-card/EditorCard.cjs.js +2 -2
  7. package/dist/components/editor-card/EditorCard.cjs.js.map +1 -1
  8. package/dist/components/editor-card/EditorCard.d.ts +2 -0
  9. package/dist/components/editor-card/EditorCard.d.ts.map +1 -1
  10. package/dist/components/editor-card/EditorCard.esm.js +68 -43
  11. package/dist/components/editor-card/EditorCard.esm.js.map +1 -1
  12. package/dist/components/editor-card/EditorCard.styles.cjs.js.map +1 -1
  13. package/dist/components/editor-card/EditorCard.styles.esm.js.map +1 -1
  14. package/dist/components/header/Header.cjs.js.map +1 -1
  15. package/dist/components/header/Header.esm.js.map +1 -1
  16. package/dist/components/header/Header.styles.cjs.js.map +1 -1
  17. package/dist/components/header/Header.styles.esm.js.map +1 -1
  18. package/dist/components/navbar/Navbar.cjs.js.map +1 -1
  19. package/dist/components/navbar/Navbar.esm.js.map +1 -1
  20. package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -1
  21. package/dist/components/navbar/Navbar.styles.esm.js.map +1 -1
  22. package/dist/components/profile-heading/ProfileHeading.cjs.js +4 -4
  23. package/dist/components/profile-heading/ProfileHeading.cjs.js.map +1 -1
  24. package/dist/components/profile-heading/ProfileHeading.d.ts +4 -0
  25. package/dist/components/profile-heading/ProfileHeading.d.ts.map +1 -1
  26. package/dist/components/profile-heading/ProfileHeading.esm.js +123 -107
  27. package/dist/components/profile-heading/ProfileHeading.esm.js.map +1 -1
  28. package/dist/components/profile-heading/ProfileHeading.styles.cjs.js.map +1 -1
  29. package/dist/components/profile-heading/ProfileHeading.styles.esm.js.map +1 -1
  30. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js +19 -19
  31. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js.map +1 -1
  32. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js +86 -86
  33. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js.map +1 -1
  34. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.cjs.js.map +1 -1
  35. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js.map +1 -1
  36. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.cjs.js.map +1 -1
  37. package/dist/components/profile-heading/editor/sections/heading/imagePreview.cjs.js.map +1 -1
  38. package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js +1 -1
  39. package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js.map +1 -1
  40. package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js +61 -61
  41. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.cjs.js.map +1 -1
  42. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js.map +1 -1
  43. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.cjs.js.map +1 -1
  44. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.cjs.js.map +1 -1
  45. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js.map +1 -1
  46. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.cjs.js.map +1 -1
  47. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js.map +1 -1
  48. package/dist/components/profile-heading/editor/sections/shared/rowState.cjs.js.map +1 -1
  49. package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js.map +1 -1
  50. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.cjs.js.map +1 -1
  51. package/dist/components/profile-heading/editor/textUtils.cjs.js.map +1 -1
  52. package/dist/components/profile-heading/editor/textUtils.esm.js.map +1 -1
  53. package/dist/components/profile-heading/editor/texts/dialogTexts.cjs.js.map +1 -1
  54. package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js.map +1 -1
  55. package/dist/components/profile-heading/editor/texts/messageTexts.cjs.js.map +1 -1
  56. package/dist/components/profile-heading/editor/texts/messageTexts.esm.js.map +1 -1
  57. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js +1 -1
  58. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js.map +1 -1
  59. package/dist/components/profile-heading/editor/ui/dialog2.esm.js +1 -1
  60. package/dist/components/profile-heading/editor/ui/dialog2.esm.js.map +1 -1
  61. package/dist/components/profile-heading/friendActions.cjs.js +1 -1
  62. package/dist/components/profile-heading/friendActions.cjs.js.map +1 -1
  63. package/dist/components/profile-heading/friendActions.esm.js +5 -5
  64. package/dist/components/profile-heading/profileHeadingData.cjs.js.map +1 -1
  65. package/dist/components/resource-action-dialog/ResourceActionDialog.cjs.js +33 -0
  66. package/dist/components/resource-action-dialog/ResourceActionDialog.cjs.js.map +1 -0
  67. package/dist/components/resource-action-dialog/ResourceActionDialog.d.ts +16 -0
  68. package/dist/components/resource-action-dialog/ResourceActionDialog.d.ts.map +1 -0
  69. package/dist/components/resource-action-dialog/ResourceActionDialog.esm.js +309 -0
  70. package/dist/components/resource-action-dialog/ResourceActionDialog.esm.js.map +1 -0
  71. package/dist/components/resource-action-dialog/ResourceActionDialog.styles.cjs.js +2 -0
  72. package/dist/components/resource-action-dialog/ResourceActionDialog.styles.cjs.js.map +1 -0
  73. package/dist/components/resource-action-dialog/ResourceActionDialog.styles.esm.js +6 -0
  74. package/dist/components/resource-action-dialog/ResourceActionDialog.styles.esm.js.map +1 -0
  75. package/dist/dataContentPane.d.ts.map +1 -1
  76. package/dist/dataContentPane2.cjs.js +1 -1
  77. package/dist/dataContentPane2.cjs.js.map +1 -1
  78. package/dist/dataContentPane2.esm.js +90 -78
  79. package/dist/dataContentPane2.esm.js.map +1 -1
  80. package/dist/humanReadablePane.d.ts +1 -0
  81. package/dist/humanReadablePane.d.ts.map +1 -1
  82. package/dist/humanReadablePane2.cjs.js +147 -15
  83. package/dist/humanReadablePane2.cjs.js.map +1 -1
  84. package/dist/humanReadablePane2.esm.js +281 -114
  85. package/dist/humanReadablePane2.esm.js.map +1 -1
  86. package/dist/imagePane.d.ts.map +1 -1
  87. package/dist/imagePane2.cjs.js +1 -1
  88. package/dist/imagePane2.cjs.js.map +1 -1
  89. package/dist/imagePane2.esm.js +9 -7
  90. package/dist/imagePane2.esm.js.map +1 -1
  91. package/dist/index.cjs.js +1 -1
  92. package/dist/index.cjs.js.map +1 -1
  93. package/dist/index.esm.js +3 -3
  94. package/dist/internal/internalPane.d.ts.map +1 -1
  95. package/dist/internal/internalPane2.cjs.js +1 -1
  96. package/dist/internal/internalPane2.cjs.js.map +1 -1
  97. package/dist/internal/internalPane2.esm.js +55 -60
  98. package/dist/internal/internalPane2.esm.js.map +1 -1
  99. package/dist/mainPage/header.cjs.js +1 -1
  100. package/dist/mainPage/header.esm.js +2 -2
  101. package/dist/mainPage/index.cjs.js +1 -1
  102. package/dist/mainPage/index.cjs.js.map +1 -1
  103. package/dist/mainPage/index.d.ts.map +1 -1
  104. package/dist/mainPage/index.esm.js +35 -26
  105. package/dist/mainPage/index.esm.js.map +1 -1
  106. package/dist/mainPage/navbar.cjs.js +1 -1
  107. package/dist/mainPage/navbar.cjs.js.map +1 -1
  108. package/dist/mainPage/navbar.esm.js +15 -15
  109. package/dist/mainPage/navigation.cjs.js +1 -1
  110. package/dist/mainPage/navigation.cjs.js.map +1 -1
  111. package/dist/mainPage/navigation.esm.js +4 -4
  112. package/dist/mainPage/profileHeading.d.ts.map +1 -1
  113. package/dist/mainPage/profileHeading2.cjs.js +1 -1
  114. package/dist/mainPage/profileHeading2.cjs.js.map +1 -1
  115. package/dist/mainPage/profileHeading2.esm.js +14 -14
  116. package/dist/mainPage/profileHeading2.esm.js.map +1 -1
  117. package/dist/n3Pane.d.ts.map +1 -1
  118. package/dist/n3Pane2.cjs.js +1 -1
  119. package/dist/n3Pane2.cjs.js.map +1 -1
  120. package/dist/n3Pane2.esm.js +1 -1
  121. package/dist/n3Pane2.esm.js.map +1 -1
  122. package/dist/navigation/browserEvents.cjs.js +1 -1
  123. package/dist/navigation/browserEvents.cjs.js.map +1 -1
  124. package/dist/navigation/browserEvents.d.ts.map +1 -1
  125. package/dist/navigation/browserEvents.esm.js +17 -17
  126. package/dist/navigation/browserEvents.esm.js.map +1 -1
  127. package/dist/navigation/chrome.cjs.js +1 -1
  128. package/dist/navigation/chrome.cjs.js.map +1 -1
  129. package/dist/navigation/chrome.d.ts +2 -2
  130. package/dist/navigation/chrome.d.ts.map +1 -1
  131. package/dist/navigation/chrome.esm.js +2 -2
  132. package/dist/navigation/chrome.esm.js.map +1 -1
  133. package/dist/navigation/controller.cjs.js +1 -1
  134. package/dist/navigation/controller.cjs.js.map +1 -1
  135. package/dist/navigation/controller.esm.js +37 -37
  136. package/dist/navigation/podContext.cjs.js +1 -1
  137. package/dist/navigation/podContext.cjs.js.map +1 -1
  138. package/dist/navigation/podContext.esm.js +5 -5
  139. package/dist/navigation/state.cjs.js +1 -1
  140. package/dist/navigation/state.cjs.js.map +1 -1
  141. package/dist/navigation/state.d.ts +4 -0
  142. package/dist/navigation/state.d.ts.map +1 -1
  143. package/dist/navigation/state.esm.js +18 -5
  144. package/dist/navigation/state.esm.js.map +1 -1
  145. package/dist/outline/fileExplorerHelpers.cjs.js +1 -1
  146. package/dist/outline/fileExplorerHelpers.cjs.js.map +1 -1
  147. package/dist/outline/fileExplorerHelpers.d.ts +2 -5
  148. package/dist/outline/fileExplorerHelpers.d.ts.map +1 -1
  149. package/dist/outline/fileExplorerHelpers.esm.js +11 -13
  150. package/dist/outline/fileExplorerHelpers.esm.js.map +1 -1
  151. package/dist/outline/manager2.cjs.js +1 -1
  152. package/dist/outline/manager2.cjs.js.map +1 -1
  153. package/dist/outline/manager2.esm.js +355 -327
  154. package/dist/outline/manager2.esm.js.map +1 -1
  155. package/dist/registerPanes.cjs.js +1 -1
  156. package/dist/registerPanes.cjs.js.map +1 -1
  157. package/dist/registerPanes.esm.js +1 -1
  158. package/dist/registerPanes.esm.js.map +1 -1
  159. package/dist/slideshow/slideshowPane.cjs.js +1 -1
  160. package/dist/slideshow/slideshowPane.cjs.js.map +1 -1
  161. package/dist/slideshow/slideshowPane.esm.js +30 -30
  162. package/dist/slideshow/slideshowPane.esm.js.map +1 -1
  163. package/dist/social/socialPane2.cjs.js +1 -1
  164. package/dist/social/socialPane2.esm.js +1 -1
  165. package/dist/social/socialSections.cjs.js +1 -1
  166. package/dist/social/socialSections.esm.js +1 -1
  167. package/dist/utils/paneUtils.cjs.js +1 -1
  168. package/dist/utils/paneUtils.cjs.js.map +1 -1
  169. package/dist/utils/paneUtils.esm.js +15 -15
  170. package/dist/versionInfo.cjs.js +1 -1
  171. package/dist/versionInfo.cjs.js.map +1 -1
  172. package/dist/versionInfo.esm.js +9 -9
  173. package/dist/versionInfo.esm.js.map +1 -1
  174. package/package.json +12 -13
@@ -1,13 +1,13 @@
1
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)}})();import { openInputDialog as e } from "../../ui/dialog2.esm.js";
2
2
  import { Image as t } from "./imagePreview.esm.js";
3
3
 
4
+ import { processHeadingMutations as n } from "./mutations.esm.js";
5
+ import { combinePhoneValue as r, splitPhoneValue as i } from "../shared/phoneCountries.esm.js";
6
+ import { normalizeEmailTypeForEdit as a, normalizePhoneTypeForEdit as o, toSavedHeadingEmailType as s, toSavedHeadingPhoneType as c } from "../shared/contactTypeUtils.esm.js";
7
+ import { applyRowFieldChange as l, applyRowSelectChange as u, summarizeRowOps as d } from "../shared/rowState.esm.js";
8
+ import { hasNonEmptyText as f, sanitizeTextValue as p, toText as m, toTypeLabel as h } from "../../textUtils.esm.js";
4
9
  import "../../texts/dialogTexts.esm.js";
5
- import { ownerLoginRequiredDialogMessageText as n } from "../../texts/messageTexts.esm.js";
6
- import { processHeadingMutations as r } from "./mutations.esm.js";
7
- import { combinePhoneValue as i, splitPhoneValue as a } from "../shared/phoneCountries.esm.js";
8
- import { hasNonEmptyText as o, sanitizeTextValue as s, toText as c, toTypeLabel as l } from "../../textUtils.esm.js";
9
- import { normalizeEmailTypeForEdit as u, normalizePhoneTypeForEdit as d, toSavedHeadingEmailType as f, toSavedHeadingPhoneType as p } from "../shared/contactTypeUtils.esm.js";
10
- import { applyRowFieldChange as m, applyRowSelectChange as h, summarizeRowOps as g } from "../shared/rowState.esm.js";
10
+ import { ownerLoginRequiredDialogMessageText as g } from "../../texts/messageTexts.esm.js";
11
11
  import "../../../../../_virtual/~icons/lucide/camera.esm.js";
12
12
  import { sanitizeAddressFieldValue as _, sanitizeBasicInputFieldValue as v, sanitizeEmailValue as y, sanitizePhoneLocalValue as b } from "../shared/sanitizeUtils.esm.js";
13
13
  import { toStorageDateISO as x } from "./dateHelpers.esm.js";
@@ -73,54 +73,54 @@ function F(e, t) {
73
73
  };
74
74
  }
75
75
  function I(e) {
76
- return A(e) ? o(e.value) : j(e) ? [
76
+ return A(e) ? f(e.value) : j(e) ? [
77
77
  e.streetAddress,
78
78
  e.locality,
79
79
  e.region,
80
80
  e.postalCode,
81
81
  e.countryName
82
- ].some(o) : M(e) ? [
82
+ ].some(f) : M(e) ? [
83
83
  e.name,
84
84
  e.nickname,
85
85
  e.imageSrc,
86
86
  e.location,
87
87
  e.pronouns,
88
88
  e.dateOfBirth
89
- ].some(o) : !1;
89
+ ].some(f) : !1;
90
90
  }
91
91
  function L(e) {
92
- let t = s(e || "").toLowerCase().replace(/\s+/g, "");
92
+ let t = p(e || "").toLowerCase().replace(/\s+/g, "");
93
93
  return t ? t === "he" || t === "he/him" ? "He/Him" : t === "she" || t === "she/her" ? "She/Her" : t === "they" || t === "they/them" ? "They/Them" : e || "" : "";
94
94
  }
95
95
  function R(e) {
96
96
  let t = {
97
- name: s(c(e.name)),
98
- nickname: s(c(e.nickname || "")),
99
- imageSrc: s(c(e.imageSrc || "")),
100
- location: s(c(e.location || "")),
101
- pronouns: L(c(e.pronouns || "")),
102
- dateOfBirth: s(c(e.dateOfBirth || "")),
103
- entryNode: c(e.entryNode),
104
- status: c(e.entryNode) ? "existing" : "new"
105
- }, n = e.primaryEmail, r = e.primaryPhone, i = e.primaryAddress, a = !u(n?.type), o = !d(r?.type), f = u(n?.type), p = d(r?.type), m = {
106
- value: y(c(n?.valueNode).replace(/^mailto:/i, "")),
107
- type: f,
108
- entryNode: c(n?.entryNode),
109
- status: c(n?.entryNode) ? "existing" : "new"
110
- }, h = {
111
- value: s(c(r?.valueNode || r?.entryNode || "").replace(/^tel:/i, "")),
112
- type: p,
113
- entryNode: c(r?.entryNode || ""),
114
- status: c(r?.entryNode || "") ? "existing" : "new"
97
+ name: p(m(e.name)),
98
+ nickname: p(m(e.nickname || "")),
99
+ imageSrc: p(m(e.imageSrc || "")),
100
+ location: p(m(e.location || "")),
101
+ pronouns: L(m(e.pronouns || "")),
102
+ dateOfBirth: p(m(e.dateOfBirth || "")),
103
+ entryNode: m(e.entryNode),
104
+ status: m(e.entryNode) ? "existing" : "new"
105
+ }, n = e.primaryEmail, r = e.primaryPhone, i = e.primaryAddress, s = !a(n?.type), c = !o(r?.type), l = a(n?.type), u = o(r?.type), d = {
106
+ value: y(m(n?.valueNode).replace(/^mailto:/i, "")),
107
+ type: l,
108
+ entryNode: m(n?.entryNode),
109
+ status: m(n?.entryNode) ? "existing" : "new"
110
+ }, f = {
111
+ value: p(m(r?.valueNode || r?.entryNode || "").replace(/^tel:/i, "")),
112
+ type: u,
113
+ entryNode: m(r?.entryNode || ""),
114
+ status: m(r?.entryNode || "") ? "existing" : "new"
115
115
  }, g = {
116
- streetAddress: _(c(i?.streetAddress)),
117
- locality: _(c(i?.locality)),
118
- region: _(c(i?.region)),
119
- postalCode: _(c(i?.postalCode)),
120
- countryName: _(c(i?.countryName)),
121
- type: l(i?.type),
122
- entryNode: c(i?.entryNode),
123
- status: c(i?.entryNode) ? "existing" : "new"
116
+ streetAddress: _(m(i?.streetAddress)),
117
+ locality: _(m(i?.locality)),
118
+ region: _(m(i?.region)),
119
+ postalCode: _(m(i?.postalCode)),
120
+ countryName: _(m(i?.countryName)),
121
+ type: h(i?.type),
122
+ entryNode: m(i?.entryNode),
123
+ status: m(i?.entryNode) ? "existing" : "new"
124
124
  };
125
125
  return {
126
126
  basicInfo: t || {
@@ -133,13 +133,13 @@ function R(e) {
133
133
  entryNode: "",
134
134
  status: "new"
135
135
  },
136
- email: m || {
136
+ email: d || {
137
137
  value: "",
138
138
  type: "",
139
139
  entryNode: "",
140
140
  status: "new"
141
141
  },
142
- phone: h || {
142
+ phone: f || {
143
143
  value: "",
144
144
  type: "",
145
145
  entryNode: "",
@@ -155,8 +155,8 @@ function R(e) {
155
155
  entryNode: "",
156
156
  status: "new"
157
157
  },
158
- emailTypeWasMissing: a,
159
- phoneTypeWasMissing: o,
158
+ emailTypeWasMissing: s,
159
+ phoneTypeWasMissing: c,
160
160
  imagePreviewSrc: "",
161
161
  clearImagePreview: () => void 0
162
162
  };
@@ -179,7 +179,7 @@ function B(e, t) {
179
179
  function V(e) {
180
180
  let t = (e) => ({
181
181
  ...F(e, "email"),
182
- type: f(F(e, "email").type)
182
+ type: s(F(e, "email").type)
183
183
  });
184
184
  return {
185
185
  create: e.create.map(t),
@@ -190,7 +190,7 @@ function V(e) {
190
190
  function H(e) {
191
191
  let t = (e) => ({
192
192
  ...F(e, "phone"),
193
- type: p(F(e, "phone").type)
193
+ type: c(F(e, "phone").type)
194
194
  });
195
195
  return {
196
196
  create: e.create.map(t),
@@ -199,7 +199,7 @@ function H(e) {
199
199
  };
200
200
  }
201
201
  function U(e, t, n) {
202
- let r = g([e], I);
202
+ let r = d([e], I);
203
203
  return n && e.entryNode && e.status === "existing" && I(e) && r.create.length === 0 && r.update.length === 0 && r.remove.length === 0 ? {
204
204
  create: r.create,
205
205
  update: [F({
@@ -210,7 +210,7 @@ function U(e, t, n) {
210
210
  } : r;
211
211
  }
212
212
  function W({ phone: e }) {
213
- let t = "Mobile Number", n = "Phone Type 1", r = "phone-value", o = a(e?.value || ""), s = o.dialCode;
213
+ let t = "Mobile Number", n = "Phone Type 1", a = "phone-value", o = i(e?.value || ""), s = o.dialCode;
214
214
  return T`
215
215
  <div class="profile-edit-dialog__row profile-edit-dialog__row--equal profile-edit-dialog__row--contact-point">
216
216
  <div class="profile-edit-dialog__field">
@@ -219,7 +219,7 @@ function W({ phone: e }) {
219
219
  <input
220
220
  class="input"
221
221
  type="tel"
222
- name=${r}
222
+ name=${a}
223
223
  .value=${o.localNumber}
224
224
  required
225
225
  data-contact-field="value"
@@ -229,8 +229,8 @@ function W({ phone: e }) {
229
229
  autocomplete="tel-national"
230
230
  inputmode="tel"
231
231
  @input=${(t) => {
232
- let n = t.target, r = b(n.value);
233
- e && m(e, "value", i(s, r), I);
232
+ let n = t.target, i = b(n.value);
233
+ e && l(e, "value", r(s, i), I);
234
234
  }}
235
235
  />
236
236
  </label>
@@ -239,14 +239,14 @@ function W({ phone: e }) {
239
239
  <solid-ui-combobox
240
240
  select-only
241
241
  class="profile-edit-dialog__type-select"
242
- id=${`phone-type-select-${r}`}
242
+ id=${`phone-type-select-${a}`}
243
243
  aria-label=${n}
244
244
  .value=${N(e?.type || "", D)}
245
245
  @change=${(t) => {
246
246
  let n = t;
247
247
  if (!n.detail.option) return;
248
248
  let r = String(n.detail.option.value);
249
- e && h(e, "type", r);
249
+ e && u(e, "type", r);
250
250
  }}
251
251
  >
252
252
  ${D.map((e) => T`<solid-ui-combobox-option value=${e.value}>${e.label}</solid-ui-combobox-option>`)}
@@ -275,7 +275,7 @@ function G({ email: e }) {
275
275
  inputmode="email"
276
276
  @input=${(t) => {
277
277
  let n = t.target, r = y(n.value);
278
- e && m(e, "value", r, I);
278
+ e && l(e, "value", r, I);
279
279
  }}
280
280
  />
281
281
  </label>
@@ -290,7 +290,7 @@ function G({ email: e }) {
290
290
  let n = t;
291
291
  if (!n.detail.option) return;
292
292
  let r = String(n.detail.option.value);
293
- e && h(e, "type", r);
293
+ e && u(e, "type", r);
294
294
  }}
295
295
  >
296
296
  ${O.map((e) => T`<solid-ui-combobox-option value=${e.value}>${e.label}</solid-ui-combobox-option>`)}
@@ -302,7 +302,7 @@ function G({ email: e }) {
302
302
  function K({ address: e }) {
303
303
  let t = "Address", n = (t) => (n) => {
304
304
  let r = n.target, i = _(r.value);
305
- e && m(e, t, i, I);
305
+ e && l(e, t, i, I);
306
306
  };
307
307
  return T`
308
308
  <label aria-label=${`${t} Street`} class="label profile-edit-dialog__field profile-edit-dialog__field--row-width">
@@ -394,9 +394,9 @@ function K({ address: e }) {
394
394
  `;
395
395
  }
396
396
  function q(e, n) {
397
- let { basicInfo: r, phone: i, email: a, imagePreviewSrc: o } = e, s = "Full Name", c = "Nickname", l = "Pronouns", u = (e) => (t) => {
397
+ let { basicInfo: r, phone: i, email: a, imagePreviewSrc: o } = e, s = "Full Name", c = "Nickname", u = "Pronouns", d = (e) => (t) => {
398
398
  let n = t.target, i = v(n.value);
399
- r && m(r, e, i, I);
399
+ r && l(r, e, i, I);
400
400
  };
401
401
  return T`
402
402
  <div class="profile-edit-dialog__row profile-edit-dialog__row--heading-photo">
@@ -466,7 +466,7 @@ function q(e, n) {
466
466
  aria-label="Delete profile photo"
467
467
  title="Remove"
468
468
  @click=${async () => {
469
- r && (e.pendingImageFile = null, e.clearImagePreview(), m(r, "imageSrc", "", I), n());
469
+ r && (e.pendingImageFile = null, e.clearImagePreview(), l(r, "imageSrc", "", I), n());
470
470
  }}
471
471
  >
472
472
  Remove
@@ -493,7 +493,7 @@ function q(e, n) {
493
493
  placeholder="Full Name"
494
494
  autocomplete="name"
495
495
  inputmode="text"
496
- @change=${u("name")}
496
+ @change=${d("name")}
497
497
  />
498
498
  </label>
499
499
  <label aria-label=${c} class="label profile-edit-dialog__field">
@@ -509,27 +509,27 @@ function q(e, n) {
509
509
  placeholder="Nickname"
510
510
  autocomplete="nickname"
511
511
  inputmode="text"
512
- @change=${u("nickname")}
512
+ @change=${d("nickname")}
513
513
  />
514
514
  </label>
515
515
  </div>
516
516
  <div class="profile-edit-dialog__row profile-edit-dialog__row--equal profile-edit-dialog__row--heading-dob">
517
517
  <div class="profile-edit-dialog__field-type profile-edit-dialog__field--stack">
518
- <label aria-label=${l} class="label">
519
- ${l}
518
+ <label aria-label=${u} class="label">
519
+ ${u}
520
520
  </label>
521
521
  <solid-ui-combobox
522
522
  select-only
523
523
  class="profile-edit-dialog__type-select"
524
524
  name="pronouns"
525
525
  data-heading-basic-field="pronouns"
526
- aria-label=${l}
526
+ aria-label=${u}
527
527
  .value=${L(r?.pronouns || "")}
528
528
  @change=${(e) => {
529
529
  let t = e;
530
530
  if (!t.detail.option) return;
531
531
  let n = L(String(t.detail.option.value));
532
- r && m(r, "pronouns", n, I);
532
+ r && l(r, "pronouns", n, I);
533
533
  }}
534
534
  >
535
535
  ${k.map((e) => T`<solid-ui-combobox-option value=${e.value}>${e.label}</solid-ui-combobox-option>`)}
@@ -553,7 +553,7 @@ function q(e, n) {
553
553
  data-bwignore="true"
554
554
  @change=${(e) => {
555
555
  let t = e.target, n = v(t.value);
556
- r && m(r, "dateOfBirth", x(n), I);
556
+ r && l(r, "dateOfBirth", x(n), I);
557
557
  }}
558
558
  />
559
559
  </div>
@@ -569,11 +569,11 @@ function q(e, n) {
569
569
  </div>
570
570
  `;
571
571
  }
572
- function J(e, t, r) {
572
+ function J(e, t, n) {
573
573
  E(T`
574
- ${q(t, () => J(e, t, r))}
574
+ ${q(t, () => J(e, t, n))}
575
575
  ${K({ address: t.address })}
576
- ${r === "owner" ? null : T`<p class="profile-edit-dialog__login-message">${n}</p>`}
576
+ ${n === "owner" ? null : T`<p class="profile-edit-dialog__login-message">${g}</p>`}
577
577
  `, e);
578
578
  }
579
579
  function Y(e, t) {
@@ -592,49 +592,49 @@ function Z(e) {
592
592
  return /^\d+$/.test(e);
593
593
  }
594
594
  function Q(e) {
595
- if (!o(e.basicInfo.name)) return "Full Name is required.";
596
- let { localNumber: t } = a(e.phone?.value || "");
595
+ if (!f(e.basicInfo.name)) return "Full Name is required.";
596
+ let { localNumber: t } = i(e.phone?.value || "");
597
597
  return I(e.phone) && !Z(t) ? "Phone Number 1 should contain only numbers." : I(e.email) && !X(e.email?.value || "") ? "Email address must be a valid email address." : null;
598
598
  }
599
- async function $(t, n, i, a, o, l) {
600
- let u = document, d = s(c(a.imageSrc || "")), { form: f, formState: p } = Y(a, o);
601
- if (p.basicInfo.imageSrc) {
602
- let e = await C(n, p.basicInfo.imageSrc);
603
- e && e !== p.basicInfo.imageSrc && (B(p, e), J(f, p, o));
599
+ async function $(t, r, i, a, o, s) {
600
+ let c = document, u = p(m(a.imageSrc || "")), { form: f, formState: h } = Y(a, o);
601
+ if (h.basicInfo.imageSrc) {
602
+ let e = await C(r, h.basicInfo.imageSrc);
603
+ e && e !== h.basicInfo.imageSrc && (B(h, e), J(f, h, o));
604
604
  }
605
605
  await e({
606
606
  title: "Edit Heading",
607
- dom: u,
607
+ dom: c,
608
608
  form: f,
609
609
  headerAction: { type: "none" },
610
610
  submitLabel: "Save Changes",
611
611
  cancelLabel: "Cancel",
612
612
  shouldCloseWithoutSave: () => {
613
- let e = g([p.basicInfo], I), t = U(p.phone, "phone", p.phoneTypeWasMissing), n = U(p.email, "email", p.emailTypeWasMissing), r = g([p.address], I);
613
+ let e = d([h.basicInfo], I), t = U(h.phone, "phone", h.phoneTypeWasMissing), n = U(h.email, "email", h.emailTypeWasMissing), r = d([h.address], I);
614
614
  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;
615
615
  },
616
- validate: () => o === "owner" ? Q(p) : "You need to log in as the profile owner to save contact updates.",
616
+ validate: () => o === "owner" ? Q(h) : "You need to log in as the profile owner to save contact updates.",
617
617
  onSave: async () => {
618
- if (p.pendingImageFile) {
619
- let e = await w(n, i, p.pendingImageFile);
620
- m(p.basicInfo, "imageSrc", e, I);
618
+ if (h.pendingImageFile) {
619
+ let e = await w(r, i, h.pendingImageFile);
620
+ l(h.basicInfo, "imageSrc", e, I);
621
621
  }
622
- let e = U(p.phone, "phone", p.phoneTypeWasMissing), t = U(p.email, "email", p.emailTypeWasMissing), a = {
623
- basicOps: g([p.basicInfo], I),
622
+ let e = U(h.phone, "phone", h.phoneTypeWasMissing), t = U(h.email, "email", h.emailTypeWasMissing), a = {
623
+ basicOps: d([h.basicInfo], I),
624
624
  phoneOps: H(e),
625
625
  emailOps: V(t),
626
- addressOps: g([p.address], I)
626
+ addressOps: d([h.address], I)
627
627
  };
628
- await r(n, i, a);
629
- let o = s(p.basicInfo.imageSrc || "");
630
- if (d && d !== o) try {
631
- S(d);
628
+ await n(r, i, a);
629
+ let o = p(h.basicInfo.imageSrc || "");
630
+ if (u && u !== o) try {
631
+ S(u);
632
632
  } catch (e) {
633
633
  console.warn("Failed to invalidate resolved photo cache", e);
634
634
  }
635
635
  },
636
636
  formatSaveError: (e) => e instanceof Error ? e.message : "Unable to save your heading information."
637
- }) && l && await l();
637
+ }) && s && await s();
638
638
  }
639
639
  export { $ as createHeadingEditDialog };
640
640