1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7779,7036,6606,8188],{45042:function(e,t,n){"use strict";function memoize(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return memoize}})},50263:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(87462),s=n(67294),a=n(54142),o=s.forwardRef(function(e,t){return s.createElement(a.r,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),s.createElement("path",{d:"M3.05 3.05a7 7 0 0 0 0 9.9.5.5 0 0 1-.707.707 8 8 0 0 1 0-11.314.5.5 0 0 1 .707.707zm2.122 2.122a4 4 0 0 0 0 5.656.5.5 0 1 1-.708.708 5 5 0 0 1 0-7.072.5.5 0 0 1 .708.708zm5.656-.708a.5.5 0 0 1 .708 0 5 5 0 0 1 0 7.072.5.5 0 1 1-.708-.708 4 4 0 0 0 0-5.656.5.5 0 0 1 0-.708zm2.122-2.12a.5.5 0 0 1 .707 0 8 8 0 0 1 0 11.313.5.5 0 0 1-.707-.707 7 7 0 0 0 0-9.9.5.5 0 0 1 0-.707zM10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"}))});o.displayName="Broadcast"},87986:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/courier/create",function(){return n(67732)}])},76606:function(e,t,n){"use strict";n.r(t);var r=n(85893),s=n(50263),a=n(67294),o=n(86425),i=n.n(o);t.default=e=>{let{text:t,type:n,state:o,clickEvent:u,className:c}=e,[l,d]=(0,a.useState)("");return(0,a.useEffect)(()=>{d(o)},[o]),(0,r.jsx)("button",{className:c||"btn btn-primary px-4 w-100",onClick:u,type:n||"button",disabled:"loading"===o,style:{maxWidth:c?void 0:"200px",minHeight:48},children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{children:[t," "]}),"loading"===l&&(0,r.jsx)(s.z,{width:25,height:25,className:i().svg})]})})}},67732:function(e,t,n){"use strict";n.r(t);var r=n(85893),s=n(67294),a=n(67421),o=n(22107),i=n(83490),u=n.n(i),c=n(76606),l=n(25909);let NewLanguage=()=>{let[e,t]=(0,s.useState)(""),{t:n}=(0,a.$G)(),submitHandler=async e=>{e.preventDefault();try{t("loading");let e=document.querySelector("#coupon_form"),n=new FormData(e),r=await (0,l.qC)("/api/languages",n);r.success?(o.Am.success("Coupon Added Successfully"),e.reset()):r.dup?o.Am.error("Coupons with the same name already exists"):o.Am.error("Something Went Wrong")}catch(e){console.log(e),o.Am.error("Something Went Wrong")}t("")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{className:"text-center pt-3 pb-5",children:n("Create New Lenguage")}),(0,r.jsxs)("form",{id:"coupon_form",onSubmit:submitHandler,children:[(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsxs)("label",{htmlFor:"inp-2",className:"form-label",children:[n("Name"),"*"]}),(0,r.jsx)("input",{type:"text",id:"inp-2",step:"0.1",max:"100",className:"form-control",name:"name",required:!0})]}),(0,r.jsxs)("div",{className:"mb-5",children:[(0,r.jsx)("label",{htmlFor:"inp-1",className:"form-label",children:n("Status")}),(0,r.jsxs)("select",{id:"inp-1",name:"status",defaultValue:"true",className:"".concat(u().input," form-control"),children:[(0,r.jsx)("option",{value:"true",children:"True"}),(0,r.jsx)("option",{value:"false",children:"False"})]})]}),(0,r.jsx)("div",{className:"mb-4 mt-2",children:(0,r.jsx)(c.default,{type:"submit",text:n("Add Coupon"),state:e})})]})]})};NewLanguage.requireAuthAdmin=!0,NewLanguage.dashboard=!0,t.default=NewLanguage},83490:function(e){e.exports={button_danger:"productForm_button_danger__HuxDf",input:"productForm_input__ksXv7"}},86425:function(e){e.exports={button:"button_button__8rPLr",svg:"button_svg__Um2Tk",spin:"button_spin__X5iRJ"}},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return _objectWithoutProperties}});var r=n(63366);function _objectWithoutProperties(e,t){if(null==e)return{};var n,s,a=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)n=o[s],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}}},function(e){e.O(0,[4142,9774,2888,179],function(){return e(e.s=87986)}),_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.