���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
pwa.npln.ir
/
static
/
js
/
Viewing: main.bf04eabd.js
(()=>{var t={8216:(t,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>zo});var i=o(9439),r=o(5861),a=o(1749),l=o(3847),s=o(1844),d=o(8778),u=o(9741),c=o(7775),f=o(9766),h=o(9803),g=o(3936),m=o(458),y=o(7901),p=o(4547),x=o(4614);const b="#00509d",j="#feeeb3",w="#fdc500",v="#fca300",S="#ffffffbf",C="#fafafa",O="#f0f0f0",z="#00509d1a",k="#36ab00",P="#98FF98",M="#00ff00",B="#991b1e",T="#00C853",F="#C41C00",I="#C4C4C4",D="#ECECEC",_="#979494",R="#222222";var L=o(8687),A=o.n(L),E=o(2969),W=o.n(E),H="LOGIN",N="STATE",V="CITY",q="PROFILE_INFO",U="SET_PROFILE",G="GET_SLIDER",Q="GET_APP",K="ADD_TICKET",J="GET_TICKET",Y="SET_TOKEN",Z="LOGOUT",X="GET_WALLET",$="GET_COUNT",ee="GET_INIT_ORDER",te="SET_PUSH_TOK",ne=function(e){return function(){var t=(0,r.default)((function*(t){t({type:Y,data:e})}));return function(e){return t.apply(this,arguments)}}()},oe=function(){return function(){var e=(0,r.default)((function*(e){e({type:Z})}));return function(t){return e.apply(this,arguments)}}()},ie=function(){var e=(0,r.default)((function*(e){var t=new(W());t.append("mobile",e),fetch("https://npln.ir/api/v1/auth/send-sms",{method:"POST",headers:{Accept:"application/json"},body:t}).then((function(e){return e.json()})).then((function(e){return console.log(e)})).catch((function(e){return console.log("error",e)}))}));return function(t){return e.apply(this,arguments)}}(),re=function(e){return function(){var t=(0,r.default)((function*(t){var n={Accept:"application/json",Authorization:"Bearer "+e};return A()({method:"get",url:"https://npln.ir/api/v1/app/state",headers:n}).then((function(e){var n=e.data;return t({type:N,data:n}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return t.apply(this,arguments)}}()},ae=function(e,t){return function(){var n=(0,r.default)((function*(n){var o={Accept:"application/json",Authorization:"Bearer "+e},i="https://npln.ir/api/v1/app/city?state_id="+t;return A()({method:"get",url:i,headers:o}).then((function(e){var t=e.data;return n({type:V,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return n.apply(this,arguments)}}()},le=function(e){return function(){var t=(0,r.default)((function*(t){var n={Accept:"application/json",Authorization:"Bearer "+e};return A()({method:"get",url:"https://npln.ir/api/v1/app/all-config",headers:n}).then((function(e){var n=e.data;return t({type:q,data:n}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return t.apply(this,arguments)}}()},se=o(3173),de=o(116),ue=o(9822),ce=o(7364),fe=o(4942),he=o(5012),ge=o(5770);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pe=function(e){return(0,ge.jsx)(g.default,{style:ye({width:"100%",height:50},e.style),children:(0,ge.jsxs)(he.default,{style:ye({width:"90%",height:"90%",alignItems:"center",justifyContent:"center",backgroundColor:B,borderRadius:7,elevation:3,shadowOpacity:.3,shadowOffset:{width:0,height:0},shadowColor:B},e.touchableStyle),onPress:e.onPress,children:[e.loading&&(0,ge.jsx)(x.default,{size:e.sizespin,color:e.colorspin,style:{position:"absolute"}}),(0,ge.jsx)(g.default,{style:ye({},e.viewicon),children:(0,ge.jsx)(ce.default,{name:e.nameicon,size:e.sizeicon,color:e.coloricon,style:ye({},e.styleicon)})}),!e.loading&&(0,ge.jsx)(y.default,{style:ye({fontFamily:"Montserrat",fontSize:15,color:"#fff"},e.textStyle),children:e.label})]})},e.key)};var xe=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,alignItems:"center",justifyContent:"center"},text:{color:B,fontSize:40,fontFamily:"MontserratBold",bottom:"6%"},text1:{color:B,fontSize:70,fontFamily:"MontserratBold",bottom:"10%"},image:{width:292,height:280,marginBottom:50}});const be=function(t){var n=f.useState(!0),a=(0,i.default)(n,2),l=a[0],s=a[1],d=(0,de.useDispatch)(),u=f.useState(""),c=(0,i.default)(u,2),h=c[0],b=c[1],j=f.useState(!1),w=(0,i.default)(j,2),v=w[0],S=w[1],O=function(){var n=(0,r.default)((function*(){try{var n=yield se.default.getItem("access_token");n?(yield d(ne(n)),t.navigation.replace("home")):(s(!1),t.navigation.replace("login"))}catch(o){console.log(e)}}));return function(){return n.apply(this,arguments)}}();function z(){ue.default.fetch().then((function(e){b(e),setTimeout((function(){e.isConnected?O():S(!1)}),3e3)}))}return f.useEffect((function(){z()}),[]),null==h||!h.isConnected||v?(0,ge.jsxs)(g.default,{style:xe.viewContainer,children:[(0,ge.jsx)(p.default,{backgroundColor:C}),(0,ge.jsxs)(g.default,{style:{opacity:.9,zIndex:2,flexDirection:"row",position:"absolute",width:"100%",height:"100%",backgroundColor:_,alignItems:"center",justifyContent:"center"},children:[(0,ge.jsx)(ce.default,{name:"connection",size:30,color:F}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:30,color:F,marginLeft:10},children:"\u062e\u0637\u0627 \u062f\u0631 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a"}),(0,ge.jsx)(pe,{label:"\u062a\u0644\u0627\u0634 \u0645\u062c\u062f\u062f",style:{width:"49%",marginTop:10,position:"absolute",bottom:"20%"},textStyle:{bottom:10,color:C},touchableStyle:{backgroundColor:F,elevation:0},colorspin:C,sizespin:25,loading:v,onPress:function(){S(!0),z()}})]})]}):(0,ge.jsxs)(g.default,{style:xe.viewContainer,children:[(0,ge.jsx)(p.default,{backgroundColor:C}),(0,ge.jsx)(m.default,{source:o(6007),alt:"image",style:xe.image}),(0,ge.jsx)(y.default,{style:xe.text,children:"\u067e\u0644\u0646\u0631\u0633"}),(0,ge.jsx)(x.default,{color:B,size:40,animating:l})]})};var je=o(2568),we=o(5061),ve=o(6281);function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Oe=function(e){var t=f.useState(!1),n=(0,i.default)(t,2),o=n[0],r=n[1];return(0,ge.jsxs)(g.default,{style:Ce({width:"100%",height:55,alignItems:"center"},e.styleview),children:[(0,ge.jsx)(ve.default,{onFocus:function(){return r(!0)},onBlur:function(){return r(!1)},value:e.value,onChangeText:e.onChangeText,onKeyPress:e.onKeyPress,maxLength:e.maxLength,placeholder:e.placeholder,multiline:e.multiline,editable:e.editable,defaultValue:e.defaultValue,keyboardType:e.keyboardType,mask:e.mask,style:Ce({width:"90%",height:55,borderWidth:1,borderRadius:5,padding:10,fontFamily:"Montserrat",borderColor:1==o?B:_},e.styleinput)}),(0,ge.jsx)(we.default,{name:e.nameicon,size:20,color:e.coloricon,style:Ce({},e.styleicon),onPress:e.onPressicon}),(0,ge.jsx)(g.default,{style:Ce({width:90,height:25,backgroundColor:C,top:-13,position:"absolute",right:"8%"},e.stylelabel),children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratLight",fontSize:13,marginRight:5,color:1==o?B:_},children:e.label})})]})};var ze=o(7090),ke=o(9081),Pe=o(2069),Me=o(4086),Be=o(1744),Te=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C},viewlogo:{width:"100%",height:100,alignItems:"center",justifyContent:"center",marginTop:"40%"}});const Fe=function(e){var t=(0,f.useState)(""),n=(0,i.default)(t,2),o=n[0],a=n[1],l=(0,f.useState)(!1),s=(0,i.default)(l,2),c=s[0],h=s[1],m=(0,f.useState)(!1),x=(0,i.default)(m,2),b=x[0],j=x[1],w=(0,f.useState)(!0),v=(0,i.default)(w,2),S=(v[0],v[1]),O=(0,f.useState)(!1),z=(0,i.default)(O,2),k=z[0],P=z[1],M=function(){var e=(0,r.default)((function*(){try{yield ie(o)}catch(e){console.log(e)}}));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){d.default.isRTL&&(d.default.forceRTL(!1),Be.reloadAsync())}));var I=(0,ke.useMediaQuery)({maxWidth:500}),D=(0,i.default)(I,1)[0];return(0,ge.jsxs)(Pe.NativeBaseProvider,{children:[(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"lg",isOpen:k,onPress:function(){return P(!1)},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:400},children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:40,flexDirection:"row"},children:[(0,ge.jsx)(we.default,{onPress:function(){return P(!1)},name:"close",size:20,color:R}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,left:80,position:"absolute"},children:"\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 IOS"})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:280,marginBottom:10},children:[(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,marginBottom:20,marginTop:10},children:["\u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u0631\u0648\u0631\u06af\u0631 ",(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R},children:" safari "})," \u0648\u0627\u0631\u062f \u0633\u0627\u06cc\u062a \u067e\u0644\u0646\u0631\u0633 \u0634\u0648\u06cc\u062f. "]}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_},children:["\u0633\u067e\u0633 \u0631\u0648\u06cc \u06af\u0632\u06cc\u0646\u0647",(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R},children:" share "}),"\u06a9\u0644\u06cc\u06a9 \u06a9\u0631\u062f\u0647."]}),(0,ge.jsx)(we.default,{name:"share-outline",size:35,color:_,style:{position:"absolute",left:130,top:110}}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,marginTop:90},children:["\u0627\u0632 \u0645\u0646\u0648\u06cc \u0641\u0648\u0642 \u06af\u0632\u06cc\u0646\u0647 \u06cc",(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R},children:" Add to Home Screen "})," \u0632\u062f\u0647 \u0648 \u0631\u0648\u06cc ",(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R},children:" Save "})," \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f."]}),(0,ge.jsx)(we.default,{name:"add-circle-outline",size:35,color:_,style:{position:"absolute",left:130,top:230}})]}),(0,ge.jsx)(pe,{touchableStyle:{width:"80%",height:50,backgroundColor:B},textStyle:{bottom:10,fontSize:16},style:{marginTop:10,left:25},onPress:function(){P(!1)},colorspin:C,sizespin:25,label:"\u0628\u0627\u0634\u0647"})]})})})}),(0,ge.jsxs)(g.default,{style:{width:D?"100%":500,height:"100%",marginLeft:D?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsx)(p.default,{backgroundColor:C}),(0,ge.jsxs)(g.default,{style:Te.viewlogo,children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:25,bottom:150,position:"absolute",marginBottom:20},children:"\u0628\u0647 \u067e\u0644\u0646\u0631\u0633 \u062e\u0648\u0634 \u0622\u0645\u062f\u06cc\u062f"}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:_},children:"\u0644\u0637\u0641\u0627 \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u062e\u0648\u062f\u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f "})]}),(0,ge.jsx)(Oe,{label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644",styleview:{marginTop:70},placeholder:"0913 xxx xxxx",keyboardType:"numeric",value:o,mask:[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],onChangeText:function(e){return a(e)},styleinput:"web"===u.default.OS&&{outlineColor:B,outlineStyle:"none"}}),(0,ge.jsx)(ze.default,{show:b,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631!",message:"\u0627\u06af\u0631 \u0632\u0628\u0627\u0646 \u062a\u0644\u0641\u0646 \u0634\u0645\u0627 \u0641\u0627\u0631\u0633\u06cc \u0627\u0633\u062a \u0644\u0637\u0641\u0627 \u06cc\u06a9\u0628\u0627\u0631 \u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f.",closeOnTouchOutside:!0,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u062e\u06cc\u0631",confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:"#DD6B55",onCancelPressed:function(){j(!1),S(!1)},onConfirmPressed:function(){j(!1),S(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0},confirmButtonStyle:{width:"45%",height:40,alignItems:"center",backgroundColor:F},cancelButtonStyle:{width:"45%",height:40,backgroundColor:T,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0}}),(0,ge.jsx)(ze.default,{show:c,showProgress:!1,title:"\u062e\u0637\u0627",message:"\u0634\u0645\u0627\u0631\u0647 \u062a\u0644\u0641\u0646 \u0631\u0627 \u0635\u062d\u06cc\u062d \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",closeOnTouchOutside:!0,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:"#DD6B55",onConfirmPressed:function(){h(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}}),(0,ge.jsx)(pe,{label:"\u062b\u0628\u062a \u0646\u0627\u0645 / \u0648\u0631\u0648\u062f",style:{width:"100%",marginLeft:"5%",marginTop:120},textStyle:{bottom:10},onPress:function(){11===o.length?(M(),e.navigation.navigate("otp",{number:o})):h(!0)}}),"web"==u.default.OS?(0,ge.jsx)(he.default,{onPress:function(){return P(!0)},style:{width:"100%",height:50,marginTop:10,justifyContent:"center",alignItems:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:18,color:_},children:"\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 IOS"})}):null]})]})};var Ie=o(3046),De=o(4574);function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Le="INPUT_CHANGE",Ae="INPUT_BLUR ",Ee="INPUT_FOCUS",We=function(e,t){switch(t.type){case Le:return Re(Re({},e),{},{value:t.value,validity:t.validity});case Ae:return Re(Re({},e),{},{focused:!1,touched:!0});case Ee:return Re(Re({},e),{},{value:"",focused:!0});default:return e}};const He=function(e){var t=e.onInputChange,n=e.id,o=(0,f.useReducer)(We,{value:e.initialValue?e.initialValue:"",validity:e.initialValidity,touched:!1,focused:!1}),r=(0,i.default)(o,2),a=r[0],l=r[1];(0,f.useEffect)((function(){t(n,a.value,a.validity)}),[n,a,t]);return(0,ge.jsxs)(g.default,{style:Re({width:50,alignItems:"center",paddingHorizontal:2,marginBottom:20},e.style),children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:16,marginBottom:15,marginRight:3,color:a.focused?B:D},children:e.label}),(0,ge.jsx)(De.default,{style:Re({backgroundColor:C,fontFamily:"Montserrat",fontSize:16,color:R,width:"100%",borderRadius:7,textAlign:"center",paddingHorizontal:15,shadowOpacity:.3,shadowOffset:{width:0,height:0},height:e.multiline?150:50,borderWidth:(a.focused,1.5),borderColor:a.focused?B:I,shadowColor:a.focused?B:I},e.styleinput),multiline:!!e.multiline,numberOfLines:e.numberOfLines,value:a.value,onBlur:function(){l({type:Ae})},onFocus:function(){l({type:Ee})},onChangeText:function(t){var n=!0;e.required&&0===t.trim().length&&(n=!1),e.email&&!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t.toLowerCase())&&(n=!1),null!=e.min&&+t<e.min&&(n=!1),null!=e.max&&+t>e.max&&(n=!1),null!=e.minLength&&t.length<e.minLength&&(n=!1),l({type:Le,value:t,validity:n})},maxLength:1,ref:e.inputref,keyboardType:"numeric",autoComplete:"sms-otp"})]})};function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qe="FORM_INPUT_UPDATE",Ue=function(e,t){if(t.type===qe){var n,o=Ve(Ve({},e.inputValues),{},(n={},(0,fe.default)(n,t.id,t.value),(0,fe.default)(n,"numAdded",e.inputValues.num1+e.inputValues.num2+e.inputValues.num3+e.inputValues.num4+e.inputValues.num5),n)),i=Ve(Ve({},e.inputValidities),{},(0,fe.default)({},t.id,t.validity)),r=!0;for(var a in i)r=i[a]&&r;return{inputValues:o,inputValidities:i,formValidity:r}}return e},Ge=c.default.create({wrapper:{width:"100%",height:"100%",backgroundColor:C,overflow:"hidden",position:"web"==u.default.OS?"fixed":"relative"},scrollContainer:{width:"100%",height:"100%",paddingHorizontal:15,flex:1},logoContainer:{width:"100%",alignItems:"center",marginBottom:"70%",top:"30%"},skiptext:{fontFamily:"Montserrat",fontSize:14,color:B}});const Qe=function(e){var t=(0,de.useDispatch)(),n=(0,f.useState)(""),o=(0,i.default)(n,2),a=o[0],l=o[1],s=(0,f.useState)(60),d=(0,i.default)(s,2),c=d[0],h=d[1],m=(0,f.useState)(!1),p=(0,i.default)(m,2),x=p[0],b=p[1];(0,f.useEffect)((function(){var e=setTimeout((function(){0!==c&&h(c-1)}),1e3);return function(){clearTimeout(e)}}));var j=(0,f.useRef)(null),w=(0,f.useRef)(null),v=(0,f.useRef)(null),S=(0,f.useRef)(null),O=(0,f.useRef)(null),z=(0,f.useReducer)(Ue,{inputValues:{num1:"",num2:"",num3:"",num4:"",num5:"",numAdded:""},inputValidities:{num1:!1,num2:!1,num3:!1,num4:!1,num5:!1},formValidity:!1}),k=(0,i.default)(z,2),P=k[0],M=k[1],T=(0,f.useCallback)((function(e,t,n){switch(M({type:qe,value:t,id:e,validity:n}),e){case"num1":""!=t&&w.current.focus();break;case"num2":""!=t&&v.current.focus();break;case"num3":""!=t&&S.current.focus();break;case"num4":""!=t&&O.current.focus();break;case"num5":""!=t&&O.current.blur()}}),[M]),F=function(){var n=(0,r.default)((function*(){try{b(!0);var n=yield t(function(e,t){return function(){var n=(0,r.default)((function*(n){var o=new(W());return o.append("mobile",e),o.append("code",t),fetch("https://npln.ir/api/v1/auth/login",{method:"POST",headers:{Accept:"application/json"},body:o}).then((function(e){return e.json()})).then((function(e){return console.log(e),n({type:H,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return n.apply(this,arguments)}}()}(e.route.params.number,P.inputValues.numAdded));"error"==n.status&&l(n.message),"success"==n.status&&(yield se.default.setItem("access_token",n.data.token),yield t(ne(n.data.token)),null==n.data.user.state_id?e.navigation.navigate("register1"):e.navigation.navigate("home")),b(!1)}catch(o){console.log(o)}}));return function(){return n.apply(this,arguments)}}(),D=function(){var t=(0,r.default)((function*(){try{yield ie(e.route.params.number);h(60)}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),R=(0,ke.useMediaQuery)({maxWidth:500}),L=(0,i.default)(R,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsx)(g.default,{style:{width:L?"100%":500,height:"100%",marginLeft:L?0:"35%",backgroundColor:C,overflow:"hidden",position:"web"==u.default.OS?"fixed":"relative"},children:(0,ge.jsx)(g.default,{style:Ge.scrollContainer,children:(0,ge.jsxs)(Ie.default,{showsVerticalScrollIndicator:!1,children:[(0,ge.jsxs)(g.default,{style:Ge.logoContainer,children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:20,bottom:10,position:"absolute",marginBottom:"15%"},children:"\u06a9\u062f \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:50},children:["\u06a9\u062f 5 \u0631\u0642\u0645\u06cc \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u0647 \u0628\u0647 \u0634\u0645\u0627\u0631\u0647 \u0647\u0645\u0631\u0627\u0647 ",e.route.params.number," \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f "]})]}),(0,ge.jsxs)(g.default,{style:{flexDirection:"row",justifyContent:"space-between"},children:[(0,ge.jsx)(He,{onInputChange:T,id:"num1",inputref:j,styleinput:"web"===u.default.OS&&{outlineColor:B,outlineStyle:"none"}}),(0,ge.jsx)(He,{onInputChange:T,id:"num2",inputref:w,styleinput:"web"===u.default.OS&&{outlineColor:B,outlineStyle:"none"}}),(0,ge.jsx)(He,{onInputChange:T,id:"num3",inputref:v,styleinput:"web"===u.default.OS&&{outlineColor:B,outlineStyle:"none"}}),(0,ge.jsx)(He,{onInputChange:T,id:"num4",inputref:S,styleinput:"web"===u.default.OS&&{outlineColor:B,outlineStyle:"none"}}),(0,ge.jsx)(He,{onInputChange:T,id:"num5",inputref:O,styleinput:"web"===u.default.OS&&{outlineColor:B,outlineStyle:"none"}})]}),(0,ge.jsx)(g.default,{style:{width:"100%",alignItems:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:16,color:"red"},children:a})}),(0,ge.jsxs)(g.default,{style:{flexDirection:"row",justifyContent:"center",alignItems:"center",width:"100%",height:80},children:[(0,ge.jsx)(he.default,{style:{justifyContent:"center",alignItems:"center",marginTop:15},onPress:function(){e.navigation.navigate("login")},children:(0,ge.jsx)(y.default,{style:Ge.skiptext,children:"\u062a\u063a\u06cc\u06cc\u0631 \u0634\u0645\u0627\u0631\u0647"})}),(0,ge.jsxs)(he.default,{style:{justifyContent:"center",alignItems:"center",marginTop:15},onPress:0==c?D:function(){},children:[0!==c&&(0,ge.jsxs)(y.default,{style:Ge.skiptext,children:[" "," "," ","00:",c]}),0===c&&(0,ge.jsxs)(y.default,{style:Ge.skiptext,children:["\u0627\u0631\u0633\u0627\u0644 \u0645\u062c\u062f\u062f \u06a9\u062f"," "," "," "]})]})]}),(0,ge.jsx)(pe,{label:"\u062a\u0627\u06cc\u06cc\u062f \u06a9\u062f",textStyle:{bottom:10},onPress:function(){x||5!==P.inputValues.numAdded.length||F()},style:{marginTop:30,marginLeft:"5%"},loading:x,colorspin:C,sizespin:25,touchableStyle:{backgroundColor:5===P.inputValues.numAdded.length?B:I}})]})})})})};var Ke=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,alignItems:"center",marginBottom:15},viewtitle:{width:"100%",height:60,alignItems:"center",justifyContent:"center",marginTop:"5%",backgroundColor:C},touch:{flexDirection:"row",width:"90%",height:50,backgroundColor:O,marginTop:8,borderRadius:10}});const Je=function(e){var t=(0,f.useState)(!1),n=(0,i.default)(t,2),o=n[0],a=n[1],l=(0,f.useState)([]),s=(0,i.default)(l,2),d=s[0],c=s[1],h=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),m=(0,de.useDispatch)(),p=function(){var e=(0,r.default)((function*(){try{a(!0);var e=yield m(re(h));c(e.data.data.states),a(!1)}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){p()}),[]),(0,ge.jsxs)(Pe.NativeBaseProvider,{children:[(0,ge.jsx)(g.default,{style:Ke.viewtitle,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:18,position:"absolute"},children:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"})}),(0,ge.jsx)(Ie.default,{style:{backgroundColor:C},children:(0,ge.jsx)(g.default,{style:Ke.viewContainer,children:o?(0,ge.jsxs)(g.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:C},children:[(0,ge.jsx)(x.default,{animating:o,size:30,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:B,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]}):d.map((function(t,n){return(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("register2",{ids:t.id})},style:Ke.touch,children:[(0,ge.jsx)(we.default,{name:"arrow-back-outline",size:25,color:B,style:{position:"absolute",left:"5%",top:"web"==u.default.OS?"28%":"20%"}}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,position:"absolute",right:"5%",top:"web"==u.default.OS?"28%":"20%"},children:t.state})]},n)}))})})]})};var Ye=o(7750),Ze=o(6987),Xe=o(5172),$e=o(7137),et=o(7049),tt=o(6378),nt=o(3668),ot=o(6983);var it=c.default.create({viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},viewContainer:{width:"100%",height:"100%",backgroundColor:C,alignItems:"center",justifyContent:"center"},viewfooter:{flexDirection:"row",width:"web"==u.default.OS?"400px":"100%",height:60,backgroundColor:B,position:"web"===u.default.OS?"fixed":"absolute",bottom:0},menu1:{backgroundColor:B,width:50,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"15%":"39%"},menu3:{backgroundColor:B,width:80,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:15,top:"web"==u.default.OS?"15%":"39%"},menu:{backgroundColor:B,width:80,height:60,justifyContent:"center",alignItems:"center",position:"absolute",right:"60%",top:"web"==u.default.OS?"0%":"28%"},menu2:{backgroundColor:B,width:80,height:60,justifyContent:"center",alignItems:"center",position:"absolute",right:"35%",top:"web"==u.default.OS?"0%":"28%"},textheader:{backgroundColor:B,width:130,height:60,alignItems:"center",justifyContent:"center",position:"absolute",left:3,top:"25%"}});const rt=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),a=(0,f.useState)([]),l=(0,i.default)(a,2),s=l[0],d=l[1],c=(0,f.useState)([]),h=(0,i.default)(c,2),g=h[0],m=h[1],y=(0,f.useState)(""),b=(0,i.default)(y,2),v=b[0],S=b[1],O=(0,f.useState)(!1),z=(0,i.default)(O,2),k=z[0],P=z[1],F=(0,f.useState)(!1),D=(0,i.default)(F,2),_=D[0],L=D[1],E=(0,f.useState)(""),H=(0,i.default)(E,2),N=(H[0],H[1]),V=(0,f.useState)(!1),q=(0,i.default)(V,2),U=q[0],K=q[1],J=(0,f.useState)(!1),Y=(0,i.default)(J,2),Z=Y[0],X=Y[1],ee=(0,f.useState)(!1),ne=(0,i.default)(ee,2),ie=ne[0],re=ne[1],ae=(0,f.useState)(!1),fe=(0,i.default)(ae,2),me=fe[0],ye=fe[1],pe=function(){var o=(0,r.default)((function*(){try{L(!0);var o=yield n((i=t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i};return A()({method:"get",url:"https://npln.ir/api/v1/order/count-open-orders",headers:t}).then((function(t){var n=t.data;return e({type:$,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));"false"==o.data.data.status?e.navigation.navigate("mdfwhite"):ye(!0),L(!1)}catch(a){}var i}));return function(){return o.apply(this,arguments)}}(),xe=function(){var e=(0,r.default)((function*(){try{P(!0);var e=yield n((o=t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o};return A()({method:"get",url:"https://npln.ir/api/v1/app/slider",headers:t}).then((function(t){var n=t.data;return e({type:G,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));d(e.data.data.sliders),P(!1)}catch(i){}var o}));return function(){return e.apply(this,arguments)}}(),be=function(){var e=(0,r.default)((function*(){try{var e=yield n((o=t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o};return A()({method:"get",url:"https://npln.ir/api/v1/app/app",headers:t}).then((function(t){var n=t.data;return e({type:Q,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));m(e.data.data.apps)}catch(i){}var o}));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=(0,r.default)((function*(){try{var e=yield n(le(t));"true"==e.data.data.exp_payment&&(N(e.data.data.user),S(e.data.data),K(e.data.data.version),setTimeout((function(){null!==e.data.data&&"true"==e.data.data.version.status&&"1"!==e.data.data.version.version&&re(!0)}),1e3))}catch(o){}}));return function(){return e.apply(this,arguments)}}();(0,ot.useFocusEffect)((0,f.useCallback)((function(){function e(){return e=(0,r.default)((function*(){console.log("token",t);var e,o,i=yield se.default.getItem("expo_token");if(console.log("expo token --- test =>",i),i){var a=yield n((e=t,o=i,function(){var t=(0,r.default)((function*(t){var n={Accept:"application/json",Authorization:"Bearer "+e},i=new(W());return i.append("device_token",o),fetch("https://npln.ir/api/v1/user/token",{method:"POST",headers:n,body:i}).then((function(e){return e.json()})).then((function(e){return console.log(e),t({type:te,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return t.apply(this,arguments)}}()));console.log("expo token res",a)}})),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[])),(0,f.useEffect)((function(){be(),xe()}),[]);var Se=(0,ot.useIsFocused)();(0,f.useEffect)((function(){ve(),t||Ce(),Te()}),[Se]);var Ce=function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}();(0,ot.useFocusEffect)(f.useCallback((function(){var e=et.default.addEventListener("hardwareBackPress",(function(){return $e.default.alert("\u0647\u0634\u062f\u0627\u0631!","\u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0628\u0646\u062f\u06cc\u062f \u061f",[{text:"\u0628\u0627\u0632\u06af\u0634\u062a"},{text:"\u0628\u0644\u0647",onPress:function(){return et.default.exitApp()}}]),!0}));return function(){return e.remove()}}),[]));var Oe=(0,f.useRef)(new tt.default.Value(0)).current;"has_message"!=v.has_message&&"has_ticket"!=v.has_ticket||setTimeout((function(){X(!Z),1==Z?tt.default.timing(Oe,{toValue:1,duration:500,useNativeDriver:!0}).start():tt.default.timing(Oe,{toValue:0,duration:500,useNativeDriver:!0}).start()}),1200);var Me=(0,ke.useMediaQuery)({maxWidth:500}),Be=(0,i.default)(Me,1)[0];function Te(){ue.default.fetch().then((function(e){0==e.isConnected&&$e.default.alert("\u0647\u0634\u062f\u0627\u0631!","\u0644\u0637\u0641\u0627 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f",[{text:"\u0628\u0627\u0634\u0647",onPress:function(){return Te()}}])}))}return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(Ye.View,{style:{width:Be?"100%":500,marginLeft:Be?0:"35%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(Ye.View,{style:it.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),"has_message"==v.has_message?(0,ge.jsxs)(he.default,{style:it.menu2,onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},children:[(0,ge.jsx)(tt.default.View,{style:{opacity:Oe},children:(0,ge.jsx)(ce.default,{name:"bell-ring",size:30,color:M})}),(0,ge.jsx)(Ze.default,{style:{fontFamily:"Montserrat",fontSize:10,color:C},children:"\u067e\u06cc\u0627\u0645 \u062f\u0631 \u0633\u0641\u0627\u0631\u0634\u0627\u062a"})]}):(0,ge.jsx)(Ye.View,{}),"has_ticket"==v.has_ticket?(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("ticket")},style:it.menu,children:[(0,ge.jsx)(tt.default.View,{style:{opacity:Oe},children:(0,ge.jsx)(ce.default,{name:"bell-ring",size:30,color:M})}),(0,ge.jsx)(Ze.default,{style:{fontFamily:"Montserrat",fontSize:10,color:C},children:"\u067e\u06cc\u0627\u0645 \u062f\u0631 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})]}):(0,ge.jsx)(Ye.View,{}),(0,ge.jsxs)(he.default,{style:it.menu1,onPress:function(){return e.navigation.navigate("ticket")},children:[(0,ge.jsx)(ce.default,{name:"face-agent",size:30,color:C}),(0,ge.jsx)(Ze.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})]}),(0,ge.jsxs)(he.default,{style:it.menu3,onPress:function(){return e.navigation.navigate("splash")},children:[(0,ge.jsx)(ce.default,{name:"reload",size:30,color:C}),(0,ge.jsx)(Ze.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u0628\u0627\u0631\u06af\u0632\u0627\u0631\u06cc \u0645\u062c\u062f\u062f"})]})]}),(0,ge.jsxs)(Ie.default,{style:{backgroundColor:"white",alignSelf:"auto",marginBottom:60},children:[(0,ge.jsx)(Ye.View,{style:{width:"100%",height:300,padding:10},children:k?(0,ge.jsx)(Ye.View,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:C},children:(0,ge.jsx)(x.default,{animating:k,size:30,color:B})}):(0,ge.jsx)(nt.default,{paginationStyle:{bottom:0,left:0},autoplay:!0,loop:!0,dot:(0,ge.jsx)(Ye.View,{style:{width:8,height:8,borderRadius:4,margin:5,backgroundColor:I}}),activeDot:(0,ge.jsx)(Ye.View,{style:{width:12,height:12,borderRadius:6,margin:5,backgroundColor:"red"}}),children:s.map((function(e,t){return(0,ge.jsx)(Ye.View,{style:{flex:1},children:(0,ge.jsx)(Xe.default,{source:{uri:"https://npln.ir"+e.images[1].address},alt:e.images[1].type,style:{height:300,width:"100%"},resizeMode:"stretch"})},t)}))},s.length)}),(0,ge.jsxs)(he.default,{onPress:function(){return pe()},style:{width:"95%",height:70,backgroundColor:B,marginLeft:10,flexDirection:"row",alignItems:"center"},children:[(0,ge.jsx)(Xe.default,{source:o(5607),alt:"image",style:{width:"28%",height:"95%",borderRadius:10,right:"3%",position:"absolute"}}),0==_?(0,ge.jsx)(Ze.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:C,left:"5%",position:"absolute",marginRight:"5%"},children:"\u0633\u0641\u0627\u0631\u0634 \u062c\u062f\u06cc\u062f \u0637\u0631\u0627\u062d\u06cc"}):(0,ge.jsx)(x.default,{animating:_,size:30,color:C,style:{left:90}})]}),(0,ge.jsx)(Ye.View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",width:"100%",marginTop:20},children:g.map((function(t,n){return(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t.link})},style:{marginRight:"1%",width:"32%",height:110,alignItems:"center",justifyContent:"center",marginTop:5},children:[(0,ge.jsx)(Xe.default,{source:{uri:"https://npln.ir"+t.images[1].address},alt:t.images[1].type,style:{width:"70%",height:"70%",borderRadius:10}}),(0,ge.jsx)(Ze.default,{style:{fontFamily:"Montserrat",fontSize:12,color:R,padding:"5%"},children:t.name})]},n)}))}),(0,ge.jsx)(Ye.View,{style:{width:"100%",height:20}})]}),(0,ge.jsx)(ze.default,{show:me,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631 !",message:"\u0634\u0645\u0627 \u0633\u0641\u0627\u0631\u0634 \u0641\u0639\u0627\u0644 \u062f\u0627\u0631\u06cc\u062f \u06a9\u062f\u0627\u0645 \u0645\u0631\u062d\u0644\u0647 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u06cc\u06a9\u0646\u06cc\u062f",closeOnTouchOutside:!0,closeOnHardwareBackPress:!0,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u0633\u0641\u0627\u0631\u0634 \u062c\u062f\u06cc\u062f",confirmText:"\u0633\u0641\u0627\u0631\u0634\u0627\u062a \u0641\u0639\u0627\u0644",confirmButtonColor:T,onCancelPressed:function(){e.navigation.navigate("mdfwhite"),ye(!1)},onConfirmPressed:function(){e.navigation.navigate("orderlist",{refresh:"true"}),ye(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0},confirmButtonStyle:{width:"45%",height:40,alignItems:"center"},cancelButtonStyle:{width:"53%",height:40,backgroundColor:B,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0}}),(0,ge.jsx)(ze.default,{show:ie,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631 !",message:"\u0646\u0633\u062e\u0647 \u0634\u0645\u0627 \u0642\u062f\u06cc\u0645\u06cc \u0627\u0633\u062a \u0644\u0637\u0641\u0627 \u0646\u0633\u062e\u0647 \u062c\u062f\u06cc\u062f \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. ",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:"true"!=U.force,showConfirmButton:!0,cancelText:"\u0628\u0639\u062f\u0627",confirmText:"\u0646\u0635\u0628 \u06a9\u0631\u062f\u0646",confirmButtonColor:T,onCancelPressed:function(){re(!1)},onConfirmPressed:function(){var e;e="https://npln.ir",je.default.openURL(e)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0},confirmButtonStyle:{width:"45%",height:40,alignItems:"center"},cancelButtonStyle:{width:"53%",height:40,backgroundColor:B,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0}}),(0,ge.jsxs)(Ye.View,{style:{flexDirection:"row",width:Be?"100%":500,height:60,backgroundColor:B,position:"web"===u.default.OS?"fixed":"absolute",bottom:0},children:[(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},style:{width:"15%",height:60,position:"absolute",right:"5%",alignItems:"center",padding:5},children:[(0,ge.jsx)(we.default,{name:"reader-outline",size:25,color:C}),(0,ge.jsx)(Ze.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u0633\u0641\u0627\u0631\u0634\u0627\u062a"})]}),(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("profile")},style:{width:"15%",height:60,alignItems:"center",left:15,top:5},children:[(0,ge.jsx)(ce.default,{name:"badge-account-outline",size:25,color:C}),(0,ge.jsx)(Ze.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"})]}),(0,ge.jsxs)(Ye.View,{style:{width:"30%",height:60,left:"35%",alignItems:"center",flexDirection:"column",position:"absolute"},children:[(0,ge.jsx)(Ye.View,{style:{width:50,height:50,borderRadius:25,backgroundColor:w,borderWidth:5,borderColor:C,bottom:28,alignItems:"center",justifyContent:"center"},children:(0,ge.jsx)(we.default,{name:"home-outline",size:20,color:C})}),(0,ge.jsx)(Ze.default,{style:{fontFamily:"Montserrat",fontSize:12,color:j,position:"absolute",bottom:15},children:"\u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc"}),(0,ge.jsx)(Ye.View,{style:{width:30,height:5,borderRadius:5,backgroundColor:w,position:"absolute",bottom:5}})]})]})]})})};var at=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"15%":"35%"},textheader:{backgroundColor:B,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"15%":"35%"},viewlogo:{width:"100%",height:100,alignItems:"center",justifyContent:"center",marginTop:"10%"},texttitel:{fontFamily:"MontserratBold",fontSize:20,bottom:80,position:"absolute"},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30},touch:{flexDirection:"column",alignItems:"center",width:"90%",height:170,backgroundColor:S,marginTop:20,left:"5%",borderRadius:10,borderWidth:1,borderColor:_},viewicon:{width:90,height:90,backgroundColor:z,borderRadius:45,marginTop:"3%",alignItems:"center",justifyContent:"center"},texttouch:{fontFamily:"MontserratBold",fontSize:15,color:B,marginTop:"1%"}});const lt=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)(""),a=(0,i.default)(o,2),l=a[0],s=a[1],d=function(){var e=(0,r.default)((function*(){try{var e=yield n(le(t));s(e.data.data.user)}catch(o){}}));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){d()}),[]);!function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}))}();var c=(0,ke.useMediaQuery)({maxWidth:500}),h=(0,i.default)(c,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:h?"100%":500,height:"100%",marginLeft:h?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:at.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:at.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:at.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634"})})]}),(0,ge.jsxs)(g.default,{style:at.viewlogo,children:[(0,ge.jsx)(y.default,{style:at.texttitel,children:"\u0627\u0628\u062a\u062f\u0627 \u06cc\u06a9\u06cc \u0627\u0632 \u0631\u0648\u0634 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"}),(0,ge.jsxs)(y.default,{style:at.text,children:["\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u0627 \u0628\u0647 \u0634\u0645\u0627 ",(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:B},children:" \u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634 \u0633\u0631\u06cc\u0639 "})," \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a"]}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:14,color:_},children:"\u062f\u0642\u06cc\u0642 \u0648\u0633\u0631\u06cc\u0639 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0641\u0631\u0627\u06cc\u0646\u062f \u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f"})]}),(0,ge.jsxs)(he.default,{onPress:function(){"false"==l.status?e.navigation.navigate("ordercolor"):e.navigation.navigate("form",{image:"",orderid:""})},style:at.touch,children:[(0,ge.jsx)(g.default,{style:at.viewicon,children:(0,ge.jsx)(ce.default,{name:"clipboard-text-multiple-outline",size:45,color:B})}),(0,ge.jsx)(y.default,{style:at.texttouch,children:"\u062b\u0628\u062a \u0633\u0631\u06cc\u0639 (\u0628\u0631\u0634 \u0648\u0646\u0648\u0627\u0631)"}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_,marginTop:"1%"},children:"\u0627\u0631\u0633\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u0641\u0627\u0631\u0634 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0641\u0631\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0642\u06cc\u0642 \u0648\u0628\u0627 \u0633\u0631\u0639\u062a \u0628\u0627\u0644\u0627"})]}),(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("service",{number:"2",ostany:l.state_id,citys:l.city_id})},style:at.touch,children:[(0,ge.jsx)(g.default,{style:at.viewicon,children:(0,ge.jsx)(ce.default,{name:"wechat",size:50,color:B})}),(0,ge.jsx)(y.default,{style:at.texttouch,children:"\u062b\u0628\u062a \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 (\u0633\u0627\u06cc\u0631 \u062e\u062f\u0645\u0627\u062a)"}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_,bottom:5},children:"\u0627\u0631\u0633\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u0641\u0627\u0631\u0634 \u0628\u0647 \u0635\u0648\u0631\u062a \u0633\u06cc\u0633\u062a\u0645 \u0686\u062a \u0628\u0627 \u0633\u0631\u0639\u062a \u0628\u0627\u0644\u0627"}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:11,color:_,bottom:6},children:"\u0648\u06a9\u06cc\u0648\u0645 \u060c cnc \u0648 \u063a\u06cc\u0631\u0647..."})]})]})})};var st=o(7421),dt=o(115),ut=o(3175),ct=o(3057),ft=o(2999),ht=o(5674),gt=o(8427),mt=o(1595),yt=o(7572),pt="DELETE_MDF_WHITE",xt="GET_MDF_WHITE",bt="GET_MDF_COLOR",jt="GET_DETAILS_MDF_COLOR",wt="GET_LIST_MDF_COLOR",vt="SEND_FORM",St="SEND_EDIT_FORM ",Ct="GET_ALL_LIST_MDF",Ot="SEND_CHAT",zt="SEND_CHAT_TICKET",kt="GET_CHAT",Pt="GET_CHAT_TICKET",Mt="GET_IMAGE_MDF",Bt="GET_FINAL_LIST_MDF",Tt="GET_CATEGORY",Ft=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json","Content-Type":"multipart/form-data",Authorization:"Bearer "+e},a=new(W());if(a.append("order_id",t),a.append("type",n),"text"==n)a.append("msg",o);else{var l=o.split("/").pop(),s=l.split(".").pop();a.append("msg",{uri:o,name:l,type:"application/"+s})}return A()({method:"POST",url:"https://npln.ir/api/v1/order/message/send",headers:r,data:a}).then((function(e){var t=e.data;return i({type:Ot,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()},It=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json","Content-Type":"multipart/form-data",Authorization:"Bearer "+e},a=new(W());a.append("type",t),a.append("msg",n),a.append("order_id",o);return A()({method:"POST",url:"https://npln.ir/api/v1/order/message/send",headers:r,data:a}).then((function(e){var t=e.data;return i({type:Ot,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()},Dt=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json","Content-Type":"multipart/form-data",Authorization:"Bearer "+e},a=new(W());a.append("type",t),a.append("msg",n),a.append("ticket_id",o);return A()({method:"POST",url:"https://npln.ir/api/v1/app/ticket/send-message",headers:r,data:a}).then((function(e){var t=e.data;return i({type:zt,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()},_t=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json","Content-Type":"multipart/form-data",Authorization:"Bearer "+e},a=new(W());if("text"==t)a.append("msg",n);else{var l=n.split("/").pop(),s=l.split(".").pop();console.log([l,n,s]),a.append("msg",{uri:n,name:l,type:"application/"+s})}a.append("type",t),a.append("ticket_id",o);return A()({method:"POST",url:"https://npln.ir/api/v1/app/ticket/send-message",headers:r,data:a}).then((function(e){var t=e.data;return i({type:zt,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()},Rt="SET_SERVICE",Lt="SET_EDIT_SERVICE",At="SET_UPDATE",Et="GET_SERVICES",Wt="GET_DETAILS_SERVICES",Ht="GET_ALL_ORDERS",Nt="SET_MDF",Vt="SET_IDGROUP",qt="SET_NAME",Ut=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json",Authorization:"Bearer "+e},a="https://npln.ir/api/v1/order/orders?page="+t+"&search="+n+"&status="+o;return A()({method:"get",url:a,headers:r}).then((function(e){var t=e.data;return i({type:Ht,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()};function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"20%":"35%"},menu1:{backgroundColor:B,width:110,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:"3%",top:"web"==u.default.OS?"17%":"35%",flexDirection:"row"},textheader:{backgroundColor:B,width:100,height:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"3%":"22%"},viewfooter:{flexDirection:"row",width:"100%",height:68,backgroundColor:D,position:"web"==u.default.OS?"fixed":"absolute",bottom:"web"==u.default.OS?0:.1}});const Jt=function(e){var t="https://dl.dasterang.ir/ssdteam/npln/",n=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),a=(0,de.useDispatch)(),l=(0,f.useState)(),s=(0,i.default)(l,2),d=s[0],c=s[1],h=(0,f.useState)(!1),b=(0,i.default)(h,2),j=b[0],w=b[1],v=(0,f.useState)(!1),z=(0,i.default)(v,2),M=z[0],F=z[1],L=(0,f.useState)({showModal:!1,isLoading:!1,isLoading1:!1,isLoading2:!1,stoped:!1}),E=(0,i.default)(L,2),W=E[0],H=E[1],N=(0,f.useState)(!1),V=(0,i.default)(N,2),q=V[0],U=V[1],G=(0,f.useState)(""),Q=(0,i.default)(G,2),K=Q[0],J=Q[1],Y=(0,f.useState)(""),Z=(0,i.default)(Y,2),X=Z[0],$=Z[1],te=(0,f.useState)(""),ne=(0,i.default)(te,2),ie=ne[0],re=ne[1],ae=(0,f.useState)(null),le=(0,i.default)(ae,2),fe=le[0],me=le[1],ye=(0,f.useState)(""),xe=(0,i.default)(ye,2),be=xe[0],ve=xe[1],Se=(0,f.useState)([]),Ce=(0,i.default)(Se,2),Oe=Ce[0],Be=Ce[1],Te=(0,f.useState)(!1),Fe=(0,i.default)(Te,2),_e=Fe[0],Re=Fe[1],Le=(0,f.useState)(""),Ae=(0,i.default)(Le,2),Ee=Ae[0],We=Ae[1],He=function(){var t=(0,r.default)((function*(){try{yield a(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),Ne=(0,f.useState)(0),Ve=(0,i.default)(Ne,2),qe=Ve[0],Ue=Ve[1];(0,f.useEffect)((function(){var e=setTimeout((function(){100!==qe&&Ue(qe+1)}),1e3);return function(){clearTimeout(e)}}));var Ge=function(){var t=(0,r.default)((function*(){try{var t=yield a((o=n,i=e.route.params.idcategory,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o};console.log(i);var n="https://npln.ir/api/v1/order/init-order?category_id="+i;return A()({method:"get",url:n,headers:t}).then((function(t){console.log(t);var n=t.data;return e({type:ee,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));t.data.data.order.id&&(We(t.data.data.order.id),Qe(t.data.data.order.id),Ye(t.data.data.order.id))}catch(l){}var o,i}));return function(){return t.apply(this,arguments)}}(),Qe=function(){var e=(0,r.default)((function*(e){if("web"==u.default.OS)try{if(H(Qt(Qt({},W),{},{isLoading1:!0})),K)"success"==(yield a(It(n,"text",K,e))).data.status&&Ye(e);if(be)"success"==(yield a(It(n,"file",be,e))).data.status&&Ye(e);H(Qt(Qt({},W),{},{isLoading1:!1}))}catch(t){}else try{if(H(Qt(Qt({},W),{},{isLoading1:!0})),K)"success"==(yield a(Ft(n,e,"text",K))).data.status&&Ye(e);if(ie)me(""),ve(""),"success"==(yield a(Ft(n,e,"file",ie))).data.status&&Ye(e);if(be)re(""),me(""),"success"==(yield a(Ft(n,e,"file",be))).data.status&&Ye(e);if(fe)re(""),ve(""),"success"==(yield a(Ft(n,e,"file",fe))).data.status&&Ye(e);H(Qt(Qt({},W),{},{isLoading1:!1}))}catch(t){}}));return function(t){return e.apply(this,arguments)}}(),Ke=(0,f.useRef)(null),Je=(0,f.useRef)(null),Ye=function(){var t=(0,r.default)((function*(t){try{H(Qt(Qt({},W),{},{isLoading1:!0}));var o=yield a((i=n,l=e.route.params.idservice?e.route.params.idservice:t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://npln.ir/api/v1/order/message/messages?order_id="+l;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:kt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));Be(o.data.data.messages),H(Qt(Qt({},W),{},{isLoading1:!1}))}catch(s){}var i,l}));return function(e){return t.apply(this,arguments)}}(),Ze=(0,ot.useIsFocused)();(0,f.useEffect)((function(){e.route.params.idservice&&Ye(),n||He(),jt()}),[e.route.params.ids?"":Ze]);var Xe=function(){var e=(0,r.default)((function*(){var e=yield ct.launchCameraAsync({mediaTypes:ft.MediaTypeOptions.All,allowsEditing:!1,quality:.7});e.canceled||(H(Qt(Qt({},W),{},{isLoading2:!0})),me(e.assets[0].uri),F(!0),H(Qt(Qt({},W),{},{isLoading2:!1})))}));return function(){return e.apply(this,arguments)}}(),tt=function(){var e=(0,r.default)((function*(){try{var e=yield ut.getDocumentAsync();ve(e.uri),void 0!==e.uri&&F(!0)}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();function nt(){return(nt=(0,r.default)((function*(){try{yield ht.requestPermissionsAsync(),yield gt.setAudioModeAsync({allowsRecordingIOS:!0,playsInSilentModeIOS:!0});var e=new ht.Recording;yield e.prepareToRecordAsync(mt.RecordingOptionsPresets.HIGH_QUALITY),yield e.startAsync(),c(e)}catch(t){console.error("Failed to start recording",t)}}))).apply(this,arguments)}function it(){return(it=(0,r.default)((function*(){H(Qt(Qt({},W),{},{isLoading:!0})),c(void 0),yield d.stopAndUnloadAsync();var e=yield d.createNewLoadedSoundAsync(),t=d.getURI();!function(e){var t=e/1e3/60,n=Math.floor(t),o=Math.round(60*(t-n))}(e.status.durationMillis);H(Qt(Qt({},W),{},{isLoading:!1})),re(t),F(!0)}))).apply(this,arguments)}function rt(e){return at.apply(this,arguments)}function at(){return(at=(0,r.default)((function*(e){var n=yield yt.Sound.createAsync({uri:t+e},{shouldPlay:!0},(function(e){return $(e.didJustFinish)}));n.sound,n.status}))).apply(this,arguments)}function lt(){return(lt=(0,r.default)((function*(e){var t=yield yt.Sound.createAsync({uri:e},{shouldPlay:!0},(function(e){return $(e.didJustFinish)}));t.sound,t.status}))).apply(this,arguments)}var pt=function(e){je.default.openURL(t+e)};function xt(){document.getElementById("fileC").click()}function bt(){return e.navigation.pop(),!0}function jt(){ue.default.fetch().then((function(e){0==e.isConnected&&$e.default.alert("\u0647\u0634\u062f\u0627\u0631!","\u0644\u0637\u0641\u0627 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f",[{text:"\u0628\u0627\u0634\u0647",onPress:function(){return jt()}}])}))}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",bt),function(){et.default.removeEventListener("hardwareBackPress",bt)}}),[]);var wt=(0,ke.useMediaQuery)({maxWidth:500}),vt=(0,i.default)(wt,1)[0],St=(0,f.useRef)(null);return(0,ge.jsxs)(Pe.NativeBaseProvider,{children:[(0,ge.jsxs)(g.default,{style:{width:vt?"100%":500,marginLeft:vt?0:"35%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:["web"==u.default.OS?(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"xl",isOpen:M,onClose:function(){return F(!1)},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:50},children:(0,ge.jsx)(we.default,{onPress:function(){F(!1),ve("")},name:"close",size:20,color:R})}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:100,alignItems:"center"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red"},children:"... \u0641\u0627\u06cc\u0644 \u0627\u0631\u0633\u0627\u0644 \u0634\u0648\u062f ..."}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",marginTop:20},children:be?be.name:""})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",flexDirection:"row"},children:[(0,ge.jsx)(pe,{label:"\u0627\u0646\u0635\u0631\u0627\u0641",coloricon:S,style:{width:"45%",marginLeft:"5%",marginTop:40},textStyle:{bottom:10},onPress:function(){ve(""),F(!1)}}),(0,ge.jsx)(pe,{label:"\u062a\u0627\u06cc\u06cc\u062f",touchableStyle:{backgroundColor:T,elevation:0},style:{width:"45%",marginTop:40,left:10},textStyle:{bottom:10},onPress:function(){e.route.params.idservice?Qe(e.route.params.idservice):Ee?Qe(Ee):Ge(),ve(""),Ue(0),F(!1)}})]})]})})})}):(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"xl",isOpen:M,onClose:function(){return F(!1)},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:50},children:(0,ge.jsx)(we.default,{onPress:function(){F(!1),re(""),me(""),ve("")},name:"close",size:20,color:R})}),ie?(0,ge.jsxs)(he.default,{onPress:function(){Re(!_e),function(e){lt.apply(this,arguments)}(ie)},style:{left:12,flexDirection:"row",width:"90%",height:50,backgroundColor:I,alignItems:"center",borderRadius:10},children:[(0,ge.jsx)(ce.default,{name:0==_e||1==X?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{position:"absolute",right:30}}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",left:30},children:0==_e||1==X?"\u067e\u062e\u0634":"\u062f\u0631 \u062d\u0627\u0644 \u067e\u062e\u0634"})]}):(0,ge.jsxs)(g.default,{style:{width:"100%",height:100,alignItems:"center"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red"},children:"... \u0641\u0627\u06cc\u0644 \u0627\u0631\u0633\u0627\u0644 \u0634\u0648\u062f ..."}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold"},children:be||fe})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",flexDirection:"row"},children:[(0,ge.jsx)(pe,{label:"\u0627\u0646\u0635\u0631\u0627\u0641",coloricon:S,style:{width:"45%",marginLeft:"5%",marginTop:40},textStyle:{bottom:10},onPress:function(){re(""),me(""),ve(""),F(!1)}}),(0,ge.jsx)(pe,{label:"\u062a\u0627\u06cc\u06cc\u062f",touchableStyle:{backgroundColor:T,elevation:0},style:{width:"45%",marginTop:40,left:10},textStyle:{bottom:10},onPress:function(){e.route.params.idservice?Qe(e.route.params.idservice):Ee?Qe(Ee):Ge(),me(""),ve(""),re(""),Ue(0),F(!1)}})]})]})})})}),(0,ge.jsxs)(g.default,{style:Kt.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){Ee?w(!0):e.navigation.navigate("orderlist",{refresh:"true"})},style:Kt.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){Ee?w(!0):e.navigation.navigate("orderlist",{refresh:"true"})},style:Kt.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634"})}),(0,ge.jsxs)(he.default,{onPress:function(){Ue(0),e.route.params.idservice&&Ye()},style:{flexDirection:"column",width:50,height:"web"==u.default.OS?60:80,position:"absolute",left:"43%",bottom:"web"==u.default.OS?"-5%":-10,alignItems:"center",justifyContent:"center"},children:[(0,ge.jsx)(ce.default,{name:"refresh",size:25,color:C}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:10,color:C},children:"\u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc"})]}),(0,ge.jsxs)(he.default,{onPress:function(){Ee?w(!0):e.navigation.navigate("orderlist",{refresh:"true"})},style:Kt.menu1,children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u062a\u0627\u06cc\u06cc\u062f \u0646\u0647\u0627\u06cc\u06cc"}),(0,ge.jsx)(ce.default,{name:"check-circle-outline",size:25,color:C})]})]}),(0,ge.jsx)(st.default,{style:{width:"100%",height:"web"==u.default.OS?"93%":"100%",backgroundColor:B},resizeMode:"cover",source:o(3743),children:(0,ge.jsx)(Ie.default,{ref:St,onContentSizeChange:function(e,t){!function(e){var t;null==(t=St.current)||t.scrollTo({y:e,animated:!0})}(t)},showsVerticalScrollIndicator:!1,style:{marginBottom:"web"==u.default.OS?80:150},children:Oe.slice(0).reverse().map((function(n,o){return"user"==n.status?(0,ge.jsx)(g.default,{style:{alignSelf:"flex-end",margin:10,backgroundColor:P,borderRadius:15,borderTopRightRadius:0},children:"jpg"==n.mims||"jpeg"==n.mims||"png"==n.mims||"jfif"==n.mims?(0,ge.jsx)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg,type:n.mims}),Ue(0)},style:{justifyContent:"center",alignItems:"center",width:150,height:180,backgroundColor:O,borderWidth:2,borderColor:B},children:(0,ge.jsx)(m.default,{source:{uri:t+n.msg},alt:"image",style:{width:"99%",height:175}})}):"m4a"==n.mims||"mp3"==n.mims||"mpeg"==n.mims||"3gp"==n.mims?(0,ge.jsxs)(g.default,{style:{flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg,type:n.mims}),Ue(0)},style:{flexDirection:"row",right:70,borderWidth:2,borderColor:k,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center"},children:[(0,ge.jsx)(ce.default,{name:"file-download-outline",size:25,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:n.mims})]}),(0,ge.jsxs)(he.default,{onPress:function(){Re(n.id),rt(n.msg)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:_e!==n.id||1==X?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{left:"web"==u.default.OS?45:-110,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?280:350,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative",width:80},children:_e!==n.id||1==X?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]})]}):"mp4"==n.mims?(0,ge.jsxs)(g.default,{style:{flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg,type:n.mims}),Ue(0)},style:{flexDirection:"row",right:70,borderWidth:2,borderColor:k,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center"},children:[(0,ge.jsx)(ce.default,{name:"file-download-outline",size:25,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:n.mims})]}),(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg,type:n.mims}),Ue(0)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:_e!==n.id||1==X?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{left:"web"==u.default.OS?45:-110,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?280:350,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative",width:80},children:_e!==n.id||1==X?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]})]}):"text"==n.mims?(0,ge.jsxs)(y.default,{style:{alignSelf:"auto",fontFamily:"Montserrat",fontSize:15,color:R,padding:"3%"},children:[" ",n.msg," "]}):(0,ge.jsxs)(he.default,{onPress:function(){return pt(n.msg)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:300,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:"download",size:30,color:B,style:{left:"web"==u.default.OS?140:0,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsxs)(y.default,{style:{right:"web"==u.default.OS?320:250,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative"},children:["\u062f\u0627\u0646\u0644\u0648\u062f - ",n.mims]})]})},o):(0,ge.jsx)(g.default,{style:{alignSelf:"flex-start",margin:10,backgroundColor:O,borderRadius:15,borderTopLeftRadius:0},children:"jpg"==n.mims||"jpeg"==n.mims||"png"==n.mims||"jfif"==n.mims?(0,ge.jsx)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg,type:n.mims}),Ue(0)},style:{justifyContent:"center",alignItems:"center",width:150,height:180,backgroundColor:B,borderWidth:2,borderColor:B},children:(0,ge.jsx)(m.default,{source:{uri:t+n.msg},alt:"image",style:{width:"99%",height:175}})}):"m4a"==n.mims||"mp3"==n.mims||"mpeg"==n.mims||"3gp"==n.mims?(0,ge.jsxs)(g.default,{style:{flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onPress:function(){Re(n.id),rt(n.msg)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:_e!==n.id||1==X?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{left:"web"==u.default.OS?100:-60,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?220:290,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative",width:80},children:_e!==n.id||1==X?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg,type:n.mims}),Ue(0)},style:{flexDirection:"row",left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:[(0,ge.jsx)(ce.default,{name:"file-download-outline",size:25,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:n.mims})]})]}):"mp4"==n.mims?(0,ge.jsxs)(g.default,{style:{flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg,type:n.mims}),Ue(0)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:_e!==n.id||1==X?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{left:"web"==u.default.OS?100:-60,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?220:290,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative",width:80},children:_e!==n.id||1==X?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg,type:n.mims}),Ue(0)},style:{flexDirection:"row",left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:[(0,ge.jsx)(ce.default,{name:"file-download-outline",size:25,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:n.mims})]})]}):"text"==n.mims?(0,ge.jsxs)(y.default,{style:{alignSelf:"auto",fontFamily:"Montserrat",fontSize:15,color:R,padding:"3%"},children:[" ",n.msg," "]}):(0,ge.jsxs)(he.default,{onPress:function(){return pt(n.msg)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:300,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:"download",size:30,color:B,style:{left:"web"==u.default.OS?140:0,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsxs)(y.default,{style:{right:"web"==u.default.OS?320:250,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative"},children:["\u062f\u0627\u0646\u0644\u0648\u062f - ",n.mims]})]})},o)}))})}),"web"===u.default.OS?(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:vt?"100%":500,height:68,backgroundColor:D,position:"web"==u.default.OS?"fixed":"absolute",bottom:.1},children:[Oe.length==[]?(0,ge.jsx)(g.default,{}):W.isLoading1?(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:73,height:40,backgroundColor:B,borderRadius:20,alignItems:"center",justifyContent:"center",bottom:"105%",left:"45%",position:"absolute"},children:[(0,ge.jsx)(x.default,{size:30,color:C}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:C,marginLeft:5},children:[qe,"%"]})]}):(0,ge.jsx)(g.default,{}),(0,ge.jsx)(he.default,{onPress:function(){e.route.params.idservice?Qe(e.route.params.idservice):Ee?Qe(Ee):Ge(),Ke.current.value="",J(),Je.current.value="",ve(),Ue(0)},style:{top:"26%",right:"2%",position:"absolute"},children:(0,ge.jsx)(ce.default,{name:"send-outline",size:30,color:K||be?T:R})}),(0,ge.jsx)(g.default,{children:(0,ge.jsxs)("form",{onSubmit:Qe,children:[(0,ge.jsx)("input",{style:{width:190,height:"30%",position:"absolute",left:110,top:"20%",borderRadius:10,paddingLeft:"8px",paddingTop:"6px",paddingBottom:"6px",fontFamily:"Montserrat"},ref:Ke,type:"text",onChange:function(e){return J(e.target.value)},placeholder:" \u0645\u062a\u0646 \u062e\u0648\u062f\u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"}),(0,ge.jsx)("br",{}),(0,ge.jsx)(ce.default,{style:{marginLeft:10,position:"absolute",top:16},onPress:xt,name:"camera-outline",size:25,color:R}),(0,ge.jsx)(ce.default,{style:{marginLeft:45,position:"absolute",top:16},onPress:xt,name:"link-variant",size:25,color:R}),(0,ge.jsx)(ce.default,{style:{marginLeft:80,position:"absolute",top:16},onPress:xt,name:"microphone",size:25,color:R}),(0,ge.jsx)("input",{id:"fileC",ref:Je,type:"file",hidden:!0,onChange:function(e){ve(e.target.files[0]),F(!0)},style:{marginLeft:"4%",marginTop:2}}),(0,ge.jsx)("br",{})]})})]}):(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:vt?"100%":500,height:68,backgroundColor:D,position:"web"==u.default.OS?"fixed":"absolute",bottom:.1},children:[Oe.length==[]?(0,ge.jsx)(g.default,{}):W.isLoading1?(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:73,height:40,backgroundColor:B,borderRadius:20,alignItems:"center",justifyContent:"center",bottom:"105%",left:"45%",position:"absolute"},children:[(0,ge.jsx)(x.default,{size:30,color:C}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:C,marginLeft:5},children:[qe,"%"]})]}):(0,ge.jsx)(g.default,{}),(0,ge.jsx)(he.default,{onPress:function(){e.route.params.idservice?Qe(e.route.params.idservice):Ee?Qe(Ee):Ge(),J(""),re(""),me(""),ve(""),Ue(0)},style:{top:"26%",right:"2%",position:"absolute"},children:(0,ge.jsx)(ce.default,{name:"send-outline",size:30,color:K||fe||be||ie?T:R})}),(0,ge.jsx)(De.default,{onFocus:function(){return U(!0)},value:K||(fe||(be||ie)),editable:!fe&&(!be&&!ie),onChangeText:function(e){return J(e)},placeholder:"\u0645\u062a\u0646 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",multiline:!0,onBlur:function(){return U(!1)},keyboardType:"default",style:{paddingLeft:"web"===u.default.OS?"27%":"35%",paddingTop:"3%",position:"absolute",top:"10%",right:"10%",backgroundColor:S,width:"60%",height:50,borderWidth:1==q?2:0,borderRadius:25,padding:10,fontFamily:"Montserrat",borderColor:1==q?R:_}}),(0,ge.jsx)(he.default,{onPress:d?function(){return it.apply(this,arguments)}:function(){return nt.apply(this,arguments)},style:{bottom:"28%",left:"20%",position:"absolute"},children:W.isLoading?(0,ge.jsx)(x.default,{color:B,style:{marginLeft:8}}):(0,ge.jsxs)(dt.default,{children:[(0,ge.jsx)(ce.default,{name:d?"wifi":"",size:20,color:d?T:R,style:{left:5}}),(0,ge.jsx)(ce.default,{name:d?"microphone":"microphone-off",size:30,color:d?T:R})]})}),(0,ge.jsx)(he.default,{onPress:function(){return tt()},style:{top:"25%",left:"11%",position:"absolute"},children:(0,ge.jsx)(ce.default,{name:"link-variant",size:30,color:R})}),(0,ge.jsx)(he.default,{onPress:function(){return Xe()},style:{top:"30%",left:"3%",position:"absolute"},children:(0,ge.jsx)(ce.default,{name:"camera-outline",size:25,color:R})})]})]}),(0,ge.jsx)(ze.default,{show:j,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631",message:"\u0633\u0641\u0627\u0631\u0634 \u0634\u0645\u0627 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f\u060c \u067e\u0633 \u0627\u0632 \u0628\u0631\u0631\u0633\u06cc \u062a\u06cc\u0645 \u0641\u0646\u06cc \u0628\u0627 \u0634\u0645\u0627 \u062a\u0645\u0627\u0633 \u0645\u06cc\u06af\u06cc\u0631\u06cc\u0645.",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){w(!1),e.navigation.navigate("orderlist",{refresh:"true"}),We("")},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})};function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xt=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,f.useState)(e),n=(0,i.default)(t,2),o=n[0],r=n[1];return[o,(0,f.useMemo)((function(){return{onFocus:function(){return r(!0)},onBlur:function(){return r(!1)}}}),[])]}(),n=(0,i.default)(t,2),o=n[0],r=n[1];return(0,ge.jsxs)("div",{children:[(0,ge.jsx)("div",{style:Zt({width:"50%",height:20,position:"absolute",top:70,left:"30%",borderRadius:5,justifyContent:"center",alignItems:"center",backgroundColor:"white"},e.stylelabel),children:(0,ge.jsx)("text",{style:{fontFamily:"MontserratLight",fontSize:13,position:"absolute",left:"20%",color:1==o?B:_},children:e.label})}),(0,ge.jsx)("input",Zt(Zt({},r),{},{style:Zt({width:"70%",height:50,marginTop:80,marginLeft:10,borderStyle:"solid",borderRadius:5,borderWidth:1,fontFamily:"MontserratLight",outlineColor:1==o?B:_},e.style),type:e.type,id:e.id,name:e.name,onChange:e.onChange,value:e.value}))]})};function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:S,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},viewfooter:{width:"100%",height:60,backgroundColor:C,justifyContent:"center",flexDirection:"row"},texttouch:{fontFamily:"Montserrat",fontSize:12,color:_},touch:{flexDirection:"column",alignItems:"center",width:"90%",height:180,backgroundColor:S,marginTop:10,marginBottom:10,left:"5%",borderRadius:10,borderWidth:1,borderColor:_},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"16%":"36%"},textheader:{backgroundColor:B,width:140,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"14%":"33%"},texttitle:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},textmodal:{fontFamily:"Montserrat",fontSize:16,color:R,position:"absolute",right:"5%",top:"5%"},textbox:{fontFamily:"Montserrat",fontSize:12,color:R},navartop:{width:"20%",height:60,position:"absolute",right:"16%",flexDirection:"column",alignItems:"center",justifyContent:"center"},farsitop:{width:"20%",height:60,position:"absolute",right:"40%",flexDirection:"column",alignItems:"center",justifyContent:"center"},shiartop:{width:"20%",height:60,position:"absolute",left:"16%",flexDirection:"column",alignItems:"center",justifyContent:"center"},viewR:{width:"25%",height:300,position:"absolute",right:0,flexDirection:"column"},navar_right:{width:"100%",height:60,position:"absolute",top:0,right:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},farsi_right:{width:"100%",height:60,position:"absolute",top:"50%",right:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},shiar_right:{width:"100%",height:60,position:"absolute",bottom:0,right:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},viewimage:{width:"50%",height:300,borderRadius:5,position:"absolute",right:"25%",borderWidth:2,borderColor:w,borderStyle:"dashed"},touch_rotate:{flexDirection:"row",width:80,height:50,backgroundColor:w,borderRadius:5,alignItems:"center",position:"absolute",bottom:8,right:"30%",justifyContent:"center"},touch_up:{flexDirection:"column",width:30,height:70,backgroundColor:w,borderRadius:5,alignItems:"center",position:"absolute",bottom:8,right:"70%"},navar_left:{width:"100%",height:60,position:"absolute",top:0,left:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},farsi_left:{width:"100%",height:60,position:"absolute",top:"40%",left:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},shiar_left:{width:"100%",height:60,position:"absolute",bottom:0,left:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},navar_down:{width:"20%",height:60,position:"absolute",right:"16%",flexDirection:"column",alignItems:"center",justifyContent:"center"},farsi_down:{width:"20%",height:60,position:"absolute",right:"50%",flexDirection:"column",alignItems:"center",justifyContent:"center"},shiar_down:{width:"20%",height:60,position:"absolute",left:"16%",flexDirection:"column",alignItems:"center",justifyContent:"center"}});const nn=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)([]),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,f.useState)([]),c=(0,i.default)(d,2),h=c[0],m=c[1],b=(0,f.useState)(!1),j=(0,i.default)(b,2),v=j[0],O=j[1],z=(0,f.useState)(!1),k=(0,i.default)(z,2),P=k[0],M=k[1],F=(0,f.useState)(),L=(0,i.default)(F,2),E=L[0],H=L[1],N=(0,f.useState)(e.route.params.orderid),V=(0,i.default)(N,2),q=V[0],U=V[1],G=(0,f.useState)(""),Q=(0,i.default)(G,2),K=Q[0],J=Q[1],Y=(0,f.useState)("\u0646\u062f\u0627\u0631\u0645"),Z=(0,i.default)(Y,2),X=Z[0],$=Z[1],ee=(0,f.useState)(""),te=(0,i.default)(ee,2),ne=te[0],ie=te[1],re=(0,f.useState)(""),ae=(0,i.default)(re,2),ue=ae[0],ce=ae[1],fe=(0,f.useState)("366"),me=(0,i.default)(fe,2),ye=me[0],xe=me[1],be=(0,f.useState)("183"),je=(0,i.default)(be,2),ve=je[0],Se=je[1],Ce=(0,f.useState)("\u0646\u062f\u0627\u0631\u0645"),Be=(0,i.default)(Ce,2),Te=Be[0],Fe=Be[1],De=(0,f.useState)("0"),_e=(0,i.default)(De,2),Re=_e[0],Le=_e[1],Ae=(0,f.useState)("0"),Ee=(0,i.default)(Ae,2),We=Ee[0],He=Ee[1],Ne=(0,f.useState)("0"),Ve=(0,i.default)(Ne,2),qe=Ve[0],Ue=Ve[1],Ge=(0,f.useState)("0"),Qe=(0,i.default)(Ge,2),Ke=Qe[0],Je=Qe[1],Ye=(0,f.useState)(!1),Ze=(0,i.default)(Ye,2),$e=Ze[0],et=Ze[1],tt=(0,f.useState)({showModal:!1,showModal1:!1,showModal2:!1,isLoading:!1,isLoading1:!1,Active:e.route.params.Sliceid||e.route.params.orderid?1:0,Active1:"",white:e.route.params.white?e.route.params.white:"",type_mdf:"\u0646\u0626\u0648\u067e\u0627\u0646",type_mil:"3\u0645\u06cc\u0644"}),nt=(0,i.default)(tt,2),it=nt[0],rt=nt[1],at=(0,f.useState)({Radio1:e.route.params.color_strip?e.route.params.color_strip:"color",Radio2:e.route.params.width_strip?e.route.params.width_strip:"1",Radio3:e.route.params.height_strip?e.route.params.height_strip:"single",imagemdf:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTOVLVPLsjgkzqnuf8I9HWsn675o_uSnDF8uw&usqp=CAU"}),lt=(0,i.default)(at,2),ut=lt[0],ct=lt[1],ft=(function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}))}(),function(){var e=(0,r.default)((function*(){try{if(""==ye||""==ve||ye<ve)M(!0);else{yield n((e=[it.type_mdf,it.type_mil,ye,ve,Te,ut.Radio1,ut.Radio2,ut.Radio3,Te],function(){var t=(0,r.default)((function*(t){t({type:Nt,data:e})}));return function(e){return t.apply(this,arguments)}}()));rt(en(en({},it),{},{showModal:!1,Active:1}))}}catch(t){console.log(t)}var e}));return function(){return e.apply(this,arguments)}}()),ht=(0,f.useState)(1),gt=(0,i.default)(ht,2),mt=gt[0],yt=gt[1],pt=function(){return yt(mt-1)};mt<=1&&(pt=function(){return yt(1)});var bt=function(){var o=(0,r.default)((function*(){try{rt(en(en({},it),{},{isLoading1:!0}));var o=yield n(function(e,t,n,o,i,a,l,s,d,u,c,f,h,g,m,y,p,x,b,j,w,v,S,C,O,z,k,P,M,B,T){return function(){var h=(0,r.default)((function*(r){var h={Accept:"application/json",Authorization:"Bearer "+e},g=new(W());return g.append("order_id",t),g.append("group_id",n),g.append("width",i),g.append("height",o),g.append("count",a),g.append("rotate_status",l),g.append("description",f),g.append("length_one",s),g.append("length_two",d),g.append("width_one",u),g.append("width_two",c),fetch("https://npln.ir/api/v1/order/add-slice",{method:"POST",headers:h,body:g}).then((function(e){return e.json()})).then((function(e){return r({type:vt,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return h.apply(this,arguments)}}()}(t,e.route.params.orderid,e.route.params.idgroup,ue,ne,mt,$e,Re,We,qe,Ke,X));"success"==o.status?(O(!0),H("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==o.status&&(O(!0),H(o.message)),rt(en(en({},it),{},{isLoading1:!1}))}catch(i){}}));return function(){return o.apply(this,arguments)}}(),jt=function(){var o=(0,r.default)((function*(){try{rt(en(en({},it),{},{isLoading1:!0}));var o=yield n(function(e,t,n,o,i,a,l,s,d,u,c){return function(){var f=(0,r.default)((function*(r){var f={Accept:"application/json",Authorization:"Bearer "+e},h=new(W());return h.append("slice_id",t),h.append("width",o),h.append("height",n),h.append("count",i),h.append("rotate_status",a),h.append("description",c),h.append("length_one",l),h.append("length_two",s),h.append("width_one",d),h.append("width_two",u),fetch("https://npln.ir/api/v1/order/edit-slice",{method:"POST",headers:f,body:h}).then((function(e){return e.json()})).then((function(e){return r({type:St,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return f.apply(this,arguments)}}()}(t,e.route.params.Sliceid,ue,ne,mt,$e,Re,We,qe,Ke,X));"success"==o.status?(O(!0),H("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==o.status&&(O(!0),H(o.message)),rt(en(en({},it),{},{isLoading1:!1}))}catch(i){}}));return function(){return o.apply(this,arguments)}}(),Ct=(0,ot.useIsFocused)();(0,f.useEffect)((function(){e.route.params.Sliceid&&Ot(),Pt(),zt(),kt()}),[Ct]);var Ot=function(){var o=(0,r.default)((function*(){try{rt(en(en({},it),{},{isLoading:!0}));var o=yield n((i=t,a=e.route.params.Sliceid,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://npln.ir/api/v1/order/slice?slice_id="+a;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Mt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));U(o.data.data.slice.order_id),yt(JSON.parse(o.data.data.slice.count)),$(o.data.data.slice.description),ie(o.data.data.slice.width),ce(o.data.data.slice.height),Le(o.data.data.slice.width_one),He(o.data.data.slice.width_two),Ue(o.data.data.slice.length_one),Je(o.data.data.slice.length_two),et(JSON.parse(o.data.data.slice.rotate_status)),rt(en(en({},it),{},{isLoading:!1}))}catch(l){}var i,a}));return function(){return o.apply(this,arguments)}}(),zt=function(){var e=(0,r.default)((function*(){try{var e=yield n((o=t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o};return A()({method:"get",url:"https://npln.ir/api/v1/user/white-products",headers:t}).then((function(t){var n=t.data;return e({type:xt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));s(e.data.data.products.data)}catch(i){console.log(i)}var o}));return function(){return e.apply(this,arguments)}}(),kt=function(){var e=(0,r.default)((function*(){try{var e=yield n((o=t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o};return A()({method:"get",url:"https://npln.ir/api/v1/user/save-products",headers:t}).then((function(t){var n=t.data;return e({type:wt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));m(e.data.data.saves.data)}catch(i){console.log(i)}var o}));return function(){return e.apply(this,arguments)}}(),Pt=function(){var e=(0,r.default)((function*(){try{var e=yield n(le(t));J(e.data.data.user)}catch(o){console.log(o)}}));return function(){return e.apply(this,arguments)}}(),Bt=(0,ke.useMediaQuery)({maxWidth:500}),Tt=(0,i.default)(Bt,1)[0];return it.isLoading?(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:C},children:[(0,ge.jsx)(x.default,{animating:it.isLoading,size:30,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:B,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]})}):(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:Tt?"100%":500,height:"100%",marginLeft:Tt?0:"35%",backgroundColor:S,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:tn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){e.route.params.orderid?e.navigation.navigate("list",{ids:e.route.params.orderid}):e.navigation.goBack()},style:tn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){e.route.params.orderid?e.navigation.navigate("list",{ids:e.route.params.orderid}):e.navigation.goBack()},style:tn.textheader,children:(0,ge.jsx)(y.default,{style:tn.texttitle,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u062c\u0632\u0626\u06cc\u0627\u062a \u062a\u06a9\u0647"})}),(0,ge.jsx)(he.default,{onPress:function(){return rt(en(en({},it),{},{showModal2:!0}))},style:{width:30,height:30,position:"absolute",top:"web"==u.default.OS?20:35,left:15},children:(0,ge.jsx)(we.default,{name:"alert-circle-outline",size:25,color:C})})]}),(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"xl",isOpen:it.showModal2,onClose:function(){return rt(en(en({},it),{},{showModal2:!1}))},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:150},children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:50},children:(0,ge.jsx)(we.default,{onPress:function(){return rt(en(en({},it),{},{showModal2:!1}))},name:"close",size:20,color:R})}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15},children:"\u062f\u0631 \u0627\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0634\u0645\u0627 \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0646\u0648\u0639 \u0646\u0648\u0627\u0631 \u0648 \u0646\u0648\u0639 \u0648\u0631\u0642 \u0631\u0627 \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0639\u062f \u0627\u0632 \u0622\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f.\u0628\u0627\u0646\u06af\u0647 \u062f\u0627\u0634\u062a\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0646\u0648\u0627\u0631 \u0647\u0645 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0646\u0648\u0639 \u0646\u0648\u0627\u0631 \u0648 \u0646\u0648\u0639 \u0648\u0631\u0642 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f."})]})})})}),(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"xl",isOpen:it.showModal1,onClose:function(){return rt(en(en({},it),{},{showModal1:!1}))},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:500},children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:50},children:[(0,ge.jsx)(y.default,{style:tn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0648\u0631\u0642"}),(0,ge.jsx)(we.default,{onPress:function(){return rt(en(en({},it),{},{showModal1:!1}))},name:"close",size:20,color:R})]}),(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:"90%",height:50,marginBottom:10,backgroundColor:D,left:20,marginTop:10,borderRadius:10,borderWidth:1,borderColor:_,alignItems:"center",justifyContent:"center",paddingRight:"3%",paddingLeft:"3%"},children:[(0,ge.jsxs)(he.default,{onPress:function(){rt(en(en({},it),{},{Active1:1,white:!1}))},style:{justifyContent:"center",position:"absolute",left:"20%"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:1==it.Active1?"MontserratBold":"Montserrat",fontSize:18,color:1==it.Active1?B:R},children:"\u0631\u0646\u06af\u06cc"}),(0,ge.jsx)(g.default,{style:{right:5,width:"120%",height:2,backgroundColor:1==it.Active1?B:D}})]}),(0,ge.jsxs)(he.default,{onPress:function(){rt(en(en({},it),{},{Active1:2,white:!0}))},style:{justifyContent:"center",position:"absolute",right:"20%"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:2==it.Active1?"MontserratBold":"Montserrat",fontSize:18,color:2==it.Active1?B:R},children:"\u0633\u0641\u06cc\u062f"}),(0,ge.jsx)(g.default,{style:{right:5,width:"120%",height:2,backgroundColor:2==it.Active1?B:D}})]})]}),2==it.Active1?(0,ge.jsx)(Ie.default,{children:l.map((function(e,t){return(0,ge.jsxs)(he.default,{onPress:function(){ct(en(en({},ut),{},{idproduct:e.id,imagemdf:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTOVLVPLsjgkzqnuf8I9HWsn675o_uSnDF8uw&usqp=CAU"})),rt(en(en({},it),{},{showModal1:!1}))},style:tn.touch,children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginTop:10,marginBottom:10},children:(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"3%"},children:["\u0646\u0648\u0639 \u0648\u0631\u0642 :",(0,ge.jsx)(y.default,{style:tn.texttouch,children:" \u0648\u0631\u0642 \u0633\u0641\u06cc\u062f "})]})}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginBottom:10},children:(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"3%"},children:["\u0646\u0648\u0639 \u0645\u063a\u0632\u06cc :",(0,ge.jsxs)(y.default,{style:tn.texttouch,children:[" ",e.core," "]})]})}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginBottom:10},children:(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"3%"},children:["\u0636\u062e\u0627\u0645\u062a :",(0,ge.jsxs)(y.default,{style:tn.texttouch,children:[" ",e.width," \u0645\u06cc\u0644 "]})]})}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginBottom:10},children:(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"3%"},children:["\u0627\u0628\u0639\u0627\u062f :",(0,ge.jsxs)(y.default,{style:tn.texttouch,children:[" ",e.dimension," "]})]})})]},t)}))}):(0,ge.jsx)(g.default,{}),1==it.Active1?(0,ge.jsx)(Ie.default,{children:h.map((function(e,t){return(0,ge.jsxs)(he.default,{onPress:function(){ct(en(en({},ut),{},{idproduct:e.product_id,imagemdf:e.product.thumb})),rt(en(en({},it),{},{showModal1:!1}))},style:tn.touch,children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginTop:10,marginBottom:10},children:(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R,marginRight:"3%"},children:["\u0646\u0648\u0639 \u0648\u0631\u0642 :",(0,ge.jsxs)(y.default,{style:tn.texttouch,children:[" ",e.product.title," "]})]})}),(0,ge.jsx)(g.default,{style:{width:"100%",height:50,bottom:10},children:(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R,marginRight:"3%"},children:["\u062a\u0648\u0636\u06cc\u062d\u0627\u062a :",(0,ge.jsxs)(y.default,{style:tn.texttouch,children:[" ",e.product.description," "]})]})}),(0,ge.jsx)(g.default,{style:{width:"99%",height:90,bottom:14},children:(0,ge.jsx)(Xe.default,{source:{uri:e.product.thumb?e.product.thumb:"https://idts.ir/xtra/wp-content/uploads/2017/06/XP08-.-Noce-Virginia-02.jpg"},alt:"image",style:{width:"100%",height:90,borderRadius:5}})})]},t)}))}):(0,ge.jsx)(g.default,{})]})})})}),(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"lg",isOpen:it.showModal,onClose:function(){return rt(en(en({},it),{},{showModal:!1}))},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsxs)(Me.Modal.Body,{children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:450},children:[(0,ge.jsxs)(Ie.default,{children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:40},children:[(0,ge.jsx)(y.default,{style:tn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0646\u0648\u0627\u0631"}),(0,ge.jsx)(we.default,{onPress:function(){return rt(en(en({},it),{},{showModal:!1}))},name:"close",size:20,color:R})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:25,marginBottom:10},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"3%"},children:" \u0631\u0646\u06af \u0646\u0648\u0627\u0631 : "})}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:40,flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio1:"other"}))},name:"color"==ut.Radio1?"ellipse-outline":"checkmark-circle",size:30,color:"color"==ut.Radio1?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:70},children:"\u0633\u0627\u06cc\u0631 "}),(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio1:"color"}))},name:"other"==ut.Radio1?"ellipse-outline":"checkmark-circle",size:30,color:"other"==ut.Radio1?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13},children:"\u0647\u0645\u0631\u0646\u06af "})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:25,marginTop:10,marginBottom:10},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"3%"},children:" \u0636\u062e\u0627\u0645\u062a : "})}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:40,flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio2:"2"}))},name:"1"==ut.Radio2?"ellipse-outline":"checkmark-circle",size:30,color:"1"==ut.Radio2?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:65},children:"2 \u0645\u06cc\u0644 "}),(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio2:"1"}))},name:"2"==ut.Radio2?"ellipse-outline":"checkmark-circle",size:30,color:"2"==ut.Radio2?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:8},children:"1 \u0645\u06cc\u0644 "})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:25,marginTop:10,marginBottom:10},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"3%"},children:" \u0627\u0631\u062a\u0641\u0627\u0639 : "})}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:40,flexDirection:"row",justifyContent:"center",alignItems:"center",marginBottom:10},children:[(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio3:"double"}))},name:"single"==ut.Radio3?"ellipse-outline":"checkmark-circle",size:30,color:"single"==ut.Radio3?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:68},children:"\u062f\u0648\u0628\u0644 "}),(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio3:"single"}))},name:"double"==ut.Radio3?"ellipse-outline":"checkmark-circle",size:30,color:"double"==ut.Radio3?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:12},children:"\u062a\u06a9 "})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:40},children:(0,ge.jsx)(y.default,{style:tn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0648\u0631\u0642 :"})}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginTop:5,marginBottom:10},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"6%"},children:"\u0646\u0648\u0639 \u0645\u063a\u0632\u06cc : "})}),(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"column"},children:[(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0646\u0626\u0648\u067e\u0627\u0646"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0646\u0626\u0648\u067e\u0627\u0646"}),(0,ge.jsx)(we.default,{name:"\u0646\u0626\u0648\u067e\u0627\u0646"==it.type_mdf?"checkbox":"square-outline",size:25,color:"\u0646\u0626\u0648\u067e\u0627\u0646"==it.type_mdf?w:_})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0627\u0645 \u062f\u06cc \u0627\u0641"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0627\u0645 \u062f\u06cc \u0627\u0641"}),(0,ge.jsx)(we.default,{name:"\u0627\u0645 \u062f\u06cc \u0627\u0641"!==it.type_mdf?"square-outline":"checkbox",size:25,color:"\u0627\u0645 \u062f\u06cc \u0627\u0641"!==it.type_mdf?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0641\u0648\u0645\u06cc\u0632\u0647"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0641\u0648\u0645\u06cc\u0632\u0647"}),(0,ge.jsx)(we.default,{name:"\u0641\u0648\u0645\u06cc\u0632\u0647"!==it.type_mdf?"square-outline":"checkbox",size:25,color:"\u0641\u0648\u0645\u06cc\u0632\u0647"!==it.type_mdf?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"}),(0,ge.jsx)(we.default,{name:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"!==it.type_mdf?"square-outline":"checkbox",size:25,color:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"!==it.type_mdf?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"}),(0,ge.jsx)(we.default,{name:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"!==it.type_mdf?"square-outline":"checkbox",size:25,color:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"!==it.type_mdf?_:w})]})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginTop:10,marginBottom:10},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"6%"},children:" \u0636\u062e\u0627\u0645\u062a \u0648\u0631\u0642: "})}),(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"column"},children:[(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mil:"3\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"3 \u0645\u06cc\u0644"}),(0,ge.jsx)(we.default,{name:"3\u0645\u06cc\u0644"!==it.type_mil?"square-outline":"checkbox",size:25,color:"3\u0645\u06cc\u0644"!==it.type_mil?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mil:"8\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"8 \u0645\u06cc\u0644"}),(0,ge.jsx)(we.default,{name:"8\u0645\u06cc\u0644"!==it.type_mil?"square-outline":"checkbox",size:25,color:"8\u0645\u06cc\u0644"!==it.type_mil?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mil:"16\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"16 \u0645\u06cc\u0644"}),(0,ge.jsx)(we.default,{name:"16\u0645\u06cc\u0644"!==it.type_mil?"square-outline":"checkbox",size:25,color:"16\u0645\u06cc\u0644"!==it.type_mil?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mil:"25\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"25 \u0645\u06cc\u0644"}),(0,ge.jsx)(we.default,{name:"25\u0645\u06cc\u0644"!==it.type_mil?"square-outline":"checkbox",size:25,color:"25\u0645\u06cc\u0644"!==it.type_mil?_:w})]})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginTop:10,marginBottom:10},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"6%"},children:"\u0627\u0628\u0639\u0627\u062f \u06a9\u0644\u06cc \u0648\u0631\u0642 \u0645\u0635\u0631\u0641\u06cc: "})}),(0,ge.jsx)(Oe,{label:"\u0637\u0648\u0644 \u0648\u0631\u0642",styleview:{marginTop:"3%",height:70},stylelabel:{width:"23%",backgroundColor:B},value:ye,onChangeText:function(e){return xe(e)},styleinput:"web"===u.default.OS&&{outlineColor:B},keyboardType:"number-pad"}),(0,ge.jsx)(Oe,{label:"\u0639\u0631\u0636 \u0648\u0631\u0642",styleview:{marginTop:"3%",height:70},stylelabel:{width:"23%",backgroundColor:C},value:ve,onChangeText:function(e){return Se(e)},styleinput:"web"===u.default.OS&&{outlineColor:B},keyboardType:"number-pad"})]}),(0,ge.jsx)(pe,{touchableStyle:{width:"90%",height:50,backgroundColor:B},textStyle:{bottom:10,fontSize:16},style:{marginTop:30,bottom:10,left:10},onPress:function(){ft()},colorspin:C,sizespin:25,label:"\u062b\u0628\u062a"})]}),(0,ge.jsx)(ze.default,{show:P,showProgress:!1,title:"\u0627\u062e\u0637\u0627\u0631",message:"\u0644\u0637\u0641\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0637\u0648\u0644 \u0648 \u0639\u0631\u0636 \u0631\u0627\u06a9\u0627\u0645\u0644 \u06a9\u0646\u06cc\u062f.\u0645\u0642\u062f\u0627\u0631 \u0637\u0648\u0644 \u0646\u0628\u0627\u06cc\u062f \u0627\u0632 \u0639\u0631\u0636 \u0628\u06cc\u0634\u062a\u0631 \u0628\u0627\u0634\u062f.",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){M(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"}})]})})}),(0,ge.jsxs)(Ie.default,{children:[1==it.Active?(0,ge.jsx)(g.default,{}):(0,ge.jsxs)(g.default,{style:{width:"100%"},children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginTop:10},children:(0,ge.jsx)(y.default,{style:tn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0646\u0648\u0627\u0631"})}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:35,flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},children:[(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio1:"other"}))},name:"color"==ut.Radio1?"ellipse-outline":"checkmark-circle",size:30,color:"color"==ut.Radio1?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:100,marginRight:"16%"},children:"\u0633\u0627\u06cc\u0631 "}),(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio1:"color"}))},name:"other"==ut.Radio1?"ellipse-outline":"checkmark-circle",size:30,color:"other"==ut.Radio1?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:"8%"},children:"\u0647\u0645\u0631\u0646\u06af "}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"9%"},children:" \u0631\u0646\u06af \u0646\u0648\u0627\u0631 : "})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:35,flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},children:[(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio2:"2"}))},name:"1"==ut.Radio2?"ellipse-outline":"checkmark-circle",size:30,color:"1"==ut.Radio2?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:"15%"},children:"2 \u0645\u06cc\u0644 "}),(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio2:"1"}))},name:"2"==ut.Radio2?"ellipse-outline":"checkmark-circle",size:30,color:"2"==ut.Radio2?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:"10%"},children:"1 \u0645\u06cc\u0644 "}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"9%"},children:" \u0636\u062e\u0627\u0645\u062a : "})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:35,flexDirection:"row",justifyContent:"flex-end",alignItems:"center",marginBottom:10},children:[(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio3:"double"}))},name:"single"==ut.Radio3?"ellipse-outline":"checkmark-circle",size:30,color:"single"==ut.Radio3?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:"15%"},children:"\u062f\u0648\u0628\u0644 "}),(0,ge.jsx)(we.default,{onPress:function(){return ct(en(en({},ut),{},{Radio3:"single"}))},name:"double"==ut.Radio3?"ellipse-outline":"checkmark-circle",size:30,color:"double"==ut.Radio3?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:59},children:"\u062a\u06a9 "}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"11%"},children:"\u0627\u0631\u062a\u0641\u0627\u0639 : "})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30},children:(0,ge.jsx)(y.default,{style:tn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0648\u0631\u0642 :"})}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:30,marginTop:5,marginBottom:10,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"5%",marginRight:"30%"},children:"\u0636\u062e\u0627\u0645\u062a \u0648\u0631\u0642 : "}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"6%"},children:"\u0646\u0648\u0639 \u0645\u063a\u0632\u06cc : "})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"row"},children:[(0,ge.jsxs)(g.default,{style:{width:"50%",alignSelf:"auto",flexDirection:"column",right:"5%"},children:[(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mil:"3\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"3 \u0645\u06cc\u0644"}),(0,ge.jsx)(we.default,{name:"3\u0645\u06cc\u0644"!==it.type_mil?"square-outline":"checkbox",size:25,color:"3\u0645\u06cc\u0644"!==it.type_mil?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mil:"8\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"8 \u0645\u06cc\u0644"}),(0,ge.jsx)(we.default,{name:"8\u0645\u06cc\u0644"!==it.type_mil?"square-outline":"checkbox",size:25,color:"8\u0645\u06cc\u0644"!==it.type_mil?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mil:"16\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"16 \u0645\u06cc\u0644"}),(0,ge.jsx)(we.default,{name:"16\u0645\u06cc\u0644"!==it.type_mil?"square-outline":"checkbox",size:25,color:"16\u0645\u06cc\u0644"!==it.type_mil?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mil:"25\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"25 \u0645\u06cc\u0644"}),(0,ge.jsx)(we.default,{name:"25\u0645\u06cc\u0644"!==it.type_mil?"square-outline":"checkbox",size:25,color:"25\u0645\u06cc\u0644"!==it.type_mil?_:w})]})]}),(0,ge.jsxs)(g.default,{style:{width:"50%",alignSelf:"auto",flexDirection:"column",right:"8%"},children:[(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0646\u0626\u0648\u067e\u0627\u0646"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0646\u0626\u0648\u067e\u0627\u0646"}),(0,ge.jsx)(we.default,{name:"\u0646\u0626\u0648\u067e\u0627\u0646"==it.type_mdf?"checkbox":"square-outline",size:25,color:"\u0646\u0626\u0648\u067e\u0627\u0646"==it.type_mdf?w:_})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0627\u0645 \u062f\u06cc \u0627\u0641"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0627\u0645 \u062f\u06cc \u0627\u0641"}),(0,ge.jsx)(we.default,{name:"\u0627\u0645 \u062f\u06cc \u0627\u0641"!==it.type_mdf?"square-outline":"checkbox",size:25,color:"\u0627\u0645 \u062f\u06cc \u0627\u0641"!==it.type_mdf?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0641\u0648\u0645\u06cc\u0632\u0647"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0641\u0648\u0645\u06cc\u0632\u0647"}),(0,ge.jsx)(we.default,{name:"\u0641\u0648\u0645\u06cc\u0632\u0647"!==it.type_mdf?"square-outline":"checkbox",size:25,color:"\u0641\u0648\u0645\u06cc\u0632\u0647"!==it.type_mdf?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"}),(0,ge.jsx)(we.default,{name:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"!==it.type_mdf?"square-outline":"checkbox",size:25,color:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"!==it.type_mdf?_:w})]}),(0,ge.jsxs)(he.default,{onPress:function(){return rt(en(en({},it),{},{type_mdf:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,marginRight:"3%"},children:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"}),(0,ge.jsx)(we.default,{name:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"!==it.type_mdf?"square-outline":"checkbox",size:25,color:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"!==it.type_mdf?_:w})]})]})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30,marginBottom:10},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"6%"},children:"\u0627\u0628\u0639\u0627\u062f \u06a9\u0644\u06cc \u0648\u0631\u0642 \u0645\u0635\u0631\u0641\u06cc: "})}),"web"==u.default.OS?(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"row",justifyContent:"center",marginBottom:10},children:[(0,ge.jsx)(Xt,{style:{width:"90%",marginTop:5,marginLeft:-2},stylelabel:{zIndex:2,width:"18%",top:-4,marginLeft:Tt?"-6%":"-5%"},label:"\u0639\u0631\u0636 \u0648\u0631\u0642",type:"text",id:"message",name:"message",onChange:function(e){return Se(e.target.value)},value:ve}),(0,ge.jsx)(Xt,{style:{width:"90%",marginTop:5},stylelabel:{zIndex:2,width:"17%",top:-4,marginLeft:Tt?"40%":"32%"},label:"\u0637\u0648\u0644 \u0648\u0631\u0642",type:"text",id:"message",name:"message",onChange:function(e){return xe(e.target.value)},value:ye})]}):(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"row",justifyContent:"center",marginBottom:10},children:[(0,ge.jsx)(Oe,{label:"\u0639\u0631\u0636 \u0648\u0631\u0642",styleview:{width:"46%",marginTop:"3%",height:70},stylelabel:{width:"35%",backgroundColor:C},value:ve,onChangeText:function(e){return Se(e)},styleinput:"web"===u.default.OS&&{outlineColor:B},keyboardType:"number-pad"}),(0,ge.jsx)(Oe,{label:"\u0637\u0648\u0644 \u0648\u0631\u0642",styleview:{width:"46%",marginTop:"3%",height:70},stylelabel:{width:"35%",backgroundColor:C},value:ye,onChangeText:function(e){return xe(e)},styleinput:"web"===u.default.OS&&{outlineColor:B},keyboardType:"number-pad"})]}),(0,ge.jsx)(Oe,{label:" \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0648\u0631\u0642",multiline:!0,styleinput:{height:100,outlineColor:B},styleview:{height:100,marginBottom:"5%",marginTop:10},stylelabel:{width:93,top:"web"==u.default.OS?-10:-15},keyboardType:"default",value:Te,onChangeText:function(e){return Fe(e)}}),(0,ge.jsx)(pe,{touchableStyle:{width:"90%",height:50,backgroundColor:B},textStyle:{bottom:10,fontSize:16},style:{marginTop:20,bottom:10,left:20},onPress:function(){ft()},colorspin:C,sizespin:25,label:"\u062b\u0628\u062a"})]}),1==it.Active?(0,ge.jsxs)(dt.default,{children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:60,flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onLongPress:function(){return rt(en(en({},it),{},{showModal:!0}))},style:tn.navartop,children:[(0,ge.jsx)(we.default,{onPress:function(){return Le("1")},name:"1"!==Re?"square-outline":"checkbox",size:25,color:"1"!==Re?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0646\u0648\u0627\u0631"})]}),(0,ge.jsxs)(g.default,{style:tn.farsitop,children:[(0,ge.jsx)(we.default,{onPress:function(){return Le("2")},name:"2"!==Re?"square-outline":"checkbox",size:25,color:"2"!==Re?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0641\u0627\u0631\u0633\u06cc"})]}),(0,ge.jsxs)(g.default,{style:tn.shiartop,children:[(0,ge.jsx)(we.default,{onPress:function(){return Le("3")},name:"3"!==Re?"square-outline":"checkbox",size:25,color:"3"!==Re?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0634\u06cc\u0627\u0631"})]})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:300,flexDirection:"row"},children:[(0,ge.jsxs)(g.default,{style:tn.viewR,children:[(0,ge.jsxs)(he.default,{onLongPress:function(){return rt(en(en({},it),{},{showModal:!0}))},style:tn.navar_right,children:[(0,ge.jsx)(we.default,{onPress:function(){return Ue("1")},name:"1"!==qe?"square-outline":"checkbox",size:25,color:"1"!==qe?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0646\u0648\u0627\u0631"})]}),"web"==u.default.OS?(0,ge.jsx)(Xt,{stylelabel:{width:"35%"},label:"\u0637\u0648\u0644",type:"text",id:"message",name:"message",onChange:function(e){return ce(e.target.value)},value:ue}):(0,ge.jsx)(Oe,{label:"\u0637\u0648\u0644",styleview:{width:"80%",alignSelf:"auto",marginTop:80},stylelabel:{width:35,top:"web"==u.default.OS?-9:-13,left:25},keyboardType:"number-pad",value:ue,onChangeText:function(e){return ce(e)},styleinput:"web"===u.default.OS&&{outlineColor:B}}),(0,ge.jsxs)(g.default,{style:tn.farsi_right,children:[(0,ge.jsx)(we.default,{onPress:function(){return Ue("2")},name:"2"!==qe?"square-outline":"checkbox",size:25,color:"2"!==qe?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0641\u0627\u0631\u0633\u06cc"})]}),(0,ge.jsxs)(g.default,{style:tn.shiar_right,children:[(0,ge.jsx)(we.default,{onPress:function(){return Ue("3")},name:"3"!==qe?"square-outline":"checkbox",size:25,color:"3"!==qe?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0634\u06cc\u0627\u0631"})]})]}),(0,ge.jsx)(g.default,{style:tn.viewimage,children:"false"==K.status?(0,ge.jsxs)(st.default,{source:{uri:ut.imagemdf},style:{width:"100%",height:"100%"},alt:"image",children:[(0,ge.jsx)(pe,{label:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0648\u0631\u0642",style:{width:100,marginLeft:"28%",marginTop:100},touchableStyle:{borderRadius:20,backgroundColor:w},textStyle:{bottom:10},onPress:function(){return rt(en(en({},it),{},{showModal1:!0}))}}),(0,ge.jsx)(he.default,{onPress:function(){return et(!$e)},style:tn.touch_rotate,children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:1==$e?B:C},children:"\u0686\u0631\u062e\u0634"})})]}):(0,ge.jsx)(dt.default,{style:{top:180},children:(0,ge.jsx)(he.default,{onPress:function(){return et(!$e)},style:tn.touch_rotate,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:1==$e?B:C},children:"\u0686\u0631\u062e\u0634"})})})}),(0,ge.jsxs)(g.default,{style:{width:"25%",height:300,position:"absolute",left:0},children:[(0,ge.jsxs)(he.default,{onLongPress:function(){return rt(en(en({},it),{},{showModal:!0}))},style:tn.navar_left,children:[(0,ge.jsx)(we.default,{onPress:function(){return Je("1")},name:"1"!==Ke?"square-outline":"checkbox",size:25,color:"1"!==Ke?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0646\u0648\u0627\u0631"})]}),(0,ge.jsxs)(g.default,{style:tn.farsi_left,children:[(0,ge.jsx)(we.default,{onPress:function(){return Je("2")},name:"2"!==Ke?"square-outline":"checkbox",size:25,color:"2"!==Ke?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0641\u0627\u0631\u0633\u06cc"})]}),(0,ge.jsxs)(g.default,{style:tn.shiar_left,children:[(0,ge.jsx)(we.default,{onPress:function(){return Je("3")},name:"3"!==Ke?"square-outline":"checkbox",size:25,color:"3"!==Ke?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0634\u06cc\u0627\u0631"})]})]})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:60,flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onLongPress:function(){return rt(en(en({},it),{},{showModal:!0}))},style:tn.navar_down,children:[(0,ge.jsx)(we.default,{onPress:function(){return He("1")},name:"1"!==We?"square-outline":"checkbox",size:25,color:"1"!==We?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0646\u0648\u0627\u0631"})]}),"web"==u.default.OS?(0,ge.jsx)(Xt,{style:{width:"18%",alignSelf:"auto",marginTop:12,position:"absolute",right:"32%"},stylelabel:{zIndex:2,width:"10%",top:"5%",marginLeft:"23%"},label:"\u0639\u0631\u0636",type:"text",id:"message",name:"message",onChange:function(e){return ie(e.target.value)},value:ne}):(0,ge.jsx)(Oe,{label:"\u0639\u0631\u0636",styleview:{width:"20%",alignSelf:"auto",marginTop:12,position:"absolute",right:"32%"},stylelabel:{width:37,top:"web"==u.default.OS?-9:-13,right:20},keyboardType:"number-pad",value:ne,onChangeText:function(e){return ie(e)},styleinput:"web"===u.default.OS&&{outlineColor:B}}),(0,ge.jsxs)(g.default,{style:tn.farsi_down,children:[(0,ge.jsx)(we.default,{onPress:function(){return He("2")},name:"2"!==We?"square-outline":"checkbox",size:25,color:"2"!==We?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0641\u0627\u0631\u0633\u06cc"})]}),(0,ge.jsxs)(g.default,{style:tn.shiar_down,children:[(0,ge.jsx)(we.default,{onPress:function(){return He("3")},name:"3"!==We?"square-outline":"checkbox",size:25,color:"3"!==We?_:w}),(0,ge.jsx)(y.default,{style:tn.textbox,children:"\u0634\u06cc\u0627\u0631"})]})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:70,marginTop:40,alignItems:"center",justifyContent:"center"},children:(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:"90%",height:50,borderWidth:1,borderColor:I,borderRadius:5},children:[(0,ge.jsx)(he.default,{onPress:function(){return pt()},style:{alignItems:"center",justifyContent:"center",width:"20%",height:48,backgroundColor:B,borderRadius:4},children:(0,ge.jsx)(we.default,{name:"remove-outline",size:35,color:C})}),(0,ge.jsxs)(g.default,{style:{width:"60%",height:48,backgroundColor:S,alignItems:"center",justifyContent:"center"},children:[(0,ge.jsx)(g.default,{style:{width:"30%",height:20,backgroundColor:S,alignItems:"center",position:"absolute",bottom:"84%",left:"35%"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u062a\u0639\u062f\u0627\u062f \u062a\u06a9\u0647"})}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:22,color:R},children:mt})]}),(0,ge.jsx)(he.default,{onPress:function(){return yt(mt+1)},style:{alignItems:"center",justifyContent:"center",width:"20%",height:48,backgroundColor:B,position:"absolute",right:0,borderRadius:4},children:(0,ge.jsx)(we.default,{name:"add",size:35,color:C})})]})}),(0,ge.jsx)(Oe,{label:"\u062a\u0648\u0636\u06cc\u062d\u0627\u062a",multiline:!0,styleinput:{height:100},styleview:{height:100,marginBottom:"20%",marginTop:20},stylelabel:{width:70,top:"web"==u.default.OS?-9:-15},keyboardType:"default",value:X,onChangeText:function(e){return $(e)}})]}):(0,ge.jsx)(g.default,{}),(0,ge.jsx)(ze.default,{show:v,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==E?"":"\u0627\u062e\u0637\u0627\u0631",message:E,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==E,showConfirmButton:!0,cancelText:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0642\u0637\u0639\u0647 \u062c\u062f\u06cc\u062f",confirmText:"\u062a\u06a9\u0645\u06cc\u0644 \u0633\u0641\u0627\u0631\u0634",confirmButtonColor:T,onCancelPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==E?(O(!1),yt(1),$("\u0646\u062f\u0627\u0631\u0645"),ie(""),ce(""),He("0"),Le("0"),Ue("0"),Je("0"),et(!1),ct({Radio1:"color",Radio2:"1",Radio3:"single"})):O(!1)},onConfirmPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==E?(O(!1),yt(1),$("\u0646\u062f\u0627\u0631\u0645"),ie(""),ce(""),He("0"),Le("0"),Ue("0"),Je("0"),et(!1),e.navigation.navigate("list",{ids:e.route.params.orderid?e.route.params.orderid:q||""}),ct({Radio1:"color",Radio2:"1",Radio3:"single"})):O(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0},confirmButtonStyle:{width:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==E?"42%":"80%",height:40,alignItems:"center"},cancelButtonStyle:{width:"53%",height:40,backgroundColor:B,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0}}),(0,ge.jsx)(ze.default,{show:P,showProgress:!1,title:"\u0627\u062e\u0637\u0627\u0631",message:"\u0644\u0637\u0641\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0637\u0648\u0644 \u0648 \u0639\u0631\u0636 \u0631\u0627\u06a9\u0627\u0645\u0644 \u06a9\u0646\u06cc\u062f.\u0645\u0642\u062f\u0627\u0631 \u0637\u0648\u0644 \u0646\u0628\u0627\u06cc\u062f \u0627\u0632 \u0639\u0631\u0636 \u0628\u06cc\u0634\u062a\u0631 \u0628\u0627\u0634\u062f.",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){M(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"}})]}),1==it.Active?(0,ge.jsx)(g.default,{style:tn.viewfooter,children:(0,ge.jsx)(pe,{label:"\u062a\u0627\u06cc\u06cc\u062f \u0648 \u0627\u062f\u0627\u0645\u0647",style:{width:"100%",position:"absolute",left:"5%",bottom:0},textStyle:{bottom:10},colorspin:C,sizespin:25,loading:it.isLoading1,onPress:function(){e.route.params.Sliceid?jt():bt()}})}):(0,ge.jsx)(g.default,{})]})})};var on=o(3433),rn=o(8344);function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:O,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:90,backgroundColor:C},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30},footer:{padding:10,justifyContent:"center",alignItems:"center",flexDirection:"row"},loadMoreBtn:{padding:10,backgroundColor:B,borderRadius:4,flexDirection:"row",justifyContent:"center",alignItems:"center"},btnText:{color:C,fontSize:15,textAlign:"center",fontFamily:"MontserratBold"}});const dn=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,f.useState)(!1),c=(0,i.default)(d,2),h=c[0],b=c[1],j=(0,f.useState)({isLoading:!1,isLoading1:!1,showModal:!1}),w=(0,i.default)(j,2),O=w[0],z=w[1],k=(0,f.useState)(1),P=(0,i.default)(k,2),M=P[0],F=P[1],I=(0,f.useState)(""),D=(0,i.default)(I,2),L=D[0],E=D[1],H=(0,f.useState)([]),N=(0,i.default)(H,2),V=N[0],q=N[1],U=(0,f.useState)([]),G=(0,i.default)(U,2),Q=G[0],K=G[1],J=(0,f.useState)(""),Y=(0,i.default)(J,2),Z=Y[0],X=Y[1],$=(0,f.useRef)(!1),ee=function(){var e=(0,r.default)((function*(){try{$.current&&0,z(ln(ln({},O),{},{isLoading:!0}));var e=yield n(function(e,t,n){return function(){var o=(0,r.default)((function*(o){var i={Accept:"application/json",Authorization:"Bearer "+e},r="https://npln.ir/api/v1/app/products?page="+t+"&name="+n;return A()({method:"get",url:r,headers:i}).then((function(e){var t=e.data;return o({type:bt,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return o.apply(this,arguments)}}()}(t,M,L));$.current?(q(e.data.data.products.data),$.current=!1):q([].concat((0,on.default)(V),(0,on.default)(e.data.data.products.data))),z(ln(ln({},O),{},{isLoading:!1}))}catch(o){console.log(o)}}));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){ee()}),[M,L]);var te=function(){var e=(0,r.default)((function*(e){try{s(!0);var o=yield n((i=t,a=e,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://npln.ir/api/v1/app/product?product_id="+a;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:jt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));K(o.data.data.product.options),X(o.data.data.product),s(!1)}catch(l){}var i,a}));return function(t){return e.apply(this,arguments)}}(),ne=function(){var e=(0,r.default)((function*(){try{z(ln(ln({},O),{},{isLoading1:!0})),"success"==(yield function(e,t){var n={Accept:"application/json",Authorization:"Bearer "+e},o=new(W());return o.append("product_id",t),fetch("https://npln.ir/api/v1/user/add-product",{method:"POST",headers:n,body:o}).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){return console.log("error",e)}))}(t,Z.code)).status&&b(!0),z(ln(ln({},O),{},{isLoading1:!1}))}catch(e){console.log(e)}}));return function(){return e.apply(this,arguments)}}();!function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}))}();return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:sn.viewContainer,children:[(0,ge.jsxs)(g.default,{style:sn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:C}),(0,ge.jsx)(pe,{label:"\u0628\u0633\u062a\u0646",nameicon:"close",sizeicon:15,styleicon:{position:"absolute",left:15,top:3},coloricon:C,style:{width:"25%",marginLeft:"5%",marginTop:40},textStyle:{bottom:4,right:10,marginRight:10},onPress:function(){return e.navigation.goBack()}}),(0,ge.jsx)(Oe,{label:"\u062c\u0633\u062a\u062c\u0648",styleview:{width:"70%",marginTop:40,right:"web"===u.default.OS?"3%":"8%"},stylelabel:{width:"22%"},styleinput:{height:45},keyboardType:"default",onChangeText:function(e){e||F(1),$.current=!0,E(e)}})]}),(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"xl",isOpen:O.showModal,onClose:function(){return z(ln(ln({},O),{},{showModal:!1}))},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsxs)(Me.Modal.Body,{children:[l?(0,ge.jsxs)(g.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:C},children:[(0,ge.jsx)(x.default,{animating:l,size:30,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:B,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]}):(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:50},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:16,color:R,position:"absolute",right:"1%",top:"5%"},children:Z.title}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_,position:"absolute",right:"1%",top:"60%"},children:["\u06a9\u062f \u0645\u062d\u0635\u0648\u0644 : ",Z.code]}),(0,ge.jsx)(we.default,{onPress:function(){return z(ln(ln({},O),{},{showModal:!1}))},name:"close",size:25,color:R})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:150,marginTop:"2%",marginBottom:"2%"},children:(0,ge.jsx)(m.default,{source:{uri:Z.thumb?Z.thumb:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTOVLVPLsjgkzqnuf8I9HWsn675o_uSnDF8uw&usqp=CAU"},style:{width:"100%",height:150}})}),Q.map((function(e,t){return(0,ge.jsx)(g.default,{style:{width:"100%",marginTop:"2%",marginBottom:3},children:(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:[e.option?e.option.title:"-"," : ",(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_,position:"absolute",right:"1%",top:"50%"},children:e.value?e.value:"-"})," "]})},t)}))]}),(0,ge.jsx)(g.default,{style:{width:"100%",alignSelf:"auto",backgroundColor:C,justifyContent:"center",marginTop:30,marginBottom:30},children:(0,ge.jsx)(pe,{touchableStyle:{width:"90%",height:50,backgroundColor:v},textStyle:{bottom:10,fontSize:16},style:{position:"absolute",left:"web"==u.default.OS?"2%":"5%"},onPress:function(){ne()},colorspin:C,sizespin:25,loading:O.isLoading1,label:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0628\u0647 \u0644\u06cc\u0633\u062a"})})]})})}),(0,ge.jsx)(rn.default,{data:V,onEndReachedThreshold:.5,onEndReached:function(){$.current||F(M+1)},ListFooterComponent:function(){return(0,ge.jsx)(g.default,{style:sn.footer,children:(0,ge.jsxs)(he.default,{activeOpacity:.9,onPress:ee,style:sn.loadMoreBtn,children:[(0,ge.jsx)(y.default,{style:sn.btnText,children:" \u0628\u06cc\u0634\u062a\u0631 "}),O.isLoading?(0,ge.jsx)(x.default,{color:"white",style:{marginLeft:8}}):null]})})},enableEmptySections:!0,renderItem:function(e){var t=e.item,n=e.index;return(0,ge.jsx)(g.default,{style:{width:"100%",height:70,marginTop:10},children:(0,ge.jsxs)(he.default,{onPress:function(){z(ln(ln({},O),{},{showModal:!0})),te(t.id)},style:{borderRadius:5,flexDirection:"row",width:"91%",height:70,backgroundColor:S,left:"web"===u.default.OS?"4%":"27%",borderRadius:10,borderWidth:1,borderColor:_},children:[(0,ge.jsxs)(g.default,{style:{borderRadius:5,width:"80%",height:70},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,position:"absolute",right:"3%",top:"15%"},children:t.title}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:R,position:"absolute",right:"3%",top:"50%"},children:["\u06a9\u062f \u0645\u062d\u0635\u0648\u0644 : ",t.code]})]}),(0,ge.jsx)(g.default,{style:{borderRadius:5,width:"20%",height:70},children:(0,ge.jsx)(m.default,{source:{uri:t.thumb?t.thumb:"https://dasterang.ir/image/product/1587197829lteqSKMkNGsgkoEfBh8FUiF8pXBJUKpRgmIv6dGOIaxkkvVGfm.jpeg"},alt:"image",style:{width:"90%",height:60,marginTop:5,borderRadius:5}})})]})},n)},keyExtractor:function(e,t){return t.toString()}}),(0,ge.jsx)(ze.default,{show:h,showProgress:!1,title:"\u0645\u0648\u0641\u0642",message:"\u062a\u06a9\u0647 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0641\u0632\u0648\u062f\u0647 \u0634\u062f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){b(!1),setTimeout((function(){e.navigation.navigate("ordercolor")}),1e3)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:T},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"35%"},textheader:{backgroundColor:B,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"5%",top:"web"==u.default.OS?"15%":"35%"},viewfooter:{position:"web"==u.default.OS?"fixed":"absolute",bottom:"web"==u.default.OS?0:.1,flexDirection:"row",width:"100%",height:60,backgroundColor:C},view:{flexDirection:"column",alignItems:"center",width:"90%",height:320,backgroundColor:S,marginTop:20,left:"5%",borderRadius:10,borderWidth:2,borderColor:I},viewtitile:{borderRadius:5,flexDirection:"row",width:"91%",height:70,backgroundColor:S,left:"web"===u.default.OS?"4%":"27%",borderRadius:10},texttitle:{fontFamily:"Montserrat",fontSize:15,color:R},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:10},textlineL:{fontFamily:"Montserrat",fontSize:13,color:R,position:"absolute",right:"50%"},textlineR:{fontFamily:"Montserrat",fontSize:13,color:R,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},viewbtn:{width:"100%",height:50,justifyContent:"center",flexDirection:"row",marginTop:5}});const hn=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useSelector)((function(e){return e.finalproduct.datagroup})),o=(0,de.useDispatch)(),a=(0,f.useState)(""),l=(0,i.default)(a,2),s=l[0],d=l[1],c=(0,f.useState)([]),h=(0,i.default)(c,2),m=h[0],b=h[1],j=(0,f.useState)(!1),v=(0,i.default)(j,2),z=v[0],k=v[1],P=(0,f.useState)(!1),M=(0,i.default)(P,2),L=M[0],E=M[1],H=(0,f.useState)({showModal2:!1,isLoading:!1}),N=(0,i.default)(H,2),V=N[0],q=N[1],U=(function(){var t=(0,r.default)((function*(){try{yield o(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}))}(),function(){var n=(0,r.default)((function*(){try{E(!0),q(cn(cn({},V),{},{isLoading:!0}));var n=yield o((i=t,a=e.route.params.ids,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://npln.ir/api/v1/order/slices?order_id="+a;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Ct,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));b(n.data.data.slices.data),q(cn(cn({},V),{},{isLoading:!1})),E(!1)}catch(l){}var i,a}));return function(){return n.apply(this,arguments)}}()),G=(0,ot.useIsFocused)();(0,f.useEffect)((function(){U(),J()}),[G]);var Q=function(){var e=(0,r.default)((function*(e){try{q(cn(cn({},V),{},{isLoading:!0})),"success"==(yield function(e,t){var n={Accept:"application/json",Authorization:"Bearer "+e},o=new(W());return o.append("slice_id",t),fetch("https://npln.ir/api/v1/order/delete-slice",{method:"POST",headers:n,body:o}).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){return console.log("error",e)}))}(t,e)).status&&k(!0),q(cn(cn({},V),{},{isLoading:!1}))}catch(n){console.log(n)}}));return function(t){return e.apply(this,arguments)}}(),K=m?m.reduce((function(e,t){return e+JSON.parse(t.count)}),0):0,J=function(){var e=(0,r.default)((function*(){try{var e=yield o(le(t));d(e.data.data.user)}catch(n){}}));return function(){return e.apply(this,arguments)}}();function Y(){return e.route.params.ids?e.navigation.goBack():e.navigation.navigate("order"),!0}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",Y),function(){et.default.removeEventListener("hardwareBackPress",Y)}}),[]);var Z=(0,ke.useMediaQuery)({maxWidth:500}),X=(0,i.default)(Z,1)[0];return L?(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:C},children:[(0,ge.jsx)(x.default,{animating:L,size:30,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:B,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]})}):(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:X?"100%":500,height:"100%",marginLeft:X?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:fn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(g.default,{style:fn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0644\u06cc\u0633\u062a \u062a\u06a9\u0647 \u0647\u0627"})})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:"web"==u.default.OS?"85%":"78%"},children:(0,ge.jsx)(rn.default,{onRefresh:U,refreshing:V.isLoading,data:m,showsVerticalScrollIndicator:!1,renderItem:function(t){var n=t.item,o=t.index;return(0,ge.jsxs)(g.default,{style:{flexDirection:"column",alignItems:"center",width:"90%",height:"false"==s.status?320:250,backgroundColor:S,marginTop:20,left:"5%",borderRadius:10,borderWidth:2,borderColor:I},children:["false"==s.status?(0,ge.jsx)(g.default,{style:{width:"100%",height:60},children:(0,ge.jsx)(g.default,{style:fn.viewtitile,children:(0,ge.jsx)(g.default,{style:{borderRadius:5,width:"80%",height:60,justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:fn.texttitle,children:null==n.product?"\u062a\u06a9\u0647 \u0633\u0641\u06cc\u062f":n.product.title})})})}):(0,ge.jsx)(g.default,{}),"false"==s.status?(0,ge.jsx)(g.default,{style:{width:"90%",height:1,backgroundColor:D}}):(0,ge.jsx)(g.default,{}),(0,ge.jsxs)(g.default,{style:fn.viewline,children:[(0,ge.jsxs)(y.default,{style:{textDecorationLine:"underline",position:"absolute",left:20,fontFamily:"MontserratBold",fontSize:20,color:F},children:[" ",o+1," "]}),(0,ge.jsxs)(y.default,{style:fn.textlineL,children:["\u062a\u0639\u062f\u0627\u062f \u062a\u06a9\u0647 : ",(0,ge.jsx)(y.default,{style:fn.textline,children:n.count})]}),(0,ge.jsxs)(y.default,{style:fn.textlineR,children:["\u06a9\u062f \u0645\u062d\u0635\u0648\u0644 : ",(0,ge.jsx)(y.default,{style:fn.textline,children:n.id})]})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:140,flexDirection:"row",padding:10},children:[(0,ge.jsxs)(g.default,{style:{width:"15%",height:140,flexDirection:"column",alignItems:"flex-end"},children:[(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:25},children:[" ","1"==n.width_one?"\u0646":""]}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:60},children:[" ","2"==n.width_one?"\u0641":""]}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",bottom:25},children:[" ","3"==n.width_one?"\u0634":""]})]}),(0,ge.jsxs)(g.default,{style:{width:"70%",height:140,flexDirection:"column"},children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:"20%",flexDirection:"row"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",right:"10%"},children:"1"==n.length_one?"\u0646":""}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",left:"45%"},children:["2"==n.length_one?"\u0641":""," (",n.height,")"]}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",left:"10%"},children:"3"==n.length_one?"\u0634":""})]}),(0,ge.jsx)(g.default,{style:{width:"100%",height:"60%",backgroundColor:_}}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:"20%",flexDirection:"row"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",right:"10%"},children:"1"==n.width_two?"\u0646":""}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",left:"50%"},children:"2"==n.width_two?"\u0641":""}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",left:"10%"},children:"3"==n.width_two?"\u0634":""})]})]}),(0,ge.jsxs)(g.default,{style:{width:"15%",height:140,flexDirection:"column"},children:[(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:25},children:["1"==n.length_two?"\u0646":""," "]}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:60},children:["2"==n.length_two?"\u0641":""," (",n.width,") "]}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",bottom:25},children:["3"==n.length_two?"\u0634":""," "]})]})]}),(0,ge.jsxs)(g.default,{style:fn.viewbtn,children:[(0,ge.jsx)(pe,{label:"\u062d\u0630\u0641",nameicon:"delete-outline",sizeicon:18,styleicon:{position:"absolute",left:"web"===u.default.OS?20:10,top:"web"===u.default.OS?0:5},touchableStyle:{backgroundColor:S,elevation:0},style:{width:"48%",marginLeft:"5%",marginTop:10},textStyle:{color:R,right:10},onPress:function(){return Q(n.id)}}),(0,ge.jsx)(pe,{label:"\u0648\u06cc\u0631\u0627\u06cc\u0634",nameicon:"pencil-outline",sizeicon:18,styleicon:{position:"absolute",left:"web"===u.default.OS?30:20,top:"web"===u.default.OS?0:5},coloricon:C,touchableStyle:{backgroundColor:w},style:{width:"48%",marginRight:"3%",marginTop:10},textStyle:{right:10},onPress:function(){return e.navigation.navigate("form",{back:"1",Sliceid:n.id,height_strip:"single"==n.height_strip?"single":"double",color_strip:"color"==n.color_strip?"color":"other",width_strip:"1"==n.width_strip?"1":"2"})}})]})]},o)},keyExtractor:function(e){return e.id}})}),(0,ge.jsxs)(g.default,{style:{position:"web"==u.default.OS?"fixed":"absolute",bottom:"web"==u.default.OS?0:.1,flexDirection:"row",width:X?"100%":500,height:60,backgroundColor:C},children:[m.length==[]?(0,ge.jsx)(g.default,{}):(0,ge.jsx)(pe,{label:"\u062a\u06a9\u0645\u06cc\u0644 \u0633\u0641\u0627\u0631\u0634",coloricon:S,style:{width:"48%",marginLeft:"5%",marginTop:"web"==u.default.OS?10:5},textStyle:{bottom:10},onPress:function(){e.route.params.ids?e.navigation.navigate("final",{orderid:e.route.params.ids,gruop_id:n,totalmdf:K}):e.navigation.navigate("service",{totalmdf:K,number:"",ostany:s.state_id,citys:s.city_id})}}),(0,ge.jsx)(pe,{label:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0642\u0637\u0639\u0647 \u062c\u062f\u06cc\u062f",nameicon:"plus",sizeicon:18,styleicon:{position:"absolute",left:"web"===u.default.OS?60:50,top:"web"===u.default.OS?-1:4},coloricon:R,touchableStyle:{backgroundColor:O,elevation:0},style:{width:m.length==[]?"110%":"48%",marginRight:"3%",marginTop:"web"==u.default.OS?10:5},textStyle:{right:10,color:R},onPress:function(){return e.navigation.navigate("form",{orderid:e.route.params.ids?e.route.params.ids:"",idgroup:n,back:"1"})}})]}),(0,ge.jsx)(ze.default,{show:z,showProgress:!1,title:"\u0645\u0648\u0641\u0642",message:"\u062a\u06a9\u0647 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062d\u0630\u0641 \u0634\u062f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){k(!1),U()},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:T},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};var gn=o(6799),mn=o(2960);function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"15%":"35%"},textheader:{backgroundColor:B,width:110,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"15%":"35%"},textinput:{paddingLeft:"web"===u.default.OS?"35%":0,flexDirection:"row",width:"90%",height:60,backgroundColor:O,position:"absolute",left:"5%",borderRadius:10,borderWidth:1,borderColor:_,padding:10,paddingRight:50,fontFamily:"Montserrat",marginTop:15},view:{flexDirection:"column",alignItems:"center",width:"90%",height:200,backgroundColor:S,marginTop:10,left:"5%",borderWidth:1,borderColor:I,borderRadius:10,elevation:2,marginBottom:10},texttitle:{fontFamily:"Montserrat",fontSize:15,color:R,position:"absolute",right:"3%",top:"15%"},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textmodal:{fontFamily:"Montserrat",fontSize:16,color:R,position:"absolute",right:"1%",top:"5%"},textlineR:{fontFamily:"Montserrat",fontSize:13,color:R,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},viewbtn:{width:"100%",height:50,justifyContent:"center",flexDirection:"row"},filter:{backgroundColor:B,width:110,height:40,alignItems:"center",justifyContent:"center",flexDirection:"row",position:"absolute",left:"0%",top:"web"==u.default.OS?"15%":"35%"},footer:{padding:10,justifyContent:"center",alignItems:"center",flexDirection:"row"},loadMoreBtn:{padding:10,backgroundColor:B,borderRadius:4,flexDirection:"row",justifyContent:"center",alignItems:"center"},btnText:{color:C,fontSize:15,textAlign:"center",fontFamily:"MontserratBold"}});const bn=function(e){for(var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,f.useState)([]),c=(0,i.default)(d,2),h=c[0],m=c[1],b=(0,f.useState)({showModal:!1,favorit:!0,isLoading:!1,name:"",Ostan:e.route.params.ostany,City:e.route.params.citys,ActService:!0,lowActwork:"",offset:1}),j=(0,i.default)(b,2),v=j[0],S=j[1],O=(0,f.useState)(""),z=(0,i.default)(O,2),P=z[0],M=z[1],I=function(){var e=(0,r.default)((function*(){try{var e=yield n(re(t));M(e.data.data.states)}catch(o){console.log(o)}}));return function(){return e.apply(this,arguments)}}(),L=[],E=0;E<P.length;E++)L.push((0,ge.jsx)(gn.default.Item,{_text:{style:{fontFamily:"Montserrat"}},label:P[E].state,value:P[E].id},E));for(var W=(0,f.useState)(""),H=(0,i.default)(W,2),N=H[0],V=H[1],q=function(){var e=(0,r.default)((function*(e){try{S(pn(pn({},v),{},{Ostan:e}));var o=yield n(ae(t,e));V(o.data.data.cities)}catch(i){console.log(i)}}));return function(t){return e.apply(this,arguments)}}(),U=[],G=0;G<N.length;G++)U.push((0,ge.jsx)(gn.default.Item,{_text:{style:{fontFamily:"Montserrat"}},label:N[G].city,value:N[G].id},G));var Q=function(){var e=(0,r.default)((function*(){try{S(pn(pn({},v),{},{isLoading:!0}));var e=yield n((o=t,i=v.offset,a=v.Ostan,l=v.City,s=v.ActService,d=v.lowActwork,u=v.name,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o},n="https://npln.ir/api/v1/app/services?page="+i+"city_id="+l+"&state_id="+a+"&down="+d+"&status="+s+"&name="+u;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Et,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));e.data.data.next_page_url?m([].concat((0,on.default)(h),(0,on.default)(e.data.data.services.data))):m((0,on.default)(e.data.data.services.data)),S(pn(pn({},v),{},{isLoading:!1}))}catch(c){console.log(c)}var o,i,a,l,s,d,u}));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){I()}),[v.offset]);!function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}))}();(0,f.useEffect)((function(){Q()}),[]);var K=(0,ke.useMediaQuery)({maxWidth:500}),J=(0,i.default)(K,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:J?"100%":500,height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:xn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:xn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:xn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u062e\u062f\u0645\u0627\u062a\u06cc"})}),(0,ge.jsxs)(he.default,{onPress:function(){return s(!0)},style:xn.filter,children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0641\u06cc\u0644\u062a\u0631"}),(0,ge.jsx)(ce.default,{name:"sort-ascending",size:25,color:C})]})]}),(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"lg",isOpen:l,onClose:function(){return s(!1)},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:400},children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:40},children:[(0,ge.jsx)(y.default,{style:xn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0641\u06cc\u0644\u062a\u0631"}),(0,ge.jsx)(we.default,{onPress:function(){return s(!1)},name:"close",size:20,color:R})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:300,marginBottom:10},children:[(0,ge.jsxs)(g.default,{style:{flexDirection:"column",width:"100%",alignItems:"center",marginRight:"5%",bottom:10},children:[(0,ge.jsx)(g.default,{style:{width:"15%",height:20,backgroundColor:C,alignItems:"center",zIndex:2,left:"web"===u.default.OS?"37%":"33%",top:"web"===u.default.OS?"10%":"20%"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u0627\u0633\u062a\u0627\u0646"})}),"web"===u.default.OS?"":(0,ge.jsx)(we.default,{name:"chevron-down-outline",size:18,color:_,style:{zIndex:2,top:"34%",right:"40%"}}),(0,ge.jsx)(gn.default,{style:{backgroundColor:C},selectedValue:parseInt(v.Ostan),w:"web"===u.default.OS?280:"90%",h:50,dropdownIcon:!0,paddingRight:3,paddingLeft:"web"===u.default.OS?"50%":0,borderColor:_,borderWidth:1,bottom:1,fontFamily:"Montserrat",fontSize:12,flexDirection:"row-reverse",accessibilityLabel:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",placeholder:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",onValueChange:function(e){return q(e)},_selectedItem:{bg:B,startIcon:(0,ge.jsx)(mn.CheckIcon,{size:5,color:R})},children:L})]}),(0,ge.jsxs)(g.default,{style:{flexDirection:"column",width:"100%",alignItems:"center",marginRight:"5%",bottom:"web"===u.default.OS?10:20},children:[(0,ge.jsx)(g.default,{style:{width:"10%",height:20,backgroundColor:C,alignItems:"center",zIndex:2,left:"web"===u.default.OS?"37%":"33%",top:"web"===u.default.OS?"10%":"20%"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u0634\u0647\u0631"})}),"web"===u.default.OS?"":(0,ge.jsx)(we.default,{name:"chevron-down-outline",size:18,color:_,style:{zIndex:2,top:"34%",right:"40%"}}),(0,ge.jsx)(gn.default,{style:{backgroundColor:C},selectedValue:parseInt(v.City),w:"web"===u.default.OS?280:"90%",h:50,dropdownIcon:!0,paddingRight:3,paddingLeft:"web"===u.default.OS?"55%":0,borderColor:_,borderWidth:1,bottom:1,fontFamily:"Montserrat",fontSize:12,flexDirection:"row-reverse",accessibilityLabel:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",placeholder:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",onValueChange:function(e){return S(pn(pn({},v),{},{City:e}))},_selectedItem:{bg:B,startIcon:(0,ge.jsx)(mn.CheckIcon,{size:5,color:R})},children:U})]}),(0,ge.jsxs)(g.default,{style:{width:"web"===u.default.OS?"95%":"92%",height:40,marginBottom:20,left:13,flexDirection:"row",marginTop:"web"===u.default.OS?20:0},children:[(0,ge.jsx)(we.default,{onPress:function(){return S(pn(pn({},v),{},{ActService:!v.ActService}))},name:0==v.ActService?"square-outline":"checkbox",size:28,color:0==v.ActService?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R,position:"absolute",right:0},children:" \u062e\u062f\u0645\u0627\u062a\u06cc \u0647\u0627\u06cc \u0641\u0639\u0627\u0644 :"})]}),(0,ge.jsxs)(g.default,{style:{width:"91%",height:40,marginBottom:20,left:13,flexDirection:"row"},children:[(0,ge.jsx)(we.default,{onPress:function(){return S(pn(pn({},v),{},{lowActwork:!v.lowActwork}))},name:0==v.lowActwork?"square-outline":"checkbox",size:28,color:0==v.lowActwork?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R,position:"absolute",right:0},children:" \u062a\u0631\u0627\u0641\u06cc\u06a9 \u06a9\u0627\u0631\u06cc \u067e\u0627\u06cc\u06cc\u0646 :"})]})]}),(0,ge.jsx)(pe,{touchableStyle:{width:"90%",height:50,backgroundColor:B},textStyle:{bottom:10,fontSize:16},style:{marginTop:10,bottom:10,left:10},onPress:function(){s(!1),Q()},colorspin:C,sizespin:25,label:"\u062b\u0628\u062a"})]})})})}),(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:"100%",height:70,marginBottom:10},children:[(0,ge.jsx)(De.default,{placeholder:"\u062c\u0633\u062a \u0648\u062c\u0648 \u062f\u0631 \u062e\u062f\u0645\u0627\u062a\u06cc \u0647\u0627 ",onKeyPress:Q,placeholderTextColor:_,style:xn.textinput,onChangeText:function(e){return S(pn(pn({},v),{},{name:e}))}}),(0,ge.jsx)(ce.default,{name:"magnify",size:30,color:"#767F9D",style:{position:"absolute",right:"8%",top:30,zIndex:2}})]}),v.isLoading?(0,ge.jsx)(x.default,{color:"red",style:{marginLeft:8}}):h.length==[]?(0,ge.jsx)(g.default,{style:{width:"80%",height:60,backgroundColor:F,left:"10%",padding:5,borderRadius:10,marginTop:"10%"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,textAlign:"center"},children:"\u062f\u0631 \u0645\u062d\u062f\u0648\u062f\u0647 \u0634\u0645\u0627 \u062e\u062f\u0645\u0627\u062a\u06cc \u06cc\u0627\u0641\u062a \u0646\u0634\u062f. \u0644\u0637\u0641\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0641\u06cc\u0644\u062a\u0631 \u060c \u062e\u062f\u0645\u0627\u062a\u06cc \u0628\u06cc\u0634\u062a\u0631 \u0631\u0627 \u062c\u0633\u062a \u0648 \u062c\u0648 \u06a9\u0646\u06cc\u062f."})}):(0,ge.jsx)(rn.default,{data:h,onEndReachedThreshold:.5,onEndReached:function(){return S(pn(pn({},v),{},{offset:v.offset+1}))},ListFooterComponent:function(){return(0,ge.jsx)(g.default,{style:xn.footer,children:(0,ge.jsxs)(he.default,{activeOpacity:.9,onPress:Q,style:xn.loadMoreBtn,children:[(0,ge.jsx)(y.default,{style:xn.btnText,children:" \u062e\u062f\u0645\u0627\u062a\u06cc \u0628\u06cc\u0634\u062a\u0631 "}),v.isLoading?(0,ge.jsx)(x.default,{color:"white",style:{marginLeft:8}}):null]})})},enableEmptySections:!0,renderItem:function(t){var n=t.item,o=t.index;return(0,ge.jsxs)(g.default,{style:xn.view,children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:40,marginRight:"5%",marginTop:5,justifyContent:"center",flexDirection:"row"},children:(0,ge.jsxs)(y.default,{style:xn.texttitle,children:[n.first_name," ",n.last_name]})}),(0,ge.jsx)(g.default,{style:{width:"90%",height:1,backgroundColor:D}}),(0,ge.jsx)(g.default,{style:xn.viewline,children:(0,ge.jsxs)(y.default,{style:xn.textlineR,children:["\u0648\u0636\u0639\u06cc\u062a \u062e\u062f\u0645\u0627\u062a\u06cc : ",(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:"true"==n.active?T:_},children:"true"==n.active?"\u0641\u0639\u0627\u0644":"\u063a\u06cc\u0631 \u0641\u0639\u0627\u0644"})]})}),(0,ge.jsx)(g.default,{style:xn.viewline,children:(0,ge.jsxs)(y.default,{style:xn.textlineR,children:["\u0622\u062f\u0631\u0633 : ",(0,ge.jsxs)(y.default,{style:xn.textline,children:[n.state.state," , ",n.city.city]})]})}),(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("detailsService",{ids:n.id})},style:xn.viewline,children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:B,position:"absolute",right:50},children:" \u0645\u0634\u0627\u0647\u062f\u0647 \u062c\u0632\u0626\u06cc\u0627\u062a \u062e\u062f\u0645\u0627\u062a\u06cc"}),(0,ge.jsx)(we.default,{name:"eye-outline",size:20,color:B,style:{position:"absolute",right:20,top:"web"===u.default.OS?-1:4}})]}),(0,ge.jsx)(g.default,{style:xn.viewbtn,children:(0,ge.jsx)(pe,{label:"\u0627\u0646\u062a\u062e\u0627\u0628",nameicon:"check",sizeicon:18,coloricon:C,styleicon:{position:"absolute",left:"web"===u.default.OS?20:15,top:"web"===u.default.OS?0:4},touchableStyle:{backgroundColor:k,elevation:0,borderRadius:30},style:{width:"30%",height:45,marginLeft:"5%",position:"absolute",right:"65%"},textStyle:{color:C,right:10,marginRight:"web"===u.default.OS?10:0},onPress:function(){e.navigation.navigate("final",{name:n.first_name,family:n.last_name,totalmdf:e.route.params.totalmdf,ids:n.id,numberic:e.route.params.number})}})})]},o)},keyExtractor:function(e,t){return t.toString()}})]})})};function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"16%":"36%"},textheader:{backgroundColor:B,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"13%":"33%"},viewfooter:{position:"absolute",bottom:0,flexDirection:"row",width:"100%",height:60,backgroundColor:C},view:{flexDirection:"column",alignItems:"center",width:"90%",alignSelf:"auto",backgroundColor:S,marginTop:10,left:"5%",borderWidth:2,borderColor:I,borderRadius:10,marginBottom:20},texttitle:{fontFamily:"Montserrat",fontSize:15,color:R,position:"absolute",right:"3%",top:"15%"},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textlineR:{fontFamily:"Montserrat",fontSize:13,color:R,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},viewbtn:{width:"100%",height:50,justifyContent:"center",flexDirection:"row",marginTop:5}});const Sn=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useSelector)((function(e){return e.finalproduct.datamdf})),o=(0,de.useDispatch)(),a=(0,f.useState)(!1),l=(0,i.default)(a,2),s=l[0],d=l[1],c=(0,f.useState)(),h=(0,i.default)(c,2),m=h[0],b=h[1],j=(0,f.useState)(!1),w=(0,i.default)(j,2),v=w[0],O=w[1],z=(0,f.useState)("\u0646\u062f\u0627\u0631\u0645"),P=(0,i.default)(z,2),M=P[0],I=P[1],D=(0,f.useState)("\u0646\u062f\u0627\u0631\u0645"),L=(0,i.default)(D,2),E=L[0],H=L[1],N=(0,f.useState)("\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f"),V=(0,i.default)(N,2),q=V[0],U=V[1],G=(0,f.useState)(""),Q=(0,i.default)(G,2),K=Q[0],J=Q[1],Y=(0,f.useState)([]),Z=(0,i.default)(Y,2),X=Z[0],$=Z[1],ee=(0,f.useState)({isLoading:!1,isLoading1:!1}),te=(0,i.default)(ee,2),ne=te[0],ie=te[1],re=(function(){var t=(0,r.default)((function*(){try{yield o(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}))}(),function(){var i=(0,r.default)((function*(i){try{ie(wn(wn({},ne),{},"send"==i?{isLoading1:!0}:{isLoading:!0}));var a=yield o(function(e,t,n,o,i,a,l,s,d,u,c,f,h,g,m){return function(){var y=(0,r.default)((function*(r){var y={Accept:"application/json",Authorization:"Bearer "+e},p=new(W());return p.append("services_id",t),p.append("name",n),p.append("sheet_status_services",o),p.append("sheet_status_customer",i),p.append("send_status",a),p.append("status",l),p.append("wood_type",s),p.append("wood_thickness",d),p.append("panel_width",u),p.append("panel_height",c),p.append("panel_description",f),p.append("color_strip",h),p.append("width_strip",g),p.append("height_strip",m),fetch("https://npln.ir/api/v1/order/set-services",{method:"POST",headers:y,body:p}).then((function(e){return e.json()})).then((function(e){return r({type:Rt,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return y.apply(this,arguments)}}()}(t,e.route.params.ids,K,M,E,q,i,"2"==e.route.params.numberic?"":n[0],"2"==e.route.params.numberic?"":n[1],"2"==e.route.params.numberic?"":n[2],"2"==e.route.params.numberic?"":n[3],"2"==e.route.params.numberic?"":n[4],"2"==e.route.params.numberic?"":n[5],"2"==e.route.params.numberic?"":n[6],"2"==e.route.params.numberic?"":n[7]));"success"==a.status?(d(!0),b("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==a.status&&(d(!0),b(a.message)),ie(wn(wn({},ne),{},{isLoading:!1})),ie(wn(wn({},ne),{},{isLoading1:!1}))}catch(l){}}));return function(e){return i.apply(this,arguments)}}()),ae=function(){var n=(0,r.default)((function*(){try{O(!0);var n=yield o((i=t,a=e.route.params.orderid,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://npln.ir/api/v1/order/order?order_id="+a;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Bt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));J(n.data.data.order.name),$(n.data.data.order.groups),U(null==n.data.data.order.send_status?"\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f":n.data.data.order.send_status),I("\u0646\u062f\u0627\u0631\u0645"==n.data.data.order.sheet_status_services?"\u0646\u062f\u0627\u0631\u0645":n.data.data.order.sheet_status_services),H("\u0646\u062f\u0627\u0631\u0645"==n.data.data.order.sheet_status_customer?"\u0646\u062f\u0627\u0631\u0645":n.data.data.order.sheet_status_customer),O(!1)}catch(l){}var i,a}));return function(){return n.apply(this,arguments)}}(),le=(0,ot.useIsFocused)();(0,f.useEffect)((function(){e.route.params.orderid&&ae()}),[le]);var ue=function(){var n=(0,r.default)((function*(n,i,a,l,s,u,c,f,h){try{ie(wn(wn({},ne),{},"send"==n?{isLoading1:!0}:{isLoading:!0}));var g=yield o(function(e,t,n,o,i,a,l,s,d,u,c,f,h,g,m,y){return function(){var p=(0,r.default)((function*(r){var p={Accept:"application/json",Authorization:"Bearer "+e},x=new(W());return x.append("order_id",t),x.append("order_group_id",n),x.append("sheet_status_services",o),x.append("sheet_status_customer",i),x.append("name",a),x.append("send_status",l),x.append("status",s),x.append("wood_type",d),x.append("wood_thickness",u),x.append("panel_width",c),x.append("panel_height",f),x.append("color_strip",h),x.append("width_strip",g),x.append("height_strip",m),x.append("panel_description",y),fetch("https://npln.ir/api/v1/order/edit",{method:"POST",headers:p,body:x}).then((function(e){return e.json()})).then((function(e){return r({type:Lt,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return p.apply(this,arguments)}}()}(t,e.route.params.orderid,e.route.params.gruop_id,M,E,K,q,n,"2"==e.route.params.numberic?"":i,"2"==e.route.params.numberic?"":a,"2"==e.route.params.numberic?"":l,"2"==e.route.params.numberic?"":s,"2"==e.route.params.numberic?"":u,"2"==e.route.params.numberic?"":c,"2"==e.route.params.numberic?"":f,"2"==e.route.params.numberic?"":h));"success"==g.status?(d(!0),b("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==g.status&&(d(!0),b(g.message)),ie(wn(wn({},ne),{},{isLoading:!1})),ie(wn(wn({},ne),{},{isLoading1:!1}))}catch(m){}}));return function(e,t,o,i,r,a,l,s,d){return n.apply(this,arguments)}}();function ce(){return e.navigation.goBack(),!0}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",ce),function(){et.default.removeEventListener("hardwareBackPress",ce)}}),[]);var fe=(0,ke.useMediaQuery)({maxWidth:500}),me=(0,i.default)(fe,1)[0];return v?(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:C},children:[(0,ge.jsx)(x.default,{animating:v,size:30,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:B,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]})}):(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:me?"100%":500,height:"100%",marginLeft:me?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:vn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:vn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:vn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0628\u0631\u0631\u0633\u06cc \u0646\u0647\u0627\u06cc\u06cc"})})]}),(0,ge.jsxs)(Ie.default,{style:{backgroundColor:S,marginBottom:65},children:[(0,ge.jsxs)(g.default,{style:vn.view,children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:40,marginRight:"5%",marginTop:5,justifyContent:"center"},children:(0,ge.jsxs)(y.default,{style:vn.texttitle,children:[e.route.params.name," ",e.route.params.family]})}),(0,ge.jsx)(g.default,{style:vn.viewline,children:(0,ge.jsxs)(y.default,{style:vn.textlineR,children:["\u062a\u0639\u062f\u0627\u062f \u062a\u06a9\u0647 : ",(0,ge.jsx)(y.default,{style:vn.textline,children:e.route.params.totalmdf})]})}),(0,ge.jsx)(Oe,{label:"\u0646\u0627\u0645 \u0633\u0641\u0627\u0631\u0634",styleview:{marginTop:"3%",height:70,marginBottom:10},stylelabel:{width:"20%",backgroundColor:"white"},value:K,onChangeText:function(e){return J(e)},styleinput:"web"===u.default.OS&&{outlineColor:B},keyboardType:"default"}),(0,ge.jsx)(Oe,{label:" \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0648\u0631\u0642 \u062e\u062f\u0645\u0627\u062a\u06cc",multiline:!0,styleinput:{height:100},styleview:{height:100,marginBottom:"5%",marginTop:5},stylelabel:{width:140,top:"web"==u.default.OS?-9:-15,backgroundColor:"white"},keyboardType:"default",value:M,onChangeText:function(e){return I(e)}}),(0,ge.jsx)(Oe,{label:" \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0648\u0631\u0642 \u06a9\u0627\u0631\u0628\u0631",multiline:!0,styleinput:{height:100},styleview:{height:100,marginBottom:"2%",marginTop:5},stylelabel:{width:120,top:"web"==u.default.OS?-9:-15,backgroundColor:"white"},keyboardType:"default",value:E,onChangeText:function(e){return H(e)}}),(0,ge.jsx)(g.default,{style:{width:"100%",height:30},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:R,marginRight:"4%"},children:" \u0646\u062d\u0648\u0647 \u0627\u0631\u0633\u0627\u0644 : "})}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:85,flexDirection:"column"},children:[(0,ge.jsx)(we.default,{onPress:function(){return U("\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645")},name:"\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f"==q?"ellipse-outline":"radio-button-on-outline",size:30,color:"\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f"==q?_:B,style:{position:"absolute",right:"web"===u.default.OS?7:15}}),(0,ge.jsx)(y.default,{onPress:function(){return U("\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645")},style:{fontFamily:"Montserrat",fontSize:15,position:"absolute",right:"16%",top:"web"===u.default.OS?5:1},children:"\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645 "}),(0,ge.jsx)(we.default,{onPress:function(){return U("\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f")},name:"\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645"==q?"ellipse-outline":"radio-button-on-outline",size:30,color:"\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645"==q?_:B,style:{position:"absolute",right:"web"===u.default.OS?7:14,bottom:"23%"}}),(0,ge.jsx)(y.default,{onPress:function(){return U("\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f")},style:{fontFamily:"Montserrat",fontSize:15,position:"absolute",right:"16%",bottom:"web"===u.default.OS?"30%":"28%"},children:"\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f "})]})]}),(0,ge.jsx)(ze.default,{show:s,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==m?"":"\u0627\u062e\u0637\u0627\u0631",message:m,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==m?(d(!1),e.navigation.navigate("orderlist",{refresh:"true"})):d(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]}),"2"==e.route.params.numberic?(0,ge.jsx)(g.default,{style:vn.viewfooter,children:(0,ge.jsx)(pe,{label:"\u0627\u062f\u0627\u0645\u0647",style:{width:"100%",marginTop:10,position:"absolute",left:"5%"},textStyle:{bottom:10,color:C},touchableStyle:{backgroundColor:k,elevation:0},colorspin:C,sizespin:25,loading:ne.isLoading1,onPress:function(){e.navigation.navigate("chat",{ids:e.route.params.ids,name:K||"\u0628\u062f\u0648\u0646 \u0646\u0627\u0645",services:M,customer:E,send:q})}})}):e.route.params.orderid?X.map((function(t,n){return(0,ge.jsxs)(g.default,{style:vn.viewfooter,children:[(0,ge.jsx)(pe,{label:"\u062b\u0628\u062a \u0645\u0648\u0642\u062a",style:{width:e.route.params.orderid?"49%":"25%",marginTop:10,position:"absolute",left:"5%"},textStyle:{bottom:10,color:C},touchableStyle:{backgroundColor:F,elevation:0},colorspin:C,sizespin:25,loading:ne.isLoading,onPress:function(){ue("pending",t.wood_type,t.wood_thickness,t.panel_width,t.panel_height,t.color_strip,t.width_strip,t.height_strip,t.panel_description)}}),(0,ge.jsx)(pe,{label:"\u0627\u0631\u0633\u0627\u0644 \u0628\u0647 \u062e\u062f\u0645\u0627\u062a\u06cc",style:{width:e.route.params.orderid?"49%":"40%",marginTop:10,position:"absolute",left:e.route.params.orderid?"52%":"60%"},textStyle:{bottom:10,color:C},touchableStyle:{backgroundColor:k,elevation:0},colorspin:C,sizespin:25,loading:ne.isLoading1,onPress:function(){ue("send",t.wood_type,t.wood_thickness,t.panel_width,t.panel_height,t.color_strip,t.width_strip,t.height_strip,t.panel_description)}})]},n)})):(0,ge.jsxs)(g.default,{style:vn.viewfooter,children:[(0,ge.jsx)(pe,{label:"\u062b\u0628\u062a \u0645\u0648\u0642\u062a",style:{width:e.route.params.orderid?"49%":"25%",marginTop:10,position:"absolute",left:"5%"},textStyle:{bottom:10,color:C},touchableStyle:{backgroundColor:F,elevation:0},colorspin:C,sizespin:25,loading:ne.isLoading,onPress:function(){re("pending")}}),(0,ge.jsx)(pe,{label:"\u0648\u06cc\u0631\u0627\u06cc\u0634",coloricon:R,style:{width:"35%",marginTop:10,position:"absolute",left:"28%"},textStyle:{bottom:10},onPress:function(){return e.navigation.navigate("list",{ids:""})}}),(0,ge.jsx)(pe,{label:"\u0627\u0631\u0633\u0627\u0644 \u0628\u0647 \u062e\u062f\u0645\u0627\u062a\u06cc",style:{width:e.route.params.orderid?"49%":"40%",marginTop:10,position:"absolute",left:e.route.params.orderid?"52%":"60%"},textStyle:{bottom:10,color:C},touchableStyle:{backgroundColor:k,elevation:0},colorspin:C,sizespin:25,loading:ne.isLoading1,onPress:function(){return re("send")}})]})]})})};var Cn=o(5829);function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},textheader:{backgroundColor:B,width:110,height:50,alignItems:"center",justifyContent:"center",position:"absolute",right:"10%",top:"web"==u.default.OS?"15%":"25%"},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"23%":"33%"},menu3:{backgroundColor:B,width:80,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:"40%",top:"web"==u.default.OS?"15%":"35%"},filter:{backgroundColor:B,width:110,height:40,alignItems:"center",justifyContent:"center",flexDirection:"row",position:"absolute",left:"3%",top:"web"==u.default.OS?"15%":"32%"},filter1:{backgroundColor:k,width:80,height:40,alignItems:"center",justifyContent:"center",flexDirection:"row",position:"absolute",left:"38%",borderRadius:10,top:"web"==u.default.OS?"15%":"32%"},textmodal:{fontFamily:"Montserrat",fontSize:16,color:R,position:"absolute",right:"1%",top:"5%"},viewfooter:{flexDirection:"row",width:"100%",height:60,backgroundColor:B,position:"web"===u.default.OS?"fixed":"relative",bottom:0},menu1:{width:60,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:15,top:"35%"},textinput:{paddingLeft:"web"===u.default.OS?"35%":0,flexDirection:"row",width:"90%",height:60,backgroundColor:O,position:"absolute",left:"5%",borderRadius:10,borderWidth:1,borderColor:_,padding:10,paddingRight:50,paddingLeft:10,fontFamily:"Montserrat",marginTop:15,fontSize:12},view:{flexDirection:"column",alignItems:"center",width:"90%",alignSelf:"auto",backgroundColor:S,marginTop:10,left:"5%",borderWidth:2,borderColor:I,borderRadius:10,marginBottom:10},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textlineR:{fontFamily:"Montserrat",fontSize:13,color:R,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},footer:{padding:10,justifyContent:"center",alignItems:"center",flexDirection:"row"},loadMoreBtn:{padding:10,backgroundColor:B,borderRadius:4,flexDirection:"row",justifyContent:"center",alignItems:"center"},btnText:{color:C,fontSize:15,textAlign:"center",fontFamily:"MontserratBold"}});const Pn=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,f.useState)(2),c=(0,i.default)(d,2),h=c[0],m=c[1],O=(0,f.useState)(),z=(0,i.default)(O,2),k=z[0],P=z[1],D=(0,f.useState)([]),L=(0,i.default)(D,2),A=L[0],E=L[1],H=(0,f.useState)(""),N=(0,i.default)(H,2),V=N[0],q=N[1],U=(0,f.useState)(""),G=(0,i.default)(U,2),Q=G[0],K=G[1],J=(0,f.useState)(1),Y=(0,i.default)(J,2),Z=Y[0],X=Y[1],$=(0,f.useState)(!1),ee=(0,i.default)($,2),te=ee[0],ne=ee[1],ie=(0,f.useState)(""),re=(0,i.default)(ie,2),ae=(re[0],re[1]),ue=(0,f.useState)(""),fe=(0,i.default)(ue,2),me=(fe[0],fe[1]),ye=(0,f.useState)({showModal:!1,isLoading:!1,isLoading1:!1,name:"",nameservice:"",ActService:""}),xe=(0,i.default)(ye,2),be=xe[0],ve=xe[1],Se=function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}();function Ce(){return e.navigation.navigate("home"),!0}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",Ce),function(){et.default.removeEventListener("hardwareBackPress",Ce)}}),[]);var Be=function(){var e=(0,r.default)((function*(){parseInt(h)<=parseInt(Z)&&(1==h||m(h+1),Te())}));return function(){return e.apply(this,arguments)}}(),Te=function(){var e=(0,r.default)((function*(){try{ve(zn(zn({},be),{},{isLoading:!0}));var e=yield n(Ut(t,h,Q,be.ActService));E([].concat((0,on.default)(A),(0,on.default)(e.data.data.orders.data))),q(e.data.data.count),ve(zn(zn({},be),{},{isLoading:!1}))}catch(o){}}));return function(){return e.apply(this,arguments)}}(),Fe=function(){var e=(0,r.default)((function*(){try{ve(zn(zn({},be),{},{isLoading:!0}));var e=yield n(Ut(t,1,Q,be.ActService));E((0,on.default)(e.data.data.orders.data)),X(e.data.data.orders.last_page),q(e.data.data.count),ve(zn(zn({},be),{},{isLoading:!1}))}catch(o){}}));return function(){return e.apply(this,arguments)}}(),Ie=(0,ot.useIsFocused)();(0,f.useEffect)((function(){Fe(),Ae(),"true"==e.route.params.refresh&&m(2),t||Se()}),[Ie]);var _e=function(){var e=(0,r.default)((function*(e){try{var o=yield n(function(e,t,n){return function(){var o=(0,r.default)((function*(o){var i={Accept:"application/json",Authorization:"Bearer "+e},r=new(W());return r.append("order_id",t),r.append("name",n),fetch("https://npln.ir/api/v1/order/edit",{method:"POST",headers:i,body:r}).then((function(e){return e.json()})).then((function(e){return o({type:qt,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return o.apply(this,arguments)}}()}(t,e,be.name));"success"==o.status?(s(!0),P("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==o.status&&(s(!0),P(o.message)),console.log(o)}catch(i){}}));return function(t){return e.apply(this,arguments)}}(),Re=(0,ke.useMediaQuery)({maxWidth:500}),Le=(0,i.default)(Re,1)[0],Ae=function(){var e=(0,r.default)((function*(){try{var e=yield n(le(t));ae(e.data.data.user.mobile),me(e.data.data.user.id)}catch(o){}}));return function(){return e.apply(this,arguments)}}();return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:Le?"100%":500,height:"100%",marginLeft:Le?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:kn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.navigate("home")},style:kn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.navigate("home")},style:kn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:C,padding:"5%"},children:"\u0644\u06cc\u0633\u062a \u0633\u0641\u0627\u0631\u0634\u0627\u062a"})}),(0,ge.jsx)(he.default,{style:kn.filter1,onPress:function(){return e.navigation.navigate("mdfwhite")},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:C},children:"\u0633\u0641\u0627\u0631\u0634 \u062c\u062f\u06cc\u062f"})}),(0,ge.jsxs)(he.default,{style:kn.filter,onPress:function(){return e.navigation.navigate("splash")},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:C},children:"\u0628\u0627\u0631\u06af\u0632\u0627\u0631\u06cc \u0645\u062c\u062f\u062f"}),(0,ge.jsx)(ce.default,{name:"reload",size:25,color:C})]})]}),(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"lg",isOpen:te,onPress:function(){return ne(!1)},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:200},children:[(0,ge.jsxs)(g.default,{style:{width:"100%",height:40},children:[(0,ge.jsx)(y.default,{style:kn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0641\u06cc\u0644\u062a\u0631"}),(0,ge.jsx)(we.default,{onPress:function(){return ne(!1)},name:"close",size:20,color:R})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:100,marginBottom:10},children:[(0,ge.jsxs)(g.default,{style:{width:"web"===u.default.OS?"95%":"92%",height:40,flexDirection:"row",alignItems:"center",marginBottom:"4%"},children:[(0,ge.jsx)(we.default,{onPress:function(){return ve(zn(zn({},be),{},{ActService:"send"}))},name:"send"!==be.ActService?"square-outline":"checkbox",size:28,color:"send"!==be.ActService?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R,position:"absolute",right:0},children:" \u0633\u0641\u0627\u0631\u0634\u0627\u062a \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u0647 :"})]}),(0,ge.jsxs)(g.default,{style:{width:"web"===u.default.OS?"95%":"92%",height:40,flexDirection:"row",alignItems:"center"},children:[(0,ge.jsx)(we.default,{onPress:function(){return ve(zn(zn({},be),{},{ActService:"pending"}))},name:"pending"!==be.ActService?"square-outline":"checkbox",size:28,color:"pending"!==be.ActService?_:w}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R,position:"absolute",right:0},children:" \u0633\u0641\u0627\u0631\u0634\u0627\u062a \u062f\u0631 \u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0631\u0633\u0627\u0644 :"})]})]}),(0,ge.jsx)(pe,{touchableStyle:{width:"80%",height:50,backgroundColor:B},textStyle:{bottom:10,fontSize:16},style:{marginTop:10,bottom:10,left:25},onPress:function(){ne(!1),m(2),Fe()},colorspin:C,sizespin:25,label:"\u062b\u0628\u062a"})]})})})}),(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:"100%",height:70,marginBottom:10},children:[(0,ge.jsx)(De.default,{placeholder:"\u062c\u0633\u062a \u0648\u062c\u0648 \u062f\u0631 \u0633\u0641\u0627\u0631\u0634\u0627\u062a",onKeyPress:function(){m(2),Fe()},keyboardType:"default",placeholderTextColor:_,style:kn.textinput,onChangeText:function(e){return K(e)}}),(0,ge.jsx)(ce.default,{name:"magnify",size:30,color:"#767F9D",style:{position:"absolute",right:"8%",top:30,zIndex:2}})]}),be.isLoading&&"web"==u.default.OS?(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:100,height:40,backgroundColor:v,borderRadius:10,alignItems:"center",justifyContent:"center",top:"80%",left:"38%",position:"absolute",zIndex:2},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,marginRight:10},children:"\u0628\u06cc\u0634\u062a\u0631"}),(0,ge.jsx)(x.default,{size:30,color:C})]}):(0,ge.jsx)(g.default,{}),A.length!==[]?(0,ge.jsx)(rn.default,{refreshControl:(0,ge.jsx)(Cn.default,{refreshing:be.isLoading,onRefresh:function(){m(2),Fe()},progressViewOffset:150,colors:[C],progressBackgroundColor:w,size:"large"}),style:{marginBottom:"web"==u.default.OS?30:0},data:A,onEndReachedThreshold:.5,keyExtractor:function(e,t){return t.toString()},onEndReached:function(){return Be()},enableEmptySections:!0,renderItem:function(t){var n=t.item,o=t.index;return(0,ge.jsxs)(g.default,{style:{flexDirection:"column",alignItems:"center",width:"90%",alignSelf:"auto",backgroundColor:S,marginTop:10,left:"5%",borderWidth:2,borderColor:I,borderRadius:10,marginBottom:A.length>1?10:290},children:[(0,ge.jsxs)(y.default,{style:{textDecorationLine:"underline",fontFamily:"MontserratBold",fontSize:20,color:F,left:"3%",position:"absolute"},children:[" ",V-o," "]}),(0,ge.jsx)(g.default,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",width:"100%",alignSelf:"auto",marginTop:5,marginBottom:15,right:15},children:n.logs.length?n.logs.map((function(e,t){return(0,ge.jsxs)(g.default,{style:{alignItems:"center",flexDirection:"column",width:"30%",height:80,marginBottom:10,marginTop:10},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:10,color:_},children:e.date_show}),(0,ge.jsx)(g.default,{style:{width:"100%",height:2,backgroundColor:I,right:3,top:15,zIndex:1}}),(0,ge.jsx)(ce.default,{name:"check-circle",size:25,color:T,style:{zIndex:2}}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:10,color:_,top:5},children:e.text})]},t)})):(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:B,marginTop:10},children:"\u062f\u0631\u062d\u0627\u0644 \u0628\u0631\u0631\u0633\u06cc"})}),(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"row",justifyContent:"flex-end",marginBottom:10},children:[(0,ge.jsx)(Oe,{label:"\u0646\u0627\u0645 \u0633\u0641\u0627\u0631\u0634",styleview:{width:"80%"},stylelabel:{width:"25%",backgroundColor:"white"},value:be.name,onChangeText:function(e){return ve(zn(zn({},be),{},{name:e}))},styleinput:"web"===u.default.OS&&{outlineColor:B},keyboardType:"default",placeholder:n.name}),(0,ge.jsx)(pe,{label:"\u0648\u06cc\u0631\u0627\u06cc\u0634",style:{width:"20%",height:60},textStyle:{bottom:10,fontSize:13},touchableStyle:{backgroundColor:B},onPress:function(){_e(n.id),ve(zn(zn({},be),{},{name:""}))}})]}),(0,ge.jsxs)(g.default,{style:kn.viewline,children:[(0,ge.jsxs)(y.default,{style:kn.textlineR,children:["\u0646\u0627\u0645 \u0633\u0641\u0627\u0631\u0634 : ",(0,ge.jsx)(y.default,{style:kn.textline,children:n.name})]}),null!==n.message&&"no"==n.message.seen&&"user"!=n.message.status?(0,ge.jsxs)(he.default,{style:kn.menu1,onPress:function(){return e.navigation.navigate("chat",{idservice:n.id})},children:[(0,ge.jsx)(ce.default,{name:"bell-ring",size:30,color:M}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:10,color:T},children:"\u067e\u06cc\u0627\u0645 \u062c\u062f\u06cc\u062f "})]}):(0,ge.jsx)(g.default,{})]}),(0,ge.jsx)(g.default,{style:kn.viewline,children:(0,ge.jsxs)(y.default,{style:kn.textlineR,children:["\u06a9\u062f \u0633\u0641\u0627\u0631\u0634 : ",(0,ge.jsx)(y.default,{style:kn.textline,children:n.number})]})}),(0,ge.jsx)(g.default,{style:kn.viewline,children:(0,ge.jsxs)(y.default,{style:kn.textlineR,children:[" \u0646\u0648\u0639 \u0633\u0641\u0627\u0631\u0634 : ",(0,ge.jsx)(y.default,{style:kn.textline,children:n.category.title})]})}),(0,ge.jsx)(g.default,{style:kn.viewline,children:(0,ge.jsxs)(y.default,{style:kn.textlineR,children:[" \u062a\u0627\u0631\u06cc\u062e \u062a\u062d\u0648\u06cc\u0644 : ",(0,ge.jsx)(y.default,{style:kn.textline,children:n.time_estimate})]})}),(0,ge.jsx)(g.default,{style:kn.viewline,children:(0,ge.jsxs)(y.default,{style:kn.textlineR,children:["\u0646\u062d\u0648\u0647 \u0633\u0641\u0627\u0631\u0634 : ",(0,ge.jsx)(y.default,{style:kn.textline,children:"chat"==n.type?"\u062b\u0628\u062a \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 (\u0686\u062a)":"\u062b\u0628\u062a \u0633\u0631\u06cc\u0639 (\u0628\u0631\u0634 \u0648\u0646\u0648\u0627\u0631)"})]})}),"0"==n.price?null:(0,ge.jsx)(g.default,{style:kn.viewline,children:(0,ge.jsxs)(y.default,{style:kn.textlineR,children:["\u0642\u06cc\u0645\u062a : ",(0,ge.jsx)(y.default,{style:kn.textline,children:n.price})]})}),(0,ge.jsx)(dt.default,{style:{width:"100%",flexDirection:"row",justifyContent:"center"},children:(0,ge.jsxs)(g.default,{style:{width:"100%",flexDirection:"row",justifyContent:"center",marginTop:10,marginBottom:10},children:[n.files_app.length>0?(0,ge.jsx)(pe,{label:"\u0641\u0627\u06cc\u0644\u0647\u0627\u06cc \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647",style:{width:"25%",marginTop:10,marginLeft:10},textStyle:{bottom:10,fontSize:10},touchableStyle:{backgroundColor:v},onPress:function(){return e.navigation.navigate("ordercolor",{file:n.files_app,name:""})}}):(0,ge.jsx)(g.default,{}),0==n.payment_link?(0,ge.jsx)(g.default,{}):(0,ge.jsx)(pe,{label:1==n.payment_status?" \u067e\u0631\u062f\u0627\u062e\u062a \u0634\u062f\u0647":"\u067e\u0631\u062f\u0627\u062e\u062a",style:{width:"25%",marginTop:10},textStyle:{bottom:10,fontSize:12},touchableStyle:{backgroundColor:1==n.payment_status?_:B},onPress:function(){var e;1!=n.payment_status&&(e=n.payment_link,je.default.openURL(e))}}),(0,ge.jsx)(pe,{label:"\u06af\u0641\u062a\u06af\u0648 \u0628\u0627 \u0627\u067e\u0631\u0627\u062a\u0648\u0631",touchableStyle:{backgroundColor:T},style:{width:(u.default.OS,"25%"),marginTop:10},textStyle:{bottom:10,fontSize:12},onPress:function(){return e.navigation.navigate("chat",{idservice:n.id})}}),n.three_dfiles_app.length>0?(0,ge.jsx)(pe,{label:"\u0641\u0627\u06cc\u0644 \u0633\u0647 \u0628\u0639\u062f\u06cc",style:{width:"25%",marginTop:10},touchableStyle:{backgroundColor:b},textStyle:{bottom:10,fontSize:12},onPress:function(){return e.navigation.navigate("ordercolor",{file3D:n.three_dfiles_app,name:"3D"})}}):(0,ge.jsx)(g.default,{})]})})]},o)}}):(0,ge.jsxs)(g.default,{style:{width:"80%",height:130,marginBottom:"70%",backgroundColor:_,left:"10%",padding:5,borderRadius:10,marginTop:20},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,textAlign:"center",marginTop:"5%"},children:"\u0634\u0645\u0627 \u062a\u0627\u06a9\u0646\u0648\u0646 \u0633\u0641\u0627\u0631\u0634\u06cc \u062b\u0628\u062a \u0646\u06a9\u0631\u062f\u06cc\u062f"}),(0,ge.jsx)(pe,{label:"\u0633\u0641\u0627\u0631\u0634 \u062c\u062f\u06cc\u062f",style:{marginLeft:"5%",marginTop:"5%",marginBottom:"10%",height:55},textStyle:{bottom:10},onPress:function(){e.navigation.navigate("order")}})]}),(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:Le?"100%":500,height:60,backgroundColor:B,position:"web"===u.default.OS?"fixed":"relative",bottom:0},children:[(0,ge.jsxs)(g.default,{style:{width:"15%",height:60,position:"absolute",right:"5%",alignItems:"center"},children:[(0,ge.jsx)(g.default,{style:{width:50,height:50,borderRadius:25,backgroundColor:w,borderWidth:5,borderColor:C,bottom:28,alignItems:"center",justifyContent:"center"},children:(0,ge.jsx)(we.default,{name:"reader-outline",size:20,color:C})}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:j,position:"absolute",bottom:15},children:"\u0633\u0641\u0627\u0631\u0634\u0627\u062a"}),(0,ge.jsx)(g.default,{style:{width:30,height:5,borderRadius:5,backgroundColor:w,position:"absolute",bottom:5}})]}),(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("profile")},style:{width:"15%",height:60,alignItems:"center",left:15,top:5},children:[(0,ge.jsx)(ce.default,{name:"badge-account-outline",size:25,color:C}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"})]}),(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("home")},style:{width:"30%",height:60,left:"35%",position:"absolute",alignItems:"center",flexDirection:"column"},children:[(0,ge.jsx)(we.default,{name:"home-outline",size:25,color:C}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc"})]})]}),(0,ge.jsx)(ze.default,{show:l,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==k?"":"\u0627\u062e\u0637\u0627\u0631",message:k,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){s(!1),m(2),Fe()},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};var Mn=o(2074);function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewfooter:{flexDirection:"row",width:"100%",height:60,backgroundColor:B,position:"web"===u.default.OS?"fixed":"relative",bottom:0},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"17%":"35%"},menu3:{backgroundColor:B,width:80,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:"40%",top:"web"==u.default.OS?"15%":"35%"},textheader:{backgroundColor:B,width:70,height:50,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"10%":"22%"},filter:{backgroundColor:B,width:110,height:50,alignItems:"center",justifyContent:"center",flexDirection:"row",position:"absolute",left:"0%",top:"web"==u.default.OS?"12%":"22%"}});const In=function(e){var t=(0,f.useState)(""),n=(0,i.default)(t,2),a=(n[0],n[1]),l=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),s=(0,de.useDispatch)(),d=(0,f.useState)(!1),c=(0,i.default)(d,2),h=c[0],m=c[1],b=(0,f.useState)(!1),v=(0,i.default)(b,2),S=v[0],O=v[1],z=(0,f.useState)(),k=(0,i.default)(z,2),P=k[0],M=k[1],I=(0,f.useState)(""),D=(0,i.default)(I,2),L=D[0],A=D[1],E=(0,f.useState)([]),H=(0,i.default)(E,2),N=H[0],V=H[1],q=(0,f.useState)(!1),G=(0,i.default)(q,2),Q=G[0],K=G[1],J=(0,f.useState)({first_name:"",last_name:"",job:"",mobile:"",state_id:"",city_id:"",edit:!1}),Y=(0,i.default)(J,2),Z=Y[0],X=Y[1],$=(0,f.useState)(!1),ee=(0,i.default)($,2),te=ee[0],ne=ee[1],ie=function(){var e=(0,r.default)((function*(){try{ne(!0);var e=yield s((t=l,n=Z.first_name,o=Z.last_name,i=Z.job,a=Z.state_id,d=Z.city_id,function(){var e=(0,r.default)((function*(e){var r={Accept:"application/json",Authorization:"Bearer "+t},l=new(W());return l.append("first_name",n),l.append("last_name",o),l.append("job",i),l.append("state_id",a),l.append("city_id",d),fetch("https://npln.ir/api/v1/user/edit",{method:"POST",headers:r,body:l}).then((function(e){return e.json()})).then((function(t){return e({type:U,data:t}),t})).catch((function(e){return console.log("error",e)}))}));return function(t){return e.apply(this,arguments)}}()));"error"==e.status&&(K(!0),M(e.message)),"success"==e.status&&(K(!0),M("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")),ne(!1)}catch(u){console.log(u)}var t,n,o,i,a,d}));return function(){return e.apply(this,arguments)}}(),ue=function(){var e=(0,r.default)((function*(){try{m(!0);var e=yield s(le(l));X(e.data.data.user),A(e.data.data.user.city),V(e.data.data.links),e.data.data.user.city_id&&De(e.data.data.user.state_id),m(!1)}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}(),fe=(0,ot.useIsFocused)();(0,f.useEffect)((function(){ue(),ve(),l||Le()}),[fe]);for(var me=(0,f.useState)(""),ye=(0,i.default)(me,2),xe=ye[0],be=ye[1],ve=function(){var e=(0,r.default)((function*(){try{var e=yield s(re(l));e.data.data.states.length>0&&(be(e.data.data.states),Z.state_id&&De(Z.state_id))}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}(),Se=[],Ce=0;Ce<xe.length;Ce++)Se.push((0,ge.jsx)(gn.default.Item,{_text:{style:{fontFamily:"Montserrat"}},label:xe[Ce].state,value:xe[Ce].id},Ce));for(var Me=(0,f.useState)(""),Be=(0,i.default)(Me,2),Te=Be[0],Fe=Be[1],De=function(){var e=(0,r.default)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{a(e),1==t&&X(Tn(Tn({},Z),{},{state_id:e}));var n=yield s(ae(l,e));Fe(n.data.data.cities)}catch(o){console.log(o)}}));return function(t){return e.apply(this,arguments)}}(),_e=[],Re=0;Re<Te.length;Re++)_e.push((0,ge.jsx)(gn.default.Item,{_text:{style:{fontFamily:"Montserrat"}},label:Te[Re].city,value:Te[Re].id},Re));var Le=function(){var t=(0,r.default)((function*(){try{yield s(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),Ae=function(){var e=(0,r.default)((function*(){try{var e=yield Mn.default.share({title:" \u067e\u0644\u0646\u0631\u0633 \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f",message:"https://npln.ir"});e.action===Mn.default.sharedAction?e.activityType:(e.action,Mn.default.dismissedAction)}catch(t){$e.default.alert(t.message)}}));return function(){return e.apply(this,arguments)}}(),Ee=o(4147),We=(0,ke.useMediaQuery)({maxWidth:500}),He=(0,i.default)(We,1)[0];return h?(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:C},children:[(0,ge.jsx)(x.default,{animating:h,size:30,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:B,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]})}):(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:He?"100%":500,height:"100%",marginLeft:He?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,alignItems:"center",justifyContent:"center",backgroundColor:B},children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Fn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Fn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"})}),(0,ge.jsxs)(he.default,{style:Fn.menu3,onPress:function(){return e.navigation.navigate("splash")},children:[(0,ge.jsx)(ce.default,{name:"reload",size:30,color:C}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u0628\u0627\u0631\u06af\u0632\u0627\u0631\u06cc \u0645\u062c\u062f\u062f"})]}),(0,ge.jsxs)(he.default,{onPress:function(){return O(!0)},style:Fn.filter,children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u062e\u0631\u0648\u062c"}),(0,ge.jsx)(we.default,{name:"log-out-outline",size:30,color:C})]})]}),(0,ge.jsxs)(Ie.default,{style:{marginBottom:10},children:[!0!==Z.edit?(0,ge.jsxs)(he.default,{onPress:function(){X(Tn(Tn({},Z),{},{edit:!0}))},style:{flexDirection:"row",width:"80%",height:90,borderWidth:3,borderStyle:"dashed",marginBottom:"5%",borderColor:B,marginTop:"10%",borderRadius:10,marginLeft:"10%"},children:[(0,ge.jsxs)(g.default,{style:{width:"30%",height:"100%",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[(0,ge.jsx)(we.default,{name:"create-outline",size:30,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:B},children:"\u0648\u06cc\u0631\u0627\u06cc\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a"})]}),(0,ge.jsxs)(g.default,{style:{width:"70%",height:"100%",flexDirection:"column",justifyContent:"center",alignItems:"flex-end"},children:[(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:19,color:B,marginRight:10},children:[Z.first_name," ",Z.last_name]}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:B,marginRight:10},children:L.city})]})]}):(0,ge.jsxs)(dt.default,{children:[(0,ge.jsx)(Oe,{label:"\u0646\u0627\u0645 ",styleview:{marginTop:"13%"},stylelabel:{width:"8%"},value:Z.first_name,onChangeText:function(e){return X(Tn(Tn({},Z),{},{first_name:e}))},styleinput:"web"===u.default.OS&&{outlineColor:B,outlineStyle:"none"},keyboardType:"default"}),(0,ge.jsx)(Oe,{label:"\u0646\u0627\u0645 \u062e\u0627\u0646\u0648\u0627\u062f\u06af\u06cc",styleview:{marginTop:"9%"},stylelabel:{width:"23%"},value:Z.last_name,onChangeText:function(e){return X(Tn(Tn({},Z),{},{last_name:e}))},styleinput:"web"===u.default.OS&&{outlineColor:B,outlineStyle:"none"}}),(0,ge.jsx)(Oe,{label:"\u062a\u062e\u0635\u0635",styleview:{marginTop:"9%"},stylelabel:{width:"15%"},value:Z.job,onChangeText:function(e){return X(Tn(Tn({},Z),{},{job:e}))},styleinput:"web"===u.default.OS&&{outlineStyle:"none",outlineColor:B}}),(0,ge.jsx)(Oe,{label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644",styleview:{marginTop:"9%"},stylelabel:{width:"23%"},editable:!1,value:Z.mobile}),(0,ge.jsxs)(g.default,{style:{flexDirection:"column",width:"100%",alignItems:"center",marginRight:"5%",marginTop:10},children:[(0,ge.jsx)(g.default,{style:{width:"11%",height:20,backgroundColor:C,alignItems:"center",zIndex:2,left:"web"===u.default.OS?"30%":"36%",top:"web"===u.default.OS?"7%":"18%"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u0627\u0633\u062a\u0627\u0646"})}),"web"===u.default.OS?"":(0,ge.jsx)(we.default,{name:"chevron-down-outline",size:18,color:_,style:{zIndex:2,top:"34%",right:"40%"}}),(0,ge.jsx)(gn.default,{style:{backgroundColor:C},selectedValue:parseInt(Z.state_id),w:"web"===u.default.OS?355:"90%",h:60,dropdownIcon:!0,paddingRight:3,paddingLeft:"web"===u.default.OS?"60%":0,borderColor:_,borderWidth:1,bottom:1,fontFamily:"Montserrat",fontSize:12,flexDirection:"row-reverse",accessibilityLabel:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",placeholder:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",onValueChange:function(e){X(Tn(Tn({},Z),{},{state_id:e})),De(e)},_selectedItem:{bg:B,startIcon:(0,ge.jsx)(mn.CheckIcon,{size:5,color:R})},children:Se})]}),(0,ge.jsxs)(g.default,{style:{flexDirection:"column",width:"100%",alignItems:"center",marginRight:"5%"},children:[(0,ge.jsx)(g.default,{style:{width:"9%",height:20,backgroundColor:C,alignItems:"center",zIndex:2,left:"web"===u.default.OS?"30%":"36%",top:"web"===u.default.OS?"7%":"18%"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u0634\u0647\u0631"})}),"web"===u.default.OS?"":(0,ge.jsx)(we.default,{name:"chevron-down-outline",size:18,color:_,style:{zIndex:2,top:"34%",right:"40%"}}),(0,ge.jsx)(gn.default,{style:{backgroundColor:C},selectedValue:parseInt(Z.city_id),w:"web"===u.default.OS?355:"90%",h:60,dropdownIcon:!0,paddingRight:3,paddingLeft:"web"===u.default.OS?"60%":0,borderColor:_,borderWidth:1,bottom:1,fontFamily:"Montserrat",fontSize:12,flexDirection:"row-reverse",accessibilityLabel:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",placeholder:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",onValueChange:function(e){return X(Tn(Tn({},Z),{},{city_id:e}))},_selectedItem:{bg:B,startIcon:(0,ge.jsx)(mn.CheckIcon,{size:5,color:R})},children:_e})]}),(0,ge.jsx)(pe,{label:"\u062b\u0628\u062a \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a ",style:{marginLeft:"5%",marginTop:"10%",marginBottom:"5%",height:55},textStyle:{bottom:10},loading:te,colorspin:C,sizespin:25,onPress:function(){ie()}})]}),(0,ge.jsxs)(he.default,{onPress:Ae,style:{flexDirection:"row",width:"80%",height:30,alignItems:"center",justifyContent:"flex-end",marginBottom:"2%"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:B},children:"\u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646"}),(0,ge.jsx)(g.default,{style:{marginLeft:20,width:30,height:30,borderTopStartRadius:5,borderBottomStartRadius:5,backgroundColor:B,justifyContent:"center",alignItems:"center"},children:(0,ge.jsx)(we.default,{name:"share-social",size:25,color:C})})]}),(0,ge.jsx)(g.default,{style:{width:"50%",height:1,backgroundColor:B,left:"20%"}}),N.map((function(t,n){return(0,ge.jsxs)(dt.default,{children:[(0,ge.jsxs)(he.default,{onPress:function(){var n;"web"==u.default.OS?(n=t.link,je.default.openURL(n)):e.navigation.navigate("web",{addressweb:t.link})},style:{flexDirection:"row",width:"80%",height:30,alignItems:"center",justifyContent:"flex-end",marginBottom:"2%"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:B},children:t.name}),(0,ge.jsx)(g.default,{style:{marginLeft:20,width:30,height:30,borderTopStartRadius:5,borderBottomStartRadius:5,backgroundColor:B,justifyContent:"center",alignItems:"center"},children:(0,ge.jsx)(we.default,{name:"\u0634\u0631\u0627\u06cc\u0637 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0648 \u0642\u0648\u0627\u0646\u06cc\u0646"==t.name?"newspaper":"\u062f\u0631\u0628\u0627\u0631\u0647 \u067e\u0644\u0646\u0631\u0633"==t.name?"information":"\u0622\u0645\u0648\u0632\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646"==t.name?"book":"\u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc \u0627\u067e"==t.name?"share-social":"\u0646\u0633\u062e\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646"==t.name?"layers":"add",size:25,color:C})})]}),(0,ge.jsx)(g.default,{style:{width:"50%",height:1,backgroundColor:B,left:"20%"}})]},n)})),(0,ge.jsxs)(g.default,{style:{width:"80%",height:30,alignItems:"center",justifyContent:"flex-end",marginBottom:"2%",flexDirection:"row"},children:[(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:B},children:["\u0646\u0633\u062e\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 : ",Ee.version]}),(0,ge.jsx)(g.default,{style:{marginLeft:20,width:30,height:30,borderTopStartRadius:5,borderBottomStartRadius:5,backgroundColor:B,justifyContent:"center",alignItems:"center"},children:(0,ge.jsx)(we.default,{name:"layers",size:25,color:C})})]}),(0,ge.jsx)(g.default,{style:{width:"50%",height:1,backgroundColor:B,left:"20%"}}),(0,ge.jsx)(ze.default,{show:Q,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==P?"":"\u0627\u062e\u0637\u0627\u0631",message:P,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==P?(K(!1),e.navigation.navigate("home")):K(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}}),(0,ge.jsx)(ze.default,{show:S,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631 !",message:"\u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0627\u0631\u062c \u0645\u06cc \u0634\u0648\u06cc\u062f\u061f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u0627\u0646\u0635\u0631\u0627\u0641",confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,cancelButtonColor:B,onCancelPressed:function(){O(!1)},onConfirmPressed:function(){Le(),O(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:F},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]}),(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:He?"100%":500,height:60,backgroundColor:B,position:"web"===u.default.OS?"fixed":"relative",bottom:0},children:[(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},style:{width:"15%",height:60,position:"absolute",right:"5%",alignItems:"center",padding:5},children:[(0,ge.jsx)(we.default,{name:"reader-outline",size:25,color:C}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u0633\u0641\u0627\u0631\u0634\u0627\u062a"})]}),(0,ge.jsxs)(g.default,{style:{width:"15%",height:60,alignItems:"center",left:15,top:0},children:[(0,ge.jsx)(g.default,{style:{width:50,height:50,borderRadius:25,backgroundColor:w,borderWidth:5,borderColor:C,bottom:28,alignItems:"center",justifyContent:"center"},children:(0,ge.jsx)(ce.default,{name:"badge-account-outline",size:25,color:C})}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:j,position:"absolute",bottom:15},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"}),(0,ge.jsx)(g.default,{style:{width:30,height:5,borderRadius:5,backgroundColor:w,position:"absolute",bottom:5}})]}),(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("home")},style:{width:"30%",height:60,left:"35%",alignItems:"center",flexDirection:"column",position:"absolute"},children:[(0,ge.jsx)(we.default,{name:"home-outline",size:25,color:C}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc"})]})]})]})})};var Dn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,alignItems:"center"},viewtitle:{width:"100%",height:80,alignItems:"center",justifyContent:"center",backgroundColor:C},touch:{flexDirection:"row",width:"90%",height:50,backgroundColor:O,marginTop:8,borderRadius:10},viewHeader:{flexDirection:"row",width:"100%",height:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"35%"},textheader:{backgroundColor:B,width:100,height:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"22%"}});const _n=function(e){var t=(0,f.useState)(!1),n=(0,i.default)(t,2),o=n[0],a=n[1],l=(0,f.useState)([]),s=(0,i.default)(l,2),d=s[0],c=s[1],h=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),m=(0,de.useDispatch)(),b=function(){var t=(0,r.default)((function*(){try{a(!0);var t=yield m(ae(h,e.route.params.ids));c(t.data.data.cities),a(!1)}catch(n){console.log(n)}}));return function(){return t.apply(this,arguments)}}();(0,f.useEffect)((function(){b()}),[]);var j=function(){var t=(0,r.default)((function*(t){try{yield function(e,t,n){var o={Accept:"application/json",Authorization:"Bearer "+e},i=new(W());i.append("state_id",t),i.append("city_id",n),fetch("https://npln.ir/api/v1/user/state-city",{method:"POST",headers:o,body:i}).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){return console.log("error",e)}))}(h,e.route.params.ids,t)}catch(n){console.log(n)}}));return function(e){return t.apply(this,arguments)}}();return(0,ge.jsxs)(Pe.NativeBaseProvider,{children:[(0,ge.jsxs)(g.default,{style:Dn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{style:Dn.menu,children:(0,ge.jsx)(we.default,{onPress:function(){return e.navigation.goBack()},name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(g.default,{style:Dn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u0647\u0631"})})]}),(0,ge.jsx)(g.default,{style:Dn.viewtitle,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:20,position:"absolute"},children:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"})}),(0,ge.jsx)(Ie.default,{style:{backgroundColor:C},children:(0,ge.jsx)(g.default,{style:Dn.viewContainer,children:o?(0,ge.jsxs)(g.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:C},children:[(0,ge.jsx)(x.default,{animating:o,size:30,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:B,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]}):d.map((function(t,n){return(0,ge.jsxs)(he.default,{onPress:function(){j(t.id),e.navigation.navigate("home")},style:Dn.touch,children:[(0,ge.jsx)(we.default,{name:"arrow-back-outline",size:25,color:B,style:{position:"absolute",left:"5%",top:"web"==u.default.OS?"28%":"20%"}}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:15,color:R,position:"absolute",right:"5%",top:"web"==u.default.OS?"28%":"20%"},children:t.city})]},n)}))})})]})};var Rn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:O},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},viewmodal:{flexDirection:"row",width:"100%",height:60,marginTop:"10%",backgroundColor:O},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"20%":"35%"},textheader:{backgroundColor:B,width:140,height:"web"==u.default.OS?40:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"22%"}});const Ln=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)(!1),a=(0,i.default)(o,2),l=(a[0],a[1]),s=(0,f.useState)([]),d=(0,i.default)(s,2),c=d[0],h=d[1],x=function(){var e=(0,r.default)((function*(){try{l(!0);var e=yield n((o=t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o};return A()({method:"get",url:"https://npln.ir/api/v1/app/category-order",headers:t}).then((function(t){var n=t.data;return e({type:Tt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));h(e.data.data.category),l(!1)}catch(i){}var o}));return function(){return e.apply(this,arguments)}}();!function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}))}();(0,f.useEffect)((function(){x()}),[]);var b=(0,ke.useMediaQuery)({maxWidth:500}),j=(0,i.default)(b,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:j?"100%":500,height:"100%",marginLeft:j?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:Rn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Rn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Rn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0633\u0641\u0627\u0631\u0634"})})]}),(0,ge.jsx)(Ie.default,{style:{backgroundColor:S},children:(0,ge.jsx)(g.default,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",width:"100%",marginTop:10,padding:"5%"},children:c.map((function(t,n){return(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("chat",{idcategory:t.id})},style:{backgroundColor:D,width:"45%",height:250,marginTop:"5%",borderWidth:2,borderColor:I,borderRadius:10,flexDirection:"column",alignItems:"center"},children:[(0,ge.jsx)(m.default,{source:{uri:"https://npln.ir"+t.image},alt:"image",style:{width:"100%",height:"70%",borderTopRightRadius:10,borderTopLeftRadius:10}}),(0,ge.jsx)(g.default,{style:{width:"100%",height:"30%",padding:10,justifyContent:"center",alignItems:"center"},children:(0,ge.jsx)(y.default,{numberOfLines:2,style:{fontFamily:"Montserrat",fontSize:12},children:t.title})})]},n)}))})})]})})};var An=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},viewmodal:{flexDirection:"row",width:"100%",height:55,backgroundColor:C},viewfooter:{position:"absolute",bottom:0,flexDirection:"row",width:"100%",height:60,backgroundColor:C,justifyContent:"center"},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"20%":"35%"},textheader:{backgroundColor:B,width:120,height:"web"==u.default.OS?40:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"22%"},viewlogo:{width:"100%",height:40,alignItems:"center",justifyContent:"center",marginTop:"10%"},texttitel:{fontFamily:"MontserratBold",fontSize:20,bottom:30,position:"absolute"},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30},touch:{flexDirection:"column",alignItems:"center",width:"90%",height:180,backgroundColor:S,marginTop:10,marginBottom:10,left:"5%",borderRadius:10,borderWidth:1,borderColor:_},texttouch:{fontFamily:"Montserrat",fontSize:12,color:_}});const En=function(e){function t(){return e.navigation.navigate("orderlist",{refresh:"true"}),!0}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",t),function(){et.default.removeEventListener("hardwareBackPress",t)}}),[]);var n="https://dl.dasterang.ir/ssdteam/npln/",o=(0,ke.useMediaQuery)({maxWidth:500}),r=(0,i.default)(o,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:r?"100%":500,height:"100%",marginLeft:r?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:An.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},style:An.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},style:An.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0644\u06cc\u0633\u062a \u062f\u0627\u0646\u0644\u0648\u062f \u0647\u0627"})})]}),(0,ge.jsx)(Ie.default,{children:(0,ge.jsx)(g.default,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",width:"100%",padding:5},children:""==e.route.params.name?e.route.params.file.map((function(t,o){return(0,ge.jsx)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:n+t.address,type:t.size})},style:{width:"32%",height:150,borderWidth:1,borderColor:_,justifyContent:"center",alignItems:"center",marginBottom:5},children:"jpg"==t.size||"png"==t.size||"jpeg"==t.size||"jfif"==t.mims?(0,ge.jsx)(m.default,{source:{uri:"https://npln.ir"+t.name},alt:t.type,style:{width:"100%",height:"100%"}}):"m4a"==t.size||"mp3"==t.size||"mpeg"==t.size?(0,ge.jsx)(ce.default,{name:"microphone",size:130,color:B}):"mp4"==t.size?(0,ge.jsx)(ce.default,{name:"file-video",size:130,color:B}):(0,ge.jsx)(ce.default,{name:"file-download",size:130,color:B})},o)})):e.route.params.file3D.map((function(e,t){return(0,ge.jsx)(he.default,{onPress:function(){var t;t=e.id,je.default.openURL("https://npln.ir/three/"+t)},style:{width:"32%",height:150,borderWidth:1,borderColor:_,justifyContent:"center",alignItems:"center",marginBottom:5},children:(0,ge.jsx)(m.default,{source:{uri:"https://npln.ir"+e.name},alt:e.type,style:{width:"100%",height:"100%"}})},t)}))})})]})})};var Wn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"15%":"35%"},textheader:{backgroundColor:B,width:110,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"15%":"33%"},textinput:{paddingLeft:"web"===u.default.OS?"40%":0,flexDirection:"row",width:"90%",height:60,backgroundColor:O,position:"absolute",left:"5%",borderRadius:10,borderWidth:1,borderColor:_,padding:10,paddingRight:50,fontFamily:"Montserrat",marginTop:15},view:{flexDirection:"column",alignItems:"center",width:"90%",height:300,backgroundColor:S,marginTop:10,left:"5%",borderWidth:2,borderColor:I,borderRadius:10,marginBottom:10},texttitle:{fontFamily:"Montserrat",fontSize:13,color:R},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textlineR:{fontFamily:"Montserrat",fontSize:13,color:R,position:"absolute",right:"5%"}});const Hn=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)(""),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,f.useState)(""),c=(0,i.default)(d,2),h=c[0],m=c[1],x=(0,f.useState)(4),b=(0,i.default)(x,2),j=b[0],w=b[1],v=(0,f.useState)(""),O=(0,i.default)(v,2),z=O[0],k=O[1],P=function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),M=function(){var o=(0,r.default)((function*(){try{var o=yield n((i=t,a=e.route.params.ids,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://npln.ir/api/v1/app/single-services?services_id="+a;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Wt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));k(o.data.data.single_services),s(o.data.data.single_services.state),m(o.data.data.single_services.city)}catch(l){}var i,a}));return function(){return o.apply(this,arguments)}}();(0,f.useEffect)((function(){M(),t||P()}),[]);function F(){return e.navigation.goBack(),!0}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",F),function(){et.default.removeEventListener("hardwareBackPress",F)}}),[]);var L=(0,ke.useMediaQuery)({maxWidth:500}),E=(0,i.default)(L,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:E?"100%":500,height:"100%",marginLeft:E?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:Wn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Wn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Wn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u062c\u0632\u0626\u06cc\u0627\u062a \u062e\u062f\u0645\u0627\u062a\u06cc"})})]}),(0,ge.jsx)(g.default,{style:{justifyContent:"center",alignItems:"center",width:"90%",height:50,marginBottom:10,backgroundColor:D,left:20,marginTop:10,borderRadius:20,borderWidth:1,borderColor:_},children:(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:20,color:R},children:[z.first_name," ",z.last_name]})}),(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:"90%",height:50,marginBottom:10,backgroundColor:D,left:20,marginTop:10,borderRadius:20,borderWidth:1,borderColor:_,alignItems:"center",justifyContent:"space-between",paddingRight:"3%",paddingLeft:"3%"},children:[(0,ge.jsx)(he.default,{onPress:function(){w(1)},style:{justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:1==j?"MontserratBold":"Montserrat",fontSize:14,color:1==j?B:R},children:"\u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0627 \u0645\u0627"})}),(0,ge.jsx)(he.default,{onPress:function(){w(2)},style:{justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:2==j?"MontserratBold":"Montserrat",fontSize:14,color:2==j?B:R},children:"\u0642\u06cc\u0645\u062a"})}),(0,ge.jsx)(he.default,{onPress:function(){w(3)},style:{justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:3==j?"MontserratBold":"Montserrat",fontSize:14,color:3==j?B:R},children:"\u0645\u0627\u0634\u06cc\u0646 \u0627\u0644\u0627\u062a"})}),(0,ge.jsx)(he.default,{onPress:function(){w(4)},style:{justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:4==j?"MontserratBold":"Montserrat",fontSize:14,color:4==j?B:R},children:"\u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0644\u06cc"})})]}),4==j?(0,ge.jsxs)(g.default,{style:Wn.view,children:[(0,ge.jsx)(g.default,{style:{backgroundColor:D,borderRadius:20,width:"40%",height:40,marginTop:10,marginBottom:8,justifyContent:"center",alignItems:"center",left:"27%"},children:(0,ge.jsxs)(y.default,{style:Wn.texttitle,children:[l.state,", ",h.city]})}),(0,ge.jsx)(g.default,{style:Wn.viewline,children:(0,ge.jsx)(y.default,{style:Wn.textlineR,children:z.address})}),(0,ge.jsx)(g.default,{style:Wn.viewline,children:(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:16,color:R,position:"absolute",right:"5%"},children:[z.first_name,z.last_name]})}),(0,ge.jsx)(g.default,{style:{width:"90%",height:300,marginTop:10},children:(0,ge.jsx)(y.default,{numberOfLines:7,style:{textAlign:"right",fontFamily:"Montserrat",fontSize:16,color:R},children:z.description})})]}):(0,ge.jsx)(g.default,{}),3==j?(0,ge.jsx)(g.default,{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"center",width:"90%",alignSelf:"auto",backgroundColor:S,marginTop:10,left:"3%",borderWidth:1,borderColor:I,borderRadius:10,elevation:2,marginBottom:10},children:z.machinery.map((function(e,t){return(0,ge.jsx)(g.default,{style:{borderWidth:2,borderColor:_,marginLeft:10,marginRight:10,backgroundColor:D,borderRadius:20,width:"40%",height:60,marginTop:20,marginBottom:20,justifyContent:"center",alignItems:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:13,color:R},children:e.name})},t)}))}):(0,ge.jsx)(g.default,{}),2==j?(0,ge.jsx)(Ie.default,{children:(0,ge.jsxs)(g.default,{style:{flexDirection:"column",alignItems:"center",width:"90%",alignSelf:"auto",backgroundColor:S,marginTop:10,left:"5%",borderWidth:1,borderColor:I,borderRadius:10,elevation:2},children:[(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:"100%",height:40,borderTopRightRadius:10,borderTopLeftRadius:10},children:[(0,ge.jsx)(g.default,{style:{width:"30%",height:40,borderTopLeftRadius:10,borderBottomWidth:1,borderRightWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R},children:"\u0642\u06cc\u0645\u062a \u0648\u0627\u062d\u062f(\u0631\u06cc\u0627\u0644)"})}),(0,ge.jsx)(g.default,{style:{width:"60%",height:40,alignItems:"center",borderBottomWidth:1,justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R},children:"\u0634\u0631\u062d \u062e\u062f\u0645\u0627\u062a"})}),(0,ge.jsx)(g.default,{style:{width:"10%",height:40,borderTopRightRadius:10,borderBottomWidth:1,borderLeftWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R},children:"\u0631\u062f\u06cc\u0641"})})]}),z.prices.map((function(e,t){return(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:"100%",height:40,borderTopRightRadius:10,borderTopLeftRadius:10},children:[(0,ge.jsx)(g.default,{style:{width:"30%",height:40,borderTopLeftRadius:10,borderRightWidth:1,borderBottomWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R},children:(n=JSON.stringify(e.price),n.replace(/\D/g,"").toString().replace(/\B(?=(\d{3})+(?!\d))/g,","))})}),(0,ge.jsx)(g.default,{style:{width:"60%",height:40,borderBottomWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:R},children:e.service})}),(0,ge.jsx)(g.default,{style:{width:"10%",height:40,borderTopRightRadius:10,borderLeftWidth:1,borderBottomWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:R},children:t+1})})]},t);var n}))]})}):(0,ge.jsx)(g.default,{}),1==j?(0,ge.jsxs)(g.default,{style:Wn.view,children:[(0,ge.jsx)(g.default,{style:{backgroundColor:D,borderRadius:20,width:"40%",height:40,marginTop:10,marginBottom:8,justifyContent:"center",alignItems:"center",left:"27%"},children:(0,ge.jsxs)(y.default,{style:Wn.texttitle,children:[l.state,", ",h.city]})}),(0,ge.jsx)(g.default,{style:Wn.viewline,children:(0,ge.jsx)(y.default,{style:Wn.textlineR,children:z.address})}),(0,ge.jsxs)(he.default,{onPress:function(){je.default.openURL("tel:"+z.mobile)},style:{flexDirection:"row",borderWidth:2,borderColor:_,marginLeft:10,marginRight:10,borderRadius:20,width:"50%",height:60,marginTop:20,marginBottom:8,justifyContent:"center",alignItems:"center"},children:[(0,ge.jsx)(g.default,{style:{elevation:5,width:40,height:40,borderRadius:20,backgroundColor:T,alignItems:"center",justifyContent:"center",marginRight:10},children:(0,ge.jsx)(we.default,{name:"call",size:25,color:C})}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:13,color:R},children:"\u062a\u0645\u0627\u0633 \u0628\u0627 \u062e\u062f\u0645\u0627\u062a\u06cc"})]})]}):(0,ge.jsx)(g.default,{})]})})};var Nn=o(9753),Vn=o(1234),qn=o(7954),Un=o(9751),Gn=o.n(Un),Qn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"15%":"35%"},textheader:{backgroundColor:B,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"15%":"35%"},textheader1:{backgroundColor:B,width:100,height:40,alignItems:"flex-start",justifyContent:"flex-end",position:"absolute",left:"3%",top:"web"==u.default.OS?"15%":"35%"},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30}});const Kn=function(e){var t=(0,f.useState)(!1),n=(0,i.default)(t,2),o=n[0],a=n[1],l=(0,f.useRef)(null);function s(){return l.current.goBack(),!0}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",s),function(){et.default.removeEventListener("hardwareBackPress",s)}}),[]);var d={uri:e.route.params.addressweb},c=function(){var t=(0,r.default)((function*(){var t=Gn()().format("YYYYMMDDhhmmss"),n=qn.documentDirectory+(t+".")+e.route.params.type;try{var o=yield qn.downloadAsync(d.uri,n);h(o.uri)}catch(i){console.log("FS Err: ",i)}}));return function(){return t.apply(this,arguments)}}(),h=function(){var t=(0,r.default)((function*(t){var n=(yield Vn.requestPermissionsAsync()).status;if("granted"===n)try{var o=yield Vn.createAssetAsync(t),i=yield Vn.getAlbumAsync("Download");null==i?yield Vn.createAlbumAsync("Download",o,!1):(yield Vn.addAssetsToAlbumAsync([o],i,!1),$e.default.alert("\u0645\u0648\u0641\u0642!","\u0641\u0627\u06cc\u0644 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f",[{text:"\u0628\u0627\u0634\u0647",onPress:function(){return e.navigation.pop()}}]))}catch(r){console.log("Save err: ",r)}else"denied"===n&&alert("please allow permissions to download")}));return function(e){return t.apply(this,arguments)}}(),m={message:e.route.params.addressweb},x=(0,ke.useMediaQuery)({maxWidth:500}),b=(0,i.default)(x,1)[0];return(0,ge.jsxs)(g.default,{style:{width:b?"100%":500,height:"100%",marginLeft:b?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:Qn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Qn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Qn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:17,color:C,padding:"5%"},children:"\u0628\u0633\u062a\u0646"})}),(0,ge.jsx)(he.default,{onPress:function(){return a(!0)},style:Qn.textheader1,children:(0,ge.jsx)(we.default,{name:"ellipsis-vertical",size:25,color:C})})]}),"web"==u.default.OS?(0,ge.jsx)("iframe",{id:"iFrameExample",style:{height:"100%",width:"100%"},title:"iFrame Example",src:e.route.params.addressweb}):(0,ge.jsx)(Nn.WebView,{ref:l,style:{width:"100%",height:500},source:{uri:e.route.params.addressweb}}),(0,ge.jsx)(ze.default,{show:o,showProgress:!1,title:"\u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",closeOnTouchOutside:!0,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u0630\u062e\u06cc\u0631\u0647 \u062f\u0631 \u06af\u0627\u0644\u0631\u06cc",confirmText:"\u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc",confirmButtonColor:T,onCancelPressed:function(){c(),a(!1)},onConfirmPressed:function(){Mn.default.share(m),a(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0},confirmButtonStyle:{width:"45%",height:40,alignItems:"center"},cancelButtonStyle:{width:"45%",height:40,backgroundColor:B,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==u.default.OS?5:0}})]})};function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zn=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},viewmodal:{width:"100%",height:55,marginBottom:30,backgroundColor:C},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textlineR:{fontFamily:"Montserrat",fontSize:13,color:R,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"15%":"35%"},textheader:{backgroundColor:B,width:60,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"15%":"35%"},payam:{width:60,height:50,justifyContent:"center",alignItems:"center",position:"absolute",left:15,top:"20%"},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30}});const Xn=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,f.useState)(),c=(0,i.default)(d,2),h=c[0],m=c[1],b=(0,f.useState)([]),j=(0,i.default)(b,2),w=j[0],O=j[1],z=(0,f.useState)(1),k=(0,i.default)(z,2),P=k[0],D=k[1],_=(0,f.useState)({showModal1:!1,isLoading:!1,isLoading1:!1,title:"",msg:""}),L=(0,i.default)(_,2),E=L[0],H=L[1],N=function(){var t=(0,r.default)((function*(){try{yield n(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),V=function(){var e=(0,r.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"false";try{var o=P;"true"==e&&(D(1),o=1),H(Yn(Yn({},E),{},{isLoading:!0}));var i=yield n(function(e,t){return function(){var n=(0,r.default)((function*(n){var o={Accept:"application/json",Authorization:"Bearer "+e},i="https://npln.ir/api/v1/app/ticket/tickets?page="+t;return A()({method:"get",url:i,headers:o}).then((function(e){var t=e.data;return n({type:J,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return n.apply(this,arguments)}}()}(t,o));O("true"==e?(0,on.default)(i.data.data.tickets.data):[].concat((0,on.default)(w),(0,on.default)(i.data.data.tickets.data))),H(Yn(Yn({},E),{},{isLoading:!1}))}catch(a){}}));return function(){return e.apply(this,arguments)}}(),q=function(){var e=(0,r.default)((function*(){try{H(Yn(Yn({},E),{},{isLoading1:!0}));var e=yield n(function(e,t,n){return function(){var o=(0,r.default)((function*(o){var i={Accept:"application/json",Authorization:"Bearer "+e},r=new(W());return r.append("type","text"),r.append("title",t),r.append("msg",n),fetch("https://npln.ir/api/v1/app/ticket/add",{method:"POST",headers:i,body:r}).then((function(e){return e.json()})).then((function(e){return o({type:K,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return o.apply(this,arguments)}}()}(t,E.title,E.msg));"success"==e.status?(s(!0),m("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==e.status&&(s(!0),m("\u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0627\u0644\u0632\u0627\u0645\u06cc \u0645\u06cc \u0628\u0627\u0634\u062f")),H(Yn(Yn({},E),{},{isLoading1:!1}))}catch(o){}}));return function(){return e.apply(this,arguments)}}(),U=(0,ot.useIsFocused)();function G(){return e.navigation.goBack(),!0}(0,f.useEffect)((function(){V("true"),t||N()}),[P,U]),(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",G),function(){et.default.removeEventListener("hardwareBackPress",G)}}),[]);var Q=(0,ke.useMediaQuery)({maxWidth:500}),Y=(0,i.default)(Q,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:Y?"100%":500,height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:Zn.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Zn.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:Zn.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646"})})]}),(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"xl",isOpen:E.showModal1,onClose:function(){return H(Yn(Yn({},E),{},{showModal1:!1}))},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:50},children:(0,ge.jsx)(we.default,{onPress:function(){return H(Yn(Yn({},E),{},{showModal1:!1}))},name:"close",size:20,color:R})}),(0,ge.jsx)(Oe,{label:"\u0639\u0646\u0648\u0627\u0646",styleview:{marginTop:"3%",height:70},stylelabel:{width:"13%"},value:E.title,onChangeText:function(e){return H(Yn(Yn({},E),{},{title:e}))},styleinput:"web"===u.default.OS&&{outlineColor:B},keyboardType:"default"}),(0,ge.jsx)(Oe,{label:"\u062a\u0648\u0636\u06cc\u062d\u0627\u062a",multiline:!0,styleinput:{height:100},styleview:{height:100,marginBottom:"30%",marginTop:20},stylelabel:{width:65,top:"web"==u.default.OS?-9:-15},keyboardType:"default",value:E.msg,onChangeText:function(e){return H(Yn(Yn({},E),{},{msg:e}))}}),(0,ge.jsx)(pe,{touchableStyle:{width:"90%",height:50,backgroundColor:v},textStyle:{bottom:10,fontSize:16},style:{position:"absolute",left:"5%",bottom:10},onPress:function(){q(),"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==h&&H(Yn(Yn({},E),{},{showModal1:!1}))},colorspin:C,sizespin:25,label:"\u0627\u0641\u0632\u0648\u062f\u0646 ",loading:E.isLoading1})]})})})}),(0,ge.jsx)(g.default,{style:Zn.viewmodal,children:(0,ge.jsx)(pe,{nameicon:"plus",sizeicon:30,styleicon:{position:"absolute",left:120,top:"web"===u.default.OS?-5:-1},coloricon:C,touchableStyle:{width:"90%",height:50,backgroundColor:v},textStyle:{fontSize:16},style:{position:"absolute",left:"5%",top:10},onPress:function(){return H(Yn(Yn({},E),{},{showModal1:!0}))},colorspin:C,sizespin:25,label:"\u0627\u0631\u0633\u0627\u0644 \u067e\u06cc\u0627\u0645 \u0628\u0647 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})}),E.isLoading?(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:100,height:40,backgroundColor:v,borderRadius:10,alignItems:"center",justifyContent:"center",top:"90%",left:"35%",position:"absolute",zIndex:2},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,marginRight:10},children:"\u0628\u06cc\u0634\u062a\u0631"}),(0,ge.jsx)(x.default,{size:30,color:C})]}):(0,ge.jsx)(g.default,{}),(0,ge.jsx)(rn.default,{data:w,onEndReachedThreshold:.5,keyExtractor:function(e,t){return t.toString()},onEndReached:function(){return D(P+1)},enableEmptySections:!0,renderItem:function(t){var n=t.item,o=t.index;return(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("chatticket",{Ticketid:n.id,type:"close"==n.status?"ok":""})},style:{flexDirection:"column",alignItems:"center",width:"90%",height:80,backgroundColor:S,marginTop:10,left:"5%",borderWidth:2,borderColor:I,borderRadius:10,marginBottom:w.length>1?10:290},children:[(0,ge.jsx)(g.default,{style:Zn.viewline,children:(0,ge.jsxs)(y.default,{style:Zn.textlineR,children:[" \u0639\u0646\u0648\u0627\u0646 : ",(0,ge.jsx)(y.default,{style:Zn.textline,children:n.title})]})}),(0,ge.jsx)(g.default,{style:Zn.viewline,children:(0,ge.jsxs)(y.default,{style:Zn.textlineR,children:["\u0648\u0636\u0639\u06cc\u062a : ",(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:"pending"==n.status||"waiting"==n.status?B:T},children:"pending"==n.status?"\u062f\u0631 \u062d\u0627\u0644 \u0628\u0631\u0631\u0633\u06cc":"waiting"==n.status?"\u062f\u0631 \u0627\u0646\u062a\u0638\u0627\u0631 \u067e\u0627\u0633\u062e":"awnser"==n.status?"\u067e\u0627\u0633\u062e \u062f\u0627\u062f\u0647 \u0634\u062f\u0647":" \u0628\u0633\u062a\u0647 \u0634\u062f\u0647"})]})}),"no"==n.message.seen&&"user"!=n.message.status?(0,ge.jsxs)(g.default,{style:Zn.payam,children:[(0,ge.jsx)(ce.default,{name:"bell-ring",size:30,color:M}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:10,color:T},children:"\u067e\u06cc\u0627\u0645 \u062c\u062f\u06cc\u062f "})]}):(0,ge.jsx)(g.default,{})]},o)}}),(0,ge.jsx)(ze.default,{show:l,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==h?"":"\u0627\u062e\u0637\u0627\u0631",message:h,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==h?(s(!1),e.navigation.navigate("home")):s(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==h?T:F},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var to=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"20%":"35%"},menu1:{backgroundColor:B,width:110,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:"3%",top:"web"==u.default.OS?"17%":"35%",flexDirection:"row"},textheader:{backgroundColor:B,width:60,height:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"3%":"22%"},viewfooter:{flexDirection:"row",width:"100%",height:68,backgroundColor:D,position:"web"==u.default.OS?"fixed":"absolute",bottom:"web"==u.default.OS?0:.1}});const no=function(e){var t="https://dl.dasterang.ir/ssdteam/npln/",n=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),a=(0,de.useDispatch)(),l=(0,f.useState)(),s=(0,i.default)(l,2),d=s[0],c=s[1],h=(0,f.useState)(!1),b=(0,i.default)(h,2),j=b[0],w=b[1],v=(0,f.useState)({showModal:!1,isLoading:!1,isLoading1:!1,isLoading2:!1,stoped:!1}),z=(0,i.default)(v,2),M=z[0],F=z[1],L=(0,f.useState)(!1),E=(0,i.default)(L,2),W=E[0],H=E[1],N=(0,f.useState)(""),V=(0,i.default)(N,2),q=V[0],U=V[1],G=(0,f.useState)(""),Q=(0,i.default)(G,2),K=Q[0],J=Q[1],Y=(0,f.useState)(""),Z=(0,i.default)(Y,2),X=Z[0],$=Z[1],ee=(0,f.useState)(null),te=(0,i.default)(ee,2),ne=te[0],ie=te[1],re=(0,f.useState)(""),ae=(0,i.default)(re,2),le=ae[0],fe=ae[1],me=(0,f.useState)([]),ye=(0,i.default)(me,2),xe=ye[0],be=ye[1],ve=(0,f.useState)(!1),Se=(0,i.default)(ve,2),Ce=Se[0],Oe=Se[1],ze=function(){var t=(0,r.default)((function*(){try{yield a(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),Be=(0,f.useState)(0),Te=(0,i.default)(Be,2),Fe=Te[0],_e=Te[1];(0,f.useEffect)((function(){var e=setTimeout((function(){100!==Fe&&_e(Fe+1)}),1e3);return function(){clearTimeout(e)}}));var Re=function(){var t=(0,r.default)((function*(){if("web"==u.default.OS)try{if(F(eo(eo({},M),{},{isLoading1:!0})),q)"success"==(yield a(Dt(n,"text",q,e.route.params.Ticketid))).data.status&&Ee();if(le)"success"==(yield a(Dt(n,"file",le,e.route.params.Ticketid))).data.status&&Ee();F(eo(eo({},M),{},{isLoading1:!1}))}catch(t){}else try{if(F(eo(eo({},M),{},{isLoading1:!0})),q)"success"==(yield a(_t(n,"text",q,e.route.params.Ticketid))).data.status&&Ee();if(X)ie(""),fe(""),"success"==(yield a(_t(n,"file",X,e.route.params.Ticketid))).data.status&&Ee();if(le)$(""),ie(""),"success"==(yield a(_t(n,"file",le,e.route.params.Ticketid))).data.status&&Ee();if(ne)$(""),fe(""),"success"==(yield a(_t(n,"file",ne,e.route.params.Ticketid))).data.status&&Ee();F(eo(eo({},M),{},{isLoading1:!1}))}catch(t){}}));return function(){return t.apply(this,arguments)}}(),Le=(0,f.useRef)(null),Ae=(0,f.useRef)(null),Ee=function(){var t=(0,r.default)((function*(){try{F(eo(eo({},M),{},{isLoading1:!0}));var t=yield a((o=n,i=e.route.params.Ticketid,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o},n="https://npln.ir/api/v1/app/ticket/messages?ticket_id="+i;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Pt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));be(t.data.data.messages),F(eo(eo({},M),{},{isLoading1:!1}))}catch(l){}var o,i}));return function(){return t.apply(this,arguments)}}(),We=(0,ot.useIsFocused)();(0,f.useEffect)((function(){Ee(),n||ze(),Ze()}),[We]);var He=function(){var e=(0,r.default)((function*(){var e=yield ct.launchCameraAsync({mediaTypes:ft.MediaTypeOptions.All,allowsEditing:!1,quality:.7,base64:!1});e.canceled||(F(eo(eo({},M),{},{isLoading2:!0})),ie(e.assets[0].uri),w(!0),F(eo(eo({},M),{},{isLoading2:!1})))}));return function(){return e.apply(this,arguments)}}(),Ne=function(){var e=(0,r.default)((function*(){try{var e=yield ut.getDocumentAsync();fe(e.uri),void 0!==e.uri&&w(!0)}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();function Ve(){return(Ve=(0,r.default)((function*(){try{yield ht.requestPermissionsAsync(),yield gt.setAudioModeAsync({allowsRecordingIOS:!0,playsInSilentModeIOS:!0});var e=new ht.Recording;yield e.prepareToRecordAsync(mt.RecordingOptionsPresets.HIGH_QUALITY),yield e.startAsync(),c(e)}catch(t){console.error("Failed to start recording",t)}}))).apply(this,arguments)}function qe(){return(qe=(0,r.default)((function*(){F(eo(eo({},M),{},{isLoading:!0})),c(void 0),yield d.stopAndUnloadAsync();var e=yield d.createNewLoadedSoundAsync(),t=d.getURI();!function(e){var t=e/1e3/60,n=Math.floor(t),o=Math.round(60*(t-n))}(e.status.durationMillis);console.log("Recording stopped and stored at",e.status),F(eo(eo({},M),{},{isLoading:!1})),$(t),w(!0)}))).apply(this,arguments)}function Ue(e){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,r.default)((function*(e){var n=yield yt.Sound.createAsync({uri:t+e},{shouldPlay:!0},(function(e){return J(e.didJustFinish)}));n.sound,n.status}))).apply(this,arguments)}function Qe(){document.getElementById("fileC").click()}function Ke(){return(Ke=(0,r.default)((function*(e){var t=yield yt.Sound.createAsync({uri:e},{shouldPlay:!0},(function(e){return J(e.didJustFinish)}));t.sound,t.status}))).apply(this,arguments)}var Je=function(e){je.default.openURL(t+e)};function Ye(){return e.navigation.navigate("ticket"),!0}function Ze(){ue.default.fetch().then((function(e){0==e.isConnected&&$e.default.alert("\u0647\u0634\u062f\u0627\u0631!","\u0644\u0637\u0641\u0627 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f",[{text:"\u0628\u0627\u0634\u0647",onPress:function(){return Ze()}}])}))}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",Ye),function(){et.default.removeEventListener("hardwareBackPress",Ye)}}),[]);var Xe=(0,ke.useMediaQuery)({maxWidth:500}),tt=(0,i.default)(Xe,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:tt?"100%":500,height:"100%",marginLeft:tt?0:"35%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:["web"==u.default.OS?(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"xl",isOpen:j,onClose:function(){return w(!1)},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:50},children:(0,ge.jsx)(we.default,{onPress:function(){w(!1),fe("")},name:"close",size:20,color:R})}),(0,ge.jsxs)(g.default,{style:{width:"100%",height:100,alignItems:"center"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red"},children:"... \u0641\u0627\u06cc\u0644 \u0627\u0631\u0633\u0627\u0644 \u0634\u0648\u062f ..."}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",marginTop:20},children:le?le.name:""})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",flexDirection:"row"},children:[(0,ge.jsx)(pe,{label:"\u0627\u0646\u0635\u0631\u0627\u0641",coloricon:S,style:{width:"45%",marginLeft:"5%",marginTop:40},textStyle:{bottom:10},onPress:function(){fe(""),w(!1)}}),(0,ge.jsx)(pe,{label:"\u062a\u0627\u06cc\u06cc\u062f",touchableStyle:{backgroundColor:T,elevation:0},style:{width:"45%",marginTop:40,left:10},textStyle:{bottom:10},onPress:function(){Re(),fe(""),_e(0),w(!1)}})]})]})})})}):(0,ge.jsx)(Me.Modal,{justifyContent:"center",size:"xl",isOpen:j,onClose:function(){return w(!1)},children:(0,ge.jsx)(Me.Modal.Content,{style:{borderRadius:30},children:(0,ge.jsx)(Me.Modal.Body,{children:(0,ge.jsxs)(g.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ge.jsx)(g.default,{style:{width:"100%",height:50},children:(0,ge.jsx)(we.default,{onPress:function(){w(!1),$(""),ie(""),fe("")},name:"close",size:20,color:R})}),X?(0,ge.jsxs)(he.default,{onPress:function(){Oe(!Ce),function(e){Ke.apply(this,arguments)}(X)},style:{left:12,flexDirection:"row",width:"90%",height:50,backgroundColor:I,alignItems:"center",borderRadius:10},children:[(0,ge.jsx)(ce.default,{name:0==Ce||1==K?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{position:"absolute",right:30}}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",left:30},children:0==Ce||1==K?"\u067e\u062e\u0634":"\u062f\u0631 \u062d\u0627\u0644 \u067e\u062e\u0634"})]}):(0,ge.jsxs)(g.default,{style:{width:"100%",height:100,alignItems:"center"},children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red"},children:"... \u0641\u0627\u06cc\u0644 \u0627\u0631\u0633\u0627\u0644 \u0634\u0648\u062f ..."}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold"},children:le||ne})]}),(0,ge.jsxs)(g.default,{style:{width:"100%",flexDirection:"row"},children:[(0,ge.jsx)(pe,{label:"\u0627\u0646\u0635\u0631\u0627\u0641",coloricon:S,style:{width:"45%",marginLeft:"5%",marginTop:40},textStyle:{bottom:10},onPress:function(){$(""),ie(""),fe(""),w(!1)}}),(0,ge.jsx)(pe,{label:"\u062a\u0627\u06cc\u06cc\u062f",touchableStyle:{backgroundColor:T,elevation:0},style:{width:"45%",marginTop:40,left:10},textStyle:{bottom:10},onPress:function(){Re(),ie(""),fe(""),$(""),_e(0),w(!1)}})]})]})})})}),(0,ge.jsxs)(g.default,{style:to.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.navigate("ticket")},style:to.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.navigate("ticket")},style:to.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0628\u0627\u0632\u06af\u0634\u062a"})}),(0,ge.jsxs)(he.default,{onPress:function(){_e(0),Ee()},style:{flexDirection:"column",width:50,height:"web"==u.default.OS?60:80,position:"absolute",left:"43%",bottom:"web"==u.default.OS?"-5%":-10,alignItems:"center",justifyContent:"center"},children:[(0,ge.jsx)(ce.default,{name:"refresh",size:25,color:C}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:10,color:C},children:"\u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc"})]}),(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("ticket")},style:to.menu1,children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u062a\u0627\u06cc\u06cc\u062f \u0646\u0647\u0627\u06cc\u06cc"}),(0,ge.jsx)(ce.default,{name:"check-circle-outline",size:25,color:C})]})]}),(0,ge.jsx)(st.default,{style:{width:"100%",height:"web"==u.default.OS?"93%":"100%",backgroundColor:B},resizeMode:"cover",source:o(3743),children:(0,ge.jsx)(Ie.default,{showsVerticalScrollIndicator:!1,style:{marginBottom:"web"==u.default.OS?70:150},children:xe.slice(0).reverse().map((function(n,o){return"user"==n.status?(0,ge.jsx)(g.default,{style:{alignSelf:"flex-end",margin:10,backgroundColor:P,borderRadius:15,borderTopRightRadius:0},children:"jpg"==n.mims||"jpeg"==n.mims||"png"==n.mims?(0,ge.jsx)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),_e(0)},style:{justifyContent:"center",alignItems:"center",width:150,height:180,backgroundColor:O,borderWidth:2,borderColor:B},children:(0,ge.jsx)(m.default,{source:{uri:t+n.msg},alt:"image",style:{width:"99%",height:175}})}):"m4a"==n.mims||"mp3"==n.mims||"mpeg"==n.mims||"3gp"==n.mims?(0,ge.jsxs)(g.default,{style:{flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg})},style:{flexDirection:"row",right:70,borderWidth:2,borderColor:k,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center"},children:[(0,ge.jsx)(ce.default,{name:"file-download-outline",size:25,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:n.mims})]}),(0,ge.jsxs)(he.default,{onPress:function(){Oe(n.id),Ue(n.msg)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:Ce!==n.id||1==K?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{left:"web"==u.default.OS?45:-110,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?280:350,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative",width:80},children:Ce!==n.id||1==K?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]})]}):"mp4"==n.mims?(0,ge.jsxs)(g.default,{style:{flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg})},style:{flexDirection:"row",right:70,borderWidth:2,borderColor:k,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center"},children:[(0,ge.jsx)(ce.default,{name:"file-download-outline",size:25,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:n.mims})]}),(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),_e(0)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:Ce!==n.id||1==K?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{left:"web"==u.default.OS?45:-110,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?280:350,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative",width:80},children:Ce!==n.id||1==K?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]})]}):"text"==n.mims?(0,ge.jsxs)(y.default,{style:{alignSelf:"auto",fontFamily:"Montserrat",fontSize:15,color:R,padding:"3%"},children:[" ",n.msg," "]}):(0,ge.jsxs)(he.default,{onPress:function(){return Je(n.msg)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:300,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:"download",size:30,color:B,style:{left:"web"==u.default.OS?140:0,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?320:250,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative"},children:"\u062f\u0627\u0646\u0644\u0648\u062f"})]})},o):(0,ge.jsx)(g.default,{style:{alignSelf:"flex-start",margin:10,backgroundColor:O,borderRadius:15,borderTopLeftRadius:0},children:"jpg"==n.mims||"jpeg"==n.mims||"png"==n.mims||"jfif"==n.mims?(0,ge.jsx)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),_e(0)},style:{justifyContent:"center",alignItems:"center",width:150,height:180,backgroundColor:B,borderWidth:2,borderColor:B},children:(0,ge.jsx)(m.default,{source:{uri:t+n.msg},alt:"image",style:{width:"99%",height:175}})}):"m4a"==n.mims||"mp3"==n.mims||"mpeg"==n.mims||"3gp"==n.mims?(0,ge.jsxs)(g.default,{style:{flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onPress:function(){Oe(n.id),Ue(n.msg)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:Ce!==n.id||1==K?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{left:"web"==u.default.OS?100:-60,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?220:290,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative",width:80},children:Ce!==n.id||1==K?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),_e(0)},style:{flexDirection:"row",left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:[(0,ge.jsx)(ce.default,{name:"file-download-outline",size:25,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:n.mims})]})]}):"mp4"==n.mims?(0,ge.jsxs)(g.default,{style:{flexDirection:"row"},children:[(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),_e(0)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:Ce!==n.id||1==K?"motion-play-outline":"motion-pause-outline",size:40,color:B,style:{left:"web"==u.default.OS?100:-60,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsx)(y.default,{style:{right:"web"==u.default.OS?220:290,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative",width:80},children:Ce!==n.id||1==K?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ge.jsxs)(he.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),_e(0)},style:{flexDirection:"row",left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:[(0,ge.jsx)(ce.default,{name:"file-download-outline",size:25,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:R},children:n.mims})]})]}):"text"==n.mims?(0,ge.jsxs)(y.default,{style:{alignSelf:"auto",fontFamily:"Montserrat",fontSize:15,color:R,padding:"3%"},children:[" ",n.msg," "]}):(0,ge.jsxs)(he.default,{onPress:function(){return Je(n.msg)},style:{flexDirection:"row",left:"web"===u.default.OS?100:250,width:300,height:50,alignItems:"center"},children:[(0,ge.jsx)(ce.default,{name:"download",size:30,color:B,style:{left:"web"==u.default.OS?140:0,position:"web"==u.default.OS?"absolute":"relative"}}),(0,ge.jsxs)(y.default,{style:{right:"web"==u.default.OS?320:250,fontFamily:"MontserratBold",position:"web"==u.default.OS?"absolute":"relative"},children:["\u062f\u0627\u0646\u0644\u0648\u062f - ",n.mims]})]})},o)}))})}),"ok"==e.route.params.type?(0,ge.jsx)(g.default,{style:{flexDirection:"row",width:tt?"100%":500,height:68,backgroundColor:D,position:"web"==u.default.OS?"fixed":"absolute",bottom:"web"==u.default.OS?0:.1},children:(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:20,color:B,left:100,top:10},children:"\u0646\u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u067e\u06cc\u0627\u0645\u06cc \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f."})}):"web"===u.default.OS?(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:tt?"100%":500,height:68,backgroundColor:D,position:"web"==u.default.OS?"fixed":"absolute",bottom:.1},children:[xe.length==[]?(0,ge.jsx)(g.default,{}):M.isLoading1?(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:73,height:40,backgroundColor:B,borderRadius:20,alignItems:"center",justifyContent:"center",bottom:"105%",left:"45%",position:"absolute"},children:[(0,ge.jsx)(x.default,{size:30,color:C}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:C,marginLeft:5},children:[Fe,"%"]})]}):(0,ge.jsx)(g.default,{}),(0,ge.jsx)(he.default,{onPress:function(){Re(),Le.current.value="",U(),Ae.current.value="",fe(),_e(0)},style:{top:"26%",right:"2%",position:"absolute"},children:(0,ge.jsx)(ce.default,{name:"send-outline",size:30,color:q||le?T:R})}),(0,ge.jsx)(g.default,{children:(0,ge.jsxs)("form",{onSubmit:Re,children:[(0,ge.jsx)("input",{style:{width:190,height:"30%",position:"absolute",left:110,top:"20%",borderRadius:10,paddingLeft:"8px",paddingTop:"6px",paddingBottom:"6px",fontFamily:"Montserrat"},ref:Le,type:"text",onChange:function(e){return U(e.target.value)},placeholder:" \u0645\u062a\u0646 \u062e\u0648\u062f\u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"}),(0,ge.jsx)("br",{}),(0,ge.jsx)(ce.default,{style:{marginLeft:10,position:"absolute",top:16},onPress:Qe,name:"camera-outline",size:25,color:R}),(0,ge.jsx)(ce.default,{style:{marginLeft:45,position:"absolute",top:16},onPress:Qe,name:"link-variant",size:25,color:R}),(0,ge.jsx)(ce.default,{style:{marginLeft:80,position:"absolute",top:16},onPress:Qe,name:"microphone",size:25,color:R}),(0,ge.jsx)("input",{id:"fileC",ref:Ae,type:"file",hidden:!0,onChange:function(e){fe(e.target.files[0]),w(!0)},style:{marginLeft:"4%",marginTop:2}}),(0,ge.jsx)("br",{})]})})]}):(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:tt?"100%":500,height:68,backgroundColor:D,position:"web"==u.default.OS?"fixed":"absolute",bottom:.1},children:[xe.length==[]?(0,ge.jsx)(g.default,{}):M.isLoading1?(0,ge.jsxs)(g.default,{style:{flexDirection:"row",width:73,height:40,backgroundColor:B,borderRadius:20,alignItems:"center",justifyContent:"center",bottom:"105%",left:"45%",position:"absolute"},children:[(0,ge.jsx)(x.default,{size:30,color:C}),(0,ge.jsxs)(y.default,{style:{fontFamily:"Montserrat",fontSize:13,color:C,marginLeft:5},children:[Fe,"%"]})]}):(0,ge.jsx)(g.default,{}),(0,ge.jsx)(he.default,{onPress:function(){Re(),U(""),$(""),ie(""),fe(""),_e(0)},style:{top:"26%",right:"2%",position:"absolute"},children:(0,ge.jsx)(ce.default,{name:"send-outline",size:30,color:q||ne||le||X?T:R})}),(0,ge.jsx)(De.default,{onFocus:function(){return H(!0)},value:q||(ne||(le||X)),editable:!ne&&(!le&&!X),onChangeText:function(e){return U(e)},placeholder:"\u0645\u062a\u0646 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",multiline:!0,onBlur:function(){return H(!1)},keyboardType:"default",style:{paddingLeft:"web"===u.default.OS?"27%":"35%",paddingTop:"3%",position:"absolute",top:"10%",right:"10%",backgroundColor:S,width:"60%",height:50,borderWidth:1==W?2:0,borderRadius:25,padding:10,fontFamily:"Montserrat",borderColor:1==W?R:_}}),(0,ge.jsx)(he.default,{onPress:d?function(){return qe.apply(this,arguments)}:function(){return Ve.apply(this,arguments)},style:{bottom:"28%",left:"20%",position:"absolute"},children:M.isLoading?(0,ge.jsx)(x.default,{color:B,style:{marginLeft:8}}):(0,ge.jsxs)(dt.default,{children:[(0,ge.jsx)(ce.default,{name:d?"wifi":"",size:20,color:d?T:R,style:{left:5}}),(0,ge.jsx)(ce.default,{name:d?"microphone":"microphone-off",size:30,color:d?T:R})]})}),(0,ge.jsx)(he.default,{onPress:function(){return Ne()},style:{top:"25%",left:"11%",position:"absolute"},children:(0,ge.jsx)(ce.default,{name:"link-variant",size:30,color:R})}),(0,ge.jsx)(he.default,{onPress:function(){return He()},style:{top:"30%",left:"3%",position:"absolute"},children:(0,ge.jsx)(ce.default,{name:"camera-outline",size:25,color:R})})]})]})})};var oo=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},textheader:{backgroundColor:B,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",top:"web"==u.default.OS?"15%":"35%"},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"15%":"35%"},textclose:{fontFamily:"Montserrat",fontSize:14,color:C},farsitop:{width:"92%",height:40,left:20,top:"8%",flexDirection:"row",alignItems:"center",justifyContent:"center"},farsitop1:{width:"92%",height:40,left:20,top:"15%",flexDirection:"row",alignItems:"center",justifyContent:"center"},farsitop2:{width:"92%",height:60,left:20,marginTop:"web"==u.default.OS?"30%":55,alignItems:"center",justifyContent:"center"},texttop:{fontFamily:"MontserratBold",fontSize:15,color:R},filter:{backgroundColor:B,width:110,height:40,alignItems:"center",justifyContent:"center",flexDirection:"column",position:"absolute",right:"0%",top:"web"==u.default.OS?"15%":"35%"}});const io=function(e){var t=(0,de.useDispatch)(),n=(0,f.useState)(!1),o=(0,i.default)(n,2),a=o[0],l=o[1];function s(){return l(!0),!0}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",s),function(){et.default.removeEventListener("hardwareBackPress",s)}}),[]);var d,c=function(){var n=(0,r.default)((function*(){try{yield t(oe()),yield se.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(n){console.log(n)}}));return function(){return n.apply(this,arguments)}}(),h=(0,ke.useMediaQuery)({maxWidth:500}),m=(0,i.default)(h,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:m?"100%":500,height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:oo.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsxs)(he.default,{style:oo.filter,onPress:function(){return e.navigation.navigate("ticket")},children:[(0,ge.jsx)(ce.default,{name:"face-agent",size:30,color:C}),(0,ge.jsx)(y.default,{style:{fontFamily:"Montserrat",fontSize:12,color:C},children:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})]}),(0,ge.jsx)(g.default,{style:oo.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:17,color:C,padding:"5%"},children:"\u067e\u0631\u062f\u0627\u062e\u062a"})})]}),(0,ge.jsxs)(g.default,{style:oo.farsitop,children:[(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:B,marginRight:5},children:"\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u06a9\u0627\u062a \u06cc\u0648\u0646\u06cc\u06a9\u0633 \u0634\u0627\u0645\u0644 \u0647\u0632\u06cc\u0646\u0647 \u0645\u06cc \u0628\u0627\u0634\u062f!"}),(0,ge.jsx)(we.default,{name:"alert-circle-outline",size:20,color:B})]}),(0,ge.jsx)(g.default,{style:oo.farsitop1,children:(0,ge.jsx)(y.default,{style:oo.texttop,children:"\u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f \u0628\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0628\u0627\u06cc\u062f \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f\u061b"})}),(0,ge.jsxs)(g.default,{style:oo.farsitop2,children:[(0,ge.jsxs)(y.default,{style:oo.texttop,children:["\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0627",(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:B},children:" \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u06a9\u062f \u0645\u0639\u0631\u0641 "}),"\u0627\u0632 \u062a\u062e\u0641\u06cc\u0641 \u0648\u06cc\u0698\u0647"]}),(0,ge.jsx)(y.default,{style:oo.texttop,children:" \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0645\u06cc \u0634\u0648\u06cc\u062f. "})]}),(0,ge.jsxs)(he.default,{onPress:function(){return e.navigation.navigate("walletCode")},style:{width:"95%",height:70,marginTop:"10%",marginLeft:10,flexDirection:"row",alignItems:"center",justifyContent:"center",borderStyle:"dashed",borderRadius:10,borderWidth:3,borderColor:B},children:[(0,ge.jsx)(we.default,{name:"person-circle",size:40,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:R,marginLeft:"10%"},children:"\u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u06a9\u062f \u0645\u0639\u0631\u0641"})]}),(0,ge.jsxs)(he.default,{onPress:function(){var t;t=e.route.params.linkprice,je.default.openURL(t)},style:{width:"95%",height:70,marginTop:"8%",marginLeft:10,flexDirection:"row",alignItems:"center",justifyContent:"center",borderStyle:"dashed",borderRadius:10,borderWidth:3,borderColor:B},children:[(0,ge.jsx)(we.default,{name:"cash",size:40,color:B}),(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:R,marginLeft:"15%"},children:"\u067e\u0631\u062f\u0627\u062e\u062a \u0628\u062f\u0648\u0646 \u06a9\u062f"})]}),(0,ge.jsx)(g.default,{style:oo.farsitop,children:(0,ge.jsxs)(y.default,{style:{fontFamily:"MontserratBold",fontSize:13,color:R},children:["\u0647\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0628\u062f\u0648\u0646 \u06a9\u062f \u0645\u0639\u0631\u0641 ",(d=e.route.params.pricing,d.replace(/\D/g,"").toString().replace(/\B(?=(\d{3})+(?!\d))/g,","))," \u0631\u06cc\u0627\u0644 \u0645\u06cc \u0628\u0627\u0634\u062f."]})}),(0,ge.jsx)(pe,{label:"\u0645\u0634\u0627\u0647\u062f\u0647 \u0627\u0645\u06a9\u0627\u0646\u0627\u062a \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646",style:{marginLeft:"5%",marginTop:"web"==u.default.OS?"25%":"15%",marginBottom:"5%",height:55},textStyle:{bottom:10,fontFamily:"MontserratBold"},onPress:function(){"web"==u.default.OS?je.default.openURL("https://cutunix.ir/introducing-app/"):e.navigation.navigate("web",{addressweb:"https://npln.ir"})}}),(0,ge.jsx)(ze.default,{show:a,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631 !",message:"\u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0627\u0631\u062c \u0645\u06cc \u0634\u0648\u06cc\u062f\u061f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u0627\u0646\u0635\u0631\u0627\u0641",confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,cancelButtonColor:B,onCancelPressed:function(){l(!1)},onConfirmPressed:function(){c(),l(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:F},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};var ro=c.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==u.default.OS?60:80,backgroundColor:B},textheader:{backgroundColor:B,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",top:"web"==u.default.OS?"15%":"35%"},menu:{backgroundColor:B,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==u.default.OS?"15%":"35%"},textheader1:{backgroundColor:B,width:70,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==u.default.OS?"15%":"35%"},textclose:{fontFamily:"Montserrat",fontSize:14,color:C},farsitop:{width:"92%",height:40,left:20,top:"8%",flexDirection:"row",alignItems:"center",justifyContent:"center"},farsitop1:{width:"92%",height:40,left:20,top:"15%",flexDirection:"row",alignItems:"center",justifyContent:"center"},farsitop2:{width:"92%",height:60,left:20,marginTop:55,alignItems:"center",justifyContent:"center"},texttop:{fontFamily:"MontserratBold",fontSize:15,color:R},filter:{backgroundColor:B,width:110,height:60,alignItems:"center",justifyContent:"center",flexDirection:"column",position:"absolute",right:"0%",top:"22%"}});const ao=function(e){var t=(0,de.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,de.useDispatch)(),o=(0,f.useState)(),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,f.useState)(!1),c=(0,i.default)(d,2),h=c[0],m=c[1],x=(0,f.useState)(!1),b=(0,i.default)(x,2),j=b[0],w=b[1],v=(0,f.useState)(""),S=(0,i.default)(v,2),O=S[0],z=S[1],k=function(){var e=(0,r.default)((function*(){try{w(!0);var e=yield n((o=t,i=l,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o},n="https://npln.ir/api/v1/app/verify-marketer?code="+i;return A()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:X,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));"success"==e.data.status?(m(!0),z("\u06a9\u062f \u0645\u0639\u0631\u0641 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f")):(z(e.data.message),m(!0)),w(!1)}catch(a){console.log(a)}var o,i}));return function(){return e.apply(this,arguments)}}();function P(){return e.navigation.goBack(),!0}(0,f.useEffect)((function(){return et.default.addEventListener("hardwareBackPress",P),function(){et.default.removeEventListener("hardwareBackPress",P)}}),[]);var M=(0,ke.useMediaQuery)({maxWidth:500}),I=(0,i.default)(M,1)[0];return(0,ge.jsx)(Pe.NativeBaseProvider,{children:(0,ge.jsxs)(g.default,{style:{width:I?"100%":500,height:"100%",backgroundColor:C,position:"web"==u.default.OS?"fixed":"relative"},children:[(0,ge.jsxs)(g.default,{style:ro.viewHeader,children:[(0,ge.jsx)(p.default,{backgroundColor:B}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:ro.menu,children:(0,ge.jsx)(we.default,{name:"arrow-forward-outline",size:25,color:C})}),(0,ge.jsx)(he.default,{onPress:function(){return e.navigation.goBack()},style:ro.textheader1,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:C,padding:"5%"},children:"\u0628\u0627\u0632\u06af\u0634\u062a"})}),(0,ge.jsx)(g.default,{style:ro.textheader,children:(0,ge.jsx)(y.default,{style:{fontFamily:"MontserratBold",fontSize:17,color:C,padding:"5%"},children:"\u067e\u0631\u062f\u0627\u062e\u062a"})})]}),(0,ge.jsx)(Oe,{label:"\u06a9\u062f \u0645\u0639\u0631\u0641",styleview:{marginTop:"50%"},stylelabel:{width:"15%"},value:l,onChangeText:function(e){return s(e)},keyboardType:"default"}),(0,ge.jsx)(pe,{label:" \u062a\u0627\u06cc\u06cc\u062f \u0648 \u0627\u062f\u0627\u0645\u0647 ",style:{marginLeft:"5%",marginTop:"40%",height:55},textStyle:{bottom:10},loading:j,colorspin:C,sizespin:25,onPress:function(){k()}}),(0,ge.jsx)(ze.default,{show:h,showProgress:!1,title:"\u06a9\u062f \u0645\u0639\u0631\u0641 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f"==O?"\u0645\u0648\u0641\u0642":"\u0647\u0634\u062f\u0627\u0631!",message:O,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:T,onConfirmPressed:function(){"\u06a9\u062f \u0645\u0639\u0631\u0641 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f"==O?(e.navigation.navigate("home"),m(!1)):m(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"\u06a9\u062f \u0645\u0639\u0631\u0641 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f"==O?T:F},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};const lo=function(e){var t=(0,h.default)();return(0,ge.jsxs)(t.Navigator,{initialRouteName:"splash",children:[(0,ge.jsx)(t.Screen,{name:"splash",component:be,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"login",component:Fe,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"otp",component:Qe,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"register1",component:Je,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"register2",component:_n,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"home",component:rt,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"web",component:Kn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"ticket",component:Xn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"order",component:lt,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"ordercolor",component:En,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"chat",component:Jt,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"chatticket",component:no,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"form",component:nn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"searching",component:dn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"list",component:hn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"service",component:bn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"detailsService",component:Hn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"final",component:Sn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"orderlist",component:Pn,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"profile",component:In,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"mdfwhite",component:Ln,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"wallet",component:io,options:{headerShown:!1}}),(0,ge.jsx)(t.Screen,{name:"walletCode",component:ao,options:{headerShown:!1}})]})};var so=o(4540),uo=o(5847);function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ho={mobile:null};const go=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ho,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case H:case N:case V:case q:case U:case G:case Q:return fo(fo({},e),{},{data:t.data});case Y:return fo(fo({},e),{},{datatoken:t.data});case K:case J:case X:case $:case ee:case te:return fo(fo({},e),{},{data:t.data});case Z:return ho;default:return e}};function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var po={mobile:null};const xo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_MDF_WHITE":case pt:case xt:case bt:case jt:case wt:case vt:case St:case Ct:case Ot:case zt:case kt:case Pt:case Mt:case Bt:case Tt:return yo(yo({},e),{},{data:t.data});default:return e}};function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){(0,fe.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wo={mobile:null};const vo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Rt:case Lt:case Et:case Wt:case Ht:case At:return jo(jo({},e),{},{data:t.data});case Nt:return jo(jo({},e),{},{datamdf:t.data});case Vt:return jo(jo({},e),{},{datagroup:t.data});case qt:return jo(jo({},e),{},{data:t.data});default:return e}};var So=o(2214),Co=o(1567);d.default.forceRTL(!1),d.default.allowRTL(!1);var Oo=So.createURL("/");function zo(){if("android"==u.default.OS){var e=function(){var e=(0,r.default)((function*(){var e=yield(0,Co.default)().requestPermission();(e===Co.default.AuthorizationStatus.AUTHORIZED||e===Co.default.AuthorizationStatus.PROVISIONAL)&&console.log("Authorization status:",e)}));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){e()?(0,Co.default)().getToken().then((function(e){e&&se.default.setItem("expo_token",e).then((function(){console.log("token save in app.js")}))})):console.log("filed token stutus",authStatus),(0,Co.default)().getInitialNotification().then(function(){var e=(0,r.default)((function*(e){e&&console.log("Notification caused app to open from quit state:",e.notification)}));return function(t){return e.apply(this,arguments)}}()),(0,Co.default)().onNotificationOpenedApp(function(){var e=(0,r.default)((function*(e){console.log("Notification caused app to open from background state:",e.notification)}));return function(t){return e.apply(this,arguments)}}()),(0,Co.default)().setBackgroundMessageHandler(function(){var e=(0,r.default)((function*(e){console.log("Message handled in the background!",e)}));return function(t){return e.apply(this,arguments)}}());var t=(0,Co.default)().onMessage(function(){var e=(0,r.default)((function*(e){Alert.alert("A new FCM message arrived!",JSON.stringify(e))}));return function(t){return e.apply(this,arguments)}}());return t}),[])}var t={prefixes:[Oo],config:{screens:{splash:"splash"}}},n=(0,l.useFonts)({Montserrat:o(9965),Montserrat1:o(1944),MontserratBold:o(2862),MontserratBold1:o(4347),MontserratLight:o(8429)});if(!(0,i.default)(n,1)[0])return null;var d=(0,so.combineReducers)({userLogin:go,userProduct:xo,finalproduct:vo}),c=(0,so.legacy_createStore)(d,(0,so.applyMiddleware)(uo.default));return(0,ge.jsx)(de.Provider,{store:c,children:(0,ge.jsxs)(a.default,{linking:t,children:[(0,ge.jsx)(s.default,{backgroundColor:"white"}),(0,ge.jsx)(lo,{})]})})}c.default.create({container:{flex:1,backgroundColor:"#fff",alignItems:"center",justifyContent:"center"}})},6700:(e,t,n)=>{var o={"./af":9797,"./af.js":9797,"./ar":2452,"./ar-dz":6744,"./ar-dz.js":6744,"./ar-kw":5130,"./ar-kw.js":5130,"./ar-ly":8541,"./ar-ly.js":8541,"./ar-ma":5290,"./ar-ma.js":5290,"./ar-sa":2546,"./ar-sa.js":2546,"./ar-tn":6531,"./ar-tn.js":6531,"./ar.js":2452,"./az":8819,"./az.js":8819,"./be":2413,"./be.js":2413,"./bg":756,"./bg.js":756,"./bm":6416,"./bm.js":6416,"./bn":5202,"./bn-bd":2190,"./bn-bd.js":2190,"./bn.js":5202,"./bo":2899,"./bo.js":2899,"./br":7439,"./br.js":7439,"./bs":6166,"./bs.js":6166,"./ca":5035,"./ca.js":5035,"./cs":9381,"./cs.js":9381,"./cv":7810,"./cv.js":7810,"./cy":5766,"./cy.js":5766,"./da":6198,"./da.js":6198,"./de":3622,"./de-at":9250,"./de-at.js":9250,"./de-ch":1629,"./de-ch.js":1629,"./de.js":3622,"./dv":3245,"./dv.js":3245,"./el":3432,"./el.js":3432,"./en-au":6458,"./en-au.js":6458,"./en-ca":4362,"./en-ca.js":4362,"./en-gb":6213,"./en-gb.js":6213,"./en-ie":7059,"./en-ie.js":7059,"./en-il":6762,"./en-il.js":6762,"./en-in":8987,"./en-in.js":8987,"./en-nz":7669,"./en-nz.js":7669,"./en-sg":3382,"./en-sg.js":3382,"./eo":7784,"./eo.js":7784,"./es":1331,"./es-do":6236,"./es-do.js":6236,"./es-mx":4746,"./es-mx.js":4746,"./es-us":2198,"./es-us.js":2198,"./es.js":1331,"./et":2337,"./et.js":2337,"./eu":8554,"./eu.js":8554,"./fa":3105,"./fa.js":3105,"./fi":8007,"./fi.js":8007,"./fil":9033,"./fil.js":9033,"./fo":26,"./fo.js":26,"./fr":2569,"./fr-ca":5777,"./fr-ca.js":5777,"./fr-ch":1405,"./fr-ch.js":1405,"./fr.js":2569,"./fy":3689,"./fy.js":3689,"./ga":1893,"./ga.js":1893,"./gd":953,"./gd.js":953,"./gl":8352,"./gl.js":8352,"./gom-deva":6512,"./gom-deva.js":6512,"./gom-latn":1572,"./gom-latn.js":1572,"./gu":3447,"./gu.js":3447,"./he":5370,"./he.js":5370,"./hi":9535,"./hi.js":9535,"./hr":704,"./hr.js":704,"./hu":8299,"./hu.js":8299,"./hy-am":862,"./hy-am.js":862,"./id":3496,"./id.js":3496,"./is":8178,"./is.js":8178,"./it":4687,"./it-ch":5472,"./it-ch.js":5472,"./it.js":4687,"./ja":6504,"./ja.js":6504,"./jv":714,"./jv.js":714,"./ka":5749,"./ka.js":5749,"./kk":9430,"./kk.js":9430,"./km":3862,"./km.js":3862,"./kn":1738,"./kn.js":1738,"./ko":2483,"./ko.js":2483,"./ku":9319,"./ku.js":9319,"./ky":966,"./ky.js":966,"./lb":7066,"./lb.js":7066,"./lo":6643,"./lo.js":6643,"./lt":7588,"./lt.js":7588,"./lv":6172,"./lv.js":6172,"./me":6408,"./me.js":6408,"./mi":3952,"./mi.js":3952,"./mk":3650,"./mk.js":3650,"./ml":4597,"./ml.js":4597,"./mn":1946,"./mn.js":1946,"./mr":5246,"./mr.js":5246,"./ms":3780,"./ms-my":4760,"./ms-my.js":4760,"./ms.js":3780,"./mt":7388,"./mt.js":7388,"./my":6375,"./my.js":6375,"./nb":486,"./nb.js":486,"./ne":6403,"./ne.js":6403,"./nl":6721,"./nl-be":7860,"./nl-be.js":7860,"./nl.js":6721,"./nn":590,"./nn.js":590,"./oc-lnc":909,"./oc-lnc.js":909,"./pa-in":8656,"./pa-in.js":8656,"./pl":269,"./pl.js":269,"./pt":5243,"./pt-br":8138,"./pt-br.js":8138,"./pt.js":5243,"./ro":6371,"./ro.js":6371,"./ru":9347,"./ru.js":9347,"./sd":5603,"./sd.js":5603,"./se":4416,"./se.js":4416,"./si":8193,"./si.js":8193,"./sk":3357,"./sk.js":3357,"./sl":8529,"./sl.js":8529,"./sq":9594,"./sq.js":9594,"./sr":4654,"./sr-cyrl":7068,"./sr-cyrl.js":7068,"./sr.js":4654,"./ss":5809,"./ss.js":5809,"./sv":6777,"./sv.js":6777,"./sw":8093,"./sw.js":8093,"./ta":337,"./ta.js":337,"./te":877,"./te.js":877,"./tet":1004,"./tet.js":1004,"./tg":7881,"./tg.js":7881,"./th":9149,"./th.js":9149,"./tk":1457,"./tk.js":1457,"./tl-ph":7035,"./tl-ph.js":7035,"./tlh":5593,"./tlh.js":5593,"./tr":6040,"./tr.js":6040,"./tzl":9731,"./tzl.js":9731,"./tzm":9982,"./tzm-latn":1602,"./tzm-latn.js":1602,"./tzm.js":9982,"./ug-cn":2920,"./ug-cn.js":2920,"./uk":3471,"./uk.js":3471,"./ur":4015,"./ur.js":4015,"./uz":9837,"./uz-latn":1446,"./uz-latn.js":1446,"./uz.js":9837,"./vi":9768,"./vi.js":9768,"./x-pseudo":5709,"./x-pseudo.js":5709,"./yo":2833,"./yo.js":2833,"./zh-cn":9464,"./zh-cn.js":9464,"./zh-hk":6883,"./zh-hk.js":6883,"./zh-mo":1847,"./zh-mo.js":1847,"./zh-tw":5523,"./zh-tw.js":5523};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=6700},9965:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobile.ce44a86237c3895735c4.ttf"},1944:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobile1.ddcd76359a9a71d9ecee.ttf"},2862:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobileBold.9cbecc29434c75855290.ttf"},4347:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobileBold1.939a13b3e8ee2ece9fcc.ttf"},8429:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobileLight.e9646c48c5352e7e37dc.ttf"},5607:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/icons.9828ec382079b54c2cbd.png"},3743:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/wat.bded4f44087fb4e89252.png"},6007:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/logo250.36a524715ca762c6ff84.png"},9678:()=>{},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"cutunix","version":"1.2.27","main":"node_modules/expo/AppEntry.js","scripts":{"start":"expo start","android":"expo start --android","ios":"expo start --ios","web":"expo start --web","eject":"expo eject"},"dependencies":{"@expo/config-plugins":"~6.0.0","@expo/vector-icons":"^13.0.0","@expo/webpack-config":"^18.0.1","@react-aria/ssr":"^3.7.0","@react-native-async-storage/async-storage":"1.17.11","@react-native-community/netinfo":"9.3.7","@react-native-firebase/app":"^18.7.3","@react-native-firebase/messaging":"^18.7.3","@react-navigation/native":"^6.0.11","@react-navigation/native-stack":"^6.7.0","axios":"^0.27.2","expo":"^48.0.0","expo-av":"~13.2.1","expo-constants":"~14.2.1","expo-device":"~5.2.1","expo-document-picker":"~11.2.2","expo-file-system":"~15.2.2","expo-font":"~11.1.1","expo-image-picker":"~14.1.1","expo-linking":"~4.0.1","expo-media-library":"~15.2.3","expo-notifications":"~0.18.1","expo-status-bar":"~1.4.4","expo-updates":"~0.16.4","form-data":"^4.0.0","git":"^0.1.5","moment":"^2.29.4","native-base":"^3.4.8","native-notify":"^3.0.2","react":"18.2.0","react-dom":"18.2.0","react-native":"0.71.14","react-native-awesome-alerts":"^2.0.0","react-native-axios":"^0.17.1","react-native-mask-input":"^1.2.2","react-native-otp-textinput":"^0.0.9","react-native-safe-area-context":"4.5.0","react-native-screens":"~3.20.0","react-native-svg":"13.4.0","react-native-swiper":"^1.6.0","react-native-web":"~0.18.11","react-native-webview":"11.26.0","react-redux":"^8.0.2","redux":"^4.2.0","redux-thunk":"^2.4.1"},"devDependencies":{"@babel/core":"^7.20.0"},"private":true}')}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=t,(()=>{var e=[];o.O=(t,n,i,r)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,i,r]=e[u],l=!0,s=0;s<n.length;s++)(!1&r||a>=r)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(l=!1,r<a&&(a=r));if(l){e.splice(u--,1);var d=i();void 0!==d&&(t=d)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,i,r]}})(),o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"===typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"===typeof n.then)return n}var r=Object.create(null);o.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&i&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(r,a),r}})(),o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/",(()=>{var e={179:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[a,l,s]=n,d=0;if(a.some((t=>0!==e[t]))){for(i in l)o.o(l,i)&&(o.m[i]=l[i]);if(s)var u=s(o)}for(t&&t(n);d<a.length;d++)r=a[d],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},n=self.webpackChunkweb=self.webpackChunkweb||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=o.O(void 0,[854],(()=>o(2866)));i=o.O(i)})(); //# sourceMappingURL=main.bf04eabd.js.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa