1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6305],{10516:(function(A,s,n){var e,m=n(25303);e={value:!0},s.A=void 0;var r=m(n(25211)),d=n(27343),v=s.A=(0,r.default)((0,d.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M12 17.5 6.5 12H10v-2h4v2h3.5zM5.12 5l.81-1h12l.94 1z"}),"Archive")}),94131:(function(A,s,n){var e,m=n(25303);e={value:!0},s.A=void 0;var r=m(n(25211)),d=n(27343),v=s.A=(0,r.default)((0,d.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")}),96305:(function(A,s,n){n.d(s,{Subscriptions:function(){return x}});var e=n(94999),m=n(84367),r=n.n(m),d=n(31076),v=n(94131),R=n(96374),T=n(10516),t=n(1505),I=n(87621),p=n(39741),C=n(6268),B=n(14714),f=n(73639),g=n(34303),o={header:"frontend-app-pages-admin-subscriptions-Subscriptions-module__header--g29Am",dragIcon:"frontend-app-pages-admin-subscriptions-Subscriptions-module__dragIcon--MERNg",advButton:"frontend-app-pages-admin-subscriptions-Subscriptions-module__advButton--hJiLq",languageSelect:"frontend-app-pages-admin-subscriptions-Subscriptions-module__languageSelect--eDzna",positionSelect:"frontend-app-pages-admin-subscriptions-Subscriptions-module__positionSelect--Ga3hg",manageButtons:"frontend-app-pages-admin-subscriptions-Subscriptions-module__manageButtons--IRKFR",manageButton:"frontend-app-pages-admin-subscriptions-Subscriptions-module__manageButton--KPLhJ",archived:"frontend-app-pages-admin-subscriptions-Subscriptions-module__archived--GWoX5",archivedPlan:"frontend-app-pages-admin-subscriptions-Subscriptions-module__archivedPlan--yubk1",checkbox:"frontend-app-pages-admin-subscriptions-Subscriptions-module__checkbox--WjNp_"},M=n(32962),k=n(79341),h=n(61409);const x=()=>{const{parameters:{page:S,onlyMen:y,onlyWomen:N,onlyGlobal:D,onlyLocal:b},setParameters:c}=(0,I.ZA)({initialState:{page:1,onlyMen:"false",onlyWomen:"false",onlyGlobal:"false",onlyLocal:"false"}}),P=(0,M.Z)(),F=(0,k.A)(P,"id"),{data:E,update:i}=(0,I.Gs)(p.F.ADMIN_SUBSCRIPTIONS_LIST,{params:{page:S,onlyMen:y,onlyWomen:N,onlyGlobal:D,onlyLocal:b}}),z=(0,e.useCallback)(a=>c({page:a}),[c]),O=(0,e.useCallback)((a,u)=>{c({onlyMen:u?"true":"false",onlyWomen:"false"})},[c]),L=(0,e.useCallback)((a,u)=>{c({onlyWomen:u?"true":"false",onlyMen:"false"})},[c]),j=(0,e.useCallback)((a,u)=>{c({onlyLocal:u?"true":"false",onlyGlobal:"false"})},[c]),H=(0,e.useCallback)((a,u)=>{c({onlyGlobal:u?"true":"false",onlyLocal:"false"})},[c]),W=(0,e.useCallback)(async a=>{const u=parseInt(a.currentTarget.getAttribute("data-id")??"",10);if(u&&window.confirm("\u0411\u0435\u0437\u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0443?"))try{await g.A.post(p.F.ADMIN_SUBSCRIPTIONS_DELETE,{id:u}),await i()}catch(l){l.response!==void 0&&l.response.data.message!==void 0&&h.oR.error(l.response.data.message)}},[i]),G=(0,e.useCallback)(async a=>{const u=parseInt(a.currentTarget.getAttribute("data-id")??"",10);try{await g.A.post(p.F.ADMIN_SUBSCRIPTIONS_DUPLICATE,{id:u}),await i()}catch(l){l.response!==void 0&&l.response.data.message!==void 0&&h.oR.error(l.response.data.message)}},[i]),U=(0,e.useCallback)(async a=>{const u=parseInt(a.currentTarget.getAttribute("data-id")??"",10);try{await g.A.post(p.F.ADMIN_SUBSCRIPTIONS_ARCHIVE,{id:u}),await i()}catch(l){l.response!==void 0&&l.response.data.message!==void 0&&h.oR.error(l.response.data.message)}},[i]),Y=(0,e.useCallback)(async a=>{const u=parseInt(a.target?.closest("td")?.getAttribute("data-id")??"",10);try{await g.A.post(p.F.ADMIN_SUBSCRIPTIONS_TOGGLE_ACTIVE,{id:u}),await i()}catch(l){l.response!==void 0&&l.response.data.message!==void 0&&h.oR.error(l.response.data.message)}},[i]);return e.createElement(d.Ui,{title:"\u041F\u043E\u0434\u043F\u0438\u0441\u043A\u0438"},e.createElement(t.hE,{component:"h5",noMarginTop:!0},"\u041F\u043E\u0434\u043F\u0438\u0441\u043A\u0438"),e.createElement(t.tu,{className:o.header,marginBottom:"sm",marginTop:"sm",padding:"sm"},e.createElement(t.$n,{color:"primary",fullWidth:!1,href:(0,C.tW)(f.a.SUBSCRIPTION_ITEM,{id:"create"}),type:"button",variant:"contained"},"\u0421\u043E\u0437\u0434\u0430\u0442\u044C"),e.createElement("label",{className:o.checkbox}
1,e.createElement(t.Sc,{checked:y==="true",onChange:O}),"\u0422\u043E\u043B\u044C\u043A\u043E \u043C\u0443\u0436\u0441\u043A\u0438\u0435"),e.createElement("label",{className:o.checkbox},e.createElement(t.Sc,{checked:N==="true",onChange:L}),"\u0422\u043E\u043B\u044C\u043A\u043E \u0436\u0435\u043D\u0441\u043A\u0438\u0435"),e.createElement("label",{className:o.checkbox},e.createElement(t.Sc,{checked:D==="true",onChange:H}),"\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435"),e.createElement("label",{className:o.checkbox},e.createElement(t.Sc,{checked:b==="true",onChange:j}),"\u041B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435")),E!==null&&e.createElement(e.Fragment,null,e.createElement(t.dK,{className:"mb-16",currentPage:S,pageCount:E.page_count,goToPage:z}),e.createElement(t.K3,null,e.createElement(t.XI,null,e.createElement(t.nd,null,e.createElement(t.Hj,null,e.createElement(t.nA,{component:"th",size:"small"}),e.createElement(t.nA,{component:"th",size:"small"},"\u041A\u043E\u0434"),e.createElement(t.nA,{component:"th",size:"small"},"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"),e.createElement(t.nA,{component:"th",size:"small"},"\u041E\u0431\u043B\u0430\u0441\u0442\u0438"),e.createElement(t.nA,{component:"th",size:"small"},"\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C"),e.createElement(t.nA,{component:"th",size:"small"},"\u0421\u0440\u043E\u043A"),e.createElement(t.nA,{component:"th",size:"small"},"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435"))),e.createElement(t.BF,null,E.subscriptions.map(a=>e.createElement(t.Hj,{className:r()({[o.archivedPlan]:a.is_archived}),key:a.id},e.createElement(t.nA,{size:"small","data-id":a.id},e.createElement(t.Sc,{disabled:a.is_archived,onChange:Y,checked:a.is_active})),e.createElement(t.nA,{size:"small"},e.createElement(B.N_,{className:"d-flex align-items-baseline",to:(0,C.tW)(f.a.SUBSCRIPTION_ITEM,{id:a.id})},e.createElement(t.EY,{bold:!0},a.slug))),e.createElement(t.nA,{size:"small"},e.createElement(B.N_,{className:"d-flex align-items-baseline",to:(0,C.tW)(f.a.SUBSCRIPTION_ITEM,{id:a.id})},e.createElement(t.EY,{bold:!0},a.name))),e.createElement(t.nA,{size:"small"},a.default_plan_for_other_countries&&e.createElement(t.EY,{bold:!0},"\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0439"),a.default_plan_for_newcomers&&e.createElement(t.EY,{bold:!0},"\u041D\u043E\u0432\u0438\u0447\u043A\u0430\u043C"),a.funded_plan_for_women&&e.createElement(t.EY,{bold:!0},"\u0416\u0435\u043D\u0441\u043A\u0438\u0439 \u0444\u043E\u043D\u0434"),a.only_for_men&&e.createElement(t.EY,{bold:!0},"\u0422\u043E\u043B\u044C\u043A\u043E \u043C\u0443\u0436\u0447\u0438\u043D\u044B"),a.only_for_women&&e.createElement(t.EY,{bold:!0},"\u0422\u043E\u043B\u044C\u043A\u043E \u0436\u0435\u043D\u0449\u0438\u043D\u044B"),e.createElement(t.EY,{bold:!0},a.countries.map(u=>u.name).join(", "))),e.createElement(t.nA,{size:"small"},a.price," ",F[a.currency_id].code),e.createElement(t.nA,{size:"small"},a.duration_in_days," \u0434\u043D\u0435\u0439"),e.createElement(t.nA,{size:"small"},e.createElement("div",{className:o.manageButtons},e.createElement(t.$n,{size:"small",title:"\u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",onClick:G,className:o.manageButton,"data-id":a.id,variant:"text",color:"info"},e.createElement(R.A,null)),!a.is_active&&e.createElement(t.$n,{size:"small",title:a.is_archived?"\u0412\u044B\u0442\u0430\u0449\u0438\u0442\u044C \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C",onClick:U,className:r()(o.manageButton,{[o.archived]:a.is_archived}),"data-id":a.id,variant:"text",color:"info"},e.createElement(T.A,null)),!a.is_active&&a.is_archived&&e.createElement(t.$n,{size:"small",title:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",onClick:W,className:o.manageButton,"data-id":a.id,variant:"text",color:"warning"},e.createElement(v.A,null)))))),E.subscriptions.length===0&&e.createElement(t.Hj,null,e.createElement(t.nA,{align:"center",colSpan:99,size:"small"},e.createElement(t.EY,{bold:!0},"\u041F\u0443\u0441\u0442\u043E")))))),e.createElement(t.dK,{className:"mt-16",currentPage:S,pageCount:E.page_count,goToPage:z})))}}),96374:(function(A,s,n){var e,m=n(25303);e={value:!0},s.A=void 0;var r=m(n(25211)),d=n(27343),v=s.A=(0,r.default)((0,d.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")})}]); 2 3//# sourceMappingURL=6305.80ff1ef3f2c54d70c447.chunk.js.map
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.