PageSourceSearch

https://web.tankhahgardan.com/static/js/112.af0274fa.chunk.js

js tankhahgardan.com collected 2026-09-24 14:04:02 UTC 19,783 bytes, 2 lines download raw bytes

1(this.webpackJsonpmapsa=this.webpackJsonpmapsa||[]).push([[112],{1053:function(n,e,t){"use strict";t.d(e,"c",(function(){return h})),t.d(e,"a",(function(){return b})),t.d(e,"e",(function(){return _})),t.d(e,"d",(function(){return v})),t.d(e,"b",(function(){return w}));var o=t(13),a=t(14),i=t(4);function r(){var n=Object(o.a)(["\n  position: absolute;\n  bottom: 0;\n  width: 100%;\n  right: 0;\n  padding: 4px 16px;\n  display: flex;\n  z-index: 999;\n  align-items: center;\n  background-color: ",";\n  border-top: 1px solid ",";\n  font-size: ",";\n  color: ",";\n  height: 52px;\n  color: ",";\n  cursor: pointer;\n  i {\n    float: right;\n    margin-left: 20px;\n    //margin-top: 10px;\n    &:before {\n      font-size: ",";\n    }\n  }\n  .button-text {\n    display: flex;\n    align-items: center;\n    i {\n      margin-right: 8px;\n      margin-bottom: 5px;\n    }\n  }\n  &:hover{\n    background-color: ",";\n  }\n"]);return r=function(){return n},n}function c(){var n=Object(o.a)(["\n  cursor: pointer;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  color: ",";\n  margin: 0 12px;\n  padding: 0;\n  &:not(:last-child) {\n    border-bottom: solid 1px ",";\n  }\n  font-size: ",";\n  height: 64px;\n  .row-top {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    position: relative;\n    margin-bottom: 6px;\n    .return-button {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      font-size: ",";\n      color: ",";\n      border: 1px solid ",";\n      border-radius: 6px;\n      margin-right: 6px;\n      padding: 2px 4px;\n      height: 30px;\n      width: 128px;\n      .return-icon {\n        padding: 4px;\n        margin-left: 0;\n        margin-right: 4px;\n        float: none;\n        &:before {\n          font-size: 16px;\n          color: ",";\n        }\n      }\n      &:hover {\n        background-color: ",";\n        color: ",";\n        box-shadow: 0 2px 8px 0 #CCCCCC;\n        .return-icon {\n          &:before {\n            color: ",";\n          }\n        }\n      }\n    }\n\n    .arrow {\n      &:before {\n        font-size: 16px;\n        color: ",";\n      }\n    }\n  }\n  .user-name {\n    font-size: ",";\n    color: ",";\n    line-height: 1.58;\n    max-width: 200px;\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    display: inline-flex;\n    direction: ltr;\n    flex-direction: row-reverse;\n  }\n  direction: rtl;\n  //overflow-wrap: break-word;\n  .text-container {\n    .inner-text {\n      overflow: hidden;\n      white-space: nowrap;\n      text-overflow: ellipsis;\n      max-width: 280px;\n    }\n  }\n\n  &:hover {\n    background-color: ",";\n    padding: 0 12px;\n    margin: 0;\n  }\n"]);return c=function(){return n},n}function l(){var n=Object(o.a)(["\n  margin: 0;\n  list-style: none;\n  padding: 0 8px;\n  //height: 345px;\n  overflow-y: auto;\n  max-height: calc(100% - ","px - 52px);\n"]);return l=function(){return n},n}function p(){var n=Object(o.a)(["\n  padding: 12px 0 8px 0;\n  min-width: 400px;\n  max-width: 28%;\n  width: 100%;\n  margin: 16px auto 0;\n  border-radius: 4px;\n  box-shadow: 0 0 2px 0 #cccccc;\n  position: relative;\n  height: calc(100vh - 104px);\n\n  .header-container {\n    display: flex;\n    padding: 0 8px;\n    .title-part {\n      flex: 1;\n      margin-right: -48px;\n    }\n  }\n  .header {\n    height: ","px;\n    z-index: -1;\n    .logo {\n      width: 100%;\n      text-align: center;\n      img {\n        width: 36px;\n        height: 36px;\n      }\n    }\n    h2 {\n      color: ",";\n      font-size: ",";\n      font-weight: 500;\n      width: 100%;\n      text-align: center;\n      margin-bottom: 0;\n      margin-top: 8px;\n    }\n    .user-box {\n      border-bottom: solid 1px ",";\n      padding: 8px 0;\n      //margin: -42px -42px 10px -42px;\n      width: 100%;\n      margin-top: 4px;\n      text-align: center;\n      font-size: ",";\n      .name-or-phone-user {\n        direction: ltr;\n        display: inline-flex;\n      }\n      i {\n        background-color: ",";\n        color: ",";\n        margin: 0 6px;
1\n        width: 20px;\n        height: 20px;\n        display: inline-flex;\n        padding: 2px 6px;\n        border-radius: 14px;\n        align-items: center;\n        justify-content: center;\n        &:before {\n          font-size: ",";\n        }\n      }\n    }\n  }\n\n  .loading-box-container {\n    //min-height: 60px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n  }\n  .text {\n    color: ",";\n    font-size: ",";\n    padding-top: 16px;\n  }\n\n  form {\n    padding: 0 32px;\n    height: calc(100% - ","px - ","px);\n    overflow-y: auto;\n  }\n  .field {\n    display: flex;\n    width: 100%;\n    margin-top: 16px;\n    flex-wrap: wrap;\n    & > div {\n      //width: 100%;\n      width: calc(50% - 8px - 13px);\n      margin-bottom: 4px;\n      margin-left: 8px;\n      &.column-w {\n        width: calc(100% - 36px);\n      }\n    }\n    &.margin-top {\n      margin-top: 20px;\n    }\n    .side-icon {\n      line-height: 36px;\n      color: ",";\n      &:before {\n        font-size: ",";\n        margin-left: 10px;\n      }\n    }\n    .inner-field {\n      display: flex;\n      width: 100%;\n      margin-top: 10px;\n    }\n    .field-label {\n      margin-top: 16px;\n      font-size: ",";\n      color: ",";\n    }\n    .column-2 {\n      display: flex;\n      align-items: center;\n    }\n  }\n  .text {\n    color: ",";\n    font-size: ",";\n    padding-top: 16px;\n  }\n  .buttons {\n    display: flex;\n    justify-content: space-between;\n    height: ","px;\n    position: absolute;\n    bottom: 0;\n    padding: 12px 36px;\n    width: 100%;\n  }\n\n  .check-boxes-wrapper {\n    margin-top: 12px;\n    padding: 0 24px;\n    & > div {\n      margin-top: 8px;\n    }\n  }\n"]);return p=function(){return n},n}function s(){var n=Object(o.a)(["\n  width: 32px;\n  height: 32px;\n  border-radius: 50%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-right: 8px;\n  cursor: pointer;\n  &:before {\n    margin: 0;\n    font-size: 16px;\n    color: ",";\n  }\n  &:hover {\n    background-color: ",";\n  }\n"]);return s=function(){return n},n}function m(){var n=Object(o.a)(["\n  display: flex;\n  align-items: center;\n  .inner-box {\n    display: flex;\n    align-items: center;\n    background-color: ",";\n    border-radius: 8px;\n    padding: 5px 16px 5px 8px;\n    .text-part {\n      font-size: ",";\n      color: ",";\n      .bold-part {\n        font-weight: ",";\n      }\n    }\n  }\n"]);return m=function(){return n},n}function d(){var n=Object(o.a)(["\n  min-width: 280px;\n  max-width: 28%;\n  margin: 0 auto;\n  width: 100%;\n  padding: 16px 4px;\n  line-height: 26px;\n  font-size: ",";\n  color: ",";\n  a {\n    color: ",";\n    text-decoration: none;\n  }\n  .logout {\n    font-size: ",";\n    color: ",";\n    float: left;\n    cursor: pointer;\n    a {\n      color: ",";\n    }\n  }\n  ul {\n    margin: 0;\n    padding: 0;\n    list-style: none;\n    li {\n      display: inline-block;\n      padding-right: 20px;\n      position: relative;\n      font-weight: ",';\n      &:before {\n        position: absolute;\n        content: "";\n        display: block;\n        width: 4px;\n        height: 4px;\n        border-radius: 5px;\n        background-color: ',";\n        top: 45%;\n        right: 10px;\n      }\n      &:first-child {\n        padding-right: 0;\n        &:before {\n          display: none;\n        }\n      }\n    }\n  }\n"]);return d=function(){return n},n}function u(){var n=Object(o.a)(["\n  background-color: ",";\n  color: ",";\n  font-size: ",";\n  border-radius: 14px;\n  height: 24px;\n  margin-right: 10px;\n  margin-left: 8px;\n  display: flex;\n  align-items: center;\n  padding: 3px 9px;\n  font-weight: ",";\n"]);return u=function(){return n},n}function x(){var n=Object(o.a)(["\n  padding: 0 24px;\n  margin-top: 16px;\n  position: relative;\n  .box-in-modal {\n    border: 1px solid ",";\n    border-radius: 8px;\n    width: 100%;\n    height: 340px;\n    padding: 10px 8px;\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n    margin-top: 18px;\n    margin-bottom: 81px;\n    .empty-state-text {\n      max-width: 260px;\n      text-align: center;\n      line-height: normal;\n      color: ",";\n      font-size: ",";\n    }\n  }\n  .change-multi-item-selection-button {\n    background-color: ",";\n    color: ",";\n    font-size: ",";\n    padding: 8px 18px;\n    border-radius: 16px;\n    position: absolute;\n    bottom: 80px;\n    cursor: pointer;\n  }\n  .select-company-box {\n    width: 50%;\n  }\n"]);return x=function(){return n},n}function g(){var n=Object(o.a)(["\n  padding: 32px 0 16px 0;\n  min-width: 280px;\n  max-width: 28%;\n  height: fit-content;\n  background-color: ",";\n  width: 100%;\n  margin: 16px auto;\n  border-radius: 4px;\n  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.16);\n\n  .title-logo-container {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    padding: 0 24px;\n    .right-logo {\n      line-height: 36px;\n      display: flex;\n      align-items: center;\n      color: ",";\n      font-weight: ",";\n      font-size: ",";\n      .side-icon {\n        line-height: 36px;\n        color: ",";\n        &:before {\n          font-size: ",";\n          margin-left: 10px;\n        }\n      }\n    }\n  }\n  .buttons-container {\n    display: flex;\n    justify-content: flex-end;\n    & > div {\n      margin-right: 12px;\n    }\n  }\n"]);return g=function(){return n},n}function f(){var n=Object(o.a)(["\n  position: fixed;\n  width: 100%;\n  height: 100vh !important;\n  top: 0;\n  right: 0;\n  z-index: 9999;\n  background-color: ",";\n  overflow-y: auto;\n"]);return f=function(){return n},n}a.b.div(f(),i.a.colors.complementary),a.b.div(g(),i.a.colors.complementary,i.a.colors.complementary_700,i.a.font_weight.medium,i.a.font_sizes.x_medium,i.a.colors.complementary_600,i.a.font_sizes.x2_medium),a.b.div(x(),i.a.colors.complementary_200,i.a.colors.complementary_500,i.a.font_sizes.x_medium,i.a.colors.tertiary_600,i.a.colors.complementary,i.a.font_sizes.x_medium);var y={success:{background:i.a.colors.green_100,text:i.a.colors.green_800},secondary:{background:i.a.colors.complementary_400,text:i.a.colors.complementary_700}},h=(a.b.div(u(),(function(n){return y[n.type].background}),(function(n){return y[n.type].text}),i.a.font_sizes.x_small,i.a.font_weight.medium),a.b.div(d(),i.a.font_sizes.x_small,i.a.colors.complementary_600,i.a.colors.complementary_600,i.a.font_sizes.x_medium,i.a.colors.complementary_700,i.a.colors.complementary_700,i.a.font_weight.medium,i.a.colors.complementary_600)),b=(a.b.div(m(),i.a.colors.complementary_200,i.a.font_sizes.x_medium,i.a.colors.complementary_dark,i.a.font_weight.medium),a.b.i(s(),i.a.colors.complementary_800,i.a.colors.complementary_400),a.b.div(p(),145,i.a.colors.complementary_800,i.a.font_sizes.x2_5_large,i.a.colors.complementary_300,i.a.font_sizes.medium,i.a.colors.complementary_250,i.a.colors.complementary_600,i.a.font_sizes.small,i.a.colors.complementary_500,i.a.font_sizes.x_small,145,60,i.a.colors.complementary_600,i.a.font_sizes.x2_medium,i.a.font_sizes.x_small,i.a.colors.complementary_600,i.a.colors.complementary_500,i.a.font_sizes.x_small,60)),_=a.b.ul(l(),145),v=a.b.li(c(),i.a.colors.complementary_900,i.a.colors.complementary_300,i.a.font_sizes.x2_medium,i.a.font_sizes.little,i.a.colors.complementary_700,i.a.colors.complementary_450,i.a.colors.complementary_700,i.a.colors.complementary_600,i.a.colors.complementary,i.a.colors.complementary,i.a.colors.complementary_600,i.a.font_sizes.x_small,i.a.colors.complementary_600,i.a.colors.complementary_200),w=a.b.div(r(),i.a.colors.complementary,i.a.colors.complementary_400,i.a.font_sizes.x_medium,i.a.colors.complementary_600,i.a.colors.primary_vivid,i.a.font_sizes.x2_medium,i.a.colors.primary_50)},1113:function(n,e,t){"use strict";t.r(e);var o=t(1),a=t(3),i=t.n(a),r=t(65),c=t(24),l=t(6),p=t(213),s=t(457),m=t(456),d=t(71),u=t(1102),x=t(334),g=t(976),f=t(332),y=t(1103),h=t(1053),b=t(222),_=t(337),v=t(167),w=t(151),j=t(11),z=t(1091),E=Object(m.a)({form:"addOrEditProject",validate:function(n){var e={};return n.name&&n.name.length>w.r&&(e.name="\u0646\u0627\u0645 \u0634\u0631\u06a9\u062a \u0646\u0628\u0627\u06cc\u062f \u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 ".concat(w.r," \u
106a9\u0627\u0631\u0627\u06a9\u062a\u0631 \u0628\u0627\u0634\u062f")),n.name===z.a&&(e.name="\u0646\u0627\u0645 \u0634\u0631\u06a9\u062a \u0631\u0627 \u0627\u0632 \u062d\u0627\u0644\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f. \u0646\u0627\u0645 \u0634\u0631\u06a9\u062a \u0645\u0639\u062a\u0628\u0631 \u0646\u0645\u06cc\u200c\u0628\u0627\u0634\u062f."),e}})((function(n){var e=n.handleSubmit,t=n.localization,r=n.processing,c=n.form_data,l=n.history,m=n.change,f=n.editProject,E=n.createProject,O=n.getProjects,N=n.initialize,P=n.projectsAreFetched,C=n.activeProjects,I=n.getProvince,F=n.getCity,D=n.init,L=n.getInit;Object(a.useEffect)((function(){if(l&&l.location&&l.location.state){var n=l.location.state;if(n.type===b.c&&n.projectData){var e,a,i,r,c=n.projectData;null!==c.province&&(e={key:c.province.id,value:c.province.name},F({id:c.province.id,name:c.province.name})),null!==c.city&&(a={key:c.city.id,value:c.city.name}),null!==c.currency&&(i=Object(o.a)(Object(o.a)({},c.currency),{},{key:c.currency.id,value:c.currency.symbol_fa})),null!==c.type&&(r=Object(o.a)(Object(o.a)({},c.type),{},{key:c.type.id,value:c.type.text})),N({name:c.name,province_id:e,city_id:a,currency:i,type:r})}!D&&localStorage.getItem(j.j)&&(console.log("in project list"),L())}!P&&S()&&O(),t.provinces.length<=0&&I()}),[]);var S=function(){return l.location&&l.location.state&&l.location.state.showCopyTopicsFromOthers};Object(a.useEffect)((function(){c&&c.values&&!c.values.province_id&&m("city_id",null)}),[c&&c.values&&c.values.province_id]);var A=l.location.state&&l.location.state.type,B=c&&c.values&&c.values.copy_project_id,J=k(t.provinces),T=k(t.province_cities);return i.a.createElement(i.a.Fragment,null,i.a.createElement(h.a,null,i.a.createElement("div",{className:"header-container"},i.a.createElement(v.a,{onClick:function(){l.goBack()},ml:8},i.a.createElement("i",{className:"icon mapsa-left-arrow_1"})),i.a.createElement("div",{className:"header title-part"},i.a.createElement("div",{className:"logo"},i.a.createElement("img",{src:"./images/logo.svg",alt:""})),i.a.createElement("h2",null," ",b.d[A]))),i.a.createElement("form",{onSubmit:e(function(n){var e={};if(n.name||(e.name="\u0646\u0627\u0645 \u0634\u0631\u06a9\u062a \u0627\u062c\u0628\u0627\u0631\u06cc \u0627\u0633\u062a"),n.name===z.a&&(e.name="\u0646\u0627\u0645 \u0634\u0631\u06a9\u062a \u0631\u0627 \u0627\u0632 \u062d\u0627\u0644\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f. \u0646\u0627\u0645 \u0634\u0631\u06a9\u062a \u0645\u0639\u062a\u0628\u0631 \u0646\u0645\u06cc\u200c\u0628\u0627\u0634\u062f."),n.province_id||(e.province_id="\u0627\u0633\u062a\u0627\u0646 \u0627\u062c\u0628\u0627\u0631\u06cc \u0627\u0633\u062a"),n.city_id||(e.city_id="\u0634\u0647\u0631 \u0627\u062c\u0628\u0627\u0631\u06cc \u0627\u0633\u062a"),n.currency||(e.currency="\u0648\u0627\u062d\u062f \u0627\u0631\u0632\u06cc \u0627\u062c\u0628\u0627\u0631\u06cc \u0627\u0633\u062a"),n.type||(e.type="\u0646\u0648\u0639 \u0634\u0631\u06a9\u062a \u06cc\u0627 \u067e\u0631\u0648\u0698\u0647 \u0627\u062c\u0628\u0627\u0631\u06cc \u0627\u0633\u062a"),!(Object.keys(e).length<=0))throw new p.a(e);var t=Object(o.a)(Object(o.a)({},n),{},{currency:n.currency.id||n.currency.key,type:n.type.id||n.type.key,copy_project_id:n.copy_project_id&&n.copy_project_id.key||null,province_id:n.province_id&&n.province_id.key||null,city_id:n.city_id&&n.city_id.key||null});l&&l.location&&l.location.state&&(l.location.state.type===b.c?f(t,l.location.state.projectData.id):E(t,!0))}.bind(void 0)),id:"addOrEditProject"},i.a.createElement(s.a,{name:"name",component:x.a,type:"text",label:"\u0646\u0627\u0645 \u0634\u0631\u06a9\u062a",disabled:r,maxLength:w.r}),i.a.createElement("div",{className:"field"},i.a.createElement("i",{className:"icon mapsa-place side-icon"}),i.a.createElement("div",{className:"column-1"},i.a.createElement(s.a,{name:"province_id",component:g.a,placeholder:"\u0627\u0633\u062a\u0627\u0646",listItems:J,listLoading:t.loading,type:"text",disabled:r,onChange:function(n){m("city_id",null),null!==n&&F({id:n.key,name:n.value})}})),i.a.createElement("div",{className:"column-2"},i.a.createElement(s.a,{name:"city_id",component:g.a,placeholder:"\u0634\u0647\u0631",listItems:T,listLoading:t.loading,type:"text",disabled:!(c&&c.values&&c.values.province_id)}))),i.a.createElement("div",{className:"field"},i.a.createElement("i",{className:"icon mapsa-outline-layers side-icon"}),i.a.createElement("div",{className:"column-w"},i.a.createElement(s.a,{name:"type",onChange:function(n){m("type",n)},label:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0634\u0631\u06a9\u062a \u06cc\u0627 \u067e\u0631\u0648\u0698\u0647",component:u.a}))),i.a.createElement("div",{className:"field"},i.a.createElement("i",{className:"icon mapsa-coin side-icon"}),i.a.createElement(s.a,{name:"currency",onChange:function(n){m("currency",n)},label:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0648\u0627\u062d\u062f \u0627\u0631\u0632\u06cc",component:y.a})),S()&&C.length>0&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"field margin-top"},i.a.createElement("i",{className:"icon mapsa-blinder side-icon"}),i.a.createElement("div",{className:"column-w"},i.a.createElement(s.a,{name:"copy_project_id",component:g.a,placeholder:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u0631\u06a9\u062a \u0628\u0631\u0627\u06cc \u06a9\u067e\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u067e\u0627\u06cc\u0647",listItems:k(C),disabled:r}))),B&&i.a.createElement("div",{className:"check-boxes-wrapper"},i.a.createElement(s.a,{name:"copy_account_title",component:_.a,label:"\u06a9\u067e\u06cc \u0633\u0631\u0641\u0635\u0644\u200c\u0647\u0627\u06cc \u062d\u0633\u0627\u0628"}),i.a.createElement(s.a,{name:"copy_cost_center",component:_.a,label:"\u06a9\u067e\u06cc \u0645\u0631\u0627\u06a9\u0632 \u0647\u0632\u06cc\u0646\u0647"}),i.a.createElement(s.a,{name:"copy_hashtag",component:_.a,label:"\u06a9\u067e\u06cc \u0647\u0634\u062a\u06af\u200c\u0647\u0627"}),i.a.createElement(s.a,{name:"copy_contact",component:_.a,label:"\u06a9\u067e\u06cc \u0637\u0631\u0641 \u062d\u0633\u0627\u0628\u200c\u0647\u0627"})))),i.a.createElement("div",{className:"buttons"},i.a.createElement(d.a,{btn:"primary",loading:r,form:"addOrEditProject"},b.a[A]),i.a.createElement(d.a,{btn:"ghost",type:"reset",onClick:function(){return l.goBack()}},"\u0627\u0646\u0635\u0631\u0627\u0641"))))})),k=function(n){var e=[];
1return n.forEach((function(n){e.push({key:n.id,value:n.name})})),e};e.default=Object(c.connect)((function(n){return{form_data:Object(f.a)(n,"addOrEditProject"),init:n.Init.data,localization:n.Province,processing:n.Project.processing,projectsAreFetched:n.Project.is_fetched,activeProjects:n.Project.active_projects}}),(function(n){return{getProvince:function(){n(l.cb.get())},getCity:function(e){n(l.cb.getCity(e))},cleanCities:function(){n(l.cb.cleanCities())},createProject:function(e,t){n(l.ab.store(e,t))},editProject:function(e,t){n(l.ab.update(e,t))},getProjects:function(){n(l.ab.get())},getInit:function(){n(l.o.get())}}}))(Object(r.g)(E))}}]);
2//# sourceMappingURL=112.af0274fa.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.