1import{f as d}from"./chunk-GIT7R2P3.js";import{a as A}from"./chunk-XZ6GPS54.js";import"./chunk-IUKKLAQC.js";import{a as D,b as C,c as w,d as F}from"./chunk-YNHSKZ6V.js";import{a as k}from"./chunk-YZ7OB23E.js";import"./chunk-XIZQJC54.js";import"./chunk-43CRRPS4.js";import"./chunk-VHAOGA3G.js";import"./chunk-ACU6XFQI.js";import"./chunk-3XE2BJEZ.js";import"./chunk-GZVY2BMP.js";import"./chunk-4V6E6VOA.js";import"./chunk-ELZAVY3S.js";import"./chunk-X4B4PP7O.js";import"./chunk-QVY2MJ37.js";import"./chunk-4NKW7PKK.js";import"./chunk-7GPVAJGW.js";import"./chunk-FOU5E2PO.js";import"./chunk-GNCBRS4N.js";import"./chunk-VHYP2MLW.js";import"./chunk-N5JTTHAK.js";import"./chunk-NJM3O3ZW.js";import"./chunk-UL3XGKVG.js";import"./chunk-BSFGOJB5.js";import"./chunk-6NWRJNH7.js";import"./chunk-4C2PIUNH.js";import"./chunk-2YNRJUXV.js";import"./chunk-AH77YUI4.js";import"./chunk-X3BKTU7P.js";import"./chunk-RNACI2ER.js";import"./chunk-YGPQXY6X.js";import"./chunk-H4IOJQAC.js";import"./chunk-PSLZ3OTT.js";import{$b as t,Lc as e,Mc as c,Nc as _,Xb as h,Yb as b,Zb as v,_b as i,cb as s,da as g,ia as x,ja as f,jc as E,uc as r,wa as m,wc as y,xb as S}from"./chunk-5DSEJYP2.js";import"./chunk-3FRIJCUZ.js";var T=(a,n)=>n.id;function P(a,n){if(a&1){let o=E();i(0,"button",9),r("click",function(){let l=x(o).$implicit,p=y();return f(p.openSettings(l.id))}),e(1),t()}if(a&2){let o=n.$implicit;s(),_(" ",o.label," ")}}function I(a,n){if(a&1){let o=E();i(0,"li",26),r("unlink",function(l){x(o);let p=y();return f(p.onUnlink(l))}),t()}if(a&2){let o=n.$implicit;v("account",o)("disabled",o.provider==="apple")}}var B=class a{settings=g(A);confirm=g(D);tabs=k;confirmResult=m(null);unlinked=m(null);edited=m(null);accounts=[d({}),d({id:"social-2",provider:"facebook",providerData:{email:"[email protected]"}}),d({id:"social-3",provider:"apple",providerData:{email:""}}),d({id:"social-4",provider:"vk",providerData:{email:"[email protected]"}})];openSettings(n){this.settings.openSettings(n)}openFeedback(){this.settings.openFeedback()}async askDelete(){this.confirmResult.set(null);let n=await this.confirm.ask({title:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0430\u043A\u0430\u0443\u043D\u0442?",subtitle:"\u0412\u0438 \u0442\u043E\u0447\u043D\u043E \u0445\u043E\u0447\u0435\u0442\u0435 \u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0441\u0432\u0456\u0439 \u0430\u043A\u0430\u0443\u043D\u0442? \u0426\u044F \u0434\u0456\u044F \u0454 \u043D\u0435\u0437\u0432\u043E\u0440\u043E\u0442\u043D\u043E\u044E.",warningTitle:"\u0429\u043E \u0431\u0443\u0434\u0435 \u0432\u0438\u0434\u0430\u043B\u0435\u043D\u043E:",warningItems:["\u0412\u0441\u0456 \u0432\u0430\u0448\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u0434\u0430\u043D\u0456","\u041D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0442\u0430 \u0443\u043F\u043E\u0434\u043E\u0431\u0430\u043D\u043D\u044F","\u0417\u0431\u0435\u0440\u0435\u0436\u0435\u043D\u0456 \u043C\u0430\u0442\u0435\u0440\u0456\u0430\u043B\u0438","\u0406\u0441\u0442\u043E\u0440\u0456\u044F \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u0456"],confirmLabel:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0430\u043A\u0430\u0443\u043D\u0442"});this.confirmResult.set(n)}onUnlink(n){this.unlinked.set(n.provider)}onEdit(n){this.edited.set(n)}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=S({type:a,selectors:[["app-community-settings-page"]],decls:97,vars:3,consts:[[1,"container","mx-auto","px-4","py-8"],[1,"mb-8"],[1,"mb-2","text-4xl","font-bold"],[1,"text-text-secondary"],[1,"mb-8","rounded-lg","bg-white","p-6","shadow-xs"],[1,"mb-4","text-xl","font-semibold"],[1,"text-text-secondary","mb-4","text-sm"],[1,"flex","flex-wrap","gap-3"],["type","button",1,"bg-channel-primary-500","hover:bg-channel-primary-600","rounded","px-4","py-2","text-sm","font-medium","text-white","transition-colors"],["type","button",1,"bg-channel-primary-500","hover:bg-channel-primary-600","rounded","px-4","py-2","text-sm","font-medium","text-white","transition-colors",3,"click"],[1,"flex","flex-wrap","items-center","gap-3"],[1,"text-text-secondary","text-sm"],[1,"bg-surface-community","flex","h-[600px]","max-w-3xl","flex-col","rounded-xl","p-4.5"],["app-settings-tab-frame","","heading","\u0412\u0430\u0448 \u0430\u043A\u0430\u0443\u043D\u0442","subheading","\u0412\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u0443 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044E \u0456 \u0434\u043E\u0434\u0430\u0442\u0438 \u0437\u0440\u0443\u0447\u043D\u0456 \u0441\u043F\u043E\u0441\u043E\u0431\u0438 \u0432\u0445\u043E\u0434\u0443","hasFooter",""],["content","",1,"mt-6","flex","flex-col","gap-8"],[1,"flex","flex-col","gap-6","xl:flex-row","xl:gap-4"],["app-settings-contact-field","","label","\u041F\u043E\u0448\u0442\u0430","value","[email protected]","placeholder","[email protected]","hint","\u041E\u0441\u043D\u043E\u0432\u043D\u0430 \u043F\u043E\u0448\u0442\u0430, \u044F\u043A\u0443 \u0432\u0438 \u0432\u043A\u0430\u0437\u0430\u043B\u0438 \u043F\u0440\u0438 \u0441\u0442\u0432\u043E\u0440\u0435\u043D\u043D\u0456 \u0430\u043A\u0430\u0443\u043D\u0442\u0430",1,"flex-1",3,"edit"],["app-settings-contact-field","","kind","phone","label","\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443","value","+380671234567","placeholder","00 000 00 00","hint","\u0412\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454\u0442\u044C\u0441\u044F \u0434\u043B\u044F \u0437\u0430\u0445\u0438\u0441\u0442\u0443 \u0430\u043A\u0430\u0443\u043D\u0442\u0430 \u0442\u0430 \u043F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043D\u043D\u044F \u0434\u0456\u0439",1,"flex-1",3,"edit"],["app-settings-contact-field","","label","\u041F\u043E\u0448\u0442\u0430 \u0434\u043B\u044F \u0434\u043E\u0431\u0456\u0440\u043E\u043A","placeholder","[email protected]","hint","\u041C\u043E\u0436\u043D\u0430 \u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0432 \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u0439 \u0447\u0430\u0441",1,"flex-1",3,"edit"],["app-settings-contact-field","","kind","phone","label","\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443 (\u043F\u043E\u0440\u043E\u0436\u043D\u0456\u0439)","placeholder","00 000 00 00",1,"flex-1",3,"edit"],[1,"flex","flex-col","gap-3"],[1,"text-h3","text-neutral-900"],[1,"text-body-xs","text-neutral-600"],["app-settings-social-account","",3,"account","disabled"],["footer","",1,"border-black-alpha-12","flex","justify-end","border-t","pt-6","max-md:justify-center"],["type","button","disabled","",1,"bg-channel-primary-500","text-body-s","h-12","rounded-full","px-10","text-white","transition-colors","hover:bg-neutral-900","disabled:cursor-not-allowed","disabled:opacity-50"],["app-settings-social-account","",3,"unlink","account","disabled"]],template:function(o,u){o&1&&(i(0,"article",0)(1,"header",1)(2,"h1",2),e(3,"Community settings sandbox"),t(),i(4,"p",3),e(5," Manual QA harness for the account settings popup. Not linked from the public nav \u2014 open "),i(6,"code"),e(7,"/testing/community-settings"),t(),e(8," directly. The popups below read and write the signed-in profile, so they need a session on this origin (sign in on the dev server first); the static parts at the bottom render on fixtures and need none. "),t()(),i(9,"section",4)(10,"h2",5),e(11,"Settings popup (\xAB\u041D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0430\u043A\u0430\u0443\u043D\u0442\u0430\xBB)"),t(),i(12,"p",6)(13,"code"),e(14,"SettingsPopupService.openSettings(tab)"),t(),e(15," \u2014 the same call the community menu, the cabinet and "),i(16,"code"),e(17,"?settings=<tab>"),t(),e(18," make. Modal with a rail on desktop, a bottom sheet with a list on the phone. Needs a session: without one the tabs show an empty profile and every save fails. "),t(),i(19,"div",7),h(20,P,2,1,"button",8,T),t()(),i(22,"section",4)(23,"h2",5),e(24,"Feedback popup (\xAB\u0417\u0432\u02BC\u044F\u0437\u043E\u043A \u0437 \u0440\u0435\u0434\u0430\u043A\u0446\u0456\u0454\u044E\xBB)"),t(),i(25,"p",6)(26,"code"),e(27,"SettingsPopupService.openFeedback()"),t(),e(28," \u2014 the contact form; 800px modal, drawer on the phone. Contacts pre-fill from the session (empty here without one); the categories come from "),i(29,"code"),e(30,"GET /feedback/categories"),t(),e(31," and the submit posts to "),i(32,"code"),e(33,"/feedback/submit"),t(),e(34,", both on authflow. "),t(),i(35,"button",9),r("click",function(){return u.openFeedback()}),e(36," Open feedback popup "),t()(),i(37,"section",4)(38,"h2",5),e(39,"Confirm popup"),t(),i(40,"p",6)(41,"code"),e(42,"ConfirmPopupService.ask(\u2026)"),t(),e(43," with the delete-account copy. Resolves "),i(44,"code"),e(45,"true"),t(),e(46," on the red button, "),i(47,"code"),e(48,"false"),t(),e(49," on cancel, backdrop, Escape or the corner button. "),t(),i(50,"div",10)(51,"button",9),r("click",function(){return u.askDelete()}),e(52," Ask \xAB\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0430\u043A\u0430\u0443\u043D\u0442?\xBB "),t(),i(53,"span",11),e(54," Last result: "),i(55,"code"),e(56),t()()()(),i(57,"section",4)(58,"h2",5),e(59,"Tab frame + shared parts (static, on fixtures)"),t(),i(60,"p",6)(61,"code"),e(62,"section[app-settings-tab-frame]"),t(),e(63," with its own heading and a footer, holding "),i(64,"code"),e(65,"div[app-settings-contact-field]"),t(),e(66," in both kinds, with and without a value, and a list of "),i(67,"code"),e(68,"li[app-settings-social-account]"),t(),e(69,". The pencils and the crosses only report here. "),t(),i(70,"p",6),e(71," Last edit: "),i(72,"code"),e(73),t(),e(74," \xB7 last unlink: "),i(75,"code"),e(76),t()(),i(77,"div",12)(78,"section",13)(79,"div",14)(80,"div",15)(81,"div",16),r("edit",function(){return u.onEdit("email")}),t(),i(82,"div",17),r("edit",function(){return u.onEdit("phone")}),t()(),i(83,"div",15)(84,"div",18),r("edit",function(){return u.onEdit("digest-email")}),t(),i(85,"div",19),r("edit",function(){return u.onEdit("phone-empty")}),t()(),i(86,"div",20)(87,"h3",21),e(88,"\u0421\u043F\u043E\u0441\u043E\u0431\u0438 \u0432\u0445\u043E\u0434\u0443"),t(),i(89,"p",22),e(90,"\u041F\u0456\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u0434\u043B\u044F \u0432\u0445\u043E\u0434\u0443 \u0432 \u0430\u043A\u0430\u0443\u043D\u0442"),t(),i(91,"ul",20),h(92,I,1,2,"li",23,T),t()()(),i(94,"div",24)(95,"button",25),e(96," \u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 "),t()()()()()()),o&2&&(s(20),b(u.tabs),s(36),c(u.confirmResult()===null?"\u2014":u.confirmResult()),s(17),c(u.edited()??"\u2014"),s(3),c(u.unlinked()??"\u2014"),s(16),b(u.accounts))},dependencies:[C,w,F],encapsulation:2})};export{B as CommunitySettingsPage}; 2/**i18n:fd443cd02819152b82041c85b3b852d750c5b690a3deb04ec4bcb1027c8ad6d3*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.