PageSourceSearch

https://mytruckscales.com/static/js/9037.9de7389e.chunk.js

js mytruckscales.com collected 2026-10-05 02:40:24 UTC 36,368 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmts_react=self.webpackChunkmts_react||[]).push([[9037],{4763:(e,i,t)=>{t.d(i,{A:()=>c});t(9950);var s=t(25979),n=t(19647),o=t(70006),l=t(23266),r=t(24516),a=t(83675),d=t(44414);const c=e=>{let{label:i,helperText:t,learnMore:c,children:p,nullOptionLabel:u,...h}=e;return(0,d.jsxs)(s.A,{fullWidth:!0,variant:"outlined",children:[(0,d.jsx)(n.A,{id:h.id||"select_label",children:i}),(0,d.jsxs)(o.A,{labelId:h.id||"select_label",label:i,fullWidth:!0,required:!0,"aria-label":i,...h,variant:"outlined",children:[u&&(0,d.jsx)(l.A,{value:"",children:u}),p]}),!!t&&(0,d.jsx)(r.A,{children:t}),!!c&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(a.A,{title:i,info:c})})]})}},5765:(e,i,t)=>{t.d(i,{a:()=>o});var s=t(44254),n=t(25624);const o=async e=>{let{companyId:i,item:t,name:o,...l}=e;const{data:r}=await s.FH.get(`${s.C1}/companies/${i}/${t}/name/${o}/in-use`,{params:l});if(!r.success)throw n.Ay.from(r);return r.data}},7068:(e,i,t)=>{t.d(i,{A:()=>fe});var s=t(9950),n=t(81791),o=t(73573),l=t(26473),r=t(82053),a=t(69019),d=t(84142),c=t(25979),p=t(8145),u=t(10226),h=t(23266),_=t(41397),m=t(22634),A=t(9449),g=t(89288),I=t(63027),f=t(60666),k=t(24097),v=t(25007),x=t(66410),y=t(75737),E=t(57136),b=t(34414),C=t(33304),N=t(68579),S=t(86038),j=t(59100),T=t(14664),O=t(85710),R=t(6349),w=t(75654),P=t(33029);const D="name",L="description",G="payment_type",U="ptw_weighment_cost",W="weighing_method",M="weight_units",H="is_account_restricted",B="billing_type",K="verify_payment_first",F="ptw_reweighment_time_minutes",V="ptw_reweighment_time_seconds",z="ptw_reweighment_cost",Y="supports_one_login_mode",q="allow_unlimited_pre_ticket_weighment",$="kiosk_type",J="terms_and_conditions",Q="merchant_pays_fee_for_immediate_charge",X="driver_can_select_non_weight_items",Z="tickets_can_be_updated";var ee=t(36688),ie=t(24609),te=t(5765),se=t(93528),ne=t(66946),oe=t(27081),le=t(33568),re=t(4763),ae=t(38234),de=t(16673),ce=t(22698),pe=t(98294),ue=t(44414);const he=()=>(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(r.A,{fontWeight:"bold",children:"Weigh-Only"}),(0,ue.jsx)(r.A,{gutterBottom:!0,children:"A weigh-only kiosk is a specialized type of kiosk designed primarily for weighing purposes."}),(0,ue.jsx)(r.A,{fontWeight:"bold",children:"Pricing Receivable"}),(0,ue.jsx)(r.A,{gutterBottom:!0,children:"Pricing receivable kiosks are used as part of the point-of-sale system that allows your customers to make payments for materials they purchase and for disposing of waste at a landfill."}),(0,ue.jsx)(r.A,{fontWeight:"bold",children:"Pricing Payable"}),(0,ue.jsx)(r.A,{gutterBottom:!0,children:"On the other hand, pricing payable kiosks are used as part of the point-of-sale system to compensate customers, such as peddlers bringing scrap metal to a scrap yard."})]});var _e;!function(e){e.MANUAL="MANUAL",e.TEMPLATE="TEMPLATE"}(_e||(_e={}));const me=e=>{var i,t,o,r;let{closePopUp:me,data:Ae}=e;const{setIsLoading:ge}=(0,s.useContext)(O.Y),Ie=(0,g.A)(),fe=(0,m.MW)(),ke=(0,oe.wA)(),ve=(0,de.W6)(),xe=(0,N.N)((e=>e.selectedCompany.data)),ye=(0,N.N)((e=>e.selectedScale.data)),Ee=(0,N.N)((e=>e.session.permissions)),be=(0,N.N)((e=>e.currencies)),[Ce,Ne]=(0,s.useState)(_e.MANUAL),[Se,je]=(0,s.useState)(0),[Te,Oe]=(0,s.useState)([]),[Re,we]=(0,s.useState)(""),[Pe,De]=(0,s.useState)(!1),[Le,Ge]=(0,s.useState)(),[Ue,We]=(0,s.useState)(!1),Me=f.Ik().shape({[H]:f.lc().notRequired(),[q]:f.lc().notRequired(),[B]:f.Yj().notRequired(),[L]:f.Yj().required(),[K]:f.lc().notRequired(),[D]:f.Yj().required(),[G]:f.gl().oneOf(Object.values(x.dm)),[U]:f.ai().transform((e=>(0,_.isNaN)(e)?void 0:e)),[z]:f.ai().transform((e=>(0,_.isNaN)(e)?void 0:e)),[Y]:f.lc().notRequired(),[F]:f.ai().transform((e=>(0,_.isNaN)(e)?void 0:e)),[V]:f.ai().transform((e=>(0,_.isNaN)(e)?void 0:e)),[W]:f.gl().oneOf(Object.values(y.ss)).notRequired(),[M]:f.gl().when(W,((e,i)=>e!==y.ss.NON_WEIGHING?i.oneOf(Object.values(E.tL)):i)).notRequired(),[$]:f.gl().oneOf(n.Bi).required(),[Q]:f.zM(),[X]:f.zM(),[Z]:f.zM(),[P.or.IS_INSPECTABLE]:f.zM(),[P.or.SHOW_DRIVER_PRODUCT_PRICING]:f.zM(),[P.or.SHOW_ON_BEHALF_DRIVER_PRODUCT_PRICING]:f.zM(),[P.or.ALLOW_MANUAL_PRODUCT_WEIGHT_UPDATES]:f.zM(),[P.or.IS_PUBLISHED]:f.zM()}),{register:He,handleSubmit:Be,watch:Ke,setValue:Fe,setError:Ve,setFocus:ze,formState:{errors:Ye,isSubmitted:qe}}=(0,A.mN)({resolver:(0,l.t)(Me),defaultValues:{[$]:"weigh-only",[J]:xe.defaultKioskTermsAndConditions,[M]:null===ye||void 0===ye?void 0:ye.weightUnits,[Q]:!0,[X]:!0,[Z]:!1,[P.or.ALLOW_MANUAL_PRODUCT_WEIGHT_UPDATES]:!1,[P.or.SHOW_DRIVER_PRODUCT_PRICING]:!0,[P.or.SHOW_ON_BEHALF_DRIVER_PRODUCT_PRICING]:!0,[P.or.IS_PUBLISHED]:!1,currency_code:"USD",purpose:""}});(0,C.A)({focus:()=>
1ze(D)});Ke(D);const $e=Ke(G),Je=Ke(U),Qe=Ke(H),Xe=Ke(K),Ze=Ke(F),ei=Ke(V),ii=Ke(z),ti=Ke(Y),si=Ke(q),ni=Ke(W),oi=Ke($),li=Ke(M),ri=Ke(Q),ai=Ke(X),di=Ke(Z),ci=Ke(P.or.IS_INSPECTABLE),pi=Ke(P.or.SHOW_DRIVER_PRODUCT_PRICING),ui=Ke(P.or.SHOW_ON_BEHALF_DRIVER_PRODUCT_PRICING),hi=Ke(P.or.ALLOW_MANUAL_PRODUCT_WEIGHT_UPDATES),_i=Ke(P.or.IS_PUBLISHED),mi=Ke("currency_code"),Ai=Ke("purpose"),gi=(null===$e||void 0===$e?void 0:$e.toString())===x.dm.PAY_TO_WEIGHT.toString(),Ii=[n.bp.PRICING_PAYABLE.toString(),n.bp.PRICING_RECEIVABLE.toString()].includes(oi),fi=e=>{ke((0,ae.$j)(e));const i=(0,de.tW)(ce.BV.KIOSK_INFO,{companyId:xe.id,kioskId:e.id});ve.push(i)},ki=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Le,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ae&&e)try{var t,s,n,o,l,r,a,d,c,p,u,h,_;const m=e[B]?null===(t=(0,v.uz)(e[B].toString()))||void 0===t?void 0:t.id:"",A=e[F]&&e[V]?(60*(null!==(s=e[F])&&void 0!==s?s:0)+(null!==(n=e[V])&&void 0!==n?n:0)).toString():"";ge(!0);const g={allow_duplicate_name:i,name:e[D],payment_type:null!==(o=null===(l=(0,x.uz)(e[G].toString()))||void 0===l?void 0:l.id)&&void 0!==o?o:"",ptw_weighment_cost:"FREE"===m?0:e[U],description:e[L],weighing_method:null!==(r=null===(a=(0,y.uz)(e[W].toString()))||void 0===a?void 0:a.id)&&void 0!==r?r:"",weight_units:null!==(d=null===(c=(0,E.uz)(e[M].toString()))||void 0===c?void 0:c.id)&&void 0!==d?d:E.tL.POUND,billing_type:null!==m&&void 0!==m?m:"",verify_payment_first:e[K],ptw_reweighment_cost:"FREE"===m?0:e[z],ptw_reweighment_time:null!==A&&void 0!==A?A:"",is_account_restricted:e[G]!==x.dm.COMPANY_OWNED&&e[H],supports_one_login_mode:e[Y],allow_unlimited_pre_ticket_weighment:e[q],kiosk_type:e[$]||"weigh-only",terms_and_conditions:e[J],merchant_pays_fee_for_immediate_charge:null!==(p=e[Q])&&void 0!==p&&p,driver_can_select_non_weight_items:(null===(u=(0,y.uz)(e[W].toString()))||void 0===u?void 0:u.id)===y.ss.NON_WEIGHING||null!==(h=e[X])&&void 0!==h&&h,tickets_can_be_updated:e[Z],is_inspectable:e[P.or.IS_INSPECTABLE],[P.or.SHOW_DRIVER_PRODUCT_PRICING]:e[P.or.SHOW_DRIVER_PRODUCT_PRICING],[P.or.SHOW_ON_BEHALF_DRIVER_PRODUCT_PRICING]:e[P.or.SHOW_ON_BEHALF_DRIVER_PRODUCT_PRICING],[P.or.ALLOW_MANUAL_PRODUCT_WEIGHT_UPDATES]:e[P.or.ALLOW_MANUAL_PRODUCT_WEIGHT_UPDATES],[P.or.IS_PUBLISHED]:e[P.or.IS_PUBLISHED],currency_code:e.currency_code,purpose:e.purpose||null};let I;I=null!==Ae&&void 0!==Ae&&Ae.scaleId?await(0,k.Ut)(Ae.companyId,g,Ae.scaleId):await(0,k.un)(Ae.companyId,g),fe.success(Ie.formatMessage({id:"dashboard.kiosks.popup.you_have_successfully_added_a_new_kiosk"}));const f=await(0,k.ce)(I.id);null===(_=Ae.onKioskAdded)||void 0===_||_.call(Ae,f),me(),fi(I)}catch(m){(0,b.U6)(m,Ve,fe)}finally{ge(!1)}},vi=async()=>{try{if(!await(0,te.a)({companyId:xe.id,item:"kiosks",name:(null===Le||void 0===Le?void 0:Le[D])||""}))throw new Error("Name not in use");We(!0)}catch(e){console.log("error",e),ki()}};(0,s.useEffect)((()=>{Le&&(null!==ye&&void 0!==ye&&ye.weightUnits&&(null===ye||void 0===ye?void 0:ye.weightUnits)!==Le[M]?De(!0):vi())}),[Le]);const xi=async function(){const e={new_name:Re,allow_duplicate_name:arguments.length>0&&void 0!==arguments[0]&&arguments[0],new_scale_id:null===Ae||void 0===Ae?void 0:Ae.scaleId};try{var i;const t=await(0,k.nT)({companyId:xe.id,kioskId:Se,payload:e});fe.success(Ie.formatMessage({id:"dashboard.kiosks.popup.you_have_successfully_added_a_new_kiosk"})),null===Ae||void 0===Ae||null===(i=Ae.onKioskAdded)||void 0===i||i.call(Ae,t),me(),fi(t)}catch(t){ke((0,le.Ds)({type:"error",title:Ie.formatMessage({id:"alert.error"}),message:(0,b.u$)(t)}))}};return(0,s.useEffect)((()=>{(async()=>{try{const e=await(0,k.zF)();Oe(e.map((e=>e.kiosk)))}catch(e){ke((0,le.Ds)({type:"error",title:Ie.formatMessage({id:"alert.error"}),message:(0,b.u$)(e)}))}})(),be.ids.length||ke((0,pe.D)())}),[]),(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsxs)(a.A,{value:Ce,onChange:(e,i)=>Ne(i),variant:"fullWidth","aria-label":"account tabs",style:{backgroundColor:"white"},children:[(0,ue.jsx)(d.A,{label:"Manual",value:_e.MANUAL}),(0,ue.jsx)(d.A,{label:"From Template",value:_e.TEMPLATE})]}),(0,ue.jsxs)(ne.A,{value:Ce,index:_e.MANUAL,boxProps:{style:{backgroundColor:"white"},p:0},children:[(0,ue.jsxs)("form",{className:"kiosk-popup__container",onSubmit:Be((async e=>{Ae&&Ge(e)})),children:[(0,ue.jsxs)("div",{className:"kiosk-popup__info-row",children:[(0,ue.jsx)(j.A,{isSubmitted:qe,isValid:void 0===Ye[D],labelId:"dashboard.kiosks.popup.name",name:D,placeHolderId:"dashboard.kiosks.popup.nickname",register:He}),(0,ue.jsx)(j.A,{isSubmitted:qe,isValid:void 0===Ye[L],labelId:"dashboard.kiosks.popup.description",name:L,placeHolderId:"dashboard.kiosks.popup.description",register:He})]}),(0,ue.jsxs)("div",{className:"kiosk-popup__info-row",children:[(0,ue.jsx)(T.A,{isSubmitted:qe,isValid:void 0===Ye[W],labelId:"kiosk.weighing_method",info:{type:"tooltip",content:"Use the Non Weighing method to create a kiosk that handles specifically volume and per-item transactions."},name:W,value:ni,onChange:e=>{Fe(W,e)},options:y.PK.filter((e=>e.type!==y.ss.TARE_ONLY||![n.bp.PRICING_PAYABLE.toString(),n.bp.PRICING_RECEIVABLE.toString()].includes(oi))).map((e=>({id:e.id.toString(),value:e.type.toString(),labelId:e.stringId})))}),(0,ue.jsx)(T.A,{isSubmitted:qe,isValid:void 0===Ye[$],labelId:"kiosk.kiosk_type",name:$,options:n.Bi.map((e=>{let i=!1;return[n.bp.PRICING_PAYABLE.toString(),n.bp.PRICING_RECEIVABLE.toString()].includes(e)&&(ni===y.ss.TARE_ONLY&&(i=!0),$e===x.dm.COMPANY_OWNED&&(i=!0),e!==n.bp.PRICING_PAYABLE||Ee[ie.aX.VIEW_PAYMENT_METHODS]||(i=!0)),ni===y.ss.NON_WEIGHING&&e===n.bp.WEIGH_ONLY&&(i=!0),{id:e,value:e,labelId:`kiosk.${e}`,disabled:i}})),register:He,info:{type:"modal",content:(0,ue.jsx)(he,{})}})]}),(0,ue.jsxs)("div",{className:"kiosk-popup__info-row",children:[(0,ue.jsx)(T.A,{isSubmitted:qe,isValid:void 0===Ye[G],labelId:"kiosk.payment_type",name:G,value:$e,onChange:e=>{Fe(G,e)},options:x.Gp.filter((e=>(e.type!==x.dm.COMPANY_OWNED||![n.bp.PRICING_PAYABLE.toString(),n.bp.PRICING_RECEIVABLE.toString()].includes(oi))&&(e.type!==x.dm.PAY_TO_WEIGHT||ni!==y.ss.NON_WEIGHING))).map((e=>({id:e.id.toString(),value:e.type.toString(),labelId:e.stringId}))),isEmptyAllowed:!0}),gi&&(0,ue.jsx)(j.A,{isSubmitted:qe,isValid:void 0===Ye[U],label:`${Ie.formatMessage({id:"dashboard.kiosks.popup.pay_to_weigh_cost"})} (${null===(i=be.byCode[mi])||void 0===i?void 0:i.symbolPrefix}${null===(t=be.byCode[mi])||void 0===t?void 0:t.symbolSuffix})`,name:U,placeHolder:"9.60",register:He,step:.01,type:"number",value:Je})]}),(gi||Ii)&&(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(T.A,{isSubmitted:qe,isValid:void 0===Ye[B],labelId:"kiosk.billing_type",name:B,options:v.LV.map((e=>({id:e.id.toString(),value:e.id.toString(),labelId:e.stringId}))),register:He})}),gi?(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:ni!==y.ss.NON_WEIGHING&&(0,ue.jsx)(T.A,{isSubmitted:qe,isValid:void 0===Ye[M],labelId:"kiosk.weight_units",name:M,options:E.Wu.filter((e=>e.type!==E.tL.METRIC_TON&&e.type!==E.tL.NO_DEFAULT)).map((e=>({id:e.id.toString(),value:e.type.toString(),labelId:e.stringId}))),register:He})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)("div",{className:"kiosk-popup__info-check",children:(0,ue.jsx)(S.A,{isChecked:Xe,labelId:"kiosk.display_weight_after_payment",onClick:()=>Fe(K,!Xe)})})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)("h6",{className:"kiosk-popup__title",children:(0,ue.jsx)(I.A,{id:"kiosk.re_weighment_information"})})}),(0,ue.jsxs)("div",{className:"kiosk-popup__info-row kiosk-popup__info-row--time-cost",children:[(0,ue.jsx)(j.A,{isSubmitted:qe,isValid:void 0===Ye[F],labelId:"kiosk.time_minutes",name:F,placeHolderId:"dashboard.kiosks.popup.minutes",register:He,type:"number",value:Ze}),(0,ue.jsx)(j.A,{isSubmitted:qe,isValid:void 0===Ye[V],labelId:"kiosk.time_seconds",name:V,placeHolderId:"dashboard.kiosks.popup.seconds",register:He,type:"number",value:ei}),(0,ue.jsx)(j.A,{isSubmitted:qe,isValid:void 0===Ye[z],label:`${Ie.formatMessage({id:"kiosk.re_weighment_cost"})} (${null===(o=be.byCode[mi])||void 0===o?void 0:o.symbolPrefix}${null===(r=be.byCode[mi])||void 0===r?void 0:r.symbolSuffix})`,name:z,placeHolder:"1.00",register:He,step:.01,type:"number",value:ii})]})]}):(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:ni!==y.ss.NON_WEIGHING&&(0,ue.jsx)(T.A,{isSubmitted:qe,isValid:void 0===Ye[M],labelId:"kiosk.weight_units",name:M,options:E.Wu.filter((e=>e.type===E.tL.TON||e.type===E.tL.POUND||e.type===E.tL.KILOGRAM)).map((e=>({id:e.id.toString(),value:e.type.toString(),labelId:e.stringId}))),register:He})}),(0,ue.jsxs)("div",{className:"kiosk-popup__info-row",children:[(0,ue.jsx)(T.A,{isSubmitted:qe,label:"Currency",isValid:void 0===Ye.currency_code,name:"currency_code",options:be.ids.map((e=>{const i=be.entities[e];return{id:i.code,value:i.code,label:`${i.symbolPrefix} ${i.code}`}})),register:He}),(0,ue.jsx)(T.A,{isSubmitted:qe,label:"Inventory Flow",name:"purpose",value:Ai,options:[{id:"",value:"",label:"--"},{id:P.KH.INCOMING,value:P.KH.INCOMING,label:"Incoming"},{id:P.KH.OUTGOING,value:P.KH.OUTGOING,label:"Outgoing"}],register:He,info:{type:"tooltip",content:"Specifying this will allow you to track the amount of material entering or exiting your sites"},validations:{required:!1}})]}),$e!==x.dm.COMPANY_OWNED&&(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:Qe,labelId:"kiosk.account_restricted",onClick:()=>Fe(H,!Qe),info:"With account restriction, only specific accounts can interact with the kiosk. After creating the kiosk, you can select from your list of company accounts to determine which accounts have access to it. This setting applies to both free and paid-to-weigh kiosks. It's particularly useful when you want certain customers to view distinct pricing information or answer different questions during the weighment workflow."})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:ti,labelId:"dashboard.kiosks.popup.supports_one_login_mode",onClick:()=>Fe(Y,!ti),info:"This setting enables the kiosk to support the 'Enable Single Login' feature for tablet kiosk mode, allowing any person to use the public Android tablet. You can set the tablet kiosk mode on the scale page. If you have any questions about what tablet kiosk mode is, please refer to the explanation on the scale page."})}),ni!==y.ss.NON_WEIGHING&&(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:si,labelId:"dashboard.kiosks.popup.allow_unlimited_pre_ticket_weighment",onClick:()=>Fe(q,!si),info:"This flag allows a driver to refresh the weight on the scale as many times as they like until they are ready to proceed. When the flag is off, a valid weight is recorded, and the user cannot change it; the ticket is automatically created."})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:ai,label:"Driver Can Select Non Weight Products",info:"Part of MyTruckScales POS system. This flag specifies whether drivers are allowed to select any non-weight items. If true, then the driver can select any type of item. If false, then the driver can only select a weight item.",onClick:()=>Fe(X,!ai)})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:ri,labelId:"dashboard.kiosks.popup.merchant_pays_fee_for_immediate_charge",onClick:()=>Fe(Q,!ri),info:"This flag allows the kiosk owner to determine whether the merchant or customer covers MyTruckScales fees for credit card transactions. Note that this flag has no effect when the kiosk is set to account billing."})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:di,label:"Tickets Can Be Updated",info:"When set to true, scale owner companies can update their ticket attributes and selected products if their driver inputs any incorrect information. However, pricing kiosks with credit card billing for product invoices will not have updateable tickets.",onClick:()=>Fe(Z,!di)})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:hi,label:"Weight products can be updated",info:"When enabled, scale owners can add more than 1 weight product to a workflow by specifying the weight of each product",onClick:()=>Fe(P.or.ALLOW_MANUAL_PRODUCT_WEIGHT_UPDATES,!hi)})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:ci,label:"Kiosk Inspectable",onClick:()=>Fe(P.or.IS_INSPECTABLE,!ci),info:"When selected, specific tickets generated on this kiosk will require an inspection. Inspection details, including the timing for when the load needs inspection, the values the inspector must input, and the method by which the inspector is notified that a load is ready for inspection, can be configured on the kiosk details page. In all cases, inspections are not required for the ticket to be completed; the driver can finish their load, and the inspector can complete the inspection at a later time if they choose to do so."})}),n.bl.includes(oi)&&(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:
1pi,label:"Show Driver Product Pricing",onClick:()=>{const e=!pi;Fe(P.or.SHOW_DRIVER_PRODUCT_PRICING,e)},info:"When unchecked, drivers will not be able to see any pricing details when using the point of sale system."})}),(0,ue.jsx)("div",{className:"kiosk-popup__info-row",children:(0,ue.jsx)(S.A,{isChecked:ui,label:"Show On-Behalf Driver Product Pricing",onClick:()=>{const e=!ui;Fe(P.or.SHOW_ON_BEHALF_DRIVER_PRODUCT_PRICING,e)},info:"When unchecked, drivers subcontracted by your customers will not be able to see any pricing details when using the point of sale system."})})]}),(0,ue.jsxs)(R.xA,{container:!0,spacing:1,mt:1,children:[(0,ue.jsx)(R.xA,{item:!0,xs:12,children:(0,ue.jsx)(c.A,{fullWidth:!0,children:(0,ue.jsx)(p.A,{label:"Terms and Conditions",variant:"outlined",color:"primary",multiline:!0,minRows:3,...He(J)})})}),(0,ue.jsx)(R.xA,{item:!0,xs:12,children:(0,ue.jsx)(S.A,{isChecked:_i,label:"Publish Kiosk",onClick:()=>{const e=!_i;Fe(P.or.IS_PUBLISHED,e)},info:"When unchecked, drivers will not be allowed to see/use the kiosk."})}),(0,ue.jsx)(R.xA,{item:!0,xs:12,children:(0,ue.jsx)(u.A,{variant:"contained",fullWidth:!0,type:"submit",children:Ie.formatMessage({id:"dashboard.kiosks.popup.save"})})})]})]}),(0,ue.jsx)(w.A,{open:Pe,title:"Confirm Kiosk Weight Units",message:`Specified kiosk weight units (${li}) are different from specified scale weight units (${null===ye||void 0===ye?void 0:ye.weightUnits}). Do you want us to automatically convert for you?`,onCancel:()=>De(!1),onConfirm:()=>{De(!1),vi()}}),Ue&&(0,ue.jsx)(se.A,{name:(null===Le||void 0===Le?void 0:Le[D])||"",onClose:()=>We(!1),onConfirm:e=>ki(Le,e)})]}),(0,ue.jsxs)(ne.A,{value:Ce,index:_e.TEMPLATE,boxProps:{style:{backgroundColor:"white"},p:0},children:[(0,ue.jsx)("form",{className:"kiosk-popup__container",onSubmit:e=>{e.preventDefault(),ge(!0),(async()=>{try{if(!await(0,te.a)({companyId:xe.id,item:"kiosks",name:Re}))throw new Error("Name not in use");We(!0),ge(!1)}catch(e){console.log("error",e),xi()}})()},children:(0,ue.jsxs)(R.xA,{container:!0,spacing:1,children:[(0,ue.jsx)(R.xA,{item:!0,xs:12,children:(0,ue.jsx)(re.A,{label:"Kiosk Template",value:Se,onChange:e=>je(e.target.value),children:Te.map((e=>(0,ue.jsxs)(h.A,{value:e.id,children:[e.name," - ",e.description]},e.id)))})}),(0,ue.jsx)(R.xA,{item:!0,xs:12,children:(0,ue.jsx)(ee.A,{label:"New Kiosk Name",value:Re,required:!0,onChange:e=>we(e.target.value)})}),(0,ue.jsx)(R.xA,{item:!0,xs:12,children:(0,ue.jsx)(u.A,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",children:Ie.formatMessage({id:"dashboard.popup.confirm"})})})]})}),Ue&&(0,ue.jsx)(se.A,{name:Re,onClose:()=>We(!1),onConfirm:e=>xi(e)})]})]})};me.displayName="AddKioskPopUp";const Ae=me;var ge=t(7663);const Ie=e=>{let{closePopUp:i,data:t}=e;return t&&{[ge.g.CREATE_KIOSK]:(0,ue.jsx)(Ae,{closePopUp:i,data:t}),[ge.g.LINK_KIOSK]:(0,ue.jsx)(Ae,{closePopUp:i,data:t}),[ge.g.DELETE_KIOSK]:(0,ue.jsx)(o.A,{closePopUp:i,onItemRemoved:()=>{var e,i;return null===(e=t.onKioskRemoved)||void 0===e?void 0:e.call(t,null!==(i=t.kioskId)&&void 0!==i?i:n.MI)}})}[t.popUpType]||null};Ie.displayName="KioskPopUp";const fe=Ie},7663:(e,i,t)=>{let s;t.d(i,{g:()=>s}),function(e){e[e.CREATE_KIOSK=0]="CREATE_KIOSK",e[e.LINK_KIOSK=1]="LINK_KIOSK",e[e.DELETE_KIOSK=2]="DELETE_KIOSK"}(s||(s={}))},9722:()=>{},14664:(e,i,t)=>{t.d(i,{A:()=>A,F:()=>_});var s=t(48383),n=t.n(s),o=t(41397),l=t(9950),r=t(89288),a=(t(9722),t(83274)),d=t(25333),c=t(96583),p=t(28170),u=t(89299),h=t(44414);const _="-1",m=e=>{let{defaultValue:i="",isEditable:t=!0,isEmptyAllowed:s=!1,isSubmitted:m,isValid:A,labelId:g,label:I="",name:f,onChange:k=o.noop,options:v,placeHolder:x="",placeHolderId:y="",register:E,validations:b={required:!0},value:C=null,info:N}=e;const S=(0,r.A)(),j=S.formatMessage({id:"input.default_message"}),[T,O]=(0,l.useState)(!1),R=n()("input-select",{"select-input--valid":m&&b.required&&A,"select-input--invalid":m&&b.required&&!A}),w=(e,i)=>(0,o.isNil)(e)||(0,o.isEmpty)(e)?(0,o.isNil)(i)||(0,o.isEmpty)(i)?null:S.formatMessage({id:i}):e,P=v.findIndex((e=>e.id===C)),D=i||(-1!==P?P.toString():_);return(0,h.jsxs)("div",{className:R,children:[(0,h.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:"5px",alignItems:"center"},children:N?(0,h.jsxs)(h.Fragment,{children:[(I||g)&&(0,h.jsx)("label",{htmlFor:f,style:{marginBottom:"0px"},children:w(I,g)}),"tooltip"===N.type&&(0,h.jsx)(a.A,{title:N.content,children:(0,h.jsx)(d.A,{size:"small",children:(0,h.jsx)(u.A,{color:"disabled",fontSize:"small"})})}),"modal"===N.type&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(d.A,{size:"small",onClick:()=>O(!0),children:(0,h.jsx)(u.A,{color:"disabled",fontSize:"small"})}),(0,h.jsx)(c.A,{open:T,onClose:()=>O(!1),fullWidth:!0,children:(0,h.jsx)(p.A,{children:N.content})})]})]}):(0,h.jsx)(h.Fragment,{children:(I||g)&&(0,h.jsx)("label",{htmlFor:f,children:w(I,g)})})}),(0,h.jsxs)("select",{defaultValue:D,disabled:!t,onChange:e=>k(e.target.value),...null===E||void 0===E?void 0:E(f,b),value:C||void 0,children:[s?(0,h.jsx)("option",{value:_,children:x||y&&S.formatMessage({id:y})||j}):(0,h.jsx)("option",{disabled:!0,value:_,children:x||y&&S.formatMessage({id:y})||j}),v.map((e=>{const i=w(e.label,e.labelId);return i?(0,h.jsx)("option",{value:e.id,disabled:e.disabled,children:i},e.id):null}))]})]})};m.displayName="SelectInputForm";const A=m},20700:()=>{},20760:(e,i,t)=>{t.d(i,{A:()=>o});var s=t(65471),n=t(44414);const o=(0,s.A)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")},25007:(e,i,t)=>{let s;t.d(i,{LV:()=>n,qA:()=>s,uz:()=>o}),function(e){e.CUSTOMER_ACCOUNT="A",e.REQUIRE_ACCOUNT_PIN="AP",e.CREDIT_DEBIT_CARD="CC",e.INSTANT="I",e.CASH_CC="CASH_CC"}(s||(s={}));const n=[{id:"A",type:s.CUSTOMER_ACCOUNT,stringId:"kiosk.customer_account"},{id:"CC",type:s.CREDIT_DEBIT_CARD,stringId:"kiosk.stored_card"},{id:s.CASH_CC,type:s.CASH_CC,stringId:"kiosk.cod"}],o=e=>n.find((i=>i.id===e))},29240:(e,i,t)=>{t.d(i,{A:()=>o});var s=t(65471),n=t(44414);const o=(0,s.A)((0,n.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"Refresh")},36688:(e,i,t)=>{t.d(i,{A:()=>c});var s=t(9950),n=t(25979),o=t(8145),l=t(24516),r=t(83675),a=t(41397),d=t(44414);const c=e=>{let{label:i,onChange:t,value:c,textfieldProps:p={},required:u,helperText:h,learnMore:_}=e;const m=(0,s.useRef)(null);return(0,s.useEffect)((()=>
1{if("number"===p.type&&m.current){const e=m.current,i=i=>{document.activeElement===e&&i.preventDefault()};return e.addEventListener("wheel",i,{passive:!1}),()=>{e.removeEventListener("wheel",i)}}return()=>{}}),[p.type]),(0,d.jsxs)(n.A,{fullWidth:!0,children:[(0,d.jsx)(o.A,{variant:"outlined",color:"primary",label:i,onChange:t,value:c,...p,required:!!u,onKeyDown:e=>{"number"!==p.type||"ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"PageUp"!==e.key&&"PageDown"!==e.key||e.preventDefault()},inputRef:m}),h&&(0,d.jsx)(d.Fragment,{children:(0,a.isString)(h)?(0,d.jsx)(l.A,{children:h}):h}),!!_&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(r.A,{title:i,info:_})})]})}},59100:(e,i,t)=>{t.d(i,{A:()=>A});var s=t(48383),n=t.n(s),o=t(9950),l=t(22634),r=t(89288),a=(t(20700),t(83274)),d=t(25333),c=t(96583),p=t(28170),u=t(24516),h=t(89299),_=t(44414);const m=e=>{let{disabled:i=!1,isEditable:t=!0,isSubmitted:s,isValid:m,label:A="",labelId:g="",name:I,onlyPositives:f=!0,onlyPositivesWithoutZero:k=!1,placeHolder:v="",placeHolderId:x="",register:y=null,type:E="text",step:b,validations:C={required:!0},value:N=null,info:S,error:j,...T}=e;const O=(0,r.A)(),R=(0,l.MW)(),[w,P]=(0,o.useState)(!1),D=void 0===b?void 0:1,L=n()("input-container",{"input-file-container":"file"===E,"input-valid":s&&C.required&&m,"input-invalid":s&&C.required&&!m}),G=e=>{if("number"===E){const s=k?1:f?0:void 0;return(0,_.jsx)("input",{min:s,placeholder:e,step:D,type:E,value:null!==N&&void 0!==N?N:void 0,onKeyDownCapture:e=>{!i||8!==e.keyCode&&38!==e.keyCode&&40!==e.keyCode||e.preventDefault()},onKeyPress:e=>{i&&e.preventDefault()},...null===y||void 0===y?void 0:y(I,C),disabled:!t})}return(0,_.jsx)("input",{placeholder:e,type:E,...null===y||void 0===y?void 0:y(I,C),disabled:!t,value:null!==N&&void 0!==N?N:void 0,onChange:function(e){if("file"===E&&C.maxFileSize){if(!e.target.files||!e.target.files.length)return;if(e.target.files[0].size>C.maxFileSize)return R.error("File size too large. Limit: 2MB"),e.target.files=null,void(e.target.value="");null===y||void 0===y||y(I,C).onChange(e)}},...T})},U=G(x?O.formatMessage({id:x}):v),W=()=>A||(g?O.formatMessage({id:g}):"");return(0,_.jsxs)("div",{className:L,children:[(0,_.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:"5px",alignItems:"center"},children:S?(0,_.jsxs)(_.Fragment,{children:[(A||g)&&(0,_.jsxs)("label",{htmlFor:I,style:{marginBottom:"0px"},children:[W()," "]}),"tooltip"===S.type&&(0,_.jsx)(a.A,{title:S.content,children:(0,_.jsx)(d.A,{size:"small",children:(0,_.jsx)(h.A,{color:"disabled",fontSize:"small"})})}),"modal"===S.type&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(d.A,{size:"small",onClick:()=>P(!0),children:(0,_.jsx)(h.A,{color:"disabled",fontSize:"small"})}),(0,_.jsx)(c.A,{open:w,onClose:()=>P(!1),children:(0,_.jsx)(p.A,{children:S.content})})]})]}):(0,_.jsx)(_.Fragment,{children:(A||g)&&(0,_.jsxs)("label",{htmlFor:I,children:[W()," "]})})}),U,"text"===(null===S||void 0===S?void 0:S.type)&&(0,_.jsx)(u.A,{children:null===S||void 0===S?void 0:S.content}),j&&(0,_.jsx)(u.A,{style:{color:"red"},children:j})]})};m.displayName="InputForm";const A=m},64958:(e,i,t)=>{t.d(i,{CN:()=>s,Gb:()=>n,WY:()=>o,gM:()=>r,sS:()=>l,uL:()=>a});let s;!function(e){e.TEXTFIELD="TEXTFIELD",e.BUTTON="BUTTON",e.SELECTOR="SELECTOR",e.PRODUCT_PRICING_SELECTOR="PRODUCT_PRICING_SELECTOR",e.PRODUCT_SELECTOR="PRODUCT_SELECTOR",e.PHOTO="PHOTO",e.SIGNATURE="SIGNATURE",e.DOCUMENT="DOCUMENT",e.JWS_CUSTOMER_SELECTOR="JWS_CUSTOMER_SELECTOR",e.JWS_ORDER_SELECTOR="JWS_ORDER_SELECTOR",e.BAR_CODE="BAR_CODE",e.QR_CODE="QR_CODE",e.INSTANT_MESSAGE="INSTANT_MESSAGE",e.INSTANT_MESSAGE_AFTER_TICKET="INSTANT_MESSAGE_AFTER_TICKET",e.TICKET_REPORTING_SPLITTER="TICKET_REPORTING_SPLITTER"}(s||(s={}));const n=[s.PHOTO,s.SIGNATURE,s.DOCUMENT,s.TICKET_REPORTING_SPLITTER],o=[s.PRODUCT_PRICING_SELECTOR,s.PRODUCT_SELECTOR,s.INSTANT_MESSAGE_AFTER_TICKET,s.TICKET_REPORTING_SPLITTER],l=(s.PHOTO,s.SIGNATURE,s.DOCUMENT,[s.INSTANT_MESSAGE,s.INSTANT_MESSAGE_AFTER_TICKET]),r=[s.PRODUCT_PRICING_SELECTOR,s.PRODUCT_SELECTOR],a=-1},66410:(e,i,t)=>{let s;t.d(i,{Gp:()=>n,dm:()=>s,uz:()=>o}),function(e){e.PAY_TO_WEIGHT="PTW",e.COMPANY_OWNED="CO",e.FREE="FREE"}(s||(s={}));const n=[{id:"PTW",type:s.PAY_TO_WEIGHT,stringId:"kiosk.pay_to_weight"},{id:"CO",type:s.COMPANY_OWNED,stringId:"kiosk.company_owner"},{id:"FREE",type:s.FREE,stringId:"kiosk.free"}],o=e=>n.find((i=>i.id===e))},66946:(e,i,t)=>{t.d(i,{A:()=>o});t(9950);var s=t(16491),n=t(44414);const o=e=>{const{children:i,value:t,index:o,boxProps:l,keepIn:r,...a}=e;return(0,n.jsx)("div",{role:"tabpanel",hidden:t!==o,id:`simple-tabpanel-${o}`,"aria-labelledby":`simple-tab-${o}`,...a,children:Boolean(t==o||r)&&(0,n.jsx)(s.A,{height:t!=o&&r?0:void 0,p:3,...l,children:i})})}},68048:(e,i,t)=>{let s,n;t.d(i,{m:()=>s,t:()=>n}),function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(s||(s={})),function(e){e.EQUALS="equals",e.CONTAINS="contains"}(n||(n={}))},73729:(e,i,t)=>{t.d(i,{A:()=>c});var s=t(48383),n=t.n(s),o=t(41397),l=t(9950),r=t(89288),a=(t(96931),t(44414));const d=l.forwardRef(((e,i)=>{let{isBlue:t=!1,isBold:s,isDisabled:l=!1,isGreen:d=!1,isPrimaryColor:c=!0,isRed:p=!1,isRounded:u=!1,isSubmit:h=!1,title:_="",titleId:m,onClick:A=o.noop}=e;const g=(0,r.A)(),I=n()("primary-button",{"primary-button--no-primary":!c,"primary-button--blue":t,"primary-button--green":d,"primary-button--red":p,"primary-button--bold":s,"primary-button--disabled":l,"primary-button--rounded":u}),f=m?g.formatMessage({id:m}):_,k=h?"submit":"button";return(0,a.jsx)("button",{className:I,disabled:l,ref:i,type:k,onClick:A,children:f})}));d.displayName="PrimaryButton";const c=d},75654:(e,i,t)=>{t.d(i,{A:()=>g});var s=t(96583),n=t(40033),o=t(28170),l=t(6493),r=t(16491),a=t(24516),d=t(82053),c=t(79739),p=t(10226),u=t(9950),h=t(89288),_=t(6349),m=t(49244),A=t(44414);const g=e=>{let{open:i,title:t,message:g,additionalContent:I,learnMore:f,onConfirm:k,onCancel:v,dialogProps:x,loading:y=!1}=e;const E=(0,h.A)(),[b,C]=(0,u.useState)(!1);return(0,A.jsxs)(s.A,{...x,open:i,onClose:()=>v(),fullWidth:!0,children:[(0,A.jsx)(n.A,{children:t}),(0,A.jsx)(o.A,{children:y?(0,A.jsx)(_.xA,{container:!0,alignItems:"center",justifyContent:"center",children:(0,A.jsx)(_.xA,{item:!0,children:(0,A.jsx)(m.A,{})})}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(l.A,{children:g}),!!I&&(0,A.jsx)(r.A,{my:2,children:I}),!!f&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(a.A,{children:(0,A.jsx)("button",{type:"button",style:{color:"inherit",fontSize:"inherit",borderWidth:0,backgroundColor:"transparent",paddingLeft:0},onClick:()=>C(!0),children:(0,A.jsx)(d.A,{color:"GrayText",variant:"caption",style:{textDecoration:"underline"},children:"Learn more"})})}),(0,A.jsxs)(s.A,{open:b,onClose:()=>C(!1),children:[f.title&&(0,A.jsx)(n.A,{children:f.title}),(0,A.jsx)(o.A,{children:(0,A.jsx)(l.A,{children:f.content})})]})]})]})}),y?null:(0,A.jsxs)(c.A,{children:[(0,A.jsx)(p.A,{color:"primary",variant:"outlined",onClick:v,children:E.formatMessage({id:"dashboard.popup.cancel"})}),(0,A.jsx)(p.A,{color:"primary",variant:"contained",onClick:k,children:E.formatMessage({id:"dashboard.popup.confirm"})})]})]})}},75737:(e,i,t)=>{let s;t.d(i,{Jx:()=>n,PK:()=>o,ss:()=>s,uz:()=>l}),function(e){e.TARE_AND_GROSS="TG",e.GROSS_AND_TARE="GT",e.TARE_ONLY="TO",e.GROSS_ONLY="GO",e.INBOUND_OUTBOUND="IO",e.NON_WEIGHING="NW"}(s||(s={}));const n=[s.TARE_AND_GROSS,s.GROSS_AND_TARE,s.INBOUND_OUTBOUND],o=[{id:"TG",type:s.TARE_AND_GROSS,stringId:"kiosk.tare_and_gross"},{id:"GT",type:s.GROSS_AND_TARE,stringId:"kiosk.gross_and_tare"},{id:"TO",type:s.TARE_ONLY,stringId:"kiosk.tare_only"},{id:"GO",type:s.GROSS_ONLY,stringId:"kiosk.gross_only"},{id:"IO",type:s.INBOUND_OUTBOUND,stringId:"kiosk.inbound_outbound"},{id:s.NON_WEIGHING,type:s.NON_WEIGHING,stringId:"kiosk.non_weighing"}],l=e=>o.find((i=>i.id===e))},81791:(e,i,t)=>{t.d(i,{Bi:()=>a,MI:()=>d,V$:()=>o,bl:()=>r,bp:()=>l,hp:()=>n});var s=t(64958);const n=(e,i)=>{const t=new Set(i.filter((e=>!!e))),s=null!==e&&void 0!==e?e:[];return{ownCompany:s.find((e=>t.has(e.id))),others:s.filter((e=>!t.has(e.id)))}},o=e=>!!e.pages&&e.pages.find((e=>e.attributes.find((e=>{var i;return s.gM.includes((null===(i=e.uiElement)||void 0===i?void 0:i.type)||"")}))));let l;!function(e){e.WEIGH_ONLY="weigh-only",e.PRICING_PAYABLE="pricing-payable",e.PRICING_RECEIVABLE="pricing-receivable"}(l||(l={}));const r=[l.PRICING_PAYABLE,l.PRICING_RECEIVABLE],a=Object.values(l),d=-1},83675:(e,i,t)=>{t.d(i,{A:()=>h});var s=t(9950),n=t(24516),o=t(83274),l=t(82053),r=t(96583),a=t(40033),d=t(79739),c=t(6349),p=t(41397),u=t(44414);const h=e=>{let{info:i,title:t}=e;
1const[h,_]=(0,s.useState)(!1);return(0,p.isString)(i)?(0,u.jsx)(n.A,{children:(0,u.jsx)(o.A,{title:i,arrow:!0,children:(0,u.jsx)(l.A,{variant:"caption",color:"GrayText",children:"Learn more"})})}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(n.A,{children:(0,u.jsx)("button",{type:"button",style:{color:"inherit",fontSize:"inherit",borderWidth:0,backgroundColor:"transparent"},onClick:()=>_(!0),children:(0,u.jsx)(l.A,{color:"GrayText",variant:"caption",style:{textDecoration:"underline"},children:"Learn more"})})}),(0,u.jsxs)(r.A,{open:h,onClose:()=>_(!1),fullWidth:!0,children:[(0,u.jsx)(a.A,{children:t}),(0,u.jsx)(c.Cf,{children:i}),(0,u.jsx)(d.A,{children:(0,u.jsx)(c.$n,{type:"button",onClick:()=>_(!1),children:"Close"})})]})]})}},84883:(e,i,t)=>{t.d(i,{A:()=>c});var s=t(9950),n=t(63027),o=t(24184),l=t(33738),r=t(35834),a=t(44414);const d=e=>{let{titleId:i,summaryId:t}=e;const[d,c]=(0,s.useState)(!1),p=(0,a.jsx)("p",{className:"paragraph-info__text",style:{whiteSpace:"pre-line"},children:(0,a.jsx)(n.A,{id:i,values:{strong:function(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return(0,a.jsx)("strong",{children:i})}}})});return t?(0,a.jsxs)("div",{className:"paragraph-info__container",children:[(0,a.jsxs)(o.A,{className:"paragraph-info__summary",onClick:()=>c((e=>!e)),"aria-expanded":d,disableRipple:!0,children:[(0,a.jsx)("strong",{children:(0,a.jsx)(n.A,{id:t})}),(0,a.jsx)(r.A,{className:"paragraph-info__chevron"+(d?" paragraph-info__chevron--open":""),fontSize:"small"})]}),(0,a.jsx)(l.A,{in:d,children:p})]}):(0,a.jsx)("div",{className:"paragraph-info__container",children:p})};d.displayName="ParagraphInfo";const c=d},93528:(e,i,t)=>{t.d(i,{A:()=>h});t(9950);var s=t(96583),n=t(40033),o=t(28170),l=t(60899),r=t(82053),a=t(10226),d=t(22634),c=t(89288),p=t(27081),u=t(44414);const h=e=>{let{name:i,onClose:t,onConfirm:h,loading:_}=e;(0,d.MW)();const m=(0,c.A)();(0,p.wA)();return(0,u.jsxs)(s.A,{open:!0,onClose:()=>t(),fullWidth:!0,children:[(0,u.jsx)(n.A,{children:"Name In Use"}),(0,u.jsx)(o.A,{children:(0,u.jsxs)(l.Ay,{container:!0,spacing:2,justifyContent:"center",children:[(0,u.jsx)(l.Ay,{item:!0,xs:12,children:(0,u.jsxs)(r.A,{children:['"',i,'" is already in use. Would you like to allow duplicate names? If you opt to use versioning, the name will be changed the same way as Windows handles duplicate file names: if the name is already in use, a " (1)" will be added to the end. If " (1)" already exists, that number will be incremented until the resulting name is unique (" (2)", " (3)", etc.)']})}),!_&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Ay,{item:!0,xs:12,children:(0,u.jsx)(a.A,{color:"primary",variant:"contained",onClick:()=>h(!0),fullWidth:!0,children:"Keep the name as is"})}),(0,u.jsx)(l.Ay,{item:!0,xs:12,children:(0,u.jsx)(r.A,{textAlign:"center",children:"OR"})}),(0,u.jsx)(l.Ay,{item:!0,xs:12,children:(0,u.jsx)(a.A,{color:"primary",variant:"contained",onClick:()=>h(!1),fullWidth:!0,children:"Use Versioning"})}),(0,u.jsx)(l.Ay,{item:!0,xs:12,children:(0,u.jsx)(a.A,{color:"primary",onClick:t,fullWidth:!0,children:m.formatMessage({id:"dashboard.popup.cancel"})})})]})]})})]})}}}]);

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.