(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5382],{57832:function(r,o,e){"use strict";e.d(o,{S:function(){return z}});var t=e(22470),i=e(67294),a=e(58499),n=(e(36380),e(10917)),l=e(74128),p=e(19827),d=e(33664),s=e(32763),c=e(36308),x=e(47440),g=e(93867),b=(e(23279),e(61512),e(22078)),u=e(86315),m=(e(73935),e(64736)),f=e(61765);g.Z.div` position: relative; display: flex; height: 100%; flex-direction: column; padding: 16px 24px; ${c.M.mbDown} { padding: 16px 16px; } .input-group-container { flex: 1; padding-right: 2px; padding-left: 2px; margin-bottom: 24px; -ms-overflow-style: none; /* IE and Edge */ overflow-y: auto; scrollbar-width: none; /* Firefox */ &::-webkit-scrollbar { display: none; } } .input-group { :not(:last-child) { margin-bottom: 0.6rem; } input:focus, textarea:focus, [contenteditable='true'] { outline: none; } label { margin-bottom: 5px; color: ${n.r.colors.gray600}; /* font-family: 'Open Sans', sans-serif; */ font-size: 13px; font-weight: bold; } .input-group-label { margin-bottom: 5px; color: ${n.r.colors.gray600}; /* font-family: 'Open Sans', sans-serif; */ font-size: 13px; font-weight: bold; } .input-notification { display: flex; & > img { width: 16px; height: 16px; margin-top: 1.5px; margin-right: 8px; } } .tag-list { } } .warning { margin-top: 16px; } .submit-btn { width: 100%; } .switch-label { display: flex; align-items: center; } .swich-input-group { padding: 12px 16px; border-radius: 8px; background: ${n.r.colors.neutral50}; &.askdoctor-switch { background: ${n.r.colors.primary50}; &.mb-color { background: ${n.r.mbColors.tonePink}; } } .mantine-Switch-labelWrapper { flex-grow: 1; } .mantine-Checkbox-body { display: flex; width: 100%; align-items: center; justify-content: space-between; } .mantine-Switch-track { margin-bottom: 0; } .label-txt { font-weight: normal; font-size: 14px; color: ${n.r.colors.gray800}; margin-left: 10px; } } `,g.Z.div` display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 0 0 8px 8px; background: ${n.r.colors.neutral50}; border: 1px solid ${n.r.colors.gray200}; gap: 12px; &.has-error { border: 1px solid ${n.r.colors.red600}; } &.error-description { border: 1px solid ${n.r.colors.red600}; border-top: none; } &[data-is-marry-baby='true'] { background: ${n.r.mbColors.tonePink}; } .switch-label { display: flex; gap: 4px; align-items: flex-start; svg { margin-top: 2px; } .wrapper-text { .label-txt { color: ${n.r.colors.gray800}; font-size: 14px; font-weight: 600; line-height: 22px; } .description-txt { color: ${n.r.colors.gray700}; font-size: 12px; font-weight: 400; line-height: 18px; } } } button { height: 40px; &:hover, &.primary { border-radius: 16px; border: 1px solid ${n.r.colors.blue100}; background: ${n.r.colors.blue50}; color: ${n.r.colors.primaryBase}; } } `,g.Z.div` margin-bottom: 12px; color: ${n.r.colors.red700}; svg { margin-right: 5px; } svg, span { vertical-align: middle; } `,g.Z.div` .swich-input-group { padding: 12px 16px; border-radius: 8px; background: ${n.r.colors.neutral50}; &.askdoctor-switch { background: ${n.r.colors.blue50}; } .switch-label { display: flex; align-items: center; } .mantine-Switch-labelWrapper { flex-grow: 1; } .mantine-Checkbox-body { display: flex; width: 100%; align-items: center; justify-content: space-between; } .mantine-Switch-track { margin-bottom: 0; } .label-txt { font-weight: normal; font-size: 14px; color: ${n.r.colors.gray800}; margin-left: 14px; } } `,g.Z.div` display: flex; gap: 12px; .avatar { width: 40px; height: 40px; border-radius: 100%; img { border-radius: 100%; } .author-avatar { .col-left { display: none; } } } .post-action-form { display: flex; flex-direction: column; gap: 4px; } .post-action-by { color: ${n.r.colors.gray800}; font-size: 16px; font-weight: 600; line-height: 24px; } .post-action-result { display: flex; position: relative; &:after { content: ''; display: inline-block; width: 5px; height: 5px; background-color: ${n.r.colors.error}; border-radius: 100%; position: absolute; right: 7px; } } .dropdown-post-action { background: ${n.r.colors.white} !important; border-radius: 2px; border: 1px solid ${n.r.colors.neutral200} !important; > div { padding: 3px 8px; } span { flex: 1; color: ${n.r.colors.gray600}; font-size: 12px; font-weight: 600; line-height: 18px; } ul { width: 130px; li { img { flex: 0 0 16px; width: 16px; } } } } `,g.Z.div` display: inline-flex; gap: 8px; align-items: center; cursor: pointer; .session-title { color: ${n.r.colors.gray700}; font-size: 14px; font-weight: 400; line-height: 22px; flex: 1; } `;g.Z.div` background-color: white; z-index: 1000; top: 0; left: 0; height: 100%; position: absolute; width: 100%; .drawer-header { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid ${n.r.colors.gray200}; .input-group-label { flex: 1; } img { cursor: pointer; } p { flex: 1; } } .drawer-content { padding: 16px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; height: calc(100% - 49px); .input-field-label { margin-bottom: 8px; } &.drawer-content-full-screen { max-width: 680px; margin: 0 auto; padding: 16px 24px; } } `;g.Z.div` display: flex; flex-direction: column; gap: 8px; margin-top: 8px; .topic-review { display: flex; gap: 4px; flex-wrap: wrap; } .community-review { .tag-item { background-color: ${n.r.colors.neutral50}; img { border-radius: 50%; margin-right: 8px; } } } `;g.Z.div` input:focus, textarea:focus, [contenteditable='true'] { outline: none; } .title-input { overflow: hidden; width: 100%; padding: 12px 16px; border: solid 1px #d9d9d9; border-radius: ${n.r.borderRadius}; font-size: 16px; line-height: 1.2; white-space: nowrap; :focus { border-color: ${r=>r.color}; box-shadow: 0px 0px 2px 2px ${r=>r.colorShadow}; } br { display: none; } * { display: inline; white-space: nowrap; } mocka { padding: 2px 6px; border-radius: 1rem; &[data-error='true'] { background-color: #ffeeee; color: red; text-decoration: underline; font-style: bold; } } ol, ul { padding-left: 1rem; } } label { display: block; margin-bottom: 5px; color: ${n.r.colors.gray600}; font-size: 13px; font-weight: bold; } .count-string { margin-top: 5px; color: ${n.r.colors.gray500}; font-size: 11px; text-align: right; } `,g.Z.div` display: flex; gap: 4px; align-items: flex-start; margin-bottom: 14px; img { margin-top: 2px; max-width: 16px; } `;g.Z.div` .mantine-Text-root { margin-bottom: 4px; } .preview-images-container { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; .image-src-wrapper { flex: 0 0 140px; width: 140px; height: 96px; border-radius: 4px; position: relative; img { border-radius: 4px; } .icon-close { position: absolute; top: 6px; right: 6px; cursor: pointer; z-index: 10; max-height: 24px; max-width: 24px; } } } `,g.Z.div` .link-preview-wrapper { position: relative; .icon-close { position: absolute; top: 6px; right: 6px; cursor: pointer; z-index: 10; max-width: 24px; max-height: 24px; } } .mantine-Text-root { margin-bottom: 4px; } `,u.L.PhilippinesEnglish,u.L.PhilippinesTagalog,u.L.Indonesia,u.L.Malaysia,u.L.Vietnam;g.Z.div``,g.Z.div` display: flex; flex-direction: column; gap: 16px; .mantine-TopicSelectList-root { padding: 0; } .mantine-TopicSelectList-list { gap: 12px; } .tag-list { margin: 0; } `,g.Z.div` display: flex; flex-direction: column; gap: 8px; .other-btn-community { color: ${n.r.colors.gray400}; font-size: 16px; font-weight: 600; line-height: 24px; cursor: pointer; } `,g.Z.div` display: flex; width: 100%; flex-wrap: wrap; margin-top: 1rem; gap: 12px; .tag-item { min-height: 32px; padding: 5px 12px; border: 1px solid ${n.r.colors.neutral100}; border-radius: 1rem; color: ${n.r.colors.gray800}; cursor: pointer; font-size: 13px; line-height: 22px; transition: all 0.2s; &.--active { border-color: ${n.r.colors.primary50}; background: ${n.r.colors.primary50}; color: ${n.r.colors.primaryBase}; } &[data-disabled='true'] { background: ${n.r.colors.gray100}; color: ${n.r.colors.gray800}; } } .topic-spinner { margin-right: auto; margin-left: auto; & > button { width: 24px; height: 24px; } } &[data-is-marrybaby='true'] { .tag-item { border-color: transparent; background: #f3f3f3; color: #3e3f58; &.--active { border-color: #b6cdff; background: #e0e9fb; color: #3e3f58; } } } `,g.Z.div` border-radius: 8px; border: 1px solid ${n.r.colors.neutral100}; background: ${n.r.colors.white}; border: 1px solid ${n.r.colors.neutral100}; .card-header { padding: 12px 16px; color: ${n.r.colors.gray800}; font-size: 14px; font-weight: 600; line-height: 22px; border-bottom: 1px solid ${n.r.colors.neutral100}; background: ${n.r.colors.neutral50}; border-radius: 8px 8px 0px 0px; } .card-body { padding: 16px; } `;g.Z.div` display: flex; flex-direction: column; gap: 8px; margin-top: 8px; .topic-review { display: flex; gap: 4px; flex-wrap: wrap; } .community-review { .tag-item { background-color: ${n.r.colors.neutral50}; img { border-radius: 50%; margin-right: 8px; } } } `;g.Z.div` background-color: white; z-index: 1000; top: 0; left: 0; height: 100%; position: absolute; width: 100%; .drawer-header { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid ${n.r.colors.gray200}; img { cursor: pointer; } p { flex: 1; } } .drawer-content { padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; height: calc(100% - 49px); ${c.M.mbDown} { padding: 16px; &.drawer-content-adjust { justify-content: center; } } .input-field-label { margin-bottom: 8px; } &.drawer-content-full-screen { max-width: 680px; margin: 0 auto; padding: 16px 24px; } } `,g.Z.div` display: flex; flex-direction: column; gap: 32px; `,g.Z.div` display: flex; flex-direction: column; justify-content: center; gap: 24px; align-items: center; max-width: 400px; margin: 0 auto; .search-description { text-align: center; font-size: 16px; font-weight: 600; line-height: 24px; background: linear-gradient(92deg, #45a4ff 16.17%, #00c076 98.95%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .result-search-description { color: ${n.r.colors.gray800}; font-size: 16px; font-weight: 400; line-height: 24px; text-align: center; } `,g.Z.div` display: flex; flex-direction: column; gap: 16px; .tag-item-review { display: flex; align-items: center; gap: 12px; .tag-item-label { flex: 1; color: ${n.r.colors.gray800}; font-size: 16px; font-weight: 400; line-height: 24px; } } .topic-item-review-wrapper { display: flex; gap: 12px; flex-wrap: wrap; } .topic-item-review { border-radius: 40px; background: ${n.r.colors.blue50}; padding: 6px 12px; } `,g.Z.div` display: flex; flex-direction: column; gap: 8px; .other-btn-community { color: ${n.r.colors.gray400}; font-size: 16px; font-weight: 600; line-height: 24px; cursor: pointer; } `;g.Z.div` input:focus, textarea:focus, [contenteditable='true'] { outline: none; } &.has-ask-doctor-option { .textarea-control { border-bottom: none; border-radius: 4px 4px 0 0; } } &.error-description { .textarea-control { border: 1px solid ${n.r.colors.red600}; border-bottom: none; } } .textarea-control { position: relative; border: 1px solid ${n.r.colors.gray200}; border-bottom: none; border-radius: 8px 8px 0 0; &.--focus { border-color: ${n.r.colors.primaryBase}; box-shadow: 0px 0px 2px 2px ${n.r.colors.primary200}; } .textarea-wrapper { width: 100%; min-height: 268px; height: auto; } .control-tool { position: absolute; bottom: 0; left: 0; display: flex; width: calc(100% - 2rem); height: 40px; align-items: center; justify-content: flex-end; border-top: 1px solid ${n.r.colors.gray200}; margin: 0 1rem; .tool-button { display: flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; background: transparent; cursor: pointer; } .image-icon { vertical-align: middle; } } } .link-preview-wrapper { position: relative; .icon-close { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; cursor: pointer; } } .image-gallery { margin-bottom: 1rem; .image-item { position: relative; overflow: hidden; width: 100%; height: 0; padding-top: 67%; margin-top: 1rem; border-radius: ${n.r.borderRadius}; & > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } .close-btn { position: absolute; top: 8px; right: 8px; left: unset; width: 24px; height: 24px; cursor: pointer; } } } .description-label { margin-bottom: 5px; color: ${n.r.colors.gray600}; /* font-family: 'Open Sans', sans-serif; */ font-size: 13px; font-weight: bold; } .count-string { margin-top: 5px; color: ${n.r.colors.gray500}; font-size: 11px; text-align: right; } .input-notification { display: flex; & > img { width: 16px; height: 16px; margin-top: 1.5px; margin-right: 8px; } } `,g.Z.div` height: 100%; position: relative; width: 100%; display: flex; flex-direction: column; .ql-toolbar.ql-snow { top: 0; width: 100%; // position: sticky; z-index: 3; border: none; border-bottom: 1px solid #ccc; border-radius: 8px 8px 0 0; background: white; .ql-formats { display: inline-flex; align-items: center; margin-right: 0.5rem; .link-tool-wrapper { .popover-menu__content { padding: 0.5rem; transform: translateX(calc(-50% - 1rem)); max-width: calc(100vw - 4rem); ::before { right: calc(50% - 8px); } .link-tool-popover { input { padding-left: 1rem; } .link-input-url { margin-bottom: 0.5rem; } .link-input-text { margin-bottom: 0.5rem; } label { display: inline-block; margin-bottom: 0.2rem; } .link-input-button-wrapper { &[data-is-marrybaby='true'] { .link-input-button { border: solid 2px ${n.r.mbColors.pink}; background-color: ${n.r.mbColors.pink}; &:hover:not(:disabled) { border: solid 2px ${n.r.mbColors.pink}; background-color: ${n.r.colors.white}; color: ${n.r.mbColors.pink}; } } } } .link-input-button { width: auto; height: auto; padding: 0.4rem 1rem; background-color: ${n.r.colors.primaryBase}; &:disabled { border-color: #bfbfbf; background-color: #bfbfbf; color: #fff; cursor: not-allowed; } &:hover:not(:disabled) { background-color: ${n.r.colors.primaryHover}; } } .error-text { padding: 0; margin-bottom: 0.5rem; font-weight: 600; color: ${n.r.colors.red700}; } } } } } @media (max-width: 450px) { position: relative; .ql-formats { .link-tool-wrapper { position: unset; .popover-menu__content { left: 0; transform: unset; max-width: 100%; } } } } } .quill { flex: 1; overflow-y: hidden; .ql-container { display: inline-block; width: 100%; min-height: 100%; /* padding: 14px 16px; */ border: none; border-radius: ${n.r.borderRadius}; color: ${n.r.colors.gray800}; font-size: 1rem; line-height: 1.5; resize: none; white-space: break-spaces; .ql-editor { word-break: break-word; overflow-wrap: break-word; /* -ms-overflow-style: none; scrollbar-width: none; &::-webkit-scrollbar { display: none; } */ &::before { font-size: 16px; color: ${n.r.colors.gray400}; font-weight: 400; line-height: 24px; font-style: normal; } } mocka { padding: 2px 6px; border-radius: 1rem; &[data-url='true'] { /* background-color: #eeeeff; */ font-style: italic; color: #1890ff; cursor: pointer; outline: none; text-decoration: underline; } &[data-error='true'] { background-color: #ffeeee; color: red; text-decoration: underline; font-style: bold; } } mention { padding: 2px 6px; border-radius: 1rem; background-color: #eeeeff; color: #1890ff; cursor: pointer; outline: none; text-decoration: none; } ol, ul { padding-left: 1rem; } } } .mention-search-container { position: absolute; background: white; border-radius: ${n.r.borderRadius}; filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04)); overflow-y: scroll; z-index: 99; ::-webkit-scrollbar { -webkit-appearance: none; } ::-webkit-scrollbar:vertical { width: 14px; } ::-webkit-scrollbar-thumb { border-radius: ${n.r.borderRadius}; background-color: #d9d9d9; @supports (background-clip: padding-box) { border: 3px solid rgba(0, 0, 0, 0); background-clip: padding-box; } @supports not (background-clip: padding-box) { border: 3px solid white; } } ::-webkit-scrollbar-track { background-color: #fff; border-radius: 0 6px 6px 0; border-left: 1px solid #f2f2f2; } .mention-search-item { cursor: pointer; padding: 12px 1rem; display: flex; align-items: center; &.item-selected { background-color: ${n.r.colors.gray100}; } .search-avatar { width: 40px; height: 40px; font-size: 20px; margin-right: 20px; } } } `;let h=null;(0,t.a)(void 0,void 0,void 0,(function*(){if("undefined"===typeof window)return;const r=yield Promise.all([e.e(2937),e.e(7127)]).then(e.t.bind(e,71167,23));h=r.default;const o=r.Quill||h.Quill;o.register("modules/preserveWhiteSpace",class{constructor(r,o){this.quill=r,this.options=o,r.container.style.whiteSpace="pre-line"}});const t=o.import("blots/inline");class i extends t{static create(r){if(!r)return super.create(!1);const o=super.create(r);return i.setNodeConfigurations(o,r),o}static formats(r){return!(!r.innerText||!(r.getAttribute("data-href")||r.getAttribute("data-url")||r.getAttribute("data-error")||r.getAttribute("data-bad-word")))&&{"data-bad-word":r.getAttribute("data-bad-word"),"data-error":r.getAttribute("data-error"),"data-href":r.getAttribute("data-href"),"data-url":r.getAttribute("data-url"),"data-text":r.innerText||r.getAttribute("data-href")}}static setNodeConfigurations(r,o){var e,t;o&&(null===(t=null===(e=null===o||void 0===o?void 0:o["data-text"])||void 0===e?void 0:e.replace(/(\ )+/g," "))||void 0===t?void 0:t.replace(/(\u200c|‌)+/g,""))&&(o["data-bad-word"]&&r.setAttribute("data-bad-word",o["data-bad-word"]),o["data-href"]&&r.setAttribute("data-href",o["data-href"]),o["data-error"]&&r.setAttribute("data-error",o["data-error"]),o["data-url"]&&r.setAttribute("data-url",o["data-url"]))}}i.blotName="mocka1",i.tagName="mocka",o.register(i);class a extends t{static create(r){if(!r)return super.create(!1);const o=super.create(r);return a.setNodeConfigurations(o,r),o}static formats(r){return!(!r.getAttribute("data-name")||!r.getAttribute("data-id"))&&{"data-name":r.getAttribute("data-name"),"data-id":r.getAttribute("data-id")}}static setNodeConfigurations(r,o){var e,t;o&&o["data-id"]&&(null===(t=null===(e=null===o||void 0===o?void 0:o["data-name"])||void 0===e?void 0:e.replace(/(\ )+/g," "))||void 0===t?void 0:t.replace(/(\u200c|‌)+/g,""))&&(o["data-id"]&&r.setAttribute("data-id",o["data-id"]),o["data-name"]&&r.setAttribute("data-name",o["data-name"]))}}a.blotName="mention",a.tagName="mention",o.register(a)}));g.Z.div` input:focus, textarea:focus, [contenteditable='true'] { outline: none; } input { &::placeholder { font-size: 16px; color: ${n.r.colors.gray400}; font-weight: 400; line-height: 24px; } } .title-input { overflow: hidden; width: 100%; padding: 12px 16px; border: solid 1px #d9d9d9; border-radius: ${n.r.borderRadius}; font-size: 16px; line-height: 1.2; white-space: nowrap; :focus { border-color: ${r=>r.color}; box-shadow: 0px 0px 2px 2px ${r=>r.colorShadow}; } br { display: none; } * { display: inline; white-space: nowrap; } mocka { padding: 2px 6px; border-radius: 1rem; &[data-error='true'] { background-color: #ffeeee; color: red; text-decoration: underline; font-style: bold; } } ol, ul { padding-left: 1rem; } } label { display: block; margin-bottom: 5px; color: ${n.r.colors.gray600}; font-size: 13px; font-weight: bold; } .count-string { color: ${n.r.colors.gray400}; font-size: 14px; text-align: right; font-weight: 400; line-height: 22px; letter-spacing: -0.2px; text-transform: lowercase; } .has-input-error { input { border: 1px solid ${n.r.colors.red600}; } } `,g.Z.div` display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; .field-label { color: ${n.r.colors.gray600}; font-size: 14px; font-weight: 600; line-height: 22px; } `;var w;!function(r){r.title="create-post-title-field",r.description="create-post-description-field",r.photos="create-post-photos-field"}(w||(w={}));g.Z.div` position: relative; display: flex; height: 100%; flex-direction: column; ${c.M.mbDown} { padding: 16px 16px; } .input-group-container { flex: 1; padding: 16px 24px; -ms-overflow-style: none; /* IE and Edge */ overflow-y: auto; scrollbar-width: none; /* Firefox */ &::-webkit-scrollbar { display: none; } } .input-group { :not(:last-child) { margin-bottom: 0.6rem; } input:focus, textarea:focus, [contenteditable='true'] { outline: none; } label { margin-bottom: 5px; color: ${n.r.colors.gray600}; /* font-family: 'Open Sans', sans-serif; */ font-size: 13px; font-weight: bold; } .input-group-label { margin-bottom: 5px; color: ${n.r.colors.gray600}; /* font-family: 'Open Sans', sans-serif; */ font-size: 13px; font-weight: bold; } .input-notification { display: flex; & > img { width: 16px; height: 16px; margin-top: 1.5px; margin-right: 8px; } } .tag-list { } } .warning { margin-top: 16px; } .submit-btn { width: 100%; } .switch-label { display: flex; align-items: center; } .swich-input-group { padding: 12px 16px; border-radius: 8px; background: ${n.r.colors.neutral50}; &.askdoctor-switch { background: ${n.r.colors.primary50}; &.mb-color { background: ${n.r.mbColors.tonePink}; } } .mantine-Switch-labelWrapper { flex-grow: 1; } .mantine-Checkbox-body { display: flex; width: 100%; align-items: center; justify-content: space-between; } .mantine-Switch-track { margin-bottom: 0; } .label-txt { font-weight: normal; font-size: 14px; color: ${n.r.colors.gray800}; margin-left: 10px; } } `,g.Z.div` display: flex; width: 100%; align-items: center; justify-content: space-between; border-radius: 8px; background: ${n.r.colors.neutral50}; gap: 12px; &.has-error { border: 1px solid ${n.r.colors.red600}; } &.error-description { border: 1px solid ${n.r.colors.red600}; border-top: none; } &[data-is-marry-baby='true'] { background: ${n.r.mbColors.tonePink}; } .switch-label { display: flex; gap: 12px; align-items: center; .wrapper-text { .label-txt { color: ${n.r.colors.gray800}; font-size: 14px; font-weight: 600; line-height: 22px; } .description-txt { color: ${n.r.colors.gray700}; font-size: 12px; font-weight: 400; line-height: 18px; } } } .switch-btn { .mantine-Switch-track { margin: 0; min-width: 40px; width: 40px; } .mantine-Switch-labelWrapper { display: none; } } button { height: 40px; &:hover, &.primary { border-radius: 16px; border: 1px solid ${n.r.colors.blue100}; background: ${n.r.colors.blue50}; color: ${n.r.colors.primaryBase}; } } `,g.Z.div` margin-bottom: 12px; color: ${n.r.colors.red700}; svg { margin-right: 5px; } svg, span { vertical-align: middle; } .mantine-Text-root { color: ${n.r.colors.red600}; font-size: 12px; font-weight: 400; line-height: 18px; display: block; } `,g.Z.div` .swich-input-group { padding: 12px 16px; border-radius: 8px; background: ${n.r.colors.neutral50}; &.askdoctor-switch { background: ${n.r.colors.blue50}; } .switch-label { display: flex; align-items: center; } .mantine-Switch-labelWrapper { flex-grow: 1; } .mantine-Checkbox-body { display: flex; width: 100%; align-items: center; justify-content: space-between; } .mantine-Switch-track { margin-bottom: 0; } .label-txt { font-weight: normal; font-size: 14px; color: ${n.r.colors.gray800}; margin-left: 14px; } } `,g.Z.div` display: flex; gap: 12px; .avatar { width: 40px; height: 40px; border-radius: 100%; &.avatar-anonymous { background: ${n.r.colors.neutral100}; } img { border-radius: 100%; } .author-avatar { .col-left { display: none; } } } .post-action-form { display: flex; flex-direction: column; gap: 4px; } .post-action-by { color: ${n.r.colors.gray800}; font-size: 16px; font-weight: 600; line-height: 24px; } .post-action-result { display: flex; position: relative; } .dropdown-post-action { background: ${n.r.colors.white} !important; border-radius: 8px; border: 1px solid ${n.r.colors.neutral200} !important; > div { padding: 3px 8px; } span { flex: 1; color: ${n.r.colors.gray600}; font-size: 12px; font-weight: 600; line-height: 18px; } ul { width: 130px; li { img { flex: 0 0 16px; width: 16px; } } } } `,g.Z.div` display: inline-flex; gap: 8px; align-items: center; cursor: pointer; .session-title { color: ${n.r.colors.gray600}; font-size: 14px; font-weight: 600; line-height: 22px; flex: 1; } `,g.Z.div` padding: 10px 16px; border-top: none; border-radius: 12px; background: ${n.r.colors.neutral50}; display: flex; flex-direction: column; gap: 8px; &.has-error { border: 1px solid ${n.r.colors.red600}; } &.error-description { border: 1px solid ${n.r.colors.red600}; border-top: none; } `,g.Z.div` display: flex; padding: 16px 24px 24px 24px; justify-content: space-between; align-items: center; box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.08); ${c.M.mbDown} { padding: 8px 16px 12px 16px; gap: 12px; flex-direction: column; justify-content: flex-start; align-items: flex-start; .action-wrapper { width: 100%; flex: 1 1 100%; } } .input-group { margin-bottom: 0 !important; } `,g.Z.div` padding: 8px 8px; border: 1px solid ${n.r.colors.gray200}; border-top: none; border-radius: 0 0 8px 8px; &.has-error { border: 1px solid ${n.r.colors.red600}; } &.error-description { border: 1px solid ${n.r.colors.red600}; border-top: none; } .error-choice-question { color: ${n.r.colors.red600}; font-size: 12px; font-weight: 400; line-height: 22px; letter-spacing: -0.2px; } `,(0,g.Z)(l.s)` gap: 8px; &.mantine-SegmentedControl-root { background-color: transparent; padding: 0px; } .mantine-SegmentedControl-indicator { display: none; } .mantine-SegmentedControl-label { margin-bottom: 0px !important; display: flex; padding: 5px 12px; justify-content: center; align-items: center; gap: 8px; height: 32px; border: 1px solid ${n.r.colors.neutral100}; } .mantine-SegmentedControl-control { color: ${n.r.colors.gray800}; font-size: 14px; font-style: normal; font-weight: 600; line-height: 22px; border-radius: 8px; background: ${n.r.colors.white}; border-width: 0 !important; } .mantine-SegmentedControl-controlActive { border-radius: 8px; background: ${n.r.colors.blue50}; .mantine-SegmentedControl-label { color: ${n.r.colors.primaryBase}; border: 1px solid ${n.r.colors.blue50}; } } &.segmented-marry-baby { .mantine-SegmentedControl-control { border-radius: 16px; } .mantine-SegmentedControl-label { border-radius: 16px; } .mantine-SegmentedControl-controlActive { border-radius: 16px; background: ${n.r.colors.pink500}; .mantine-SegmentedControl-label { color: ${n.r.colors.white}; border: 1px solid ${n.r.colors.pink500}; } } } `,g.Z.div` .mantine-Text-root { margin-bottom: 4px; } .preview-images-container { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; .image-src-wrapper { flex: 0 0 116px; width: 116px; height: 116px; border-radius: 4px; position: relative; img { border-radius: 4px; } .icon-close { position: absolute; top: 6px; right: 6px; cursor: pointer; z-index: 10; max-height: 24px; max-width: 24px; } &.image-has-error { .preview-image { border: 1.5px solid ${n.r.colors.red600}; } } } } `;u.L.PhilippinesEnglish,u.L.PhilippinesTagalog,u.L.Indonesia,u.L.Malaysia,u.L.Vietnam,g.Z.div` display: flex; width: 100%; flex-wrap: wrap; margin-top: 1rem; .tag-item { min-height: 32px; padding: 5px 12px; border: 1px solid ${n.r.colors.neutral100}; margin-right: 1rem; margin-bottom: 8px; border-radius: 1rem; color: ${n.r.colors.gray800}; cursor: pointer; font-size: 13px; line-height: 22px; transition: all 0.2s; &.--active { border-color: ${n.r.colors.primary50}; background: ${n.r.colors.primary50}; color: ${n.r.colors.primaryBase}; } &[data-disabled='true'] { background: ${n.r.colors.gray100}; color: ${n.r.colors.gray800}; } } .topic-spinner { margin-right: auto; margin-left: auto; & > button { width: 24px; height: 24px; } } &[data-is-marrybaby='true'] { .tag-item { border-color: transparent; background: #f3f3f3; color: #3e3f58; &.--active { border-color: #b6cdff; background: #e0e9fb; color: #3e3f58; } } } `;var y="KsWg8i6",v="_9tS0EUN",k="kyyRKlb",$="-Uqqka-";const z=r=>{var{post:o,onSkip:e,btnText:n,currentPageUrl:l}=r,c=(0,t._)(r,["post","onSkip","btnText","currentPageUrl"]);const{t:g}=(0,a.u)(),{data:{locale:u},action:{pushNotifications:h}}=(0,i.useContext)(x.T),[w,z]=(0,i.useState)(!1),[Z,S]=(0,i.useState)(!1),C=(0,p.rZ)(),E=(0,i.useCallback)((()=>(0,t.a)(void 0,void 0,void 0,(function*(){var r;S(!0);const t=yield(0,x.b)((0,x.e)(b.yy.USER.SKIP_QUESTION,{_locale:u,id:null===o||void 0===o?void 0:o.id}),"PUT");1===(null===t||void 0===t?void 0:t.status)?(null===e||void 0===e||e({id:(null===o||void 0===o?void 0:o.id)||"",communityId:(null===(r=null===o||void 0===o?void 0:o.community)||void 0===r?void 0:r.id)||""}),z(!1),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null===t||void 0===t?void 0:t.messages,type:"danger"}),S(!1)}))),[]);return i.createElement(d.J,{width:327,withArrow:!0,shadow:"md",opened:w},i.createElement(d.J.Target,null,i.createElement("div",Object.assign({className:`${y} ${(null===c||void 0===c?void 0:c.className)||""}`,onClick:()=>z(!0)},c),n||g("profilePanel.questionNotClear"))),i.createElement(d.J.Dropdown,null,i.createElement("div",null,i.createElement("div",{className:v},g("profilePanel.skipQuestion.heading")),i.createElement("div",{className:k},g("profilePanel.skipQuestion.content")),i.createElement("div",{className:$},i.createElement(s.B,{size:"md",variant:"secondary",leftIcon:i.createElement(m.Z,{color:C.fn.primaryColor(),size:24}),onClick:()=>z(!1),styles:()=>({leftIcon:{marginRight:0}})}),i.createElement(s.B,{variant:"primary",size:"md",leftIcon:i.createElement(f.Z,{color:"white",size:24}),onClick:E,loading:Z,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":l,styles:()=>({leftIcon:{marginRight:0}})})))))}}}]);