1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5232],{29528:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return v},default:function(){return O}});var r=n(59499),i=n(16835);n(65717);var o=n(6777),s=n(55125);n(72634);var c=n(67294),l=n(36409),u=n(23943),a=n(39913),d=n(65494),f=n(75977),p=n(379),x=n(62624),j=n(11163);n(97393),n(87422),n(29749),n(22969);var h=n(99433),b=n(85893);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e){var t=(0,c.useState)("");t[0],t[1];var n=(0,c.useContext)(o.V),r=(0,c.useState)([]),s=r[0],a=r[1];(0,j.useRouter)();var m=function(e){setOpen(!1),n.setSnackMsg(e)},g=(0,u.w)(["landingpage","common"]),v=(0,i.Z)(g,2),O=v[0];return v[1],(0,c.useEffect)(function(){},[]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p.Z,{maintitle:O(e.lp,"maintitle"),subtitle:O(e.lp,"subtitle"),media:O(e.lp,"media"),lp:e.lp,callback:{onFileSelected:function(e){var t=e.target.files[0],n={fileObj:t,blobUrl:window.URL.createObjectURL(t),fileSize:t.size,fileName:t.name,fileType:t.type,localid:1,suffix:t.name.split(".").pop().toLowerCase()};l.Z.info("on filesecected with ",n.fileType,n.fileName,n.bloburl),a(s.concat({orderId:null,imgUrl:window.URL.createObjectURL(t),fileobj:n}).reverse())}}}),(0,b.jsx)(f.ZP,{sx:{width:"80%",margin:"auto"},children:s.map(function(t,n){return(0,b.jsx)(x.Z,y(y({},t),{},{index:n,lp:e.lp,resetAndPrompt:m}),t.imgUrl)})}),(0,b.jsx)(f.ZP,{children:O(e.lp,"section").map(function(e,t){return(0,b.jsx)(d.Z,y({index:t},e),t)})}),(0,b.jsx)(h.Z,{entity:null,onClose:function(){setCreditEntity(null)}})]})}var v=!0;function O(e){var t="identify-currency",n=(0,u.w)(["landingpage","common"]),r=(0,i.Z)(n,2),c=r[0];return r[1],(0,b.jsxs)(a.Z,{children:[(0,b.jsx)(s.Z,{title:c(t,"meta.title"),keyword:c(t,"meta.keyword"),description:c(t,"meta.description")}),(0,b.jsx)(o.Z,{nofreebtn:!0,children:(0,b.jsx)(g,y(y({},e),{},{lp:t}))})]})}},91942:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(67294),i=function(e,t){var n=(0,r.useRef)();(0,r.useEffect)(function(){n.current=e},[e]),(0,r.useEffect)(function(){if(null!==t){var e=setInterval(function(){n.current()},t);return function(){clearInterval(e)}}},[t])}},62624:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(50029),i=n(59499),o=n(64687),s=n.n(o),c=n(86886),l=n(5616),u=n(15861),a=n(81458),d=n(68269),f=n(98456),p=n(67294),x=n(29749),j=n(83484),h=n(91942),b=n(36409),m=n(97393);n(87422);var y=n(22969),g=n(85893);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(e){return(0,g.jsx)(c.ZP,{item:!0,xs:12,sm:6,sx:{height:"240px",padding:"15px 15px"},children:e.children})}function w(e){return(0,g.jsx)(Z,{children:(0,g.jsx)("img",{style:{maxHeight:"100%",maxWidth:"100%",height:"auto",width:"auto",margin:"auto"},src:e.imgUrl})})}function P(e){return(0,g.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,g.jsx)(l.Z,{sx:{minWidth:"48px",ml:1},children:(0,g.jsx)(u.Z,{variant:"body2",sx:{fontSize:"1.1rem",fontWeight:"bold",color:"black"},children:e.index})}),(0,g.jsx)(l.Z,{sx:{width:"100%",mr:1},children:(0,g.jsx)(u.Z,{sx:{color:"black",fontWeight:"bold",fontSize:"1.1rem"},variant:"body2",color:"text.secondary",children:e.name})})]})}function k(e){return(0,g.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",marginTop:"8px"},children:[(0,g.jsx)(l.Z,{sx:{minWidth:"48px",ml:1},children:(0,g.jsx)(u.Z,{variant:"body2",sx:{fontSize:"1rem",fontWeight:"300",color:"black"},children:"Score"})}),(0,g.jsx)(l.Z,{sx:{width:"100%",mr:2},children:(0,g.jsx)(a.Z,O({color:"success",sx:{height:12,borderRadius:"10px",color:"green"},variant:"determinate"},e))}),(0,g.jsx)(l.Z,{sx:{minWidth:35},children:(0,g.jsx)(u.Z,{sx:{color:"black"},variant:"body2",color:"text.secondary",children:"".concat(Math.round(e.value))})})]})}function S(e){return(0,g.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",marginTop:"8px"},children:[(0,g.jsx)(l.Z,{sx:{minWidth:"110px",ml:1},children:(0,g.jsx)(u.Z,{variant:"body2",sx:{fontSize:"1rem",fontWeight:"300",color:"black"},children:e.title+":"})}),(0,g.jsx)(l.Z,{sx:{ml:3,minWidth:35},children:(0,g.jsx)(u.Z,{sx:{fontSize:"1rem",fontWeight:"300",color:"black"},variant:"body2",color:"text.secondary",children:e.desc})})]})}function C(e){return(0,g.jsxs)(d.Z,{direction:"column",sx:{background:"white",marginBottom:"2rem",padding:"8px 8px",borderRadius:"8px"},children:[(0,g.jsx)(P,{index:e.index,name:e.obj.name.en}),(0,g.jsx)(k,{value:100*e.obj.score})]})}function I(e){return(0,g.jsx)(d.Z,{direction:"column",sx:{height:"100%",overflowY:"auto"},children:(0,g.jsx)(l.Z,{sx:{width:"100%"},children:(0,g.jsx)(u.Z,{sx:{color:"black",fontWeight:"bold",fontSize:"1.1rem"},variant:"body2",color:"text.secondary",children:e.result.landmark.en})})})}function E(e){return(0,g.jsxs)(d.Z,{direction:"column",sx:{height:"100%",overflowY:"auto"},children:[(0,g.jsx)(S,{title:"Name",desc:e.result.currencyName.en}),(0,g.jsx)(S,{title:"Denomination",desc:e.result.currencyDenomination}),(0,g.jsx)(S,{title:"Code",desc:e.result.currencyCode})]})}
1function _(e){return b.Z.debug("in identify result is ",e.index,e.orderId,JSON.stringify(e)),(0,g.jsx)(d.Z,{direction:"column",sx:{height:"100%",overflowY:"auto"},children:Object.keys(e.result).map(function(t,n){return(0,g.jsx)(C,{obj:e.result[t],index:n+1},n)})})}function D(){return(0,g.jsx)(l.Z,{sx:{display:"flex"},children:(0,g.jsx)(f.Z,{})})}function U(e){var t=(0,p.useState)(null),n=t[0],i=t[1],o=function(){x.Z.doRequest("queryByAssetOrderIdUrl",{orderId:e.orderId},null,function(e,t,n){0==t&&i(function(e){var t;return 2!==n.status?{status:n.status}:{status:n.status,result:O({},null==n||null===(t=n.obj)||void 0===t?void 0:t.result)}})})};return(0,h.Y)((0,r.Z)(s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o();case 1:case"end":return e.stop()}},e)})),null===n||1===n.status?1e3*(0,j.tT)(2,5):null),(0,g.jsx)(Z,{children:null!==n&&2===n.status?"identify-animal"===e.lp||"identify-plant"===e.lp?(0,g.jsx)(_,O(O({},e),{},{result:n.result})):"identify-landmark"===e.lp?(0,g.jsx)(I,O(O({},e),{},{result:n.result})):"identify-currency"===e.lp?(0,g.jsx)(E,O(O({},e),{},{result:n.result})):void 0:(0,g.jsx)(D,{})})}function W(e){b.Z.info("props is ",JSON.stringify(e));var t=(0,p.useState)(e.orderId),n=t[0],r=t[1],i=(0,p.useState)(""),o=(i[0],i[1]),s=function(t){var n=new m.x9(t,{height:0,width:0,duration:0},e.lp);(0,m.lC)(n,l)},l={onRequestCallback:function t(n,i,o,s){b.Z.info("onRequestCallback trigger from ",n,i,o,s),"upload"===n?0===o?x.Z.doRequest("requestProcessAsset",{operType:e.lp,assetId:s.assetid},{version:y.Z.version,operType:e.lp,assetId:s.assetid,config:{}},t.bind(null,"process")):401===o?e.resetAndPrompt("Please Login first !!!"):e.resetAndPrompt("Upload failed, try again or contact us"):"process"===n&&(0===o?r(s.orderid):e.resetAndPrompt("Process failed, try again or contact us"))},onUploadProgress:function(e){e.lengthComputable&&o("Uploading ... "+(e.loaded/e.total*100).toFixed(2)+"%")}};return(0,p.useEffect)(function(){null===e.orderId&&e.hasOwnProperty("fileobj")&&s(e.fileobj)},[]),(0,g.jsxs)(c.ZP,{container:!0,justifyContent:"center",sx:{marginTop:"16px",borderRadius:"10px",border:"2px solid black",background:"whitesmoke"},children:[(0,g.jsx)(w,{index:e.index,orderId:n,imgUrl:e.imgUrl}),(0,g.jsx)(U,{lp:e.lp,index:e.index,orderId:n})]})}},99433:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(59499);n(67294);var i=n(11057),o=n(50657),s=n(31425),c=n(6514),l=n(37645),u=n(61730),a=n(2734),d=n(68269),f=n(15861),p=n(85893);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){var t=(0,a.Z)();return(0,u.Z)(t.breakpoints.down("md")),(0,p.jsxs)(o.Z,{open:null!==e.entity,onClose:function(){e.onClose(null)},"aria-labelledby":"responsive-dialog-title",children:[(0,p.jsx)(l.Z,{id:"responsive-dialog-title",sx:{fontWeight:"bold",fontSize:"1.2rem"},children:"Insufficient Credits"}),(0,p.jsx)(c.Z,{children:null===e.entity?(0,p.jsx)(p.Fragment,{}):(0,p.jsx)(function(e){return(0,p.jsxs)(d.Z,{direction:"column",children:[(0,p.jsx)(f.Z,{gutterBottom:!0,variant:"h5",component:"div",children:"Duration: "+e.duration}),(0,p.jsx)(f.Z,{gutterBottom:!0,variant:"h5",component:"div",children:"Cost Credits: "+e.needCredits}),(0,p.jsx)(f.Z,{gutterBottom:!0,variant:"h5",component:"div",children:"Current Credits: "+e.leftCredits})]})},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.entity))}),(0,p.jsx)(s.Z,{children:(0,p.jsx)(i.Z,{autoFocus:!0,onClick:function(){window.open("/pricing","_blank")},sx:{bgcolor:"blue !important",fontWeight:"bold",color:"white"},children:"Buy Credits"})})]})}},10533:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/identify-currency",function(){return n(29528)}])}},function(e){e.O(0,[4947,5498,4314,6886,1346,3066,5675,5246,9289,2722,5285,2888,9774,179],function(){return e(e.s=10533)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.