Help
RSS
API
Feed
Maltego
Contact
Domain > chicknbao.com.au
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
DNS Resolutions
Date
IP Address
2026-02-20
104.21.13.113
(
ClassC
)
Port 80
HTTP/1.1 301 Moved PermanentlyDate: Fri, 20 Feb 2026 22:37:30 GMTContent-Type: text/htmlTransfer-Encoding: chunkedConnection: keep-aliveReport-To: {group:cf-nel,max_age:604800,endpoints:{url:https://a.nel.cloudflare.com/report/v4?sD6IDYuZ4ceZQ2QnetEhkDVxy5x7RslO6fbhF6%2FyzCbhcjHPL4uCI6G6c1AZDqKirovO0NyFvwIUAWiiO%2FEaN%2FU8MVZl0YfL1jM7VztTPhag%3D}}location: https://chicknbao.com.au/server: cloudflarevary: Accept-EncodingNel: {report_to:cf-nel,success_fraction:0.0,max_age:604800}cf-cache-status: DYNAMICCF-RAY: 9d117d294c5e9b19-PDXalt-svc: h3:443; ma86400 !DOCTYPE html>html styleheight:100%>head>meta nameviewport contentwidthdevice-width, initial-scale1, shrink-to-fitno>title> 301 Moved Permanently/title>/head>body stylecolor: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;>div styleheight:auto; min-height:100%; > div styletext-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;> h1 stylemargin:0; font-size:150px; line-height:150px; font-weight:bold;>301/h1>h2 stylemargin-top:20px;font-size: 30px;>Moved Permanently/h2>p>The document has been permanently moved to A HREF%s>here/A>./p>/div>/div>/body>/html>
Port 443
HTTP/1.1 200 OKDate: Fri, 20 Feb 2026 22:37:32 GMTContent-Type: text/html; charsetUTF-8Transfer-Encoding: chunkedConnection: keep-alivex-powered-by: PHP/7.3.31Set-Cookie: PHPSESSID3a5e87b61cd53c8e3ebd0490c81c2311; path/expires: Thu, 19 Nov 1981 08:52:00 GMTCache-Control: no-store, no-cache, must-revalidatepragma: no-cacheReport-To: {group:cf-nel,max_age:604800,endpoints:{url:https://a.nel.cloudflare.com/report/v4?s90ZDpWTcL9v2QRSxKvA%2FEAMOx6pzDS3Z2kClnnJ%2BwcCcyVhBTTNCea6crWWgX3Kp%2FTQTTyzyIJsglBcZObemgEsXQE5nGP2i3MjXsOvFG%2Bs%3D}}vary: Accept-EncodingServer: cloudflarealt-svc: h3:443; ma86400cf-cache-status: DYNAMICNel: {report_to:cf-nel,success_fraction:0.0,max_age:604800}CF-RAY: 9d117d2ba8a9ac0d-PDX !DOCTYPE html>html langen>head> title>Chick-N-Bao/title> meta charsetUTF-8>script typetext/javascript>(window.NREUM||(NREUM{})).init{privacy:{cookies_enabled:true},ajax:{deny_list:bam.nr-data.net},feature_flags:soft_nav,distributed_tracing:{enabled:true}};(window.NREUM||(NREUM{})).loader_config{agentID:594517728,accountID:4414785,trustKey:4414785,xpid:UAIGVVFbDRAFXFhXBgABVF0,licenseKey:NRJS-3bd9f889cb1db7ee0cc,applicationID:589511629,browserID:594517728};;/*! For license information please see nr-loader-spa-1.310.0.min.js.LICENSE.txt */(()>{var e,t,r{384:(e,t,r)>{use strict;r.d(t,{NT:()>a,US:()>l,Zm:()>c,bQ:()>u,dV:()>d,pV:()>f});var nr(6154),ir(1863),sr(944),or(1910);const a{beacon:bam.nr-data.net,errorBeacon:bam.nr-data.net};function c(){return n.gm.NREUM||(n.gm.NREUM{}),void 0n.gm.newrelic&&(n.gm.newrelicn.gm.NREUM),n.gm.NREUM}function d(){let ec();return e.o||(e.o{ST:n.gm.setTimeout,SI:n.gm.setImmediate||n.gm.setInterval,CT:n.gm.clearTimeout,XHR:n.gm.XMLHttpRequest,REQ:n.gm.Request,EV:n.gm.Event,PR:n.gm.Promise,MO:n.gm.MutationObserver,FETCH:n.gm.fetch,WS:n.gm.WebSocket},(0,o.i)(...Object.values(e.o))),e}function u(e,t){let rc();r.initializedAgents??{},t.initializedAt{ms:(0,i.t)(),date:new Date},r.initializedAgentset,2Object.keys(r.initializedAgents).length&&(0,s.R)(69)}function l(e,t){c()et}function f(){return function(){let ec();const te.info||{};e.info{beacon:a.beacon,errorBeacon:a.errorBeacon,...t}}(),function(){let ec();const te.init||{};e.init{...t}}(),d(),function(){let ec();const te.loader_config||{};e.loader_config{...t}}(),c()}},782:(e,t,r)>{use strict;r.d(t,{T:()>n});const nr(860).K7.pageViewTiming},860:(e,t,r)>{use strict;r.d(t,{$J:()>u,K7:()>c,P3:()>d,XX:()>i,Yy:()>a,df:()>s,qY:()>n,v4:()>o});const nevents,ijserrors,sbrowser/blobs,orum,abrowser/logs,c{ajax:ajax,genericEvents:generic_events,jserrors:i,logging:logging,metrics:metrics,pageAction:page_action,pageViewEvent:page_view_event,pageViewTiming:page_view_timing,sessionReplay:session_replay,sessionTrace:session_trace,softNav:soft_navigations},d{c.pageViewEvent:1,c.pageViewTiming:2,c.metrics:3,c.jserrors:4,c.softNav:5,c.ajax:6,c.sessionTrace:7,c.sessionReplay:8,c.logging:9,c.genericEvents:10},u{c.pageViewEvent:o,c.pageViewTiming:n,c.ajax:n,c.softNav:n,c.metrics:i,c.jserrors:i,c.sessionTrace:s,c.sessionReplay:s,c.logging:a,c.genericEvents:ins}},944:(e,t,r)>{use strict;r.d(t,{R:()>i});var nr(3241);function i(e,t){functiontypeof console.debug&&(console.debug(New Relic Warning: https://github.com/newrelic/newrelic-browser-agent/blob/main/docs/warning-codes.md#.concat(e),t),(0,n.W)({agentIdentifier:null,drained:null,type:data,name:warn,feature:warn,data:{code:e,secondary:t}}))}},993:(e,t,r)>{use strict;r.d(t,{A$:()>s,ET:()>o,TZ:()>a,p_:()>i});var nr(860);const i{ERROR:ERROR,WARN:WARN,INFO:INFO,DEBUG:DEBUG,TRACE:TRACE},s{OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,TRACE:5},olog,an.K7.logging},1541:(e,t,r)>{use strict;r.d(t,{U:()>i,f:()>n});const n{MFE:MFE,BA:BA};function i(e,t){if(2!t?.harvestEndpointVersion)return{};const rt.agentRef.runtime.appMetadata.agents0.entityGuid;return e?{source.id:e.id,source.name:e.name,source.type:e.type,parent.id:e.parent?.id||r,parent.type:e.parent?.type||n.BA}:{entity.guid:r,appId:t.agentRef.info.applicationID}}},1687:(e,t,r)>{use strict;r.d(t,{Ak:()>d,Ze:()>f,x3:()>u});var nr(3241),ir(7836),sr(3606),or(860),ar(2646);const c{};function d(e,t){const r{staged:!1,priority:o.P3t||0};l(e),ce.get(t)||ce.set(t,r)}function u(e,t){e&&ce&&(ce.get(t)&&ce.delete(t),p(e,t,!1),ce.size&&h(e))}function l(e){if(!e)throw new Error(agentIdentifier required);ce||(cenew Map)}function f(e,tfeature,r!1){if(l(e),!e||!ce.get(t)||r)return p(e,t);ce.get(t).staged!0,h(e)}function h(e){const tArray.from(ce);t.every((e,t)>t.staged)&&(t.sort((e,t)>e1.priority-t1.priority),t.forEach((t)>{ce.delete(t),p(e,t)}))}function p(e,t,r!0){const oe?i.ee.get(e):i.ee,cs.i.handlers;if(!o.aborted&&o.backlog&&c){if((0,n.W)({agentIdentifier:e,type:lifecycle,name:drain,feature:t}),r){const eo.backlogt,rct;if(r){for(let t0;e&&te.length;++t)g(et,r);Object.entries(r).forEach((e,t)>{Object.values(t||{}).forEach(t>{t0?.on&&t0.context()instanceof a.y&&!t0.listeners(e).includes(t1)&&t0.on(e,t1)})})}}o.isolatedBacklog||delete ct,o.backlogtnull,o.emit(drain-+t,)}}function g(e,t){var re1;Object.values(tr||{}).forEach(t>{var re0;if(t0r){var nt1,ie3,se2;n.apply(i,s)}})}},1738:(e,t,r)>{use strict;r.d(t,{U:()>h,Y:()>f});var nr(3241),ir(9908),sr(1863),or(944),ar(5701),cr(3969),dr(8362),ur(860),lr(4261);function f(e,t,r,s){const fs||r;!f||fe&&fe!d.d.prototypee||(fefunction(){(0,i.p)(c.xV,API/+e+/called,void 0,u.K7.metrics,r.ee),(0,n.W)({agentIdentifier:r.agentIdentifier,drained:!!a.B?.r.agentIdentifier,type:data,name:api,feature:l.Pl+e,data:{}});try{return t.apply(this,arguments)}catch(e){(0,o.R)(23,e)}})}function h(e,t,r,n,o){const ae.info;nullr?delete a.jsAttributest:a.jsAttributestr,(o||nullr)&&(0,i.p)(l.Pl+n,(0,s.t)(),t,r,void 0,session,e.ee)}},1741:(e,t,r)>{use strict;r.d(t,{W:()>s});var nr(944),ir(4261);class s{#e(e,...t){if(thise!s.prototypee)return thise(...t);(0,n.R)(35,e)}addPageAction(e,t){return this.#e(i.hG,e,t)}register(e){return this.#e(i.eY,e)}recordCustomEvent(e,t){return this.#e(i.fF,e,t)}setPageViewName(e,t){return this.#e(i.Fw,e,t)}setCustomAttribute(e,t,r){return this.#e(i.cD,e,t,r)}noticeError(e,t){return this.#e(i.o5,e,t)}setUserId(e,t!1){return this.#e(i.Dl,e,t)}setApplicationVersion(e){return this.#e(i.nb,e)}setErrorHandler(e){return this.#e(i.bt,e)}addRelease(e,t){return this.#e(i.k6,e,t)}log(e,t){return this.#e(i.$9,e,t)}start(){return this.#e(i.d3)}finished(e){return this.#e(i.BL,e)}recordReplay(){return this.#e(i.CH)}pauseReplay(){return this.#e(i.Tb)}addToTrace(e){return this.#e(i.U2,e)}setCurrentRouteName(e){return this.#e(i.PA,e)}interaction(e){return this.#e(i.dT,e)}wrapLogger(e,t,r){return this.#e(i.Wb,e,t,r)}measure(e,t){return this.#e(i.V1,e,t)}consent(e){return this.#e(i.Pv,e)}}},1863:(e,t,r)>{use strict;function n(){return Math.floor(performance.now())}r.d(t,{t:()>n})},1910:(e,t,r)>{use strict;r.d(t,{i:()>s});var nr(944);const inew Map;function s(...e){return e.every(e>{if(i.has(e))return i.get(e);const tfunctiontypeof e?e.toString():,rt.includes(native code),st.includes(nrWrapper);return r||s||(0,n.R)(64,e?.name||t),i.set(e,r),r})}},2555:(e,t,r)>{use strict;r.d(t,{D:()>a,f:()>o});var nr(384),ir(8122);const s{beacon:n.NT.beacon,errorBeacon:n.NT.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0};function o(e){try{return!!e.licenseKey&&!!e.errorBeacon&&!!e.applicationID}catch(e){return!1}}const ae>(0,i.a)(e,s)},2614:(e,t,r)>{use strict;r.d(t,{BB:()>o,H3:()>n,g:()>d,iL:()>c,tS:()>a,uh:()>i,wk:()>s});const nNRBA,iSESSION,s144e5,o18e5,a{STARTED:session-started,PAUSE:session-pause,RESET:session-reset,RESUME:session-resume,UPDATE:session-update},c{SAME_TAB:same-tab,CROSS_TAB:cross-tab},d{OFF:0,FULL:1,ERROR:2}},2646:(e,t,r)>{use strict;r.d(t,{y:()>n});class n{constructor(e){this.contextIde}}},2843:(e,t,r)>{use strict;r.d(t,{G:()>s,u:()>i});var nr(3878);function i(e,t!1,r,i){(0,n.DD)(visibilitychange,function(){if(t)return void(hiddendocument.visibilityState&&e());e(document.visibilityState)},r,i)}function s(e,t,r){(0,n.sp)(pagehide,e,t,r)}},3241:(e,t,r)>{use strict;r.d(t,{W:()>s});var nr(6154);const inewrelic;function s(e{}){try{n.gm.dispatchEvent(new CustomEvent(i,{detail:e}))}catch(e){}}},3304:(e,t,r)>{use strict;r.d(t,{A:()>s});var nr(7836);const i()>{const enew WeakSet;return(t,r)>{if(objecttypeof r&&null!r){if(e.has(r))return;e.add(r)}return r}};function s(e){try{return JSON.stringify(e,i())??}catch(e){try{n.ee.emit(internal-error,e)}catch(e){}return}}},3333:(e,t,r)>{use strict;r.d(t,{$v:()>u,TZ:()>n,Xh:()>c,Zp:()>i,kd:()>d,mq:()>a,nf:()>o,qN:()>s});const nr(860).K7.genericEvents,iauxclick,click,copy,keydown,paste,scrollend,sfocus,blur,o4,a1e3,c2e3,dPageAction,UserAction,BrowserPerformance,u{RESOURCES:experimental.resources,REGISTER:register}},3434:(e,t,r)>{use strict;r.d(t,{Jt:()>s,YM:()>d});var nr(7836),ir(5607);const snr@original:.concat(i.W),o50;var aObject.prototype.hasOwnProperty,c!1;function d(e,t){return e||(en.ee),r.inPlacefunction(e,t,n,i,s){n||(n);const o-n.charAt(0);for(let a0;at.length;a++){const cta,dec;l(d)||(ecr(d,o?c+n:n,i,c,s))}},r.flags,r;function r(t,r,n,c,d){return l(t)?t:(r||(r),nrWrapperst,function(e,t,r){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach(function(r){Object.defineProperty(t,r,{get:function(){return er},set:function(t){return ert,t}})}),t}catch(e){u(e,r)}for(var n in e)a.call(e,n)&&(tnen)}(t,nrWrapper,e),nrWrapper);function nrWrapper(){var s,a,l,f;let h;try{athis,s...arguments,lfunctiontypeof n?n(s,a):n||{}}catch(t){u(t,,s,a,c,l,e)}i(r+start,s,a,c,l,d);const pperformance.now();let g;try{return ft.apply(a,s),gperformance.now(),f}catch(e){throw gperformance.now(),i(r+err,s,a,e,l,d),he,h}finally{const eg-p,t{start:p,end:g,duration:e,isLongTask:e>o,methodName:c,thrownError:h};t.isLongTask&&i(long-task,t,a,l,d),i(r+end,s,a,f,l,d)}}}function i(r,n,i,s){if(!c||t){var oc;c!0;try{e.emit(r,n,i,t,s)}catch(t){u(t,r,n,i,e)}co}}}function u(e,t){t||(tn.ee);try{t.emit(internal-error,e)}catch(e){}}function l(e){return!(e&&functiontypeof e&&e.apply&&!es)}},3606:(e,t,r)>{use strict;r.d(t,{i:()>s});var nr(9908);s.ono;var is.handlers{};function s(e,t,r,s){o(s||n.d,i,e,t,r)}function o(e,t,r,i,s){s||(sfeature),e||(en.d);var otsts||{};(oror||).push(e,i)}},3738:(e,t,r)>{use strict;r.d(t,{He:()>i,Kp:()>a,Lc:()>d,Rz:()>u,TZ:()>n,bD:()>s,d3:()>o,jx:()>l,sl:()>f,uP:()>c});const nr(860).K7.sessionTrace,ibstResource,sresource,o-start,a-end,cfn+o,dfn+a,upushState,l1e3,f3e4},3785:(e,t,r)>{use strict;r.d(t,{R:()>c,b:()>d});var nr(9908),ir(1863),sr(860),or(3969),ar(993);function c(e,t,r{},ca.p_.INFO,d!0,u,l(0,i.t)()){(0,n.p)(o.xV,API/logging/.concat(c.toLowerCase(),/called),void 0,s.K7.metrics,e),(0,n.p)(a.ET,l,t,r,c,d,u,void 0,s.K7.logging,e)}function d(e){returnstringtypeof e&&Object.values(a.p_).some(t>te.toUpperCase().trim())}},3878:(e,t,r)>{use strict;function n(e,t){return{capture:e,passive:!1,signal:t}}function i(e,t,r!1,i){window.addEventListener(e,t,n(r,i))}function s(e,t,r!1,i){document.addEventListener(e,t,n(r,i))}r.d(t,{DD:()>s,jT:()>n,sp:()>i})},3962:(e,t,r)>{use strict;r.d(t,{AM:()>o,O2:()>l,OV:()>s,Qu:()>f,TZ:()>c,ih:()>h,pP:()>a,t1:()>u,tC:()>i,wD:()>d});var nr(860);const iclick,keydown,submit,spopstate,oapi,ainitialPageLoad,cn.K7.softNav,d5e3,u500,l{INITIAL_PAGE_LOAD:,ROUTE_CHANGE:1,UNSPECIFIED:2},f{INTERACTION:1,AJAX:2,CUSTOM_END:3,CUSTOM_TRACER:4},h{IP:in progress,PF:pending finish,FIN:finished,CAN:cancelled}},3969:(e,t,r)>{use strict;r.d(t,{TZ:()>n,XG:()>a,rs:()>i,xV:()>o,z_:()>s});const nr(860).K7.metrics,ism,scm,ostoreSupportabilityMetrics,astoreEventMetrics},4234:(e,t,r)>{use strict;r.d(t,{W:()>s});var nr(7836),ir(1687);class s{constructor(e,t){this.agentIdentifiere,this.een.ee.get(e),this.featureNamet,this.blocked!1}deregisterDrain(){(0,i.x3)(this.agentIdentifier,this.featureName)}}},4261:(e,t,r)>{use strict;r.d(t,{$9:()>u,BL:()>c,CH:()>p,Dl:()>R,Fw:()>w,PA:()>v,Pl:()>n,Pv:()>x,Tb:()>f,U2:()>o,V1:()>A,Wb:()>T,bt:()>b,cD:()>y,d3:()>E,dT:()>d,eY:()>g,fF:()>h,hG:()>s,hw:()>i,k6:()>a,nb:()>m,o5:()>l});const napi-,in+ixn-,saddPageAction,oaddToTrace,aaddRelease,cfinished,dinteraction,ulog,lnoticeError,fpauseReplay,hrecordCustomEvent,precordReplay,gregister,msetApplicationVersion,vsetCurrentRouteName,ysetCustomAttribute,bsetErrorHandler,wsetPageViewName,RsetUserId,Estart,TwrapLogger,Ameasure,xconsent},5205:(e,t,r)>{use strict;r.d(t,{j:()>_});var nr(384),ir(1741);var sr(2555),or(3333);const ae>{if(!e||string!typeof e)return!1;try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0};var cr(2614),dr(944),ur(8122);const ldata-nr-mask,fe>(0,u.a)(e,(()>{const e{feature_flags:,experimental:{allow_registered_children:!1,resources:!1},mask_selector:*,block_selector:data-nr-block,mask_input_options:{color:!1,date:!1,datetime-local:!1,email:!1,month:!1,number:!1,range:!1,search:!1,tel:!1,text:!1,time:!1,url:!1,week:!1,textarea:!1,select:!1,password:!0}};return{ajax:{deny_list:void 0,block_internal:!0,enabled:!0,autoStart:!0},api:{get allow_registered_children(){return e.feature_flags.includes(o.$v.REGISTER)||e.experimental.allow_registered_children},set allow_registered_children(t){e.experimental.allow_registered_childrent},duplicate_registered_data:!1},browser_consent_mode:{enabled:!1},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},get feature_flags(){return e.feature_flags},set feature_flags(t){e.feature_flagst},generic_events:{enabled:!0,autoStart:!0},harvest:{interval:30},jserrors:{enabled:!0,autoStart:!0},logging:{enabled:!0,autoStart:!0},metrics:{enabled:!0,autoStart:!0},obfuscate:void 0,page_action:{enabled:!0},page_view_event:{enabled:!0,autoStart:!0},page_view_timing:{enabled:!0,autoStart:!0},performance:{capture_marks:!1,capture_measures:!1,capture_detail:!0,resources:{get enabled(){return e.feature_flags.includes(o.$v.RESOURCES)||e.experimental.resources},set enabled(t){e.experimental.resourcest},asset_types:,first_party_domains:,ignore_newrelic:!0}},privacy:{cookies_enabled:!0},proxy:{assets:void 0,beacon:void 0},session:{expiresMs:c.wk,inactiveMs:c.BB},session_replay:{autoStart:!0,enabled:!1,preload:!1,sampling_rate:10,error_sampling_rate:100,collect_fonts:!1,inline_images:!1,fix_stylesheets:!0,mask_all_inputs:!0,get mask_text_selector(){return e.mask_selector},set mask_text_selector(t){a(t)?e.mask_selector.concat(t,,).concat(l):t||nullt?e.mask_selectorl:(0,d.R)(5,t)},get block_class(){returnnr-block},get ignore_class(){returnnr-ignore},get mask_text_class(){returnnr-mask},get block_selector(){return e.block_selector},set block_selector(t){a(t)?e.block_selector+,.concat(t):!t&&(0,d.R)(6,t)},get mask_input_options(){return e.mask_input_options},set mask_input_options(t){t&&objecttypeof t?e.mask_input_options{...t,password:!0}:(0,d.R)(7,t)}},session_trace:{enabled:!0,autoStart:!0},soft_navigations:{enabled:!0,autoStart:!0},ssl:void 0,user_actions:{enabled:!0,elementAttributes:id,className,tagName,type}}})());var hr(6154),pr(9324);let g0;const m{buildEnv:p.F3,distMethod:p.Xs,version:p.xv,originTime:h.WN},v{consented:!1},y{appMetadata:{},get consented(){return this.session?.state?.consent||v.consented},set consented(e){v.consentede},customTransaction:void 0,denyList:void 0,disabled:!1,harvester:void 0,isolatedBacklog:!1,isRecording:!1,loaderType:void 0,maxBytes:3e4,obfuscator:void 0,onerror:void 0,ptid:void 0,releaseIds:{},session:void 0,timeKeeper:void 0,registeredEntities:,jsAttributesMetadata:{bytes:0},get harvestCount(){return++g}},be>{const t(0,u.a)(e,y),rObject.keys(m).reduce((e,t)>(et{value:mt,writable:!1,configurable:!0,enumerable:!0},e),{});return Object.defineProperties(t,r)};var wr(5701);const Re>{const te.startsWith(http);e+/,r.pt?e:https://+e};var Er(7836),Tr(3241);const A{accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},xe>(0,u.a)(e,A),Snew Set;function _(e,t{},r,o){let{init:a,info:c,loader_config:d,runtime:u{},exposed:l!0}t;if(!c){const e(0,n.pV)();ae.init,ce.info,de.loader_config}e.initf(a||{}),e.loader_configx(d||{}),c.jsAttributes??{},h.bv&&(c.jsAttributes.isWorker!0),e.info(0,s.D)(c);const pe.init,gc.beacon,c.errorBeacon;S.has(e.agentIdentifier)||(p.proxy.assets&&(R(p.proxy.assets),g.push(p.proxy.assets)),p.proxy.beacon&&g.push(p.proxy.beacon),e.beacons...g,function(e){const t(0,n.pV)();Object.getOwnPropertyNames(i.W.prototype).forEach(r>{const ni.W.prototyper;if(function!typeof n||constructorn)return;let str;er&&!1!e.exposed&µ-agent!e.runtime?.loaderType&&(tr(...t)>{const ner(...t);return s?s(...t):n})})}(e),(0,n.US)(activatedFeatures,w.B)),u.denyList...p.ajax.deny_list||,...p.ajax.block_internal?g:,u.ptide.agentIdentifier,u.loaderTyper,e.runtimeb(u),S.has(e.agentIdentifier)||(e.eeE.ee.get(e.agentIdentifier),e.exposedl,(0,T.W)({agentIdentifier:e.agentIdentifier,drained:!!w.B?.e.agentIdentifier,type:lifecycle,name:initialize,feature:void 0,data:e.config})),S.add(e.agentIdentifier)}},5270:(e,t,r)>{use strict;r.d(t,{Aw:()>o,SR:()>s,rF:()>a});var nr(384),ir(7767);function s(e){return!!(0,n.dV)().o.MO&&(0,i.V)(e)&&!0e?.session_trace.enabled}function o(e){return!0e?.session_replay.preload&&s(e)}function a(e,t){try{if(stringtypeof t?.type){if(passwordt.type.toLowerCase())return*.repeat(e?.length||0);if(void 0!t?.dataset?.nrUnmask||t?.classList?.contains(nr-unmask))return e}}catch(e){}returnstringtypeof e?e.replace(/\S/g,*):*.repeat(e?.length||0)}},5289:(e,t,r)>{use strict;r.d(t,{GG:()>o,Qr:()>c,sB:()>a});var nr(3878),ir(6389);function s(){returnundefinedtypeof document||completedocument.readyState}function o(e,t){if(s())return e();const r(0,i.J)(e),osetInterval(()>{s()&&(clearInterval(o),r())},500);(0,n.sp)(load,r,t)}function a(e){if(s())return e();(0,n.DD)(DOMContentLoaded,e)}function c(e){if(s())return e();(0,n.sp)(popstate,e)}},5607:(e,t,r)>{use strict;r.d(t,{W:()>n});const n(0,r(9566).bz)()},5701:(e,t,r)>{use strict;r.d(t,{B:()>s,t:()>o});var nr(3241);const inew Set,s{};function o(e,t){const rt.agentIdentifier;sr??{},e&&objecttypeof e&&(i.has(r)||(t.ee.emit(rumresp,e),sre,i.add(r),(0,n.W)({agentIdentifier:r,loaded:!0,drained:!0,type:lifecycle,name:load,feature:void 0,data:e})))}},6154:(e,t,r)>{use strict;r.d(t,{OF:()>d,RI:()>i,WN:()>f,bv:()>s,eN:()>h,gm:()>o,lR:()>l,m:()>c,mw:()>a,sb:()>u});var nr(1863);const iundefined!typeof window&&!!window.document,sundefined!typeof WorkerGlobalScope&&(undefined!typeof self&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||undefined!typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator),oi?window:undefined!typeof WorkerGlobalScope&&(undefined!typeof self&&self instanceof WorkerGlobalScope&&self||undefined!typeof globalThis&&globalThis instanceof WorkerGlobalScope&&globalThis),aBoolean(hiddeno?.document?.visibilityState),c+o?.location,d/iPad|iPhone|iPod/.test(o.navigator?.userAgent),ud&&undefinedtypeof SharedWorker,l(()>{const eo.navigator?.userAgent?.match(/Firefox/\s(\d+\.\d+)/);return Array.isArray(e)&&e.length>2?+e1:0})(),fDate.now()-(0,n.t)(),h()>undefined!typeof PerformanceNavigationTiming&&o?.performance?.getEntriesByType(navigation)?.0?.responseStart},6344:(e,t,r)>{use strict;r.d(t,{BB:()>u,Qb:()>l,TZ:()>i,Ug:()>o,Vh:()>s,_s:()>a,bc:()>d,yP:()>c});var nr(2614);const ir(860).K7.sessionReplay,serrorDuringReplay,o.12,a{DomContentLoaded:0,Load:1,FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Custom:5},c{n.g.ERROR:15e3,n.g.FULL:3e5,n.g.OFF:0},d{RESET:{message:Session was reset,sm:Reset},IMPORT:{message:Recorder failed to import,sm:Import},TOO_MANY:{message:429: Too Many Requests,sm:Too-Many},TOO_BIG:{message:Payload was too large,sm:Too-Big},CROSS_TAB:{message:Session Entity was set to OFF on another tab,sm:Cross-Tab},ENTITLEMENTS:{message:Session Replay is not allowed and will not be started,sm:Entitlement}},u5e3,l{API:api,RESUME:resume,SWITCH_TO_FULL:switchToFull,INITIALIZE:initialize,PRELOAD:preload}},6389:(e,t,r)>{use strict;function n(e,t500,r{}){const nr?.leading||!1;let i;return(...r)>{n&&void 0i&&(e.apply(this,r),isetTimeout(()>{iclearTimeout(i)},t)),n||(clearTimeout(i),isetTimeout(()>{e.apply(this,r)},t))}}function i(e){let t!1;return(...r)>{t||(t!0,e.apply(this,r))}}r.d(t,{J:()>i,s:()>n})},6630:(e,t,r)>{use strict;r.d(t,{T:()>n});const nr(860).K7.pageViewEvent},6774:(e,t,r)>{use strict;r.d(t,{T:()>n});const nr(860).K7.jserrors},7295:(e,t,r)>{use strict;r.d(t,{Xv:()>o,gX:()>i,iW:()>s});var n;function i(e){if(!e||s(e))return!1;if(0n.length)return!0;if(*n0.hostname)return!1;for(var t0;tn.length;t++){var rnt;if(r.hostname.test(e.hostname)&&r.pathname.test(e.pathname))return!1}return!0}function s(e){return void 0e.hostname}function o(e){if(n,e&&e.length)for(var t0;te.length;t++){let ret;if(!r)continue;if(*r)return void(n{hostname:*});0r.indexOf(http://)?rr.substring(7):0r.indexOf(https://)&&(rr.substring(8));const ir.indexOf(/);let s,o;i>0?(sr.substring(0,i),or.substring(i)):(sr,o*);letcs.split(:);n.push({hostname:a(c),pathname:a(o,!0)})}}function a(e,t!1){const re.replace(/.+?^${}()|\\\/g,e>\\+e).replace(/\*/g,.*?);return new RegExp((t?^:)+r+$)}},7485:(e,t,r)>{use strict;r.d(t,{D:()>i});var nr(6154);function i(e){if(0(e||).indexOf(data:))return{protocol:data};try{const tnew URL(e,location.href),r{port:t.port,hostname:t.hostname,pathname:t.pathname,search:t.search,protocol:t.protocol.slice(0,t.protocol.indexOf(:)),sameOrigin:t.protocoln.gm?.location?.protocol&&t.hostn.gm?.location?.host};return r.port&&!r.port||(http:t.protocol&&(r.port80),https:t.protocol&&(r.port443)),r.pathname&&!r.pathname?r.pathname.startsWith(/)||(r.pathname/.concat(r.pathname)):r.pathname/,r}catch(e){return{}}}},7699:(e,t,r)>{use strict;r.d(t,{It:()>s,KC:()>a,No:()>i,qh:()>o});var nr(860);const i16e3,s1e6,oSESSION_ERROR,a{n.K7.logging:!0,n.K7.genericEvents:!1,n.K7.jserrors:!1,n.K7.ajax:!1}},7767:(e,t,r)>{use strict;r.d(t,{V:()>i});var nr(6154);const ie>n.RI&&!0e?.privacy.cookies_enabled},7836:(e,t,r)>{use strict;r.d(t,{P:()>a,ee:()>c});var nr(384),ir(8990),sr(2646),or(5607);const anr@context:.concat(o.W),cfunction e(t,r){var n{},o{},u{},l!1;try{l16r.length&&d.initializedAgents?.r?.runtime.isolatedBacklog}catch(e){}var f{on:p,addEventListener:p,removeEventListener:function(e,t){var rne;if(!r)return;for(var i0;ir.length;i++)rit&&r.splice(i,1)},emit:function(e,r,n,i,s){!1!s&&(s!0);if(c.aborted&&!i)return;t&&s&&t.emit(e,r,n);var ah(n);g(e).forEach(e>{e.apply(a,r)});var dv()oe;d&&d.push(f,e,r,a);return a},get:m,listeners:g,context:h,buffer:function(e,t){const rv();if(tt||feature,f.aborted)return;Object.entries(e||{}).forEach((e,n)>{ont,t in r||(rt)})},abort:function(){f._aborted!0,Object.keys(f.backlog).forEach(e>{delete f.backloge})},isBuffering:function(e){return!!v()oe},debugId:r,backlog:l?{}:t&&objecttypeof t.backlog?t.backlog:{},isolatedBacklog:l};return Object.defineProperty(f,aborted,{get:()>{let ef._aborted||!1;return e||(t&&(et.aborted),e)}}),f;function h(e){return e&&e instanceof s.y?e:e?(0,i.I)(e,a,()>new s.y(a)):new s.y(a)}function p(e,t){neg(e).concat(t)}function g(e){return ne||}function m(t){return utut||e(f,t)}function v(){return f.backlog}}(void 0,globalEE),d(0,n.Zm)();d.ee||(d.eec)},7866:(e,t,r)>{use strict;r.d(t,{Nc:()>s,cn:()>a,fL:()>i,h3:()>n,hB:()>o});const n/function (.+?)\s*\(/,i/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):^)+)?\)(?:, ^:*:\d+:\d+)?\)$/i,s/^\s*at Function code \(Function code:\d+:\d+\)\s*/i,o/^\s*at (?:((?:\object object\)?(?:^(*\(^)*\))*^()*(?: \as \S+\)?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,a/^\s*(?:(^@*)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i},8122:(e,t,r)>{use strict;r.d(t,{a:()>i});var nr(944);function i(e,t){try{if(!e||object!typeof e)return(0,n.R)(3);if(!t||object!typeof t)return(0,n.R)(4);const rObject.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),s0Object.keys(r).length?e:r;for(let o in s)if(void 0!eo)try{if(nulleo){ronull;continue}Array.isArray(eo)&&Array.isArray(to)?roArray.from(new Set(...eo,...to)):objecttypeof eo&&objecttypeof to?roi(eo,to):roeo}catch(e){ro||(0,n.R)(1,e)}return r}catch(e){(0,n.R)(2,e)}}},8139:(e,t,r)>{use strict;r.d(t,{u:()>f});var nr(7836),ir(3434),sr(8990),or(6154);const a{},co.gm.XMLHttpRequest,daddEventListener,uremoveEventListener,lnr@wrapped:.concat(n.P);function f(e){var tfunction(e){return(e||n.ee).get(events)}(e);if(at.debugId++)return t;at.debugId1;var r(0,i.YM)(t,!0);function f(e){r.inPlace(e,d,u,-,p)}function p(e,t){return e1}returngetPrototypeOfin Object&&(o.RI&&h(document,f),c&&h(c.prototype,f),h(o.gm,f)),t.on(d+-start,function(e,t){var ne1;if(null!n&&(functiontypeof n||objecttypeof n)&&newrelic!e0){var i(0,s.I)(n,l,function(){var e{object:function(){if(function!typeof n.handleEvent)return;return n.handleEvent.apply(n,arguments)},function:n}typeof n;return e?r(e,fn-,null,e.name||anonymous):n});this.wrappede1i}}),t.on(u+-start,function(e){e1this.wrapped||e1}),t}function h(e,t,...r){let ne;for(;objecttypeof n&&!Object.prototype.hasOwnProperty.call(n,d);)nObject.getPrototypeOf(n);n&&t(n,...r)}},8362:(e,t,r)>{use strict;r.d(t,{d:()>s});var nr(9566),ir(1741);class s extends i.W{agentIdentifier(0,n.LA)(16)}},8374:(e,t,r)>{r.nc(()>{try{return document?.currentScript?.nonce}catch(e){}return})()},8990:(e,t,r)>{use strict;r.d(t,{I:()>i});var nObject.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return et;var ir();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return eti,i}},9119:(e,t,r)>{use strict;r.d(t,{L:()>s});var n/(^?#*)^#*(#^?*|$).*/,i/(^?#*)().*/;function s(e,t){return e?e.replace(t?n:i,$1$2):e}},9300:(e,t,r)>{use strict;r.d(t,{T:()>n});const nr(860).K7.ajax},9324:(e,t,r)>{use strict;r.d(t,{AJ:()>o,F3:()>i,Xs:()>s,Yq:()>a,xv:()>n});const n1.310.0,iPROD,sCDN,o@newrelic/rrweb,a1.0.1},9566:(e,t,r)>{use strict;r.d(t,{LA:()>a,ZF:()>c,bz:()>o,el:()>d});var nr(6154);const ixxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx;function s(e,t){return e?15&et:16*Math.random()|0}function o(){const en.gm?.crypto||n.gm?.msCrypto;let t,r0;return e&&e.getRandomValues&&(te.getRandomValues(new Uint8Array(30))),i.split().map(e>xe?s(t,r++).toString(16):ye?(3&s()|8).toString(16):e).join()}function a(e){const tn.gm?.crypto||n.gm?.msCrypto;let r,i0;t&&t.getRandomValues&&(rt.getRandomValues(new Uint8Array(e)));const o;for(var a0;ae;a++)o.push(s(r,i++).toString(16));return o.join()}function c(){return a(16)}function d(){return a(32)}},9908:(e,t,r)>{use strict;r.d(t,{d:()>n,p:()>i});var nr(7836).ee.get(handle);function i(e,t,r,i,s){s?(s.buffer(e,i),s.emit(e,t,r)):(n.buffer(e,i),n.emit(e,t,r))}}},n{};function i(e){var tne;if(void 0!t)return t.exports;var sne{exports:{}};return re(s,s.exports,i),s.exports}i.mr,i.d(e,t)>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:tr})},i.f{},i.ee>Promise.all(Object.keys(i.f).reduce((t,r)>(i.fr(e,t),t),)),i.ue>({212:nr-spa-compressor,249:nr-spa-recorder,478:nr-spa}e+-1.310.0.min.js),i.o(e,t)>Object.prototype.hasOwnProperty.call(e,t),e{},tNRBA-1.310.0.PROD:,i.l(r,n,s,o)>{if(er)er.push(n);else{var a,c;if(void 0!s)for(var ddocument.getElementsByTagName(script),u0;ud.length;u++){var ldu;if(l.getAttribute(src)r||l.getAttribute(data-webpack)t+s){al;break}}if(!a){c!0;var f{478:sha512-eRmCP7GYaflAj7pXKrGwvq/OpZnQBaaXDx45w2bPN7QETEzQhI1xagUNsszpNEUoi8m+CRbE38KBkClIedmN7A,249:sha512-0JvelT13UDlqHSbwmu09ONeN31f+MkWScEOFGkeBfWXqQ4opKCkmQBcBD5mgqf64zo6nJK58fEL33amIaMNG4Q,212:sha512-pqVYVYNanm/cIinEU7pGsUNIY8IIePiFCROiaT8secQw4gU2L/AXuDxn4SeZOVH0XB3NIYy8TZfHZ/2uB3C87w};(adocument.createElement(script)).charsetutf-8,i.nc&&a.setAttribute(nonce,i.nc),a.setAttribute(data-webpack,t+s),a.srcr,0!a.src.indexOf(window.location.origin+/)&&(a.crossOriginanonymous),fo&&(a.integrityfo)}ern;var h(t,n)>{a.onerrora.onloadnull,clearTimeout(p);var ier;if(delete er,a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach(e>e(n)),t)return t(n)},psetTimeout(h.bind(null,void 0,{type:timeout,target:a}),12e4);a.onerrorh.bind(null,a.onerror),a.onloadh.bind(null,a.onload),c&&document.head.appendChild(a)}},i.re>{undefined!typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:Module}),Object.defineProperty(e,__esModule,{value:!0})},i.phttps://js-agent.newrelic.com/,(()>{var e{38:0,788:0};i.f.j(t,r)>{var ni.o(e,t)?et:void 0;if(0!n)if(n)r.push(n2);else{var snew Promise((r,i)>netr,i);r.push(n2s);var oi.p+i.u(t),anew Error;i.l(o,r>{if(i.o(e,t)&&(0!(net)&&(etvoid 0),n)){var sr&&(loadr.type?missing:r.type),or&&r.target&&r.target.src;a.messageLoading chunk +t+ failed: (+s+: +o+),a.nameChunkLoadError,a.types,a.requesto,n1(a)}},chunk-+t,t)}};var t(t,r)>{var n,s,o,a,cr,d0;if(o.some(t>0!et)){for(n in a)i.o(a,n)&&(i.mnan);if(c)c(i)}for(t&&t(r);do.length;d++)sod,i.o(e,s)&&es&&es0(),es0},rselfwebpackChunk:NRBA-1.310.0.PRODselfwebpackChunk:NRBA-1.310.0.PROD||;r.forEach(t.bind(null,0)),r.pusht.bind(null,r.push.bind(r))})(),(()>{use strict;i(8374);var ei(8362),ti(860);const rObject.values(t.K7);var ni(5205);var si(9908),oi(1863),ai(4261),ci(1738);var di(1687),ui(4234),li(5289),fi(6154),hi(944),pi(5270),gi(7767),mi(6389),vi(7699);class y extends u.W{constructor(e,t){super(e.agentIdentifier,t),this.agentRefe,this.abortHandlervoid 0,this.featAggregatevoid 0,this.loadedSuccessfullyvoid 0,this.onAggregateImportednew Promise(e>{this.loadedSuccessfullye}),this.deferredPromise.resolve(),!1e.initthis.featureName.autoStart?this.deferrednew Promise((t,r)>{this.ee.on(manual-start-all,(0,m.J)(()>{(0,d.Ak)(e.agentIdentifier,this.featureName),t()}))}):(0,d.Ak)(e.agentIdentifier,t)}importAggregator(e,t,r{}){if(this.featAggregate)return;const nasync()>{let n;await this.deferred;try{if((0,g.V)(e.init)){const{setupAgentSession:t}await i.e(478).then(i.bind(i,8766));nt(e)}}catch(e){(0,h.R)(20,e),this.ee.emit(internal-error,e),(0,s.p)(v.qh,e,void 0,this.featureName,this.ee)}try{if(!this.#t(this.featureName,n,e.init))return(0,d.Ze)(this.agentIdentifier,this.featureName),void this.loadedSuccessfully(!1);const{Aggregate:i}await t();this.featAggregatenew i(e,r),e.runtime.harvester.initializedAggregates.push(this.featAggregate),this.loadedSuccessfully(!0)}catch(e){(0,h.R)(34,e),this.abortHandler?.(),(0,d.Ze)(this.agentIdentifier,this.featureName,!0),this.loadedSuccessfully(!1),this.ee&&this.ee.abort()}};f.RI?(0,l.GG)(()>n(),!0):n()}#t(e,r,n){if(this.blocked)return!1;switch(e){case t.K7.sessionReplay:return(0,p.SR)(n)&&!!r;case t.K7.sessionTrace:return!!r;default:return!0}}}var bi(6630),wi(2614),Ri(3241);class E extends y{static featureNameb.T;constructor(e){var t;super(e,b.T),this.setupInspectionEvents(e.agentIdentifier),te,(0,c.Y)(a.Fw,function(e,r){stringtypeof e&&(/!e.charAt(0)&&(e/+e),t.runtime.customTransaction(r||http://custom.transaction)+e,(0,s.p)(a.Pl+a.Fw,(0,o.t)(),void 0,void 0,t.ee))},t),this.importAggregator(e,()>i.e(478).then(i.bind(i,2467)))}setupInspectionEvents(e){const t(t,r)>{t&&(0,R.W)({agentIdentifier:e,timeStamp:t.timeStamp,loaded:completet.target.readyState,type:window,name:r,data:t.target.location+})};(0,l.sB)(e>{t(e,DOMContentLoaded)}),(0,l.GG)(e>{t(e,load)}),(0,l.Qr)(e>{t(e,navigate)}),this.ee.on(w.tS.UPDATE,(t,r)>{(0,R.W)({agentIdentifier:e,type:lifecycle,name:session,data:r})})}}var Ti(384);class A extends e.d{constructor(e){var t;(super(),f.gm)?(this.features{},(0,T.bQ)(this.agentIdentifier,this),this.desiredFeaturesnew Set(e.features||),this.desiredFeatures.add(E),(0,n.j)(this,e,e.loaderType||agent),tthis,(0,c.Y)(a.cD,function(e,r,n!1){if(stringtypeof e){if(string,number,boolean.includes(typeof r)||nullr)return(0,c.U)(t,e,r,a.cD,n);(0,h.R)(40,typeof r)}else(0,h.R)(39,typeof e)},t),function(e){(0,c.Y)(a.Dl,function(t,r!1){if(string!typeof t&&null!t)return void(0,h.R)(41,typeof t);const ne.info.jsAttributesenduser.id;r&&null!n&&n!t?(0,s.p)(a.Pl+setUserIdAndResetSession,t,void 0,session,e.ee):(0,c.U)(e,enduser.id,t,a.Dl,!0)},e)}(this),function(e){(0,c.Y)(a.nb,function(t){if(stringtypeof t||nullt)return(0,c.U)(e,application.version,t,a.nb,!1);(0,h.R)(42,typeof t)},e)}(this),function(e){(0,c.Y)(a.d3,function(){e.ee.emit(manual-start-all)},e)}(this),function(e){(0,c.Y)(a.Pv,function(t!0){if(booleantypeof t){if((0,s.p)(a.Pl+a.Pv,t,void 0,session,e.ee),e.runtime.consentedt,t){const te.features.page_view_event;t.onAggregateImported.then(e>{const rt.featAggregate;e&&!r.sentRum&&r.sendRum()})}}else(0,h.R)(65,typeof t)},e)}(this),this.run()):(0,h.R)(21)}get config(){return{info:this.info,init:this.init,loader_config:this.loader_config,runtime:this.runtime}}get api(){return this}run(){try{const efunction(e){const t{};return r.forEach(r>{tr!!er?.enabled}),t}(this.init),n...this.desiredFeatures;n.sort((e,r)>t.P3e.featureName-t.P3r.featureName),n.forEach(r>{if(!er.featureName&&r.featureName!t.K7.pageViewEvent)return;const nfunction(e){switch(e){case t.K7.ajax:returnt.K7.jserrors;case t.K7.sessionTrace:returnt.K7.ajax,t.K7.pageViewEvent;case t.K7.sessionReplay:returnt.K7.sessionTrace;case t.K7.pageViewTiming:returnt.K7.pageViewEvent;default:return}}(r.featureName).filter(e>!(e in this.features));n.length>0&&(0,h.R)(36,{targetFeature:r.featureName,missingDependencies:n}),this.featuresr.featureNamenew r(this)})}catch(e){(0,h.R)(22,e);for(const e in this.features)this.featurese.abortHandler?.();const t(0,T.Zm)();delete t.initializedAgentsthis.agentIdentifier?.features,delete this.sharedAggregator;return t.ee.get(this.agentIdentifier).abort(),!1}}}var xi(2843),Si(782);class _ extends y{static featureNameS.T;constructor(e){super(e,S.T),f.RI&&((0,x.u)(()>(0,s.p)(docHidden,(0,o.t)(),void 0,S.T,this.ee),!0),(0,x.G)(()>(0,s.p)(winPagehide,(0,o.t)(),void 0,S.T,this.ee)),this.importAggregator(e,()>i.e(478).then(i.bind(i,9917))))}}var Oi(3969);class I extends y{static featureNameO.TZ;constructor(e){super(e,O.TZ),f.RI&&document.addEventListener(securitypolicyviolation,e>{(0,s.p)(O.xV,Generic/CSPViolation/Detected,void 0,this.featureName,this.ee)}),this.importAggregator(e,()>i.e(478).then(i.bind(i,6555)))}}var Ni(6774),Pi(3878),ki(3304);class D{constructor(e,t,r,n,i){this.nameUncaughtError,this.messagestringtypeof e?e:(0,k.A)(e),this.sourceURLt,this.liner,this.columnn,this.__newrelici}}function C(e){return M(e)?e:new D(void 0!e?.message?e.message:e,e?.filename||e?.sourceURL,e?.lineno||e?.line,e?.colno||e?.col,e?.__newrelic,e?.cause)}function j(e){const tUnhandled Promise Rejection: ;if(!e?.reason)return;if(M(e.reason)){try{e.reason.message.startsWith(t)||(e.reason.messaget+e.reason.message)}catch(e){}return C(e.reason)}const rC(e.reason);return(r.message||).startsWith(t)||(r.messaget+r.message),r}function L(e){if(e.error instanceof SyntaxError&&!/:\d+$/.test(e.error.stack?.trim())){const tnew D(e.message,e.filename,e.lineno,e.colno,e.error.__newrelic,e.cause);return t.nameSyntaxError.name,t}return M(e.error)?e.error:C(e)}function M(e){return e instanceof Error&&!!e.stack}function B(e,r,n,i,a(0,o.t)()){stringtypeof e&&(enew Error(e)),(0,s.p)(err,e,a,!1,r,n.runtime.isRecording,void 0,i,void 0,t.K7.jserrors,n.ee),(0,s.p)(uaErr,,void 0,t.K7.genericEvents,n.ee)}var Hi(1541),Ki(993),Wi(3785);function U(e,{customAttributes:t{},level:rK.p_.INFO}{},n,i,s(0,o.t)()){(0,W.R)(n.ee,e,t,r,!1,i,s)}function F(e,r,n,i,c(0,o.t)()){(0,s.p)(a.Pl+a.hG,c,e,r,i,void 0,t.K7.genericEvents,n.ee)}function V(e,r,n,i,c(0,o.t)()){const{start:d,end:u,customAttributes:l}r||{},f{customAttributes:l||{}};if(object!typeof f.customAttributes||string!typeof e||0e.length)return void(0,h.R)(57);const p(e,t)>nulle?t:numbertypeof e?e:e instanceof PerformanceMark?e.startTime:Number.NaN;if(f.startp(d,0),f.endp(u,c),Number.isNaN(f.start)||Number.isNaN(f.end))(0,h.R)(57);else{if(f.durationf.end-f.start,!(f.duration0))return(0,s.p)(a.Pl+a.V1,f,e,i,void 0,t.K7.genericEvents,n.ee),f;(0,h.R)(58)}}function G(e,r{},n,i,c(0,o.t)()){(0,s.p)(a.Pl+a.fF,c,e,r,i,void 0,t.K7.genericEvents,n.ee)}var zi(9119),Yi(7866);const qnew Set;let Z;if(f.gm.PerformanceObserver?.supportedEntryTypes.includes(resource)){new PerformanceObserver(e>{e.getEntries().forEach(e>{if((e>scripte.initiatorType||linke.initiatorType&&e.name.endsWith(.js))(e)){q.size>250&&q.delete(q.values().next().value),q.add(e);const t;Z.forEach(({test:r,addedAt:n},i)>{(r(e)||(0,o.t)()-n>1e4)&&t.push(i)}),ZZ.filter((e,r)>!t.includes(r))}})}).observe({type:resource,buffered:!0})}function X(){const e{registeredAt:(0,o.t)(),reportedAt:void 0,fetchStart:0,fetchEnd:0,asset:void 0,type:unknown},tfunction(){let e;try{const tError.stackTraceLimit;Error.stackTraceLimit50,e(new Error).stack,Error.stackTraceLimitt}catch(t){e(new Error).stack}return e}();if(!t)return e;const rf.gm.performance?.getEntriesByType(navigation)?.find(e>navigatione.initiatorType)?.name||;try{const nfunction(e){if(!e||string!typeof e)return;const tnew Set,re.split(\n);for(const e of r){const re.match(Y.cn)||e.match(Y.hB);r&&r2&&t.add((0,z.L)(r2))}return...t}(t).at(-1);if(!n)return e;if(r.includes(n))return e.asset(0,z.L)(r),e.typeinline,e;const iperformance.getEntriesByType(resource).find(s)||...q.find(s);function s(e){const t(0,z.L)(e.name);return t.endsWith(n)||n.endsWith(t)}function a(t){e.fetchStartMath.floor(t.startTime),e.fetchEndMath.floor(t.responseEnd),e.assett.name,e.typet.initiatorType}i?a(i):function(e){if(!e||!f.gm.document)return!1;try{const tf.gm.document.querySelectorAll(linkrelpreloadasscript);for(const r of t)if((0,z.L)(r.href)e)return!0}catch(e){}return!1}(n)&&(e.assetn,e.typepreload,Z.push({addedAt:(0,o.t)(),test:e>!!s(e)&&(a(e),!0)}))}catch(c){}return e}const Jname,id,type;function Q(e){(0,c.Y)(a.eY,function(t){return ee(e,t)},e)}function ee(e,r,n){(0,h.R)(54,newrelic.register),r||{},r.typeH.f.MFE,r.licenseKey||e.info.licenseKey,r.blocked!1,r.parentn||{},(object!typeof r.tags||nullr.tags||Array.isArray(r.tags))&&(r.tags{});const iX(),a{};Object.entries(r.tags).forEach((e,t)>{J.includes(e)||(asource..concat(e)t)}),r.isolated??!0;let c()>{};const de.runtime.registeredEntities;if(!r.isolated){const ed.find(({metadata:{target:{id:e}}})>er.id&&!r.isolated);if(e)return e}const ue>{r.blocked!0,ce};function l(e){returnstringtypeof e&&!!e.trim()&&e.trim().length501||numbertypeof e}e.init.api.allow_registered_children||u((0,m.J)(()>(0,h.R)(55))),l(r.id)&&l(r.name)||u((0,m.J)(()>(0,h.R)(48,r)));const f{addPageAction:(t,n{})>y(F,t,{...a,...n},e,r),deregister:()>{g(),u((0,m.J)(()>(0,h.R)(68)))},log:(t,n{})>y(U,t,{...n,customAttributes:{...a,...n.customAttributes||{}}},e,r),measure:(t,n{})>y(V,t,{...n,customAttributes:{...a,...n.customAttributes||{}}},e,r),noticeError:(t,n{})>y(B,t,{...a,...n},e,r),register:(t{})>y(ee,e,t,f.metadata.target),recordCustomEvent:(t,n{})>y(G,t,{...a,...n},e,r),setApplicationVersion:e>v(application.version,e),setCustomAttribute:(e,t)>v(e,t),setUserId:e>v(enduser.id,e),metadata:{customAttributes:a,target:r,timings:i}},p()>(r.blocked&&c(),r.blocked);function g(){i.reportedAt||(i.reportedAt(0,o.t)(),f.recordCustomEvent(MicroFrontEndTiming,{assetUrl:i.asset,assetType:i.type,timeToLoad:i.registeredAt-i.fetchStart,timeToBeRequested:i.fetchStart,timeToFetch:i.fetchEnd-i.fetchStart,timeToRegister:i.registeredAt-i.fetchEnd,timeAlive:i.reportedAt-i.registeredAt}))}p()||(d.push(f),(0,x.G)(g));const v(e,t)>{p()||(aet)},y(r,n,i)>{if(p()&&r!ee)return;const a(0,o.t)();(0,s.p)(O.xV,API/register/.concat(r.name,/called),void 0,t.K7.metrics,e.ee);try{if(e.init.api.duplicate_registered_data&&r!ee){let en;if(n1instanceof Object){const t{child.id:i.id,child.type:i.type};ecustomAttributesin n1?n0,{...n1,customAttributes:{...n1.customAttributes,...t}},...n.slice(2):n0,{...n1,...t},...n.slice(2)}r(...e,void 0,a)}return r(...n,i,a)}catch(e){(0,h.R)(50,e)}};return f}class te extends y{static featureNameN.T;constructor(e){var t;super(e,N.T),te,(0,c.Y)(a.o5,(e,r)>B(e,r,t),t),function(e){(0,c.Y)(a.bt,function(t){e.runtime.onerrort},e)}(e),function(e){let t0;(0,c.Y)(a.k6,function(e,r){++t>10||(this.runtime.releaseIdse.slice(-200)(+r).slice(-200))},e)}(e),Q(e);try{this.removeOnAbortnew AbortController}catch(e){}this.ee.on(internal-error,(t,r)>{this.abortHandler&&(0,s.p)(ierr,C(t),(0,o.t)(),!0,{},e.runtime.isRecording,r,void 0,this.featureName,this.ee)}),f.gm.addEventListener(unhandledrejection,t>{this.abortHandler&&(0,s.p)(err,j(t),(0,o.t)(),!1,{unhandledPromiseRejection:1},e.runtime.isRecording,void 0,this.featureName,this.ee)},(0,P.jT)(!1,this.removeOnAbort?.signal)),f.gm.addEventListener(error,t>{this.abortHandler&&(0,s.p)(err,L(t),(0,o.t)(),!1,{},e.runtime.isRecording,void 0,this.featureName,this.ee)},(0,P.jT)(!1,this.removeOnAbort?.signal)),this.abortHandlerthis.#r,this.importAggregator(e,()>i.e(478).then(i.bind(i,2176)))}#r(){this.removeOnAbort?.abort(),this.abortHandlervoid 0}}var rei(8990);let ne1;function ie(e){const ttypeof e;return!e||object!t&&function!t?-1:ef.gm?0:(0,re.I)(e,nr@id,function(){return ne++})}function se(e){if(stringtypeof e&&e.length)return e.length;if(objecttypeof e){if(undefined!typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if(undefined!typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!(undefined!typeof FormData&&e instanceof FormData))try{return(0,k.A)(e).length}catch(e){return}}}var oei(8139),aei(7836),cei(3434);const de{},ueopen,send;function le(e){var te||ae.ee;const rfunction(e){return(e||ae.ee).get(xhr)}(t);if(void 0f.gm.XMLHttpRequest)return r;if(der.debugId++)return r;der.debugId1,(0,oe.u)(t);var n(0,ce.YM)(r),if.gm.XMLHttpRequest,sf.gm.MutationObserver,of.gm.Promise,af.gm.setInterval,creadystatechange,donload,onerror,onabort,onloadstart,onloadend,onprogress,ontimeout,u,lf.gm.XMLHttpRequestfunction(e){const tnew i(e),sr.context(t);try{r.emit(new-xhr,t,s),t.addEventListener(c,(os,function(){var ethis;e.readyState>3&&!o.resolved&&(o.resolved!0,r.emit(xhr-resolved,,e)),n.inPlace(e,d,fn-,b)}),(0,P.jT)(!1))}catch(e){(0,h.R)(15,e);try{r.emit(internal-error,e)}catch(e){}}var o;return t};function p(e,t){n.inPlace(t,onreadystatechange,fn-,b)}if(function(e,t){for(var r in e)trer}(i,l),l.prototypei.prototype,n.inPlace(l.prototype,ue,-xhr-,b),r.on(send-xhr-start,function(e,t){p(e,t),function(e){u.push(e),s&&(g?g.then(y):a?a(y):(m-m,v.datam))}(t)}),r.on(open-xhr-start,p),s){var go&&o.resolve();if(!a&&!o){var m1,vdocument.createTextNode(m);new s(y).observe(v,{characterData:!0})}}else t.on(fn-end,function(e){e0&&e0.typec||y()});function y(){for(var e0;eu.length;e++)p(0,ue);u.length&&(u)}function b(e,t){return t}return r}var fefetch-,hefe+body-,pearrayBuffer,blob,json,text,formData,gef.gm.Request,mef.gm.Response,veprototype;const ye{};function be(e){const tfunction(e){return(e||ae.ee).get(fetch)}(e);if(!(ge&&me&&f.gm.fetch))return t;if(yet.debugId++)return t;function r(e,r,n){var ier;functiontypeof i&&(erfunction(){var e,r...arguments,s{};t.emit(n+before-start,r,s),sae.P&&sae.P.dt&&(esae.P.dt);var oi.apply(this,r);return t.emit(n+start,r,e,o),o.then(function(e){return t.emit(n+end,null,e,o),e},function(e){throw t.emit(n+end,e,o),e})})}return yet.debugId1,pe.forEach(e>{r(geve,e,he),r(meve,e,he)}),r(f.gm,fetch,fe),t.on(fe+end,function(e,r){var nthis;if(r){var ir.headers.get(content-length);null!i&&(n.rxSizei),t.emit(fe+done,null,r,n)}else t.emit(fe+done,e,n)}),t}var wei(7485),Rei(9566);class Ee{constructor(e){this.agentRefe}generateTracePayload(e){const tthis.agentRef.loader_config;if(!this.shouldGenerateTrace(e)||!t)return null;var r(t.accountID||).toString()||null,n(t.agentID||).toString()||null,i(t.trustKey||).toString()||null;if(!r||!n)return null;var s(0,Re.ZF)(),o(0,Re.el)(),aDate.now(),c{spanId:s,traceId:o,timestamp:a};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(c.traceContextParentHeaderthis.generateTraceContextParentHeader(s,o),c.traceContextStateHeaderthis.generateTraceContextStateHeader(s,a,r,n,i)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(c.newrelicHeaderthis.generateTraceHeader(s,o,a,r,n,i)),c}generateTraceContextParentHeader(e,t){return00-+t+-+e+-01}generateTraceContextStateHeader(e,t,r,n,i){return i+@nr0-1-+r+-+n+-+e+----+t}generateTraceHeader(e,t,r,n,i,s){if(!(functiontypeof f.gm?.btoa))return null;var o{v:0,1,d:{ty:Browser,ac:n,ap:i,id:e,tr:t,ti:r}};return s&&n!s&&(o.d.tks),btoa((0,k.A)(o))}shouldGenerateTrace(e){return this.agentRef.init?.distributed_tracing?.enabled&&this.isAllowedOrigin(e)}isAllowedOrigin(e){var t!1;const rthis.agentRef.init?.distributed_tracing;if(e.sameOrigin)t!0;else if(r?.allowed_origins instanceof Array)for(var n0;nr.allowed_origins.length;n++){var i(0,we.D)(r.allowed_originsn);if(e.hostnamei.hostname&&e.protocoli.protocol&&e.porti.port){t!0;break}}return t}excludeNewrelicHeader(){var ethis.agentRef.init?.distributed_tracing;return!!e&&!!e.exclude_newrelic_header}useNewrelicHeaderForCors(){var ethis.agentRef.init?.distributed_tracing;return!!e&&!1!e.cors_use_newrelic_header}useTraceContextHeadersForCors(){var ethis.agentRef.init?.distributed_tracing;return!!e&&!!e.cors_use_tracecontext_headers}}var Tei(9300),Aei(7295);function xe(e){returnstringtypeof e?e:e instanceof(0,T.dV)().o.REQ?e.url:f.gm?.URL&&e instanceof URL?e.href:void 0}var Seload,error,abort,timeout,_eSe.length,Oe(0,T.dV)().o.REQ,Ie(0,T.dV)().o.XHR;const NeX-NewRelic-App-Data;class Pe extends y{static featureNameTe.T;constructor(e){super(e,Te.T),this.dtnew Ee(e),this.handler(e,t,r,n)>(0,s.p)(e,t,r,n,this.ee);try{const e{xmlhttprequest:xhr,fetch:fetch,beacon:beacon};f.gm?.performance?.getEntriesByType(resource).forEach(r>{if(r.initiatorType in e&&0!r.responseStatus){const n{status:r.responseStatus},i{rxSize:r.transferSize,duration:Math.floor(r.duration),cbTime:0};ke(n,r.name),this.handler(xhr,n,i,r.startTime,r.responseEnd,er.initiatorType,void 0,t.K7.ajax)}})}catch(e){}be(this.ee),le(this.ee),function(e,r,n,i){function a(e){var tthis;t.totalCbs0,t.called0,t.cbTime0,t.endT,t.ended!1,t.xhrGuids{},t.lastSizenull,t.loadCaptureCalled!1,t.paramsthis.params||{},t.metricsthis.metrics||{},t.latestLongtaskEnd0,e.addEventListener(load,function(r){A(t,e)},(0,P.jT)(!1)),f.lR||e.addEventListener(progress,function(e){t.lastSizee.loaded},(0,P.jT)(!1))}function c(e){this.params{method:e0},ke(this,e1),this.metrics{}}function d(t,r){e.loader_config.xpid&&this.sameOrigin&&r.setRequestHeader(X-NewRelic-ID,e.loader_config.xpid);var ni.generateTracePayload(this.parsedOrigin);if(n){var s!1;n.newrelicHeader&&(r.setRequestHeader(newrelic,n.newrelicHeader),s!0),n.traceContextParentHeader&&(r.setRequestHeader(traceparent,n.traceContextParentHeader),n.traceContextStateHeader&&r.setRequestHeader(tracestate,n.traceContextStateHeader),s!0),s&&(this.dtn)}}function u(e,t){var nthis.metrics,ie0,sthis;if(n&&i){var ase(i);a&&(n.txSizea)}this.startTime(0,o.t)(),this.bodyi,this.listenerfunction(e){try{abort!e.type||s.loadCaptureCalled||(s.params.aborted!0),(load!e.type||s.calleds.totalCbs&&(s.onloadCalled||function!typeof t.onload)&&functiontypeof s.end)&&s.end(t)}catch(e){try{r.emit(internal-error,e)}catch(e){}}};for(var c0;c_e;c++)t.addEventListener(Sec,this.listener,(0,P.jT)(!1))}function l(e,t,r){this.cbTime+e,t?this.onloadCalled!0:this.called+1,this.called!this.totalCbs||!this.onloadCalled&&functiontypeof r.onload||function!typeof this.end||this.end(r)}function h(e,t){var r+ie(e)+!!t;this.xhrGuids&&!this.xhrGuidsr&&(this.xhrGuidsr!0,this.totalCbs+1)}function p(e,t){var r+ie(e)+!!t;this.xhrGuids&&this.xhrGuidsr&&(delete this.xhrGuidsr,this.totalCbs-1)}function g(){this.endTime(0,o.t)()}function m(e,t){t instanceof Ie&&loade0&&r.emit(xhr-load-added,e1,e2,t)}function v(e,t){t instanceof Ie&&loade0&&r.emit(xhr-load-removed,e1,e2,t)}function y(e,t,r){t instanceof Ie&&(onloadr&&(this.onload!0),(load(e0&&e0.type)||this.onload)&&(this.xhrCbStart(0,o.t)()))}function b(e,t){this.xhrCbStart&&r.emit(xhr-cb-time,(0,o.t)()-this.xhrCbStart,this.onload,t,t)}function w(e){var t,re1||{};if(stringtypeof e0?0(te0).length&&f.RI&&(t+f.gm.location.href):e0&&e0.url?te0.url:f.gm?.URL&&e0&&e0instanceof URL?te0.href:functiontypeof e0.toString&&(te0.toString()),stringtypeof t&&0!t.length){t&&(this.parsedOrigin(0,we.D)(t),this.sameOriginthis.parsedOrigin.sameOrigin);var ni.generateTracePayload(this.parsedOrigin);if(n&&(n.newrelicHeader||n.traceContextParentHeader))if(e0&&e0.headers)a(e0.headers,n)&&(this.dtn);else{var s{};for(var o in r)soro;s.headersnew Headers(r.headers||{}),a(s.headers,n)&&(this.dtn),e.length>1?e1s:e.push(s)}}function a(e,t){var r!1;return t.newrelicHeader&&(e.set(newrelic,t.newrelicHeader),r!0),t.traceContextParentHeader&&(e.set(traceparent,t.traceContextParentHeader),t.traceContextStateHeader&&e.set(tracestate,t.traceContextStateHeader),r!0),r}}function R(e,t){this.params{},this.metrics{},this.startTime(0,o.t)(),this.dtt,e.length>1&&(this.targete0),e.length>2&&(this.optse1);var rthis.opts||{},nthis.target;ke(this,xe(n));var i(+(n&&n instanceof Oe&&n.method||r.method||GET)).toUpperCase();this.params.methodi,this.bodyr.body,this.txSizese(r.body)||0}function E(e,r){if(this.endTime(0,o.t)(),this.params||(this.params{}),(0,Ae.iW)(this.params))return;let i;this.params.statusr?r.status:0,stringtypeof this.rxSize&&this.rxSize.length>0&&(i+this.rxSize);const s{txSize:this.txSize,rxSize:i,duration:(0,o.t)()-this.startTime};n(xhr,this.params,s,this.startTime,this.endTime,fetch,this,t.K7.ajax)}function T(e){const rthis.params,ithis.metrics;if(!this.ended){this.ended!0;for(let t0;t_e;t++)e.removeEventListener(Set,this.listener,!1);r.aborted||(0,Ae.iW)(r)||(i.duration(0,o.t)()-this.startTime,this.loadCaptureCalled||4!e.readyState?nullr.status&&(r.status0):A(this,e),i.cbTimethis.cbTime,n(xhr,r,i,this.startTime,this.endTime,xhr,this,t.K7.ajax))}}function A(e,n){e.params.statusn.status;var ifunction(e,t){var re.responseType;returnjsonr&&null!t?t:arraybufferr||blobr||jsonr?se(e.response):textr||r||void 0r?se(e.responseText):void 0}(n,e.lastSize);if(i&&(e.metrics.rxSizei),e.sameOrigin&&n.getAllResponseHeaders().indexOf(Ne)>0){var on.getResponseHeader(Ne);o&&((0,s.p)(O.rs,Ajax/CrossApplicationTracing/Header/Seen,void 0,t.K7.metrics,r),e.params.cato.split(, ).pop())}e.loadCaptureCalled!0}r.on(new-xhr,a),r.on(open-xhr-start,c),r.on(open-xhr-end,d),r.on(send-xhr-start,u),r.on(xhr-cb-time,l),r.on(xhr-load-added,h),r.on(xhr-load-removed,p),r.on(xhr-resolved,g),r.on(addEventListener-end,m),r.on(removeEventListener-end,v),r.on(fn-end,b),r.on(fetch-before-start,w),r.on(fetch-start,R),r.on(fn-start,y),r.on(fetch-done,E)}(e,this.ee,this.handler,this.dt),this.importAggregator(e,()>i.e(478).then(i.bind(i,3845)))}}function ke(e,t){var r(0,we.D)(t),ne.params||e;n.hostnamer.hostname,n.portr.port,n.protocolr.protocol,n.hostr.hostname+:+r.port,n.pathnamer.pathname,e.parsedOriginr,e.sameOriginr.sameOrigin}const De{},CepushState,replaceState;function je(e){const tfunction(e){return(e||ae.ee).get(history)}(e);return!f.RI||Det.debugId++||(Det.debugId1,(0,ce.YM)(t).inPlace(window.history,Ce,-)),t}var Lei(3738);function Me(e){(0,c.Y)(a.BL,function(rDate.now()){const nr-f.WN;n0&&(0,h.R)(62,r),(0,s.p)(O.XG,a.BL,{time:n},void 0,t.K7.metrics,e.ee),e.addToTrace({name:a.BL,start:r,origin:nr}),(0,s.p)(a.Pl+a.hG,n,a.BL,void 0,t.K7.genericEvents,e.ee)},e)}const{He:Be,bD:He,d3:Ke,Kp:We,TZ:Ue,Lc:Fe,uP:Ve,Rz:Ge}Le;class ze extends y{static featureNameUe;constructor(e){var r;super(e,Ue),re,(0,c.Y)(a.U2,function(e){if(!(e&&objecttypeof e&&e.name&&e.start))return;const n{n:e.name,s:e.start-f.WN,e:(e.end||e.start)-f.WN,o:e.origin||,t:api};n.s0||n.e0||n.en.s?(0,h.R)(61,{start:n.s,end:n.e}):(0,s.p)(bstApi,n,void 0,t.K7.sessionTrace,r.ee)},r),Me(e);if(!(0,g.V)(e.init))return void this.deregisterDrain();const nthis.ee;let d;je(n),this.eventsEE(0,oe.u)(n),this.eventsEE.on(Ve,function(e,t){this.bstStart(0,o.t)()}),this.eventsEE.on(Fe,function(e,r){(0,s.p)(bst,e0,r,this.bstStart,(0,o.t)(),void 0,t.K7.sessionTrace,n)}),n.on(Ge+Ke,function(e){this.time(0,o.t)(),this.startPathlocation.pathname+location.hash}),n.on(Ge+We,function(e){(0,s.p)(bstHist,location.pathname+location.hash,this.startPath,this.time,void 0,t.K7.sessionTrace,n)});try{dnew PerformanceObserver(e>{const re.getEntries();(0,s.p)(Be,r,void 0,t.K7.sessionTrace,n)}),d.observe({type:He,buffered:!0})}catch(e){}this.importAggregator(e,()>i.e(478).then(i.bind(i,6974)),{resourceObserver:d})}}var Yei(6344);class qe extends y{static featureNameYe.TZ;#n;recorder;constructor(e){var r;let n;super(e,Ye.TZ),re,(0,c.Y)(a.CH,function(){(0,s.p)(a.CH,,void 0,t.K7.sessionReplay,r.ee)},r),function(e){(0,c.Y)(a.Tb,function(){(0,s.p)(a.Tb,,void 0,t.K7.sessionReplay,e.ee)},e)}(e);try{nJSON.parse(localStorage.getItem(.concat(w.H3,_).concat(w.uh)))}catch(e){}(0,p.SR)(e.init)&&this.ee.on(a.CH,()>this.#i()),this.#s(n)&&this.importRecorder().then(e>{e.startRecording(Ye.Qb.PRELOAD,n?.sessionReplayMode)}),this.importAggregator(this.agentRef,()>i.e(478).then(i.bind(i,6167)),this),this.ee.on(err,e>{this.blocked||this.agentRef.runtime.isRecording&&(this.errorNoticed!0,(0,s.p)(Ye.Vh,e,void 0,this.featureName,this.ee))})}#s(e){return e&&(e.sessionReplayModew.g.FULL||e.sessionReplayModew.g.ERROR)||(0,p.Aw)(this.agentRef.init)}importRecorder(){return this.recorder?Promise.resolve(this.recorder):(this.#n??Promise.all(i.e(478),i.e(249)).then(i.bind(i,4866)).then(({Recorder:e})>(this.recordernew e(this),this.recorder)).catch(e>{throw this.ee.emit(internal-error,e),this.blocked!0,e}),this.#n)}#i(){this.blocked||(this.featAggregate?this.featAggregate.mode!w.g.FULL&&this.featAggregate.initializeRecording(w.g.FULL,!0,Ye.Qb.API):this.importRecorder().then(()>{this.recorder.startRecording(Ye.Qb.API,w.g.FULL)}))}}var Zei(3962);class Xe extends y{static featureNameZe.TZ;constructor(e){if(super(e,Ze.TZ),function(e){const re.ee.get(tracer);function n(){}(0,c.Y)(a.dT,function(e){return(new n).get(objecttypeof e?e:{})},e);const in.prototype{createTracer:function(n,i){var a{},cthis,dfunctiontypeof i;return(0,s.p)(O.xV,API/createTracer/called,void 0,t.K7.metrics,e.ee),function(){if(r.emit((d?:no-)+fn-start,(0,o.t)(),c,d,a),d)try{return i.apply(this,arguments)}catch(e){const tstringtypeof e?new Error(e):e;throw r.emit(fn-err,arguments,this,t,a),t}finally{r.emit(fn-end,(0,o.t)(),a)}}}};actionText,setName,setAttribute,save,ignore,onEnd,getContext,end,get.forEach(r>{c.Y.apply(this,r,function(){return(0,s.p)(a.hw+r,performance.now(),...arguments,this,t.K7.softNav,e.ee),this},e,i)}),(0,c.Y)(a.PA,function(){(0,s.p)(a.hw+routeName,performance.now(),...arguments,void 0,t.K7.softNav,e.ee)},e)}(e),!f.RI||!(0,T.dV)().o.MO)return;const rje(this.ee);try{this.removeOnAbortnew AbortController}catch(e){}Ze.tC.forEach(e>{(0,P.sp)(e,e>{l(e)},!0,this.removeOnAbort?.signal)});const n()>(0,s.p)(newURL,(0,o.t)(),+window.location,void 0,this.featureName,this.ee);r.on(pushState-end,n),r.on(replaceState-end,n),(0,P.sp)(Ze.OV,e>{l(e),(0,s.p)(newURL,e.timeStamp,+window.location,void 0,this.featureName,this.ee)},!0,this.removeOnAbort?.signal);let d!1;const unew((0,T.dV)().o.MO)((e,t)>{d||(d!0,requestAnimationFrame(()>{(0,s.p)(newDom,(0,o.t)(),void 0,this.featureName,this.ee),d!1}))}),l(0,m.s)(e>{loading!document.readyState&&((0,s.p)(newUIEvent,e,void 0,this.featureName,this.ee),u.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},100,{leading:!0});this.abortHandlerfunction(){this.removeOnAbort?.abort(),u.disconnect(),this.abortHandlervoid 0},this.importAggregator(e,()>i.e(478).then(i.bind(i,4393)),{domObserver:u})}}var $ei(3333);const Je{},Qenew Set;function et(e){returnstringtypeof e?{type:string,size:(new TextEncoder).encode(e).length}:e instanceof ArrayBuffer?{type:ArrayBuffer,size:e.byteLength}:e instanceof Blob?{type:Blob,size:e.size}:e instanceof DataView?{type:DataView,size:e.byteLength}:ArrayBuffer.isView(e)?{type:TypedArray,size:e.byteLength}:{type:unknown,size:0}}class tt{constructor(e,t){this.timestamp(0,o.t)(),this.currentUrl(0,z.L)(window.location.href),this.socketId(0,Re.LA)(8),this.requestedUrl(0,z.L)(e),this.requestedProtocolsArray.isArray(t)?t.join(,):t||,this.openedAtvoid 0,this.protocolvoid 0,this.extensionsvoid 0,this.binaryTypevoid 0,this.messageOriginvoid 0,this.messageCount0,this.messageBytes0,this.messageBytesMin0,this.messageBytesMax0,this.messageTypesvoid 0,this.sendCount0,this.sendBytes0,this.sendBytesMin0,this.sendBytesMax0,this.sendTypesvoid 0,this.closedAtvoid 0,this.closeCodevoid 0,this.closeReasonunknown,this.closeWasCleanvoid 0,this.connectedDuration0,this.hasErrorsvoid 0}}class rt extends y{static featureName$e.TZ;constructor(e){super(e,$e.TZ);const re.init.feature_flags.includes(websockets),ne.init.page_action.enabled,e.init.performance.capture_marks,e.init.performance.capture_measures,e.init.performance.resources.enabled,e.init.user_actions.enabled,r;var d;let u,l;if(de,(0,c.Y)(a.hG,(e,t)>F(e,t,d),d),function(e){(0,c.Y)(a.fF,(t,r)>G(t,r,e),e)}(e),Me(e),Q(e),function(e){(0,c.Y)(a.V1,(t,r)>V(t,r,e),e)}(e),r&&(lfunction(e){if(!(0,T.dV)().o.WS)return e;const te.get(websockets);if(Jet.debugId++)return t;Jet.debugId1,(0,x.G)(()>{const e(0,o.t)();Qe.forEach(r>{r.nrData.closedAte,r.nrData.closeCode1001,r.nrData.closeReasonPage navigating away,r.nrData.closeWasClean!1,r.nrData.openedAt&&(r.nrData.connectedDuratione-r.nrData.openedAt),t.emit(ws,r.nrData,r)})});class r extends WebSocket{static nameWebSocket;static toString(){returnfunction WebSocket() { native code }}toString(){returnobject WebSocket}getSymbol.toStringTag(){return r.name}#o(e){(e.__newrelic??{}).socketIdthis.nrData.socketId,this.nrData.hasErrors??!0}constructor(...e){super(...e),this.nrDatanew tt(e0,e1),this.addEventListener(open,()>{this.nrData.openedAt(0,o.t)(),protocol,extensions,binaryType.forEach(e>{this.nrDataethise}),Qe.add(this)}),this.addEventListener(message,e>{const{type:t,size:r}et(e.data);this.nrData.messageOrigin??(0,z.L)(e.origin),this.nrData.messageCount++,this.nrData.messageBytes+r,this.nrData.messageBytesMinMath.min(this.nrData.messageBytesMin||1/0,r),this.nrData.messageBytesMaxMath.max(this.nrData.messageBytesMax,r),(this.nrData.messageTypes??).includes(t)||(this.nrData.messageTypesthis.nrData.messageTypes?.concat(this.nrData.messageTypes,,).concat(t):t)}),this.addEventListener(close,e>{this.nrData.closedAt(0,o.t)(),this.nrData.closeCodee.code,e.reason&&(this.nrData.closeReasone.reason),this.nrData.closeWasCleane.wasClean,this.nrData.connectedDurationthis.nrData.closedAt-this.nrData.openedAt,Qe.delete(this),t.emit(ws,this.nrData,this)})}addEventListener(e,t,...r){const nthis,ifunctiontypeof t?function(...e){try{return t.apply(this,e)}catch(e){throw n.#o(e),e}}:t?.handleEvent?{handleEvent:function(...e){try{return t.handleEvent.apply(t,e)}catch(e){throw n.#o(e),e}}}:t;return super.addEventListener(e,i,...r)}send(e){if(this.readyStateWebSocket.OPEN){const{type:t,size:r}et(e);this.nrData.sendCount++,this.nrData.sendBytes+r,this.nrData.sendBytesMinMath.min(this.nrData.sendBytesMin||1/0,r),this.nrData.sendBytesMaxMath.max(this.nrData.sendBytesMax,r),(this.nrData.sendTypes??).includes(t)||(this.nrData.sendTypesthis.nrData.sendTypes?.concat(this.nrData.sendTypes,,).concat(t):t)}try{return super.send(e)}catch(e){throw this.#o(e),e}}close(...e){try{super.close(...e)}catch(e){throw this.#o(e),e}}}return f.gm.WebSocketr,t}(this.ee)),f.RI){if(be(this.ee),le(this.ee),uje(this.ee),e.init.user_actions.enabled){function h(t){const r(0,we.D)(t);return e.beacons.includes(r.hostname+:+r.port)}function p(){u.emit(navChange)}$e.Zp.forEach(e>(0,P.sp)(e,e>(0,s.p)(ua,e,void 0,this.featureName,this.ee),!0)),$e.qN.forEach(e>{const t(0,m.s)(e>{(0,s.p)(ua,e,void 0,this.featureName,this.ee)},500,{leading:!0});(0,P.sp)(e,t)}),f.gm.addEventListener(error,()>{(0,s.p)(uaErr,,void 0,t.K7.genericEvents,this.ee)},(0,P.jT)(!1,this.removeOnAbort?.signal)),this.ee.on(open-xhr-start,(e,r)>{h(e1)||r.addEventListener(readystatechange,()>{2r.readyState&&(0,s.p)(uaXhr,,void 0,t.K7.genericEvents,this.ee)})}),this.ee.on(fetch-start,e>{e.length>1&&!h(xe(e0))&&(0,s.p)(uaXhr,,void 0,t.K7.genericEvents,this.ee)}),u.on(pushState-end,p),u.on(replaceState-end,p),window.addEventListener(hashchange,p,(0,P.jT)(!0,this.removeOnAbort?.signal)),window.addEventListener(popstate,p,(0,P.jT)(!0,this.removeOnAbort?.signal))}if(e.init.performance.resources.enabled&&f.gm.PerformanceObserver?.supportedEntryTypes.includes(resource)){new PerformanceObserver(e>{e.getEntries().forEach(e>{(0,s.p)(browserPerformance.resource,e,void 0,this.featureName,this.ee)})}).observe({type:resource,buffered:!0})}}r&&l.on(ws,e>{(0,s.p)(ws-complete,e,void 0,this.featureName,this.ee)});try{this.removeOnAbortnew AbortController}catch(g){}this.abortHandler()>{this.removeOnAbort?.abort(),this.abortHandlervoid 0},n.some(e>e)?this.importAggregator(e,()>i.e(478).then(i.bind(i,8019))):this.deregisterDrain()}}var nti(2646);const itnew Map;function st(e,t,r,n,i!0){if(object!typeof t||!t||string!typeof r||!r||function!typeof tr)return(0,h.R)(29);const sfunction(e){return(e||ae.ee).get(logger)}(e),o(0,ce.YM)(s),anew nt.y(ae.P);a.leveln.level,a.customAttributesn.customAttributes,a.autoCapturedi;const ctr?.ce.Jt||tr;return it.set(c,a),o.inPlace(t,r,wrap-logger-,()>it.get(c)),s}var oti(1910);class at extends y{static featureNameK.TZ;constructor(e){var t;super(e,K.TZ),te,(0,c.Y)(a.$9,(e,r)>U(e,r,t),t),function(e){(0,c.Y)(a.Wb,(t,r,{customAttributes:n{},level:iK.p_.INFO}{})>{st(e.ee,t,r,{customAttributes:n,level:i},!1)},e)}(e),Q(e);const rthis.ee;log,error,warn,info,debug,trace.forEach(e>{(0,ot.i)(f.gm.consolee),st(r,f.gm.console,e,{level:loge?info:e})}),this.ee.on(wrap-logger-end,function(e){const{level:t,customAttributes:n,autoCaptured:i}this;(0,W.R)(r,e,n,t,i)}),this.importAggregator(e,()>i.e(478).then(i.bind(i,5288)))}}new A({features:Pe,E,_,ze,qe,I,te,rt,at,Xe,loaderType:spa})})()})();/script> meta namedescription content> meta namekeywords contentChick-N-Bao, fried chicken Yarrawonga, bao buns NT, Asian street food, takeaway Yarrawonga, chicken bao, crispy chicken NT, food delivery Yarrawonga, comfort food NT, bao burger, NT chicken shop /> meta nameauthor contentDeliverit Software>meta nameROBOTS CONTENTINDEX, FOLLOW>script typetext/javascript>var HTTP_URL https://chicknbao.com.au/;/script>script typetext/javascript>var REL_URL core/;/script>script typetext/javascript>var S3_ASSETS_URL https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/;/script>script typetext/javascript>var PARTNER_ID 5;/script>script typetext/javascript>var PAGE_NAME browse;/script> meta propertyog:title contentChick-N-Bao /> meta propertyog:type contentwebsite /> meta propertyog:url contenthttp://chicknbao.com.au /> meta propertyog:image contenthttps://d2ova09jg8x3xk.cloudfront.net/chicknbao.com.au/images/logo.png /> meta propertyog:description content /> meta contentwidthdevice-width, initial-scale1, maximum-scale1, user-scalableno nameviewport> meta nameapple-mobile-web-app-capable contentyes /> meta http-equivCache-control contentpublic> link relcanonical hrefhttps://chicknbao.com.au/> link relshortcut icon hrefhttps://d2ova09jg8x3xk.cloudfront.net/chicknbao.com.au/images/favicon.png typeimage/x-icon> link relapple-touch-startup-image media(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) hrefimages/startup.png> style> #menu-items, #main-content, .mainpage, .office-info, .footerWrap{ display: none; } #main-content{ min-height: 100%; } #wrap:before{ content: ; background: #000; width: 100%; height: 100%; } /* * Select2 css */ .selection{ width: 100%; } .select2-container{ height: 33px!important; line-height: 33px!important; } .select2-selection__rendered { padding-left: 30px!important; padding-right: 12px; } .select2-container .select2-selection--single { height: 35px!important; } .select2-container--default .select2-selection--single .select2-selection__rendered{ line-height: 33px!important; } .has-error .select2-selection { border-color: #a94442!important; } .has-success .select2-selection { border-color: #3c763d!important; } .select2-selection--single { height: 100% !important; } .select2-selection__rendered{ word-wrap: break-word !important; text-overflow: inherit !important; white-space: normal !important; } #product_version .modal { text-align: center; padding: 0!important; background: none !important; } #product_version .modal-content{ box-shadow: none !important; border-radius: 0; } #product_version .modal-header{ background: #a91919; color: #fff; } #product_version .modal-body{ word-break: break-word; } #product_version .modal:before { content: ; display: inline-block; height: 100%; vertical-align: middle; margin-right: -4px; /* Adjusts for spacing */ } #product_version .modal-dialog { display: inline-block; text-align: left; vertical-align: middle; } #product_version .modal-header .close{ color: #fff; text-align: unset; } #table-txt{ width: 96%; margin-left: 2%; padding: 15px 0; text-align: center; font-size: 25px; font-weight: 700; background-color: #3498db; color: #fff; } @media only screen and (max-width: 414px){ #table-txt{ width: 94%; margin-left: 3%; } } /* OOA-109 Remove pause button */ .ui-pnotify .ui-pnotify-sticker{ display: none; } /* Loke loader */ .loader_wrapper { background-color: #fff; width: 100%; height: 100%; z-index: 1030; position: fixed; } .loader_container { position: fixed; width: 100%; height: 100%; top: 20%; z-index: 1031; } .loader_ajax_small { border: 3px solid #eee !important; border-radius: 50%; border-top: 2px solid #333 !important; width: 100px; height: 100px; margin: 0 auto; -webkit-animation: spin_loader_ajax_small 2s linear infinite; animation: spin_loader_ajax_small 2s linear infinite; } @-webkit-keyframes spin_loader_ajax_small { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes spin_loader_ajax_small { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .pac-container{ background-color: #ffffff; position: absolute; z-index: 1000; border-top: 1px solid #d9d9d9; -webkit-box-shadow: 0 2px 6px rgba(0,0,0,.3); box-shadow: 0 2px 6px rgba(0,0,0,.3); -webkit-box-sizing: border-box; box-sizing: border-box; overflow: hidden; } /style> link hrefhttps://fonts.googleapis.com/css?familyRubik|Poppins|Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800 relstylesheet typetext/css> style> @font-face { font-family: Glyphicons Halflings; src: url(https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/fonts/glyphicons-halflings-regular.eot); src: url(https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/fonts/glyphicons-halflings-regular.eot?#iefix) format(embedded-opentype), url(https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/fonts/glyphicons-halflings-regular.woff) format(woff), url(https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/fonts/glyphicons-halflings-regular.ttf) format(truetype), url(https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/fonts/glyphicons-halflings-regular.svg#BebasRegular) format(svg); } /style> link relpreload asfont hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/fonts/fa-solid-900.woff2 typefont/woff2 crossoriginanonymous> link typetext/css relstylesheet hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/css/all.css>link typetext/css relstylesheet hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/css/style.css>link typetext/css relstylesheet hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/css/platina.css>link typetext/css relstylesheet hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/css/font-awesome.min.css>link typetext/css relstylesheet hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/css/login-v2.css> link typetext/css relstylesheet hrefhttps://d2ova09jg8x3xk.cloudfront.net/chicknbao.com.au/themes_oo.css> link hrefhttps://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css relstylesheet /> link relstylesheet hrefhttps://cdn.jsdelivr.net/npm/@splidejs/splide@latest/dist/css/splide.min.css> link relstylesheet hrefhttps://cdn.jsdelivr.net/npm/@splidejs/splide@latest/dist/css/themes/splide-sea-green.min.css> script srchttps://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js>/script> !--GoogleMap--> !-- script srchttps://maps.googleapis.com/maps/api/js?v3.exp&librariesplaces&keyAIzaSyDiFzy_CwiC1t90mE7nskFbtrBhPOTsIgo®ionAU&callbackinitMap async defer>/script> --> script srchttps://maps.googleapis.com/maps/api/js?v3.exp&librariesplaces&keyAIzaSyByHLsoWqVag96TcJTq2O2tPLU3qGLbvcE®ionAU&callbackinitMap async defer>/script> script typetext/javascript> var autocompleteService, sessionToken, service; function initMap() {} /script> script typetext/javascript> // For franchise_logo on feedback widget (OOA-249) var session_logo ; session_logo https://d2ova09jg8x3xk.cloudfront.net/chicknbao.com.au/images/logo.png; $(body).ready(function(){ $(#menu-items, #main-content, .mainpage, .office-info, .footerWrap).fadeIn(); $(#wrap).addClass(menu-ready); }); /script> script srchttps://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js>/script> script srchttps://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js>/script> script srchttps://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.10/SmoothScroll.js>/script> script> $(document).ready(function(){ if($(#storeSelected).val() ! 1){ if($(window).width() > 1024){ var store_list_option; $.ajax({ method: POST, data: { account_id: , sort_state: 0 }, dataType: json, url: core/ajax/get_multi_store.php, }).done(function(data){ var i 0; $.each(data, function(k, v){ if(v.client_status active){ store_list_option + option value+v.client_code+>+v.store_name+/option>; i++; } }); if(i > 0){ $(.feedback_me_form ul).prepend(div idfeedback_store_list stylemargin-top:-20px;margin-bottom:10px;padding-bottom:10px;> + label classfieldTitle> Select Store/label> span classrequired_asterisk>*/span>br /> + select stylewidth:340px; required classfeedback_store form-control> + option value>:::Please Select:::/option> + store_list_option + /select> + /div>); } }); } } }); /script> script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/jquery.validate-1.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/class.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/banner.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/blazy.min.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/bootstrap-modal-carousel.min.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/bootstrap3-typeahead.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/collapse.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/jwt-decode.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/offcanvas.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/pnotify.custom.min.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/qrcode.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/scrollspy.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/smart-app-banner.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/typeahead.bundle.min.js>/script> script srchttps://cdn.jsdelivr.net/npm/@splidejs/splide@latest/dist/js/splide.min.js>/script> script typetext/javascript> var IS_AUS true;/script>script> $(document).ready(function(){ // $(linkhref/deals.css).remove(); $(#cancel).live(click, function(){ $(.popover).toggle(); }); if(localStorage.getItem(activeTab) ! null){ localStorage.removeItem(activeTab); } $(.feedback_trigger).hide(); $(ahref?pagefeedback).each(function() { const $parent $(this).parent(); if($parent.is(li)){ $parent.remove(); } else{ $(this).remove(); } }); });/script> !-- Google redirect conversion tracking --> script> const rwgQuery location.search.substring(1), rwgParams rwgQuery.split(&); let rwgToken undefined; for(let i 0; i rwgParams.length; ++i){ const rwgPair rwgParamsi.split(); if (rwgPair0 rwg_token) { rwgToken decodeURIComponent(rwgPair1); break; } } if(typeof rwgToken ! undefined){ const rwgDomain window.location.hostname; // Get the current domain dynamically document.cookie `_rwg_token${rwgToken};max-age2592000;domain${rwgDomain};path/`; // store the token in the cookie for 30 days } /script>script> jQuery(document).ready(function($){ $(#login-nav).click(function(){ window.login_referer navbar; // login_referer to determine the flow of login. $(.or_guest, .checkout_as_guest).show(); $(.register-ling a).attr(href,?pageregister); $(.checkout_as_guest a).text(Login as Guest); $(#login-wrap).fadeToggle(fast); $(this).blur(); }); $(#login-section #cancel).click(function(){ $(#login-wrap).fadeToggle(fast); }); $(#login-section .close).click(function(){ if(!$(this).hasClass(disabled)){ $(#login-wrap).fadeToggle(fast); } }); var txt; $(data-togglepopover).popover({ placement : bottom, html : true, content : txt }).click(function(e){ e.preventDefault(); }); showModal function(){ $(#myModal).modal({ keyboard: false, show: true }); $(#myModal #processing-text).html(Processing Order); } hideModal function(){ $(#myModal).modal(hide); } $(#refer_form).submit(function(){ $(#refer_form button).prop(disabled, true); $(#refer-btn).html(Sending. Please wait.); $.ajax({ url: core/ajax/refer_friend_send.php, type: POST, data: $(#refer_form).serialize(), success: function(){ $(#refer_form input, #refer_form button).prop(disabled, true); $(#refer-btn).html(E-mail sent); jQuery.prompt(h4>center>Message has been sent!/center>/h4>, { top:30%, submit: function(e,v,m,f){ window.location window.location.href.split(?)0; } }); }, error: function(){ $(#refer_form button).prop(disabled, false); $(#refer-btn).html(Send Referal); jQuery.prompt(h4>center>Message not sent!/center>/h4>); } }); return false; }); });/script>script> var $j jQuery.noConflict(); // bootstrap no conflict $j(document).ready(function(){ $j(function(){ $j(data-toggletooltip).tooltip(); }); }); function checked_io(elem, themeTemplate){ if(elem.is(:checkbox)){ if(elem.is(:checked)){ elem.siblings(.input-group-label).children(.check-img-popup).css(visibility,visible).attr(src,https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/+themeTemplate+/img/icon-check.png); } else{ elem.siblings(.input-group-label).children(.check-img-popup).css(visibility,hidden).attr(src,); } } else{ elem.parent().parent().find(.check-img-popup).css(visibility,hidden).attr(src,); elem.siblings(.input-group-label).children(.check-img-popup).css(visibility,visible).attr(src,https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/+themeTemplate+/img/icon-check.png); } if(elem.parent().parent().find(.check-img-popup).length > 0){ elem.parent().parent().find(.check-img-popup).each(function(){ if($(this).css(display) none){ $(this).css(display, ); } }); } } var countdown_timer; function resend_countdown(resendTimer){ resend_counter 59; countdown_timer setInterval(function(){ resend_counter - 1; $(#+resendTimer).addClass(disabled).text(Resend code in +resend_counter); if(resend_counter 0) { clearInterval(countdown_timer); $(#+resendTimer).removeClass(disabled).text(Resend code); } }, 1000) } function showMessage(elem, className, msg, timeOut){ elem.addClass(className).text(msg).show(); if(timeOut ! undefined){ setTimeout(function(){ elem.hide(); }, timeOut); } }/script>script> (function(a,b,c){if(c in b&&bc){var d,ea.location,f/^(a|html)$/i;a.addEventListener(click,function(a){da.target;while(!f.test(d.nodeName))dd.parentNode;hrefin d&&(d.href.indexOf(http)||~d.href.indexOf(e.host))&&(a.preventDefault(),e.hrefd.href)},!1)}})(document,window.navigator,standalone)/script>script typetext/javascript src//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/scripts/select2/dist/js/select2.min.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/scripts/jquery.autocomplete.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/scripts/jquery.impromtu.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/scripts/jquery.timeout.interval.idle.js>/script>script typetext/javascript srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/scripts/fancybox/jquery.fancybox-1.3.4.pack.js>/script>link relstylesheet typetext/css hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/scripts/autocomplete.css>link relstylesheet typetext/css hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/scripts/fancybox/jquery.fancybox-1.3.4.css>link relstylesheet typetext/css hrefhttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/scripts/select2/dist/css/select2.min.css> script> (function(i,s,o,g,r,a,m){iGoogleAnalyticsObjectr;irir||function(){ (ir.qir.q||).push(arguments)},ir.l1*new Date();as.createElement(o), ms.getElementsByTagName(o)0;a.async1;a.srcg;m.parentNode.insertBefore(a,m) })(window,document,script,//www.google-analytics.com/analytics.js,ga);ga(create, UA-49593232-2, {name:dsoftonline}); ga(dsoftonline.send, pageview); /script> script typetext/javascript srchttps://iplogger.deliverit.com.au/deliverit-sdk.php>/script> script typetext/javascript> $(document).ready(function(){ try{ var deliveritSDK new DeliveritSDK(); var customerIP deliveritSDK.getCustomerIP() +:+ deliveritSDK.getCustomerPort(); }catch(e){ var customerIP ::1; } if(!customerIP){ customerIP ::1; // handles late transition of script to prevent error } $.post(core/ajax/get_ip.php,{customerIP:customerIP}); }); /script>script> var promo_last_io_checked new Array(); $(document).ready(function(){ var refreshSession function(){ var time 600000; // 10 mins setTimeout(function(){ $.ajax({ url: core/ajax/refreshsession.php, cache: false, complete: function(){refreshSession();} }); }, time); }; refreshSession(); const urlParams new URLSearchParams(window.location.search); const param_page urlParams.get(page); const current_template template4; if (param_page || current_template template4 || current_template localserves) { $j(.storeinfo .header-info-toggle.navbar-toggle span.glyphicon).show(); setMobileEstimatedTime(current_template); //Observe the change of estimated time var estimatedTime $(#estimated-time); this.observer new MutationObserver(function (mutations) { setMobileEstimatedTime(current_template); }.bind(this)); if (estimatedTime.length > 0) { this.observer.observe(estimatedTime.get(0), {characterData: true, childList: true}); } } $j(.storeinfo #bs-navbar).on(hidden.bs.collapse, toggleChevron); $j(.storeinfo #bs-navbar).on(shown.bs.collapse, toggleChevron); function setMobileEstimatedTime(current_template) { var estTime $(#estimated-time #est-time).text(); var mins $(#estimated-time #time-mins).contents().first().text().trim(); var deliveryTime $(#estimated-time #time-mins p).text(); var info $(#estimated-time > h3).text(); var alert $(#estimated-time .alert).text(); if (estTime ! ) { var icon_file_name est-time-icon.png; if (current_template template4) { icon_file_name est-time-icon-white.png; } var timestring img classest-time-icon srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/images/+icon_file_name+ stylemax-width:14px;> + deliveryTime + : strong> + estTime + + mins + /strong>; $(.mobile-estimated-time).html(timestring); } else if (info ! || alert ! ) { if (info ! ) { $(.mobile-estimated-time).html(info); } else { $(.mobile-estimated-time).html(alert); } } } function toggleChevron(e) { $j(e.target) .prev(#title) .find(.navbar-toggle span.glyphicon) .toggleClass(glyphicon-chevron-up glyphicon-chevron-down); } $j(inputnameemail).on(input, function() { const trimmedValue $(this).val().trim(); $(this).val(trimmedValue); }); $(#promo-modifier-modal .promo-item-option-radio-list).live(click, function(){ var modal_div $(this).closest(.modal.fade).attr(id); var multiple_io $(this).attr(multiple-io); var mio_id $(this).attr(mio-id); if(typeof multiple_io undefined || multiple_io false){ $(#+ modal_div + .promo-item-option-radio-list).attr(checked, false); $(this).attr(checked, true); $(#promo-modifier-modal .modal-footer .btn).data(option-ids, $(this).attr(ref)); } else{ var min_io $(this).attr(min-io); var max_io $(this).attr(max-io); if($(#+modal_div+ name+$(this).attr(name)+:checked).length > min_io){ $(this).parent().parent().css({padding:, border:}); } if(max_io 1 && $(#+modal_div+ name+$(this).attr(name)+:checked).length > 1){ $(#+modal_div+ name+$(this).attr(name)+).attr(checked, false); $(this).attr(checked, true); } else if($(#+modal_div+ name+$(this).attr(name)+:checked).length > max_io){ $(#+promo_last_io_checkedmio_id).attr(checked, false); } promo_last_io_checkedmio_id $(this).attr(id); // checking of selected modifiers var mio_ids , mio_msg , mio_req 0 option_ids ; $(#+ modal_div + .promo-item-option-radio-list).each(function(){ if(typeof $(this).attr(mio-id) ! undefined && $(this).attr(mio_id) ! false){ mio_ids.push($(this).attr(mio-id)); } mio_ids ... new Set(mio_ids); if($(this).is(:checked)){ option_ids.push($(this).attr(ref)); } }); var io_div; $.each(mio_ids, function(key, val){ var io_selected $(#+modal_div+ mio-id+val+:checked).length, io_min $(#+modal_div+ mio-id+val+:first).attr(min-io), io_max $(#+modal_div+ mio-id+val+:first).attr(max-io), io_name $(#+modal_div+ mio-id+val+:first).parent().siblings(div.promo-item-option-group-name-+val).find(p).text(), io_container $(#+modal_div+ mio-id+val+:first).parent().parent(); if(io_selected io_min || io_selected > io_max){ mio_req++; } }); $(#promo-modifier-modal .modal-footer .btn).prop(disabled, (mio_req > 0 ? true : false)); if(mio_req 0){ $(#promo-modifier-modal .modal-footer .btn).data(option-ids, option_ids.join(,)); $j(#promo-modifier-modal .modal-footer spandata-toggletooltip).tooltip(disable); } else{ $j(#promo-modifier-modal .modal-footer spandata-toggletooltip).tooltip(enable); } } checked_io($(this), template4); }); $(#promo-modifier-modal .modal-footer .btn).live(click, function(){ $(this).prop(disabled, true); if($(this).hasClass(item-option)){ var data ; dataoption_id $(this).data(option-ids); dataqty 1; $(#promo-modifier-modal .modal-body .modifier-wrapper div ~ input).each(function(){ if($(this).attr(name) plu){ dataPLU $(this).val(); } if($(this).attr(name) price){ dataprice $(this).val(); } if($(this).attr(name) promocode){ datapromocode $(this).val(); } if($(this).attr(name) single_promo_code){ datasingle_promo_code $(this).val(); } if($(this).attr(name) min_order){ datamin_order $(this).val(); } if($(this).attr(name) promotional_id){ datapromotional_id $(this).val(); } if($(this).attr(name) promotional_link){ datapromotional_link $(this).val(); } if($(this).attr(name) promo_pickup_plu){ datapromo_pickup_plu $(this).val(); } if($(this).attr(name) promo_delivery_plu){ datapromo_delivery_plu $(this).val(); } }); //Convert the object to query string var serialize function(obj) { var str ; for(var p in obj) if (obj.hasOwnProperty(p)) { str.push(encodeURIComponent(p) + + encodeURIComponent(objp)); } return str.join(&); } $(#view-basket).load(core/mybasket.php?pagebrowse&+serialize(data), function(){ $(this).prop(disabled, false); $(#promo-modifier-modal .modal-header .close).click(); }); } else if($(this).hasClass(reload)){ location.reload(); } else{ $(this).prop(disabled, false); $(#promo-modifier-modal .modal-header .close).click(); } }); });/script> !-- intl-tel-input --> script srchttps://cdn.jsdelivr.net/npm/intl-tel-input@latest/build/js/intlTelInput.js>/script> !-- libphonenumber-js --> script srchttps://unpkg.com/libphonenumber-js/bundle/libphonenumber-max.js>/script> script> let phoneInt, phoneLoginInt null; $(document).ready(function () { const phoneInput document.getElementById(mobilenumber); if (phoneInput) { // Initialize intl-tel-input for UI & country dropdown phoneInt window.intlTelInput(phoneInput, { loadUtils: () > import(https://cdn.jsdelivr.net/npm/intl-tel-input@latest/build/js/utils.js), onlyCountries: AU, initialCountry: AU, allowDropdown: false, autoPlaceholder: aggressive, placeholderNumberType: MOBILE, separateDialCode: true, strictMode: true, showFlags: true, useFullscreenPopup: false, }); } const loginPhoneInput document.getElementById(login-mobile); if (loginPhoneInput) { $j(#login-email).on(input, function () { let val $(this).val(); if (/^\d/.test(val)) { // starts with number → switch to phone $(this).hide(); val val.replace(/\D/g, ); // remove everything thats not a digit $(#login-mobile).show().val(val); // Initialize intlTelInput only when phone field is first shown if (!phoneLoginInt) { phoneLoginInt window.intlTelInput(loginPhoneInput, { loadUtils: () > import(https://cdn.jsdelivr.net/npm/intl-tel-input@latest/build/js/utils.js), onlyCountries: AU, initialCountry: AU, allowDropdown: false, autoPlaceholder: aggressive, placeholderNumberType: MOBILE, separateDialCode: true, strictMode: true, showFlags: true, formatAsYouType: false, formatOnDisplay: false, useFullscreenPopup: false, }); } // Delay focus until phone is visible setTimeout(() > { $(#login-mobile).focus(); }, 10); } }); $j(#login-mobile).on(input, function () { let val $(this).val(); val val.replace(/\D/g, ); // remove everything thats not a digit $(this).val(val); if (!val) { // if empty, switch back to email $(this).val(); // Clear phone input // Destroy intlTelInput so flags disappear if (phoneLoginInt) { phoneLoginInt.destroy(); phoneLoginInt null; } // Switch back to email $(#login-mobile).hide(); $(#login-email).show().val().focus(); } }); } const loginPhoneOtpInput document.getElementById(login-phone); if (loginPhoneOtpInput) { // Initialize intl-tel-input for UI & country dropdown loginPhoneOtpInt window.intlTelInput(loginPhoneOtpInput, { loadUtils: () > import(https://cdn.jsdelivr.net/npm/intl-tel-input@latest/build/js/utils.js), onlyCountries: AU, initialCountry: AU, allowDropdown: false, autoPlaceholder: aggressive, placeholderNumberType: MOBILE, separateDialCode: true, strictMode: true, showFlags: true, formatAsYouType: false, formatOnDisplay: false, useFullscreenPopup: false, }); } const registerPhoneInput document.getElementById(register-phone); if (registerPhoneInput) { // Initialize intl-tel-input for UI & country dropdown registerPhoneInt window.intlTelInput(registerPhoneInput, { loadUtils: () > import(https://cdn.jsdelivr.net/npm/intl-tel-input@latest/build/js/utils.js), onlyCountries: AU, initialCountry: AU, allowDropdown: false, autoPlaceholder: aggressive, placeholderNumberType: MOBILE, separateDialCode: true, strictMode: true, showFlags: true, useFullscreenPopup: false, }); } }); /script>!--WEB-1799 - Hide Menu Category When All Items Are Set to Specific Order Type--> script> //classmenu-item mi-223495 function getIdFromClass(className) { const match className.match(/mi-(\d+)/); return match ? match1 : null; } function checkItemUl() { $(#menu-items .menu-item).each(function() { const menuItem $(this); const item_ul menuItem.find(ul); if (item_ul.length && item_ul.children().length 0) { const className menuItem.attr(class); const menuId getIdFromClass(className); if (menuId) { $(#menu #menu-ul li.menu- + menuId).hide(); } menuItem.hide(); } }); } $(document).ready(checkItemUl); $(document).ajaxSuccess(checkItemUl); /script> script> $(document).ready(function() { // Search suburb/postcode option position bottom (function($) { var Defaults $.fn.select2.amd.require(select2/defaults); $.extend(Defaults.defaults, { dropdownPosition: auto }); var AttachBody $.fn.select2.amd.require(select2/dropdown/attachBody); var _positionDropdown AttachBody.prototype._positionDropdown; AttachBody.prototype._positionDropdown function() { var $window $(window); var isCurrentlyAbove this.$dropdown.hasClass(select2-dropdown--above); var isCurrentlyBelow this.$dropdown.hasClass(select2-dropdown--below); var newDirection null; var offset this.$container.offset(); offset.bottom offset.top + this.$container.outerHeight(false); var container { height: this.$container.outerHeight(false) }; container.top offset.top; container.bottom offset.top + container.height; var dropdown { height: this.$dropdown.outerHeight(false) }; var viewport { top: $window.scrollTop(), bottom: $window.scrollTop() + $window.height() }; var enoughRoomAbove viewport.top (offset.top - dropdown.height); var enoughRoomBelow viewport.bottom > (offset.bottom + dropdown.height); var css { left: offset.left, top: container.bottom }; var $offsetParent this.$dropdownParent; if ($offsetParent.css(position) static) { $offsetParent $offsetParent.offsetParent(); } var parentOffset $offsetParent.offset(); css.top - parentOffset.top css.left - parentOffset.left; var dropdownPositionOption this.options.get(dropdownPosition); if (dropdownPositionOption above || dropdownPositionOption below) { newDirection dropdownPositionOption; } else { if (!isCurrentlyAbove && !isCurrentlyBelow) { newDirection below; } if (!enoughRoomBelow && enoughRoomAbove && !isCurrentlyAbove) { newDirection above; } else if (!enoughRoomAbove && enoughRoomBelow && isCurrentlyAbove) { newDirection below; } } if (newDirection above || (isCurrentlyAbove && newDirection ! below)) { css.top container.top - parentOffset.top - dropdown.height; } if (newDirection ! null) { this.$dropdown .removeClass(select2-dropdown--below select2-dropdown--above) .addClass(select2-dropdown-- + newDirection); this.$container .removeClass(select2-container--below select2-container--above) .addClass(select2-container-- + newDirection); } this.$dropdownContainer.css(css); }; })($j); // Search Store by Suburb or Postcode var chainStoresOptions { placeholder: Suburb Search, theme: platina, dropdownPosition: below, minimumInputLength: 2, minimumResultsForSearch: 5, templateResult: formatRepo, language: { noResults: function () { return Sorry, we do not serve that area. a href# data-togglemodal data-target#locationsModal classmenu-locations>Click here/a> to see our list of locations.; } }, escapeMarkup: function (markup) { return markup; }, ajax: { url: core/ajax/find_chain_streets.php, dataType: json, delay: 250, data: function (params) { return { q: params.term, page: params.page }; }, processResults: function (data) { $j(#getLocation).prop(disabled, false); if (data) { return { results: $.map(data.streets, function (item) { return { text: item.store_suburb, id: item.client_code, item: item } }) }; } } } }; $j(#chainStores).select2(chainStoresOptions); // OOA-40 Select Suburb - Use My Location function showLocation(position) { var lat position.coords.latitude; var lng position.coords.longitude; var position location:+lat+,+lng; $j(#chainStores).prop(disabled, false); $j(#chainStores).select2(open); $j(#chainStores).data(select2).dropdown.$search.val(position).trigger(input); $j(#chainStores).data(select2).dropdown.$search.val(null).trigger(change); } var showOptions { enableHighAccuracy: true, timeout: 10000, maximumAge: 0 }; function showError(error) { switch(error.code) { case error.PERMISSION_DENIED: alert(User denied the request for Geolocation.); $j(#chainStores).prop(disabled, false); break; case error.POSITION_UNAVAILABLE: alert(Location information is unavailable.); $j(#chainStores).prop(disabled, false); break; case error.TIMEOUT: alert(The request to get user location timed out.); $j(#chainStores).prop(disabled, false); break; case error.UNKNOWN_ERROR: alert(An unknown error occurred.); $j(#chainStores).prop(disabled, false); break; } } $j(#getLocation).on(click, function() { if (typeof navigator ! undefined && navigator && navigator.geolocation) { navigator.geolocation.getCurrentPosition(showLocation, showError, showOptions); $j(#chainStores).select2(close); $j(#getLocation).prop(disabled, true); $j(#chainStores).prop(disabled, true); } else { $j(#chainStores).prop(disabled, false); alert(Geolocation is not supported by this browser.); } }); // Update Selected Store Details // trigger switchStore function for suburb search $j(#chainStores).on(change, function () { var search_client_code this.value; if(search_client_code ! ) { //check is store is in progress var search_client_status $j(#chainStores).select2(data)0.item.client_status; if(search_client_status ! in progress){ $j(#chainStores).prop(disabled, true); $j.ajax({ method: GET, data: {item_count: 1}, url: core/ajax/checkorder.php, }).done(function (e) { var search_client_id $j(#chainStores).select2(data)0.item.client_id; var search_client_url $j(#chainStores).select2(data)0.item.client_url; if (e 0) { switchStore(search_client_id, search_client_code,search_client_url); } else { if (search_client_code $j(#client_code).val()) { switchStore(search_client_id, search_client_code,search_client_url); return; } var switchStoreHeading Switch to + $j(#chainStores option:selected).text() + ?; $j(#storeSwitchPopup h4.modal-title).text(switchStoreHeading); $j(#storeSwitchPopupStoreName).text($j(#chainStores option:selected).text()); $j(#storeSwitchPopup).modal(show); } }); }else{ var comingSoonStoreSwitchPopup $j(#chainStores option:selected).text() + store is coming soon!; $j(#comingSoonStoreSwitchPopup h4.modal-title).text(comingSoonStoreSwitchPopup); $j(#comingSoonStoreSwitchPopup).modal(show); } } }); // New Delivery Address Search var searchFormOptions { placeholder: Enter your delivery location, theme: platina delivery-address-search, dropdownPosition: below, minimumInputLength: 1, minimumResultsForSearch: 5, templateResult: formatRepoDelivery, language: { noResults: function () { return Sorry, we do not serve that area. a href# data-togglemodal data-target#locationsModal classmenu-locations>Click here/a> to see our list of locations.; } }, escapeMarkup: function (markup) { return markup; }, ajax: { url: core/ajax/find_nearest_stores.php, dataType: json, delay: 250, data: function (params) { return { q: params.term, page: params.page }; }, processResults: function (data) { $j(#searchNearest).prop(disabled, false); if (data) { return { results: $.map(data.streets, function (item) { return { text: item.store_suburb, id: item.client_code, item: item } }) }; } } } }; $j(#searchForm).select2(searchFormOptions); // OOA-40 Select Suburb - Use My Location function showLocationDelivery(position) { var lat position.coords.latitude; var lng position.coords.longitude; var position location:+lat+,+lng; $j(#searchForm).prop(disabled, false); $j(#searchForm).select2(open); $j(#searchForm).data(select2).dropdown.$search.val(position).trigger(input); $j(#searchForm).data(select2).dropdown.$search.val(null).trigger(change); } function showErrorDelivery(error) { switch(error.code) { case error.PERMISSION_DENIED: alert(User denied the request for Geolocation.); $j(#searchForm).prop(disabled, false); break; case error.POSITION_UNAVAILABLE: alert(Location information is unavailable.); $j(#searchForm).prop(disabled, false); break; case error.TIMEOUT: alert(The request to get user location timed out.); $j(#searchForm).prop(disabled, false); break; case error.UNKNOWN_ERROR: alert(An unknown error occurred.); $j(#searchForm).prop(disabled, false); break; } } $j(#searchNearest).on(click, function() { if (typeof navigator ! undefined && navigator && navigator.geolocation) { navigator.geolocation.getCurrentPosition(showLocationDelivery, showErrorDelivery, showOptions); $j(#searchForm).select2(close); $j(#searchNearest).prop(disabled, true); $j(#searchForm).prop(disabled, true); } else { $j(#searchForm).prop(disabled, false); alert(Geolocation is not supported by this browser.); } }); // Update Selected Store Details // trigger switchStore function for suburb search $j(#searchForm).on(change, function () { var search_client_code this.value; if(search_client_code ! ) { //check is store is in progress var search_client_status $j(#searchForm).select2(data)0.item.client_status; if(search_client_status ! in progress){ $j(#searchForm).prop(disabled, true); $j.ajax({ method: GET, data: {item_count: 1}, url: core/ajax/checkorder.php, }).done(function (e) { var search_client_id $j(#searchForm).select2(data)0.item.client_id; var search_client_url $j(#searchForm).select2(data)0.item.client_url; if (e 0) { switchStore(search_client_id, search_client_code,search_client_url); } else { if (search_client_code $j(#client_code).val()) { switchStore(search_client_id, search_client_code,search_client_url); return; } var switchStoreHeading Switch to + $j(#searchForm option:selected).text() + ?; $j(#storeSwitchPopup h4.modal-title).text(switchStoreHeading); $j(#storeSwitchPopupStoreName).text($j(#searchForm option:selected).text()); $j(#storeSwitchPopup).modal(show); } }); }else{ var comingSoonStoreSwitchPopup $j(#searchForm option:selected).text() + store is coming soon!; $j(#comingSoonStoreSwitchPopup h4.modal-title).text(comingSoonStoreSwitchPopup); $j(#comingSoonStoreSwitchPopup).modal(show); } } }); // OOA-1394: trigger switchStore function for store list $j(#storeListsModal).on( click, .storeLists-orderonline-btn, function() { // Get store data var storeList_clientID $(this).attr( client_id); var storeList_clientCode $(this).attr( client_code); var storeList_clientURL $(this).attr( client_url); var storeList_clientSuburb $(this).attr( client_suburb); var storeList_storeName $(this).attr( store_Name); $j.ajax({ method: GET, data: {item_count: 1}, url: core/ajax/checkorder.php, }).done(function (e) { if (e 0) { switchStore(storeList_clientID, storeList_clientCode, storeList_clientURL); } else { if (storeList_clientCode $j(#client_code).val()) { // DO not show switch option popup if client code are the same switchStore(storeList_clientID, storeList_clientCode, storeList_clientURL); return; } var switchStoreHeading Switch to + storeList_clientSuburb + ?; $j(#storeSwitchPopup_2 h4.modal-title).text(switchStoreHeading); $j(#storeSwitchPopup_2 #storeSwitchPopupStoreName).text(storeList_storeName); // Add store details needed for switching store $(#storeSwitchPopup_2 #storelist-switch-option-ok).attr( client_id, storeList_clientID); $(#storeSwitchPopup_2 #storelist-switch-option-ok).attr( client_code, storeList_clientCode); $(#storeSwitchPopup_2 #storelist-switch-option-ok).attr( client_url, storeList_clientURL); $j(#storeSwitchPopup_2).modal(show); } }); }); // Switch Prompt for Suburb Search $j(.switch-option).on(click, function() { var switchValue this.value; if (switchValue ok) { var search_client_code $j(#chainStores).val(); var search_client_id $j(#chainStores).select2(data)0.item.client_id; var search_client_url $j(#chainStores).select2(data)0.item.client_url; switchStore(search_client_id, search_client_code,search_client_url); } if (switchValue cancel) { $j(#chainStores).prop(disabled, false); $j(#chainStores).val().trigger(change); } }); // Switch Prompt for Store Lists $j(.storelist-switch-option).on(click, function() { var switchValue this.value; // Okay button for suburb search feature if (switchValue ok) { var search_client_code $(this).attr( client_code); var search_client_id $(this).attr( client_id); var search_client_url $(this).attr( client_url); switchStore(search_client_id, search_client_code,search_client_url); } }); function switchStore(search_client_id, search_client_code,search_client_url) { $j.ajax({ method: GET, data: { client_id: search_client_id, client_code: search_client_code }, dataType: json, url: core/ajax/change_store_session.php, }).done(function (e) { if (e.response_code 02) { alert(Something went wrong. Please try again later.) } else { /*$j(html, body).animate({ scrollTop: $(#store-data).offset().top }, slow, function() { $(#loader-platina).fadeIn(); $(body).css(overflow, hidden); } var uri window.location.toString(); if (uri.indexOf(#) > 0) { var clean_uri uri.substring(0, uri.indexOf(#)); window.history.replaceState({}, document.title, clean_uri); } // window.location.href search_client_url+#store-data; // window.location.href search_client_url; });*/ window.location.href search_client_url; } }); } function formatRepo (data, e) { if (data.loading) { return data.text; } function camelCase(str) { str str.toLowerCase() return str.replace(/(?:^|\s)\w/g, function(match) { return match.toUpperCase(); }); } var searchValue $j(#chainStores).data(select2).dropdown.$search.val(); var src_str camelCase(data.item.store_suburb_postcode); var term searchValue; term term.replace(/(\s+)/,(^>+>)*$1(^>+>)*); var pattern new RegExp((+term+), gi); // src_str src_str.replace(pattern, span stylebackground: yellow;>$1/span>); //WD-520 : removed search word highlight src_str src_str.replace(/(mark>^>*)((^>+>)+)(^>*\/mark>)/,$1/mark>$2mark>$4); var suburb_postcode (data.item.distance_in_km ? approximately +data.item.distance_in_km+km away : src_str); var state (data.item.client_state ! undefined) ? (+data.item.client_state+) : ; var client_status (data.item.client_status in progress) ? br/>span stylecolor: #c42328; font-sie: 14px; vertical-align: middle;>Coming Soon/span> : ; var classStatus (data.item.client_status in progress) ? select2-result-store-inprogress : ; var storeAddressHtml ; if (data.item.store_address) { var encodedStoreAddress encodeURIComponent(data.item.store_address); storeAddressHtml div classselect2-result-store__address>img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/store-address.svg> a hrefhttps://www.google.com/maps/search/?api1&query + encodedStoreAddress + classaddress-link target_blank relnoopener> + data.item.store_address + /a>/div>; } var $container $j( div classselect2-result-store +classStatus+> + div classselect2-result-store__meta> + div classselect2-result-store__title>+data.item.store_suburb+state+client_status+/div> + storeAddressHtml + div classselect2-result-store__store-suburb-postcode>img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/deliver.svg> +suburb_postcode+/div> + /div> + /div> ); return $container; } function formatRepoDelivery (data, e) { if (data.loading) { return data.text; } function camelCase(str) { str str.toLowerCase() return str.replace(/(?:^|\s)\w/g, function(match) { return match.toUpperCase(); }); } var searchValue $j(#searchForm).data(select2).dropdown.$search.val(); var src_str camelCase(data.item.store_suburb_postcode); var term searchValue; term term.replace(/(\s+)/,(^>+>)*$1(^>+>)*); var pattern new RegExp((+term+), gi); // src_str src_str.replace(pattern, span stylebackground: yellow;>$1/span>); //WD-520 : removed search word highlight src_str src_str.replace(/(mark>^>*)((^>+>)+)(^>*\/mark>)/,$1/mark>$2mark>$4); var suburb_postcode (data.item.distance_in_km ? approximately +data.item.distance_in_km+km away : src_str); var state (data.item.client_state ! undefined) ? (+data.item.client_state+) : ; var client_status (data.item.client_status in progress) ? br/>span stylecolor: #c42328; font-sie: 14px; vertical-align: middle;>Coming Soon/span> : ; var classStatus (data.item.client_status in progress) ? select2-result-store-inprogress : ; var full_address data.item.original_street_number+ +data.item.street+, +suburb_postcode; // Lowercase then capitalize first letter of each word full_address full_address.toLowerCase().replace(/\ba-z/g, function(letter) { return letter.toUpperCase(); }); var store_suburb data.item.store_suburb; // Lowercase then capitalize first letter of each word store_suburb store_suburb.toLowerCase().replace(/\ba-z/g, function(letter) { return letter.toUpperCase(); }); var suburbPostcodePlain suburb_postcode.replace(/^>*>/g, ); var deliveryMapQuery data.item.store_address ? data.item.store_address : (data.item.original_street_number + + data.item.street + , + suburbPostcodePlain); var encodedDeliveryAddress encodeURIComponent(deliveryMapQuery); var fullAddressHtml a hrefhttps://www.google.com/maps/search/?api1&query + encodedDeliveryAddress + classaddress-link target_blank relnoopener> + full_address + /a>; var $container $j( div classselect2-result-store +classStatus+> + div classselect2-result-store__meta> + div classselect2-result-store__store-suburb-postcode>img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/deliver.svg> + fullAddressHtml + strong>(Store: +store_suburb+)/strong> + client_status + /div> + /div> + /div> ); return $container; } var hash window.location.hash.substr(1); if(hash && !hash.includes()){ $j(html, body).animate({ scrollTop: $(#+hash).offset().top }, slow); } if($(#desktopSplide .splide__pagination).length){ if ($(window).width() > 1024){ $(#desktopSplide .splide__pagination).css(top, $(window).height() - 80); } else{ $(#desktopSplide .splide__pagination).css(top, $(window).height() - 40); } } var current_width $(window).width(); //THIS FIX IS FOR THE ANDROID VIEW KEYBOARD ISSUE if(current_width 480){ setTimeout(function () { let viewheight $(window).height(); let viewwidth $(window).width(); let viewport document.querySelector(metanameviewport); viewport.setAttribute(content, height + viewheight + px, width + viewwidth + px, initial-scale1.0); }, 300); } var thTooltipTrigger ($(window).width() 1024) ? click : hover; $j(.trading-hours-tooltip).tooltip({ trigger: thTooltipTrigger }); if (thTooltipTrigger click) { var hideThTooltip function(){ var $sf $j(.trading-hours-tooltip); $sf.tooltip(hide); var data $sf.data(bs.tooltip); if (data) { if (data.inState) { data.inState.click false; } if (data._activeTrigger) { data._activeTrigger.click false; } } }; $j(document).on(click, function(e){ if (!$(e.target).closest(.trading-hours-tooltip).length) { hideThTooltip(); } }); $j(window).on(scroll, function(){ hideThTooltip(); }); $j(#storeListsModal .modal-body).on(scroll touchmove, function () { $j(this).find(.trading-hours-tooltip).tooltip(hide); }); $j(document).on(click, .trading-hours-tooltip, function (e) { e.preventDefault(); $j(.trading-hours-tooltip).not(this).tooltip(hide); // Hide all other tooltips $j(this).tooltip(toggle); // Toggle the current one }); } }); /script> script> // OOA-167 Platina - Franchise Option Contact Us $(document).ready(function(){ (function($){ $(data-target#storeListsModal).prop(disabled, false); const buildToolTip (tradingHours, tooltipTitle) > { let opening_hours_tooltip ; for(var day in tradingHours) { var $day day.charAt(0).toUpperCase() + day.slice(1); var perDayTime timeClass ; if(tradingHoursday.open Closed || tradingHoursday.close Closed){ perDayTime Closed; timeClass hours-closed; }else{ perDayTime tradingHoursday.open + - + tradingHoursday.close; } opening_hours_tooltip + `div classhours-day>${$day}/div>div classhours-time${timeClass}>${perDayTime}/div>`; } tooltipTitle tooltipTitle || Store Hours; return `div classhours-title>${tooltipTitle}/div> div classhours-list> ${opening_hours_tooltip} /div>`; }; //google map var map null; var marker null; function initializeGMap(locations) { markers ; var centerLat locations0.lat; var centerLng locations0.lng; map new google.maps.Map(document.getElementById(map_canvas), { zoom: 12, center: new google.maps.LatLng(centerLat, centerLng), mapTypeId: google.maps.MapTypeId.ROADMAP }); var i; for (i 0; i locations.length; i++) { var client_status locationsi.client_status; var coming_soon (client_status in progress) ? span classlocationsInfo-comingSoon>Coming Soon/span> : ; var client_state (locationsi.client_state ! undefined) ? span classstoreState>(+locationsi.client_state+)/span> : ; var suburb h3 classlocationsInfo-header> + locationsi.store_suburb + client_state + coming_soon + /h3>; var url ; if(client_status ! in progress){ url div classlocationsInfo-btn-cont>a href + locationsi.client_url + classlocationsInfo-btn>Order Online/a>/div>; } var address ; if(locationsi.store_address ! null){ var encodedAddress encodeURIComponent(locationsi.store_address); address p classlocationsInfo-address>span classglyphicon glyphicon-map-marker>/span> a hrefhttps://www.google.com/maps/search/?api1&query + encodedAddress + classaddress-link target_blank relnoopener> + locationsi.store_address + /a>/p>; } var phone ; if(client_status ! in progress && locationsi.store_phone ! null){ var sanitizedPhone locationsi.store_phone.replace(/^0-9+/g, ); if (sanitizedPhone) { phone p classlocationsInfo-phone>span classglyphicon glyphicon-earphone>/span> a hreftel: + sanitizedPhone + classphone-link> + locationsi.store_phone + /a>/p>; } else { phone p classlocationsInfo-phone>span classglyphicon glyphicon-earphone>/span> + locationsi.store_phone + /p>; } } var serves_cuisine ; if(client_status ! in progress && locationsi.serves_cuisine ! null){ serves_cuisine p classlocationsInfo-address>span classglyphicon glyphicon-glass>/span> + locationsi.serves_cuisine + /p>; } var opening_hours ; if(client_status ! in progress){ opening_hours (locationsi.open_time 0 || locationsi.close_time 0) ? Closed : locationsi.open_time + - + locationsi.close_time; opening_hours `h4 stylemargin-top:20px;font-size:14px;font-weight:600;>Opening Hours: /h4> div> span classstore-hours trading-hours-tooltip data-toggletooltip data-placementright data-htmltrue data-containerbody data-templatediv classtooltip th-tooltip roletooltip>div classtooltip-inner>/div>/div> title${buildToolTip(locationsi.store_hours, Store Hours)} styledisplay:inline-block>p>b>Pickup:/b> ${opening_hours}/p>/span> /div>`; } var lunch_hours ; if(client_status ! in progress && typeof locationsi.lunch_open_time ! undefined && typeof locationsi.lunch_close_time ! undefined && typeof locationsi.lunch_hours ! undefined){ lunch_hours (locationsi.lunch_open_time 0 || locationsi.lunch_close_time 0) ? Closed : locationsi.lunch_open_time + - + locationsi.lunch_close_time; lunch_hours `div> span classstore-hours trading-hours-tooltip data-toggletooltip data-placementright data-htmltrue data-containerbody data-templatediv classtooltip th-tooltip roletooltip>div classtooltip-inner>/div>/div> title${buildToolTip(locationsi.lunch_hours, Lunch Hours)} styledisplay:inline-block>p>b>Lunch:/b> ${lunch_hours}/p>/span> /div>`; } var delivery_hours ; if(client_status ! in progress){ if(locationsi.pickup_only!1){ delivery_hours (locationsi.delivery_start_time 0 || locationsi.delivery_end_time 0) ? Closed : locationsi.delivery_start_time + - + locationsi.delivery_end_time; delivery_hours `div> span classstore-hours trading-hours-tooltip data-toggletooltip data-placementright data-htmltrue data-containerbody data-templatediv classtooltip th-tooltip roletooltip>div classtooltip-inner>/div>/div> title${buildToolTip(locationsi.delivery_hours, Delivery Hours)} styledisplay:inline-block>p>b>Delivery:/b> ${delivery_hours}/p>/span> /div>`; }else{ delivery_hours p stylefont-weight: bold; margin-top: 20px; margin-bottom: 30px;>Pickup Only/p>; } } var delivery_suburbs ; if(locationsi.pickup_only!1 && locationsi.delivery_suburbs ! null){ // Clean List of Suburb var listOfSuburbs locationsi.delivery_suburbs; var suburbsArr listOfSuburbs.split(,); suburbHTML ; $.each(suburbsArr, function(key, value) { if(key!0) { suburbHTML + , span classlistOfSuburb> + value.toLowerCase() + /span>; }else{ suburbHTML + span classlistOfSuburb> + value.toLowerCase() + /span>; } }); delivery_suburbs h4 stylemargin-top:20px;font-size:14px;font-weight:600;>Delivery Areas: /h4>p classlocationsInfo-delivery> + suburbHTML + /p> ; } marker new google.maps.Marker({ position: new google.maps.LatLng(locationsi.lat, locationsi.lng), map: map, icon: https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/map-marker.png, animation : google.maps.Animation.DROP }); var contentString div classlocationsInfo> + suburb + address + phone + serves_cuisine + opening_hours + lunch_hours + delivery_hours + delivery_suburbs + url + /div>; var infowindow new google.maps.InfoWindow(); google.maps.event.addListener(marker, click, (function(marker, contentString, i) { return function() { infowindow.setContent(contentString); infowindow.open(map, marker); } })(marker, contentString, i)); // add custom class to google map infowindow google.maps.event.addListener(infowindow,domready,function(){ $(.locationsInfo).closest(.gm-style-iw).parent().addClass(custom-iw); if ($(window).width() 1024) { $(.store-hours.trading-hours-tooltip).tooltip({ placement: top }); $(.gm-style-iw .gm-style-iw-d).on(scroll touchmove, function () { $(this).find(.store-hours.trading-hours-tooltip).tooltip(hide); }); } else { $(.store-hours.trading-hours-tooltip).tooltip(); } }); markers.push(marker); } } const state_name { NSW: New South Wales, VIC: Victoria, QLD: Queensland, SA: South Australia, WA: Western Austalia, TAS: Tasmania, ACT: Australian Capital Territory, NT: Northern Territory }; // trigger to open locations modal when linked is clicked $(#locationsModal).on(show.bs.modal, function(event) { $(#locationsModal .franchise-locations).hide(); $(#locationsModal #map_canvas).hide(); $(#locationsModal #loadin_bar).show().html(span styletext-align:center;>img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/loader.svg stylewidth:5%;margin-top:15%;>/span>); //Display Locations $.ajax({ method: POST, data: { account_id: , sort_state: 0 }, dataType: json, url: core/ajax/get_multi_store.php, }).done(function (data) { $(#locationsModal .franchise-locations).show(); $(#locationsModal #map_canvas).show(); $(#locationsModal #loadin_bar).hide(); var storeList_html ; var storeList_html2 ; var i 0; let states ; let tmp_state ; $.each(data, function(k, v) { var store_suburb (v.store_suburb || Not Set); var client_status (v.client_status in progress) ? - span classsub-list-comingSoon stylecolor: #a51419>Coming Soon/span> : ; var client_state v.client_state; states.push(client_state); storeList_html + span classsub-list-group-item list-group-item list-group-item-action+(v.client_status ! in progress ? list-group-item-active : )+ href# id + client_state + menu-id + i + > + store_suburb + + span classstoreState> (+ client_state +) /span> + client_status + /span>; storeList_html2 + option classoption-list value+i+> + store_suburb + (+ client_state +) + client_status + /option>; i++; tmp_state client_state; }); $(#locationsModal .modal-body .store-details-container .list-group).append(storeList_html); if(new Set(states).size 1){ // Check if every client states are the same storeList_html2; for(i 0; i data.length; i++){ delete dataiclient_state; var store_suburb (dataistore_suburb || Not Set); var client_status (dataiclient_status in progress) ? - Coming Soon : ; storeList_html2 + option classoption-list value+i+>+store_suburb+client_status+/option>; } $(.storeState).hide(); } $(#locationsModal .modal-body .store-details-container #locationsSuburbList2).append(option disabled selected>Select a Suburb/option> + storeList_html2); initializeGMap(data); $(#location-map).css(width, 100%); $(#map_canvas).css(width, 100%); }); }); // open info box when li is clicked $(#locationsModal).on( click, .sub-list-group-item.list-group-item-active, function() { if($(window).width() 768){ let location_container $(#locationsModal .franchise-locations:has(> .store-details-container.group)); if(location_container.length){ location_container.animate({ scrollTop: location_container0.scrollHeight }, 800); } } var locId $(this).attr(menu-id); var clickedMarker markerslocId; google.maps.event.trigger(clickedMarker, click); map.setZoom(15); map.setCenter(clickedMarker.getPosition()); }); // open info box when options is clicked $(#locationsModal).on( change, #locationsSuburbList2, function() { var locId $(#locationsSuburbList2 option:selected).val(); google.maps.event.trigger(markerslocId, click); map.setZoom(15); }); // clear ul when modal is clicked $(#locationsModal).on(hidden.bs.modal, function(event) { $(#locationsModal .modal-body .store-details-container .list-group).empty(); $(#locationsModal .modal-body .store-details-container #locationsSuburbList2).empty(); }); // OOA-1394 Order Now Store list Platina Feature $(#storeListsModal).on(show.bs.modal, function(event) { $(#storeListsModal #accordion).empty(); $(#storeListsModal #loadin_bar).show().html(span styletext-align:center;>img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/loader.svg stylewidth: 60px>/span>); // Get Store Data $.ajax({ method: POST, data: { account_id: , sort_state: 0 }, dataType: json, url: core/ajax/get_multi_store.php, }).done(function (data) { $(#storeListsModal #loadin_bar).hide(); var storeListModalHTML ; var accordionHeaderHTML ; var accordionBodyHTML ; let states ; let tmp_state ; $.each(data, function(k, v) { var store_suburb (v.store_suburb || Not Set); var client_status (v.client_status || Not Set); var client_state v.client_state; states.push(client_state); var acc_id storeListModal_+v.client_id; //Accordion Header - Store Suburb Suburb if(client_status ! in progress){ accordionHeaderHTML div classpanel-heading panel-heading-active>h4 classpanel-title> + a classpanel-name href#+acc_id+> + store_suburb + span classstoreState> (+ client_state +) /span> + /a> + /h4>/div>; }else{ accordionHeaderHTML div classpanel-heading panel-heading-inprogress>h4 classpanel-title>+store_suburb+ span classstoreState> (+ client_state +) /span>span classstore-list-status>Coming Soon/span>/h4>/div>; } //Accordion Body - Store Detail accordionBodyHTML; if(client_status ! in progress){ var clientAddress ; if(v.store_address ! null){ var encodedClientAddress encodeURIComponent(v.store_address); clientAddress p classstoreListModal-address>span classglyphicon glyphicon-map-marker>/span> a hrefhttps://www.google.com/maps/search/?api1&query + encodedClientAddress + classaddress-link target_blank relnoopener> + v.store_address + /a>/p>; } var clientPhone ; if(v.store_phone ! null){ var encodedClientPhone v.store_phone.replace(/^0-9+/g, ); if (encodedClientPhone) { clientPhone p classstoreListModal-phone>span classglyphicon glyphicon-earphone>/span> a hreftel: + encodedClientPhone + classphone-link> + v.store_phone + /a>/p>; } else { clientPhone p classstoreListModal-phone>span classglyphicon glyphicon-earphone>/span> + v.store_phone + /p>; } } var clientOpeningHours ; clientOpeningHours (v.open_time 0 || v.close_time 0) ? Closed : v.open_time + - + v.close_time; clientOpeningHours `p>Opening Hours: /p> p classstoreListModal-pickup> span classtrading-hours-tooltip data-toggletooltip data-placementtop data-htmltrue data-containerbody data-templatediv classtooltip th-tooltip roletooltip>div classtooltip-inner>/div>/div> title${buildToolTip(v.store_hours, Store Hours)}> b>Pickup:/b> ${clientOpeningHours} /span> /p>`; var clientLunchHours ; if (typeof v.lunch_open_time ! undefined && typeof v.lunch_close_time ! undefined && typeof v.lunch_hours ! undefined) { clientLunchHours (v.lunch_open_time 0 || v.lunch_close_time 0) ? Closed : v.lunch_open_time + - + v.lunch_close_time; clientLunchHours `p classstoreListModal-lunch> span classtrading-hours-tooltip data-toggletooltip data-placementtop data-htmltrue data-containerbody data-templatediv classtooltip th-tooltip roletooltip>div classtooltip-inner>/div>/div> title${buildToolTip(v.lunch_hours, Lunch Hours)}> b>Lunch:/b> ${clientLunchHours} /span> /p>`; } var clientDeliveryHours ; if(v.pickup_only!1){ clientDeliveryHours (v.delivery_start_time 0 || v.delivery_end_time 0) ? Closed : v.delivery_start_time + - + v.delivery_end_time; clientDeliveryHours `p classstoreListModal-delivery> span classtrading-hours-tooltip data-toggletooltip data-placementtop data-htmltrue data-containerbody data-templatediv classtooltip th-tooltip roletooltip>div classtooltip-inner>/div>/div> title${buildToolTip(v.delivery_hours, Delivery Hours)}> b>Delivery:/b> ${clientDeliveryHours} /span> /p>`; }else{ clientDeliveryHours p classstoreListModal-pickup>Pickup Only/p>; } var clientURL ; if(v.client_url ! null){ clientURL div classstore-list-btn>button typebutton classbtn btn-default storeLists-orderonline-btn data-dismissmodal client_id+v.client_id+ client_code+v.client_code+ client_url+v.client_url+ client_suburb+v.store_suburb+ store_name+v.store_name+ >Order Online/button>/div>; } accordionBodyHTML div id+acc_id+ classpanel-collapse styledisplay:none;>+ div classpanel-body>div classrow> + div classcol-md-4> + clientAddress + clientPhone + /div> + div classcol-md-4> + clientOpeningHours + clientLunchHours + clientDeliveryHours + /div> + div classcol-md-4> + clientURL + /div> + /div>/div>/div>; } //Build Accordion HTML storeListModalHTML + div classpanel panel-default>+accordionHeaderHTML+accordionBodyHTML+/div>; tmp_state client_state; }); $(#storeListsModal #accordion).append(storeListModalHTML); $(#storeListsModal .modal-body).find(.trading-hours-tooltip).tooltip(); if(new Set(states).size 1){ // Check if every client states are the same $(.storeState).hide(); } }); }); $(#storeListsModal).on(click, #accordion .panel-heading-active > .panel-title > .panel-name, function(e){ const header_ref $(this).attr(href); $(#storeListsModal #accordion .panel-heading-active > .panel-title > .panel-name).not($(this)).removeClass(open); $(#storeListsModal #accordion div.panel-collapse).not(header_ref).slideUp(fast); $(this).toggleClass(open) $(#storeListsModal #accordion div+header_ref).slideToggle(fast); e.preventDefault(); }); })($j); if($(window).width() 320) { $(div.item-title).each(function(){ var truncated $(this).text().substr(0, 29); $(this).text(truncated+(truncated.length29?:...)); }); } }); /script> script> $(document).ready(function(){ // WEB-1114 Add new order type selection before store selection $(.order-type-icon-group).html(img classorder-type-icon srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/pickup.png />); $(.order-type-text).html(Pick up Order); if ($(#estimated-time .estimated-time-bg).html() ) { $(#estimated-time).hide(); } //check_estimated_time(); $(.order-type-bt).click(function(){ var order_type this.value; if(($(.order-type-bt.active).val() order_type) || ($(#view-basket .promo-with-different-plu).length && typeof $(this).data(bypass) undefined)){ if($(.order-type-bt.active).val() order_type){ $(#order-type-select).hide(); $(#store-select).fadeIn(fast); $(.order-type-store-searchbar .select2-container--platina).hide(); $(.order-type-store-searchbar #chainStores, .order-type-store-searchbar #searchForm).hide(); if(order_type pickup){ $(.order-type-store-searchbar #chainStores).show(); $(.order-type-store-searchbar #select2-chainStores-container).parents(.select2-container--platina).first().show(); } else if(order_type delivery){ $(.order-type-store-searchbar #searchForm).show(); $(.order-type-store-searchbar #select2-searchForm-container).parents(.select2-container--platina).first().show(); } } return true; } $(.order-type-bt).removeClass(active); $(#order-type-bt-pickup, #order-type-bt-delivery).prop(disabled, false); $(#order-type-select).hide(); $(#store-select).fadeIn(fast); $(.mi-loader).css(display, block); if ($(window).width() > 1024) { $(#estimated-time).show(); } setTimeout(() > { change_order_type(order_type); }, 100); }); $(#float-box .order-type-bt).click(function(){ var order_type this.value; if(($(.order-type-bt.active).val() order_type) || ($(#view-basket .promo-with-different-plu).length && typeof $(this).data(bypass) undefined)){ return true; } $(#store-select).hide(); $(#store-details).fadeIn(fast); }); $(.change-order-type-btn).click(function(){ $(#store-select).hide(); $(#store-details).hide(); $(#order-type-select).fadeIn(fast); }); // Update #store-data height when the inner #store container height changes - mobile only if ($(window).width() 768) { const store_container document.querySelector(#store); const resizeObserver new ResizeObserver(() > { $(#store-data).height(store_container.offsetHeight + 100); }); if (store_container ! null) { resizeObserver.observe(store_container); } } if(window.history.replaceState){ window.history.replaceState(null, null, window.location.href); } resizeStoreComponents(); }); function change_order_type(order_type) { $(.order-type-btvalue+order_type+).addClass(active); $(#current_order_type_holder).val(order_type); $(#order-type-bt-+order_type).addClass(active); $(.order-type-store-searchbar .select2-container--platina).hide(); if (order_type pickup) { $(.order-type-icon-group).html(img classorder-type-icon srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/pickup.png />); $(.order-type-text).html(Pick up Order); $(.order-type-store-searchbar #chainStores).show(); $(.order-type-store-searchbar #select2-chainStores-container).parents(.select2-container--platina).first().show(); $(#getLocation).show(); $(#searchNearest).hide(); $(.order-type-store-searchbar #searchForm).hide(); } else if (order_type delivery) { $(.order-type-icon-group).html(img classorder-type-icon srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/delivery.png />); $(.order-type-text).html(Delivery Order); $(.order-type-store-searchbar #chainStores).hide(); $(.order-type-store-searchbar #select2-searchForm-container).parents(.select2-container--platina).first().show(); $(#getLocation).hide(); $(#searchNearest).show(); $(.order-type-store-searchbar #searchForm).show(); } $.ajax({ method: POST, url: core/ajax/set_order_type.php, dataType: JSON, data: {order_type: order_type} }).success(function (data) { if ($(#menu-cont).length ! 0) { //loads menu from api var tempReorder $(#menuitems-reorder).prop(outerHTML); $(#menu-cont).load(https://chicknbao.com.au/api/getmenu.php, {client_id:13927, order_type:order_type, menu_type:both}, function (data, status, xhr) { if (status ! error) { menu_nav(); get_cart_total(); } $(#menu-items).prepend(tempReorder); lastreorderbutton(); }); } if ($(#estimated-time .estimated-time-bg).html() ) { $(#estimated-time).hide(); } }); } /script>/head>!----------- HEADER ----------->body classloading data-spyscroll data-target.navbar data-offset300 data-offset-top300>!-- email confirmation code modal - start -->div classmodal fade idemail_confirmation_container roledialog data-backdropstatic data-keyboardfalse stylebackground-color:unset;> div classmodal-dialog modal-dialog-centered styledisplay:flex; align-items:center; min-height:calc(100% - (1.75rem * 2));> div classmodal-content styledisplay:flex; flex-direction:column; width:100%;> div classmodal-header> h4 classmodal-title>EMAIL VERIFICATION/h4> /div> div classmodal-body> div classreg-alert alert rolealert styledisplay:none;>/div> p>Please type the verification code sent to span idconfirm_email_address>/span>/p> div classform-group> input typetext idemail_confirm_code classform-control styletext-align:center; letter-spacing:10px maxlength6 placeholder****** autocompleteoff/> /div> /div> div classmodal-footer> button idemail_confirm_cancel classbtn btn-default data-dismissmodal>Close/button> button idemail_confirm_continue classbtn btn-primary disabled>Continue/button> /div> /div> /div>/div>!-- email confirmation code modal - end -->div idlogin-wrap> div idlogin-section> script> function triggerBeginCheckoutTracking() { if (typeof document undefined || typeof document.dispatchEvent ! function) { return; } try { document.dispatchEvent(new CustomEvent(ecom:begin_checkout)); } catch (err) { if (typeof document.createEvent function) { var event document.createEvent(CustomEvent); event.initCustomEvent(ecom:begin_checkout, false, false, null); document.dispatchEvent(event); } } }/script> script> function isEmail(email) { var EmailRegex /^(a-zA-Z0-9_.+-)+\@((a-zA-Z0-9-)+\.)+(a-zA-Z0-9{2,4})+$/; return EmailRegex.test(email); } function update_address(customer){ $(#login-section .login-card, #login-section .otp-card).hideElem(); $(#login-section .customer-details-card).showElem(); $(#login-section .customer-details-card #create-account .account-second inputnameunitNumber).val(customer.deliveryUnitNumber); $(#login-section .customer-details-card #create-account .account-second inputnamehouseNumber).val(customer.deliveryStreetNumber); if(customer.deliveryStreetSuburb ! , && customer.deliveryStreetSuburb ! ,){ $(#login-section .customer-details-card #create-account .account-second selectnamedeliveryStreet).append(option value+customer.deliveryStreetSuburb+>+customer.deliveryStreetSuburb+/option>); } $(#login-section .customer-details-card #create-account .account-second inputnamedeliveryInstructions).val(customer.delivery_instructions); $(#login-section .customer-details-card #login-label).parent().remove(); $(#login-section .customer-details-card .slider li button.active).addClass(previous).removeClass(active).parent().next(li).find(button).addClass(active); $(#login-section .customer-details-card .slider).hideElem(); $(#login-section .customer-details-card .password-wrapper).addClass(cover).hideElem(); $(#login-section .customer-details-card .create-account .account-header h3).text(Fill your delivery details); $(#login-section .customer-details-card .create-account .account-first).hideElem().next().showElem(); $(#login-section .customer-details-card .create-account .btn-skip).removeClass(first second third).addClass(second).remove(); $(#login-section .customer-details-card .btn-2-block).removeClass(first second third).addClass(update-address).prop(disabled, true).after(button typebutton classbtn btn-primary>i classfa-solid fa-arrow-left-long>/i> Back to Menu/button>); $(#login-section .customer-details-card #create-account div.alert).addClass(alert-danger).text(customer.address_err_msg).showElem().hideMsg(5); var form $j(#login-section .customer-details-card #create-account .account-second .form-control:visible); var initial_form_data form.serialize(); $j(#login-section .customer-details-card #create-account .account-second .form-control:visible).off(change); $j(#login-section .customer-details-card #create-account .account-second .form-control:visible).on(change, function(){ var current_form_data form.serialize(); $(#login-section .customer-details-card .btn-2-block).prop(disabled, true); if(current_form_data ! initial_form_data){ $(#login-section .customer-details-card .btn-2-block).prop(disabled, false); } }); } $(document).ready(function(){ var otp_input_wrap $(#login-section .otp-card #otp-box), otp_input $(#login-section .otp-card #otp-box .login), otp_final_input , skip_reg false, customer_exist false, customer_phone , otp_attempt 1, password_reset_email ; function otp_count(){ otp_final_input ; if(otp_input.length){ otp_input.each(function(){ if($.trim($(this).val())!){ otp_final_input + $(this).val(); } }); } } function start_otp_input(){ if(otp_input.length){ otp_input.each(function(){ $(this).val(); }); otp_attempt 1; update_otp_input(otp_input_wrap.children(:first), false); } } function update_otp_input(element, disabledStatus){ if(!disabledStatus){ element.focus(); } else{ element.blur(); } } function check_customer(_this){ var data {}; if(_this.attr(name) phoneNumber){ dataphoneNumber registerPhoneInt.getNumber(); // always pass E.164 format_this.val(); dataregisterwith (typeof _this.data(registerwith) ! undefined ? _this.data(registerwith) : ); } else{ dataemail _this.val(); } if($(#login-section .customer-details-card .btn-2-block).data(login-type) ! undefined && $(#login-section .customer-details-card .btn-2-block).data(login-type) guest){ dataguest 1; datawl 1; } return $.ajax({ type: POST, url: https://chicknbao.com.au/core/ajax/check_customer.php, data: data, success: function(data){ data (typeof data string) ? JSON.parse(data) : data; if(data.isError true){ _this.closest(.form-group).find(label.error).text(data.errorMessage).showElem(); error_occured true; } else{ _this.closest(.form-group).find(label.error).hideElem().text(); } } }); } function check_phone(phone, isRegister false){ let fullNumber, countryData; if (!isRegister) { fullNumber loginPhoneOtpInt.getNumber(); countryData loginPhoneOtpInt.getSelectedCountryData(); } else { fullNumber registerPhoneInt.getNumber(); countryData registerPhoneInt.getSelectedCountryData(); } const { parsePhoneNumberFromString } libphonenumber; const parsed parsePhoneNumberFromString( fullNumber, countryData.iso2.toUpperCase() ); if (!parsed || !parsed.isValid()) { return true; // not valid at all } // Only allow MOBILE return parsed.getType() ! MOBILE; } // Handles post signup/login completion actions: optional signup email, address update, and redirect logic function finalizeSignupFlow(loginBtn, loginResp , signupEmail, cartTotal) { if(loginBtn.data(login-type) undefined || loginBtn.data(login-type) ! guest){ sendSignupEmail(signupEmail); } if(window.login_referer checkout && cartTotal > 0){ if(loginResp && loginResp.address_err_msg ! undefined){ loginBtn.html(Continue).prop(disabled, false); $(#login-section .customer-details-card .create-account .account-third).hideElem(); update_address(loginResp); } else{ window.location.href ?pagecheckout; triggerBeginCheckoutTracking(); } } else{ var url new URL(window.location.href); var location_href (url.searchParams.get(logout) ! null && url.searchParams.get(logout) true) ? ?pagebrowse : window.location.href; window.location.href location_href; window.location.reload(); } } function sendSignupEmail(signupEmail) { $.ajax({ type: POST, url: core/signup_email_msg.php, async: false, data: signupEmail, success: function(msg){} }); } function validate_form(element){ var error_occured false, new_pass , confirm_pass , compare_pass false; $(.form-control.required:visible).closest(.form-group).find(label.error).hideElem().text(); element.find(.form-control.required:visible).each(function(){ var invalid false, _this $(this); _this.data(state, submitted); if(_this.hasClass(required)){ if($.trim(_this.val())){ _this.closest(.form-group).find(label.error).text(This field is required).showElem(); error_occured invalid true; } } if(!invalid && _this.attr(name) email){ var regex /^(a-zA-Z0-9_\.\-\+)+\@((a-zA-Z0-9\-)+\.)+(a-zA-Z0-9{2,4})+$/; if(!regex.test(_this.val())){ _this.closest(.form-group).find(label.error).text(Please enter a valid email address).showElem(); error_occured invalid true; } } if(!invalid && _this.attr(name) phoneNumber){ if(check_phone(_this.val(), true)){ _this.closest(.form-group).find(label.error).text(Please enter a valid phone number).showElem(); error_occured invalid true; } } if(!invalid && _this.attr(name) password){ if(_this.val().length 6){ _this.closest(.form-group).find(label.error).text(Please enter at least 6 characters).showElem(); error_occured invalid true; } else{ new_pass _this.val(); compare_pass true } } if(!invalid && _this.attr(name) retypePassword){ confirm_pass _this.val(); compare_pass true; } }); if(compare_pass && new_pass ! confirm_pass){ $(inputnameretypePassword).closest(.form-group).find(label.error).text(Passwords do not match).showElem(); error_occured true; } return (!error_occured) ? true : false; } function hide_login_errors(){ // Destroy intlTelInput so flags disappear if (phoneLoginInt) { phoneLoginInt.destroy(); phoneLoginInt null; } $(#login-section .login-card #email-form #login-email, #login-section .login-card #email-form #login-pass).show().css(border, ).siblings(.field-message).removeClass(active).text(); $(#login-section .login-card #email-form #login-mobile).css(border, ).hide(); } function hide_customer_form(){ $(#login-section .customer-details-card .form-control.required).removeData(state); $(#login-section .customer-details-card .form-control).closest(.form-group).find(label.error).hideElem().text(); $(#login-section .customer-details-card).hideElem(); $(#login-section .customer-details-card .slider).showElem(); $(#login-section .customer-details-card .slider li button).removeClass(active previous); $(#login-section .customer-details-card .slider li).eq(1).showElem(); $(#login-section .customer-details-card .slider li:last).showElem(); $(#login-section .customer-details-card .slider li:first button).addClass(active); $(#login-section .customer-details-card .create-account .account-header h3).text(Create Account); $(#login-section .customer-details-card .create-account .account-first).css(display, ); $(#login-section .customer-details-card .password-wrapper).removeClass(cover); $(#login-section .customer-details-card .customer-marketing-material-wrapper).showElem(); $(#login-section .customer-details-card namecustomer_marketing_material).prop(checked, true); createAccountRenderSize(); $(#login-section .customer-details-card .password-wrapper).addClass(cover).hideElem(); $(#login-section .customer-details-card .create-account .account-second, #login-section .customer-details-card .create-account .account-third, #login-section .customer-details-card .create-account .btn-skip).hideElem(); $(#login-section .customer-details-card #register-phone).removeData(registerwith).prop(readonly, true); $(#login-section .customer-details-card nameemail).removeAttr(readonly); $(#login-section .customer-details-card .btn-2-block).prop(disabled, false).removeClass(second third update-address).addClass(first).text(Continue).removeData(loginType); $(#login-section .customer-details-card .create-account .btn-skip).removeClass(second third).addClass(first); } function createAccountRenderSize(){ if($(#login-section .customer-details-card .btn-2-block).data(login-type) ! undefined && $(#login-section .customer-details-card .btn-2-block).data(login-type) guest){ $(#login-section .customer-details-card .create-account .account-first).css({ display: , overflow-x: , height: , margin-bottom: }); } else{ if($(window).width() 420 && $(window).height() 740){ $(#login-section .customer-details-card .create-account .account-first:has(> .password-wrapper:not(.cover))).css({ display: inline-block, overflow-x: auto, height: ($(window).height() - 220) + px, margin-bottom: 10px }); } else{ $(#login-section .customer-details-card .create-account .account-first:has(> .password-wrapper:not(.cover))).css({ display: , overflow-x: , height: , margin-bottom: }); } } } $.fn.hideElem function(){ $(this).css(display, none); return this; }; $.fn.showElem function(){ $(this).fadeIn(100); return this; }; $.fn.hideMsg function(timeOut){ if(timeOut ! undefined){ var _this $(this); setTimeout(function(){ if(_this.is(:visible)){ _this.fadeOut(500); } }, (timeOut * 1000)); } return this; } $(#login-section .close).click(function(){ if(!$(this).hasClass(disabled)){ clearInterval(countdown_timer); $(#login-section .login-card, #login-section .login-card #phone-number-form).css(display, ); $(#login-section .login-card .forgot-password, #login-section .password-reset-card, #login-section .otp-card, #login-section .customer-details-card).hideElem(); $(#login-section .login-card #email-form).hideElem(); $(#login-section .login-card .login-with, #login-section .login-card .disable-social, #login-section .otp-card #login-label, #login-section .login-card .forgot-password, #login-section .password-reset-card #login-label).removeClass(disabled); $(#login-section .otp-card .login-modal-header).css(display, ); $(#login-section .login-card .btn-2-block, #login-section .password-reset-card .btn-2-block).prop(disabled, false); $(#login-section .otp-card .resend-code).html(Resend code).removeClass(disabled); $(#login-section .otp-card .btn-2-block).removeData(registerwith).prop(disabled, true); $(#login-section .login-card .login-with).text(Login with Password).removeClass(mobile).addClass(password); $(#login-section .login-card #login-label h3).css(font-size, ).text(Whats your mobile number?); $(#login-section .login-card .btn-2-block).text(Login or Sign Up).removeClass(password).addClass(mobile); $(#login-section .customer-details-card #login-label).parent().hideElem(); hide_customer_form(); $(#login-section .customer-details-card #register-phone).prop(readonly, true); $(#login-section .alert).removeClass(alert-success alert-danger).hideElem().text(); $(#login-section inputtypetext, #login-section inputtypetel, #login-section inputtypepassword, #login-section .customer-details-card .password-wrapper inputtypepassword).val(); $(#login-section .login-card #login-label h3).css(font-size, 1.4em).text(Whats your email or mobile number?); $(#login-section .login-card #email-form, #login-section .login-card .forgot-password).showElem(); hide_login_errors(); $(#login-section .login-card .btn-2-block).text(Login).removeClass(mobile).addClass(password); $(#login-section .customer-details-card #login-label).parent().showElem(); skip_reg false; customer_exist false; customer_phone ; } }); $(#login-section .login-card .login-with).click(function(){ if(!$(this).hasClass(disabled)){ $(#login-section .login-card .alert).removeClass(alert-success alert-danger).hideElem().text(); if($(this).hasClass(password)){ $(this).siblings().showElem(); $(this).text(Login with Mobile Number).removeClass(password).addClass(mobile); $(#login-section .login-card #login-label h3).css(font-size, 1.4em).text(Whats your email or mobile number?); $(#login-section .login-card #phone-number-form).hideElem(); $(#login-section .login-card #email-form).showElem(); $(#login-section .login-card .btn-2-block).text(Login).removeClass(mobile).addClass(password); } else{ $(this).siblings().hideElem(); $(this).text(Login with Password).removeClass(mobile).addClass(password); $(#login-section .login-card #login-label h3).css(font-size, ).text(Whats your mobile number?); $(#login-section .login-card #phone-number-form).showElem(); $(#login-section .login-card #email-form).hideElem(); $(#login-section .login-card .btn-2-block).text(Login or Sign Up).removeClass(password).addClass(mobile); } } }); $(#login-section .login-card .sign-up).click(function(){ $(#login-section .login-card).hideElem(); $(#login-section .customer-details-card).showElem(); $(#login-section .customer-details-card #login-label).parent().showElem(); $(#login-section .customer-details-card #register-phone).prop(readonly, false); $(#login-section .customer-details-card .password-wrapper).removeClass(cover).showElem(); if($(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .slider li).eq(1).hideElem(); } createAccountRenderSize(); }); $(#login-section .login-card .btn-2-block).click(function(){ var _this $(this); if($(this).hasClass(password)){ var error false; var email $(#login-section .login-card #email-form #login-email); var mobile $(#login-section .login-card #email-form #login-mobile); var password $(#login-section .login-card #email-form #login-pass); var login_detail (mobile.is(:visible)) ? mobile : email; $(#login-section .login-card .alert).removeClass(alert-success alert-danger).hideElem().text(); email.css(border, ).siblings(.field-message).removeClass(active).text(); mobile.css(border, ); password.css(border, ).next().removeClass(active).text(); if(!$.trim(login_detail.val()).length){ email.css(border, 1px solid #ea868f).siblings(.field-message).addClass(active).text(login_detail.attr(placeholder)); mobile.css(border, 1px solid #ea868f); error true; } if(!$.trim(password.val()).length){ password.css(border, 1px solid #ea868f).next().addClass(active).text(password.attr(placeholder)); error true; } var username; if (mobile.is(:visible)) { const fullNumber phoneLoginInt.getNumber(); const countryData phoneLoginInt.getSelectedCountryData(); const { parsePhoneNumberFromString } libphonenumber; const parsed parsePhoneNumberFromString( fullNumber, countryData.iso2.toUpperCase() ); if (!parsed || !parsed.isValid() || parsed.getType() ! MOBILE) { email.css(border, 1px solid #ea868f).siblings(.field-message).addClass(active).text(Invalid mobile phone number); mobile.css(border, 1px solid #ea868f); error true; // not valid at all } username fullNumber; // E.164 format } else { username login_detail.val(); } if(error){ return false; } _this.text(Logging in...).prop(disabled, true); login_detail.prop(disabled, true); password.prop(disabled, true); $(#login-section .login-card .forgot-password, #login-section .login-card .login-with, #login-section .login-card .sign-up, #login-section .login-card .disable-social).addClass(disabled); $.ajax({ type: POST, url: https://chicknbao.com.au/core/ajax/login.php, data: { login_detail: username, pw: password.val(), remember_me: true, login_referer: window.login_referer }, success: function(msg){ var name; var obj jQuery.parseJSON(msg); var anchor ($(#storeSelected).length > 0) ? #store-data : ; if(obj.no_address){ update_address(obj); } else{ if(obj.response_code 00){ if(window.login_referer checkout){ window.location.href ?pagecheckout; triggerBeginCheckoutTracking(); } else{ window.location.href ?pagebrowse + anchor; window.location.reload(); } } else{ _this.text(Login).prop(disabled, false); login_detail.prop(disabled, false); password.prop(disabled, false); $(#login-section .login-card .forgot-password, #login-section .login-card .login-with, #login-section .login-card .disable-social).removeClass(disabled); $(#login-section .login-card .alert).addClass(alert-danger).text(The email or password entered is incorrect. Please change your password if you are having trouble logging in).showElem().hideMsg(5); } } }, error: function(){ _this.text(Login).prop(disabled, false); login_detail.prop(disabled, false); password.prop(disabled, false); $(#login-section .login-card .forgot-password, #login-section .login-card .login-with, #login-section .login-card .disable-social).removeClass(disabled); $(#login-section .login-card .alert).addClass(alert-danger).text(Unable to Process your request. Please try again later).showElem().hideMsg(5); } }); } else{ $(#login-section .login-card .alert).removeClass(alert-success alert-danger).hideElem().text(); var phone $(#login-section .login-card #phone-number-form #login-phone); phone.css(border, ).next().removeClass(active).text(); if(!$.trim(phone.val()).length){ phone.css(border, 1px solid #ea868f).closest(.form-group).find(.field-message).addClass(active).text(Please enter your mobile number); return false; } var invalid_phone check_phone(phone.val()), phone_val loginPhoneOtpInt.getNumber(); // always pass E.164 format_this.val(); if(invalid_phone){ phone.css(border, 1px solid #ea868f).closest(.form-group).find(.field-message).addClass(active).text(Please enter a valid mobile number); return false; } _this.text(Logging in...).prop(disabled, true); phone.prop(disabled, true); $(#login-section .login-card .login-with, #login-section .login-card .disable-social).addClass(disabled); $.ajax({ type: POST, url: https://chicknbao.com.au/core/ajax/login.php, data: { phone_number: phone_val, remember_me: true, login_referer: window.login_referer }, success: function(msg){ var name; var obj jQuery.parseJSON(msg); var anchor ($(#storeSelected).length > 0) ? #store-data : ; if(obj.response_code 00){ if(window.login_referer navbar){ window.location.href ?pagebrowse + anchor; window.location.reload(); } else if(window.login_referer checkout){ window.location.href ?pagecheckout; triggerBeginCheckoutTracking(); } else if(window.login_referer beercheckout){ if(obj.deliveryStreetSuburb ){ window.location.href ?pagecustomer_details&err_code1005&redirect_to_beer1; }else{ window.location ; } } else{ window.location.href ?pagebrowse + anchor; window.location.reload(); } } else{ _this.text(Login or Sign Up).prop(disabled, false); phone.prop(disabled, false); $(#login-section .login-card .login-with, #login-section .login-card .disable-social).removeClass(disabled); if(typeof obj.otp_message undefined){ $(#login-section .login-card).hideElem(); $(#login-section .otp-card).showElem(); $(#login-section .otp-card .resend-code).addClass(disabled); resend_countdown(login-section .otp-card .resend-code); $(#login-section .otp-card .otp-phone).html(phone_val); $(#login-section .customer-details-card #register-phone).val(phone.val()); customer_exist (obj.response_code 02) ? true : false; customer_phone phone_val; start_otp_input(); } else{ $(#login-section .login-card .alert).addClass(alert-danger).text(obj.otp_message).showElem().hideMsg(5); } } }, error: function(){ _this.text(Login or Sign Up).prop(disabled, false); phone.prop(disabled, false); $(#login-section .login-card .login-with, #login-section .login-card .disable-social).removeClass(disabled); $(#login-section .login-card .alert).addClass(alert-danger).text(Unable to Process your request. Please try again later).showElem().hideMsg(5); customer_exist false; customer_phone phone_val; } }); } }); $(#login-section .login-card .btn-guest-checkout).click(function(){ $(#login-section .login-card).hideElem(); $(#login-section .customer-details-card).showElem(); $(#login-section .customer-details-card #login-label).parent().showElem(); $(#login-section .customer-details-card .create-account .account-header h3).text(Guest Account); $(#login-section .customer-details-card #register-phone).prop(readonly, false); $(#login-section .customer-details-card .password-wrapper).addClass(cover).hideElem(); $(#login-section .customer-details-card .customer-marketing-material-wrapper).hideElem(); $(#login-section .customer-details-card .btn-2-block).text(Continue as Guest).data(login-type, guest); if($(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .slider).hideElem(); } else{ $(#login-section .customer-details-card .slider li:last).hideElem(); } createAccountRenderSize(); }); if(otp_input.length){ otp_input.each(function(){ var element $(this); element.keyup(function(e){ $(this).val($(this).val().replace(/^0-9/g, )); if($(this).val().length 1){ update_otp_input(element, true); update_otp_input(element.next(), false); } else if($(this).val().length 0 && e.keyCode 8){ element.prev().val(); update_otp_input(element.prev(), false); } else if($(this).val().length > 1){ $(this).val()($(this).val().split()0); } otp_count(); }); }); $(window).keyup(function(e){ if(otp_final_input.length > 5){ $(#login-section .otp-card .btn-2-block).prop(disabled, false); if(e.keyCode 8){ update_otp_input(otp_input_wrap.children(:last), false); otp_input_wrap.children(:last).val(); } } else{ $(#login-section .otp-card .btn-2-block).prop(disabled, true); } }); } $(#login-section .otp-card .btn-2-block).click(function(){ var _this $(this); _this.prop(disabled, true); $(#login-section .otp-card .otp-box .alert).removeClass(alert-success alert-danger).hideElem().text(); if(otp_attempt > 3){ $(#login-section .otp-card .otp-box .alert).addClass(alert-danger).text(Youve exceeded the number of attempts. Please resend another code).showElem().hideMsg(5); start_otp_input(); return false; } $.ajax({ type: POST, dataType: json, url: https://chicknbao.com.au/core/ajax/validate-otp.php, data: { otp: otp_final_input, phone: customer_phone, ce: (customer_exist ? 1 : 0), login_referer: window.login_referer }, success: function(data){ if(data.type success){ if(data.customer_details.no_address){ update_address(data.customer_details); } else{ _this.text(Logging in...); clearInterval(countdown_timer); var anchor ($(#storeSelected).length > 0) ? #store-data : ; if(window.login_referer checkout){ window.location.href ?pagecheckout; triggerBeginCheckoutTracking(); } else{ window.location.href ?pagebrowse + anchor; } } } else if(data.type register){ if(typeof _this.data(registerwith) ! undefined && _this.data(registerwith) applesignin){ $(#login-section .otp-card #login-label).addClass(disabled) $(#login-section .otp-card .close).hideElem(); clearInterval(countdown_timer); $(#login-section .otp-card .resend-code).addClass(disabled); $.ajax({ type: POST, url: https://chicknbao.com.au/core/ajax/update-email.php, data: { applesub: ($(#login-section .customer-details-card namepassword).val().length) ? $(#login-section .customer-details-card namepassword).val() : $(#login-section .customer-details-card nameemail).val(), phonenumber: $(#login-section .customer-details-card #register-phone).val().replace(/\s/g, ) }, success: function(data){ if(window.login_referer checkout){ window.location.href ?pagecheckout; triggerBeginCheckoutTracking(); } else{ var url new URL(window.location.href); var location_href (url.searchParams.get(logout) ! null && url.searchParams.get(logout) true) ? ?pagebrowse : window.location.href; window.location.href location_href; } } }); } else{ _this.prop(disabled, false); $(#login-section .otp-card).hideElem(); clearInterval(countdown_timer); $(#login-section .otp-card #otp-box inputnameotp-box).val(); $(#login-section .otp-card .resend-code).html(Resend code).removeClass(disabled); $(#login-section .customer-details-card).showElem(); $(#login-section .customer-details-card #login-label).parent().hideElem(); if($(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .slider li).eq(1).hideElem(); } } }else{ _this.prop(disabled, false); $(#login-section .otp-card .otp-box .alert).addClass(alert-danger).text(data.message).showElem().hideMsg(5); } otp_attempt++; }, error: function(){ _this.prop(disabled, false); $(#login-section .otp-card .otp-box .alert).addClass(alert-danger).text(Unable to Process your request. Please try again later).showElem().hideMsg(5); } }); }); $(#login-section .otp-card .resend-code).click(function(){ if(!$(this).hasClass(disabled)){ var _this $(this); _this.html(Resending...).addClass(disabled); $(#login-section .otp-card .otp-box .alert).removeClass(alert-success alert-danger).hideElem().text(); $.ajax({ type: POST, dataType: json, data: { phone: customer_phone }, url: https://chicknbao.com.au/core/ajax/resend-otp.php, success: function(data){ if(data.type ! success){ _this.html(Resend code).removeClass(disabled); $(#login-section .otp-card .otp-box .alert).addClass(alert-danger).text(data.message).showElem().hideMsg(5); } else{ $(#login-section .otp-card .otp-box .alert).addClass(alert-success).text(A new verification code has been sent).showElem().hideMsg(5); start_otp_input(); resend_countdown(login-section .otp-card .resend-code); } }, error: function(){ _this.html(Resend code).removeClass(disabled); $(#login-section .otp-card .otp-box .alert).addClass(alert-danger).text(Unable to Process your request. Please try again later).showElem().hideMsg(5); } }); } }); $(#login-section .otp-card #login-label).click(function(){ if(!$(this).hasClass(disabled)){ if(typeof $(#login-section .otp-card .btn-2-block).data(registerwith) ! undefined && $(#login-section .otp-card .btn-2-block).data(registerwith) applesignin){ $(#login-section .customer-details-card).showElem(); } else{ $(#login-section .login-card).showElem(); } $(#login-section .otp-card).hideElem(); clearInterval(countdown_timer); $(#login-section .otp-card .resend-code).html(Resend code).removeClass(disabled); $(#login-section .otp-card .btn-2-block).prop(disabled, true); } }); $(#login-section .login-card .forgot-password).click(function(){ if(!$(this).hasClass(disabled)){ $(#login-section .login-card).hideElem(); $(#login-section .password-reset-card).showElem(); } }); $(#login-section .password-reset-card #login-label).click(function(){ if(!$(this).hasClass(disabled)){ $(#login-section .login-card).showElem(); $(#login-section .password-reset-card).hideElem(); } }); $(#login-section .password-reset-card .btn-2-block).click(function(){ var _this $(this); var email $(#login-section .password-reset-card #forgot-email); email.css(border, ).siblings(.field-message).removeClass(active).text(); if(!$.trim(email.val()).length || !isEmail(email.val())){ email.css(border, 1px solid #ea868f).siblings(.field-message).addClass(active).text(email.attr(placeholder)); return false; } _this.text(Please wait...).prop(disabled, true); email.prop(disabled, true); $(#login-section .password-reset-card #login-label).addClass(disabled); $(#login-section .login-card .alert).removeClass(alert-success alert-danger).hideElem().text(); $.ajax({ type: POST, dataType: json, url: https://chicknbao.com.au/core/ajax/reset-password-email.php, data: {username: email.val()}, success: function(data){ _this.text(Continue).prop(disabled, false); email.prop(disabled, false); $(#login-section .password-reset-card #login-label).removeClass(disabled); if(data.type success){ if(data.provider cognito) { password_reset_email email.val(); $(#login-section .password-reset-confirmation-card).showElem(); $(#login-section .password-reset-card).hideElem(); } else { $(#login-section .password-reset-card #login-label).click(); $(#login-section .login-card .alert).removeClass(alert-success alert-danger).addClass(alert-success).text(An email has been sent to you. To reset your password use the link we just e-mailed you).showElem().hideMsg(5); } email.val(); } else{ email.css(border, 1px solid #ea868f).siblings(.field-message).addClass(active).text(data.message); } }, error: function(){ _this.text(Continue).prop(disabled, false); email.prop(disabled, false); $(#login-section .password-reset-card #login-label).removeClass(disabled); $(#login-section .password-reset-card #login-label).click(); $(#login-section .login-card .alert).addClass(alert-danger).text(Unable to Process your request. Please try again later).showElem().hideMsg(5); } }); }); $(#login-section .customer-details-card .slider li button).click(function(){ if($(this).hasClass(previous)){ var account_header {first:Create Account, second:Fill your delivery details, third:Profile}; $(#login-section .customer-details-card .slider li button).removeClass(active); var position $(this).removeClass(previous).attr(class); $(this).addClass(active).parent().nextAll().find(button).removeClass(previous); $(#login-section .customer-details-card .create-account class^account-:not(class*account-header)).hideElem(); $(#login-section .customer-details-card .create-account .account-+position).showElem(); $(#login-section .customer-details-card .create-account .account-header h3).text(account_headerposition); $(#login-section .customer-details-card .create-account .btn-skip, #login-section .customer-details-card .btn-2-block).removeClass(first second third update-address).addClass(position); if(position first){ createAccountRenderSize(); $(#login-section .customer-details-card .create-account .btn-skip).hideElem(); } } return false; }); $(#login-section .customer-details-card #login-label).click(function(){ if(!$(this).hasClass(disabled)){ $(#login-section .login-card).showElem(); hide_customer_form(); $(#login-section .customer-details-card #register-phone).prop(readonly, false); $(#login-section inputtypetext, #login-section inputtypepassword, #login-section inputtypetel, #login-section .customer-details-card .password-wrapper inputtypepassword).val(); hide_login_errors(); } }); $j(#login-section .customer-details-card .create-account inputnamefirstName, #login-section .customer-details-card .create-account inputnamesurname, #login-section .customer-details-card .create-account inputnamebusiness_name).on(input, function(event){ if(event.target.name business_name){ $(this).val($(this).val().replace(/^a-zA-Z-& /gi, )); } else{ $(this).val($(this).val().replace(/^a-zA-Z- /gi, )); } }); $(#login-section .login-card .login-with).click().remove(); $(#login-section .login-card #phone-number-form).remove(); $(#login-section .customer-details-card .btn-2-block).click(function(){ var _this $(this), valid false; if(_this.hasClass(first)){ if(validate_form($(#login-section .customer-details-card #create-account))){ _this.prop(disabled, true); var validate_phone check_customer($(#login-section .customer-details-card #register-phone)); var validate_email check_customer($(#login-section .customer-details-card nameemail)); $.when(validate_phone, validate_email).done(function(rp, re){ var phone_resp (rp && typeof rp0 string) ? JSON.parse(rp0) : rp0; var email_resp (re && typeof re0 string) ? JSON.parse(re0) : re0; if( typeof rp1 ! undefined && rp1 success && typeof phone_resp.isError && phone_resp.isError ! true && typeof re1 ! undefined && re1 success && typeof email_resp.isError && email_resp.isError ! true ){ if(typeof $(#login-section .customer-details-card #register-phone).data(registerwith) ! undefined){ $.ajax({ type: POST, url: https://chicknbao.com.au/core/ajax/save_customer_details.php, data: registerwithapplesigninnewlogin&phoneNumber+$(#login-section .customer-details-card #register-phone).val().replace(/\s/g, ), success: function(data){ var json JSON.parse(data); if(typeof json.isError ! undefined && json.isError true){ if(json.errorCode existing_phone_number){ $(#login-section .existing-phone-card .existing-message).text(Your phone number is already registered with another account. Do you want to update your existing account?); $(#login-section .existing-phone-card #register-apple-update).css(display, ); $(#login-section .existing-phone-card #register-apple-cancel).addClass(btn-primary-inverted).text(No); } else{ $(#login-section .existing-phone-card .existing-message).text(json.errorMessage); $(#login-section .existing-phone-card #register-apple-update).css(display, none); $(#login-section .existing-phone-card #register-apple-cancel).removeClass(btn-primary-inverted).text(OK); } $(#login-section .customer-details-card).hideElem().next().showElem(); _this.prop(disabled, false); return false; } if($(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .slider li button.active).addClass(previous).removeClass(active); $(#login-section .customer-details-card .slider li button.third).addClass(active); $(#login-section .customer-details-card .create-account .account-header h3).text(Profile); $(#login-section .customer-details-card .create-account .account-first).hideElem().next().hideElem(); $(#login-section .customer-details-card .create-account .account-third).showElem(); $(#login-section .customer-details-card .create-account .btn-skip).removeClass(first).addClass(third); } else{ $(#login-section .customer-details-card .slider li button.active).addClass(previous).removeClass(active).parent().next(li).find(button).addClass(active); $(#login-section .customer-details-card .create-account .account-header h3).text(Fill your delivery details); $(#login-section .customer-details-card .create-account .account-first).hideElem().next().showElem(); $(#login-section .customer-details-card .create-account .btn-skip).removeClass(first).addClass(second); } if(typeof window.login_referer ! undefined && window.login_referer ! checkout || $(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .create-account .btn-skip).showElem(); } _this.removeClass(first).addClass(second); } }); } else{ if(($(#login-section .customer-details-card .btn-2-block).data(login-type) undefined || $(#login-section .customer-details-card .btn-2-block).data(login-type) guest) && $(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .create-account .btn-skip).removeClass(first).addClass(second); _this.removeClass(first).addClass(second); setTimeout(function(){ $(#login-section .customer-details-card .create-account .btn-skip).click(); }, 300); } else{ $(#login-section .customer-details-card .slider li button.active).addClass(previous).removeClass(active).parent().next(li).find(button).addClass(active); $(#login-section .customer-details-card .create-account .account-header h3).text(Fill your delivery details); $(#login-section .customer-details-card .create-account .account-first).hideElem().next().showElem(); $(#login-section .customer-details-card .create-account .btn-skip).removeClass(first).addClass(second); if(typeof window.login_referer ! undefined && window.login_referer ! checkout || $(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .create-account .btn-skip).showElem(); } _this.removeClass(first).addClass(second); } } } _this.prop(disabled, false); }); } } else if(_this.hasClass(second)){ if(skip_reg){ skip_reg false; valid true; } else if(validate_form($(#login-section .customer-details-card #create-account))){ valid true; } if(valid){ if($(#login-section .customer-details-card .btn-2-block).data(login-type) ! undefined && $(#login-section .customer-details-card .btn-2-block).data(login-type) guest){ $(#login-section .customer-details-card .create-account .btn-skip).removeClass(second).addClass(third); _this.removeClass(second).addClass(third); setTimeout(function(){ if($(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .create-account .btn-skip).click(); } else{ _this.click(); } }, 300); } else{ $(#login-section .customer-details-card .create-account .account-header h3).text(Profile); $(#login-section .customer-details-card .create-account .btn-skip).removeClass(second).addClass(third); if($(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .create-account .btn-skip).showElem(); $(#login-section .customer-details-card .slider li button.active).addClass(previous).removeClass(active); $(#login-section .customer-details-card .slider li button.third).addClass(active); $(#login-section .customer-details-card .create-account .account-first).hideElem().next().hideElem(); $(#login-section .customer-details-card .create-account .account-third).showElem(); } else{ $(#login-section .customer-details-card .slider li button.active).addClass(previous).removeClass(active).parent().next(li).find(button).addClass(active); $(#login-section .customer-details-card .create-account .account-second).hideElem().next().showElem(); } _this.removeClass(second).addClass(third); } } } else if(_this.hasClass(third)){ _this.html(Please wait...).prop(disabled, true); $(#login-section .customer-details-card .create-account .btn-skip, #login-section .customer-details-card #login-label, #login-section .customer-details-card .close).addClass(disabled); var data {}, signup_email {}; $(#login-section .customer-details-card #create-account).find(name).each(function(){ var name $(this).attr(name); var value ($(this).val() ! null) ? $(this).val() : ; if(typeof $(this).attr(type) ! undefined && $(this).attr(type) ! password){ value $(div>).text(value).html(); } if(name firstName || name surname){ value $.trim(value); signup_email(name firstName ? customer_fname : customer_lname) value; } else if (name email) { signup_emailcustomer_email value; } else if (name customer_marketing_material) { value $(this).is(:checked) ? 1 : 0; } else if(name phoneNumber){ value registerPhoneInt.getNumber(); // always pass E.164 format dataphone_number value; } if($(this).is(:disabled) false){ dataname value; } if($(this).is(:visible) && !$(this).is(:disabled)){ $(this).prop(disabled, true); } }); if(_this.data(login-type) undefined || _this.data(login-type) ! guest){ dataremember_me true; dataregister new; } else{ dataguest 1; dataguest_no_register 1; delete data.password; } datalogin_referer window.login_referer; if(typeof $(#login-section .customer-details-card #register-phone).data(registerwith) ! undefined && $(#login-section .customer-details-card #register-phone).data(registerwith) applesignin){ dataapple_user_id data.password ?? ; } var ajaxUrl https://chicknbao.com.au/core/ajax/save_customer_details.php, cognitoRegister false; $.ajax({ type: POST, url: ajaxUrl, data: data, success: function(data){ var resp, cart_total 0; try{ resp JSON.parse(data); cart_total (resp.cart_total ! undefined) ? resp.cart_total : 0; cart_total 1; } catch(e){ cart_total 0; if(window.login_referer checkout && (_this.data(login-type) ! undefined && _this.data(login-type) guest)){ cart_total 1; } } if (cognitoRegister) { $(#login-section .customer-details-card).hideElem(); $(#login-section .otp-card).showElem(); $(#login-section .otp-card .resend-code).addClass(disabled); $(#login-section .otp-card .login-modal-header).remove(); resend_countdown(login-section .otp-card .resend-code); $(#login-section .otp-card .otp-phone).html(resp.phone_number); } else{ finalizeSignupFlow(_this, resp, signup_email, cart_total); } } }); } else if(_this.hasClass(update-address)){ if(validate_form($(#login-section .customer-details-card #create-account))){ _this.html(Please wait...).prop(disabled, true); $(#login-section .customer-details-card .btn-2-block + .btn-primary).prop(disabled, true); var current_address $(#login-section .customer-details-card #create-account #register-st-name).val().split(, ); var current_street (typeof current_address0 ! undefined) ? current_address0 : ; var current_suburb (typeof current_address1 ! undefined) ? current_address1 : ; var check_street $.ajax({ url: https://api2.dsoftonline.com.au/do/check_street/13927/+current_street+/+current_suburb, success: function(data){ } }); $.when(check_street).done(function(cs){ if(cs.response_code 00){ var data {}; $(#login-section .customer-details-card #create-account).find(.form-control:visible).each(function(){ var name $(this).attr(name); var value ($(this).val() ! null) ? $(this).val() : ; if($(this).is(:disabled) false){ dataname value; } }); dataupdate_info address_only; $.ajax({ type: POST, url: https://chicknbao.com.au/core/ajax/save_customer_details.php, data: data, success: function(data){ window.location.href ?pagecheckout; triggerBeginCheckoutTracking(); } }); } else{ _this.html(Continue).prop(disabled, false); $(#login-section .customer-details-card .btn-2-block + .btn-primary).prop(disabled, false); $(#login-section .customer-details-card #create-account div.alert).removeClass(alert-success alert-danger).addClass(alert-danger).text(Sorry, delivery address is not recognised. Please re-enter address.).showElem().hideMsg(5); } }); } } return false; }); $(#login-section .existing-phone-card #register-apple-update).click(function(){ $(#login-section .existing-phone-card .btn-primary).prop(disabled, true); var phone $(#login-section .customer-details-card #register-phone); $.ajax({ type: POST, url: https://chicknbao.com.au/core/ajax/resend-otp.php, data: { phone: phone.val().replace(/\s/g, ) }, success: function(data){ var resp jQuery.parseJSON(data); $(#login-section .existing-phone-card).hideElem(); $(#login-section .otp-card .btn-2-block).data(registerwith, applesignin); $(#login-section .otp-card).showElem(); if(resp.type ! success){ $(#login-section .otp-card .otp-box .alert).addClass(alert-danger).text(data.message).showElem().hideMsg(5); } else{ $(#login-section .otp-card .otp-box .alert).addClass(alert-success).text(A new verification code has been sent).showElem().hideMsg(5); $(#login-section .otp-card .resend-code).addClass(disabled); resend_countdown(login-section .otp-card .resend-code); $(#login-section .otp-card .otp-phone).html(phone.val()); customer_exist false; customer_phone phone.val().replace(/\s/g, ); start_otp_input(); } $(#login-section .existing-phone-card .btn-primary).prop(disabled, false); }, error: function(){ $(#login-section .otp-card .otp-box .alert).addClass(alert-danger).text(Unable to Process your request. Please try again later).showElem().hideMsg(5); $(#login-section .existing-phone-card .btn-primary).prop(disabled, false); } }); }); $(#login-section .existing-phone-card #register-apple-cancel).click(function(){ $(#login-section .existing-phone-card).hideElem().prev().showElem(); }); $(#login-section .customer-details-card .btn-2-block + .btn-primary).live(click, function(){ if(!$(this).hasClass(disabled)){ $(#login-section .customer-details-card .btn-2-block).prop(disabled, true); $(#login-section .customer-details-card .btn-2-block + .btn-primary).prop(disabled, true).html(Please wait...); location.href location.href } }); $(#login-section .customer-details-card .create-account .btn-skip).click(function(){ if(!$(this).hasClass(disabled)){ if($(#login-section .customer-details-card .btn-2-block).hasClass(second)){ skip_reg true; $(#login-section .customer-details-card #create-account .account-second input.form-control).val(); $(#login-section .customer-details-card #create-account .account-second select.form-control).empty(); $(#login-section .customer-details-card .btn-2-block).click(); } else if($(#login-section .customer-details-card .btn-2-block).hasClass(third)){ $(#login-section .customer-details-card #create-account .account-third input.form-control).val(); $(#login-section .customer-details-card #create-account .account-third select.form-control).each(function(){ $(this).prop(selectedIndex, 0); }); $(#login-section .customer-details-card .btn-2-block).click(); } } }); $(#login-section .customer-details-card #create-account .form-control.required).keyup(function(){ var invalid false, _this $(this); if(_this.data(state) submitted){ if($.trim(_this.val())){ _this.closest(.form-group).find(label.error).text(This field is required).showElem(); return true } if(_this.attr(name) email){ var regex /^(a-zA-Z0-9_\.\-\+)+\@((a-zA-Z0-9\-)+\.)+(a-zA-Z0-9{2,4})+$/; if(!regex.test(_this.val())){ _this.closest(.form-group).find(label.error).text(Please enter a valid email address).showElem(); return true; } } if(_this.attr(name) phoneNumber){ if(check_phone(_this.val(), true)){ _this.closest(.form-group).find(label.error).text(Please enter a valid phone number).showElem(); return true; } } if(_this.attr(name) password){ if(_this.val().length 6){ _this.closest(.form-group).find(label.error).text(Please enter at least 6 characters).showElem(); return true; } } if(_this.attr(name) retypePassword){ confirm_pass _this.val(); if($(#login-section .customer-details-card #create-account inputnamepassword).val() ! confirm_pass){ _this.closest(.form-group).find(label.error).text(Passwords do not match).showElem(); return true } } _this.closest(.form-group).find(label.error).hideElem().text(); } }); $j(#login-section .customer-details-card #register-st-name).select2({ placeholder: Select your Street, width: 100%, ajax: { url: https://chicknbao.com.au/core/ajax/find_streets.php, dataType: json, delay: 250, processResults: function(data){ var select2Data $.map(data, function (obj){ obj.id obj.street; obj.text obj.street; return obj; }); return { results: select2Data }; }, cache: false }, language: { noResults: function(){ return Street not found.; } }, minimumInputLength: 2, templateResult: function(data){ return data.street; } }).on(select2:close, function(e){ $(#login-section .customer-details-card #register-st-name).closest(.form-group).find(span.glyphicon-ok).remove(); $(#login-section .customer-details-card #register-st-name).closest(.form-group).find(span.glyphicon-remove).remove(); $(#login-section .customer-details-card #register-st-name).closest(.form-group).find(span.help-block).remove(); }); $j(window).on(resize, function(){ if($(#login-section .customer-details-card .create-account .account-first).is(:visible)){ createAccountRenderSize(); } }); createAccountRenderSize(); $j(inputnameemail).on(input, function() { const trimmedValue $(this).val().trim(); $(this).val(trimmedValue); }); });/script>link relstylesheet hrefhttps://cdn.jsdelivr.net/npm/intl-tel-input@latest/build/css/intlTelInput.css> div classlogin-card> div classrow> div classlogin-modal-header col-lg-12 col-md-12 col-sm-12> div idlogin-label> h3>Whats your mobile number?/h3> /div> div> i classclose fa-solid fa-xmark>/i> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div rolealert classalert styledisplay:none;>/div> div idphone-number-form classform-group> input typetext idlogin-phone namelogin-phone classform-control login autocompleteoff placeholderEnter your mobile number/> div classfield-message>/div> /div> div idemail-form styledisplay:none;> div classform-group> input typetext idlogin-email namelogin-email classform-control login value placeholderEnter your email or mobile number/> input classform-control login typetext idlogin-mobile namelogin-mobile styledisplay:none;/> div classfield-message>/div> /div> div classform-group> input typepassword idlogin-pass namelogin-pass classform-control login value placeholderEnter your password/> div classfield-message>/div> /div> /div> div> div classforgot-password styledisplay:none;>Forgot Password?/div> div classlogin-with password>Login with Password/div> div classsign-up>Sign Up/div> /div> div> button classbtn-2-block btn btn-primary mobile>Login or Sign Up/button> button classbtn-guest-checkout btn btn-primary>Checkout as Guest/button> /div> /div> div classor-login-container col-lg-12 col-md-12 col-sm-12> div classor-login-line> h4 classor-login-with>span>or login with/span>/h4> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div classdisable-social>/div> div idfb-login>script> $(document).ready(function(){ callFB(); }); function login_ios_fullscreen(){ var permissions email,publish_actions,manage_pages,read_stream; var m_appId 1596927895024426; var m_appUrl ; var permissionUrl https://m.facebook.com/dialog/oauth?client_id + m_appId + &response_typecode&redirect_uri +encodeURIComponent(m_appUrl)+ &scope + permissions; window.location permissionUrl; } function callFB(){ window.fbAsyncInit function() { FB.init({ appId : 1596927895024426, channelUrl : //WWW./channel.php, status : true, cookie : true, xfbml : true, oauth : true, version : v8.0 }); }; (function(d){ var js, id facebook-jssdk; if (d.getElementById(id)) {return;} js d.createElement(script); js.id id; js.async true; d.getElementsByTagName(head)0.appendChild(js); js.src //connect.facebook.net/en_US/sdk.js; }(document)); } //LOGIN FUNCTION function login() { FB.login(function(response) { if (response.authResponse) { var access_token response.authResponse.accessToken; //get access token var user_id response.authResponse.userID; //get FB UID FB.api(/me, get, { access_token: access_token, fields: id,first_name,last_name,email }, function(response) { if(typeof response.email undefined){ $.prompt(Please provide a valid Facebook email to progress); } else{ response.access_token access_token; login_fb(response); $(#fb-login-new).html(fb:facepile> /fb>); FB.XFBML.parse(document.getElementById(fb-login-new)); } }); }else{ alert(Login Failed!); } }, {scope: email, redirect_uri:,display : touch }); } function login_fb(response){ var email response.email; var id response.id; var firstName response.first_name; var surname response.last_name; var access_token response.access_token; $.post(core/ajax/login.php, { email: email, fb_user_id: id, access_token: access_token, login_referer: window.login_referer}, function(msg){ var name; if($.trim(msg) ! null){ var obj jQuery.parseJSON(msg); name obj.firstName+ +obj.surname; $(#deliveryStreet).value obj.deliveryStreetSuburb; } if(obj.response_code 00){ if(obj.no_address){ update_address(obj); } else{ if(window.login_referer navbar || window.login_referer checkout){ if(window.login_referer navbar){ // login is via clicking login on navbar window.location.href ?page; } if(window.login_referer checkout){ //login is via clicking checkout on floatbox window.location.href ?pagecheckout; } }else if(window.login_referer beercheckout){ //redirect to beer2u window.location ; }else{ // default. if login_referer is undefined // OOA-1284: Check if page is browse and template is platina. Anchor user to store details // Add condition for check if the (storeSelected) is exist (storeSelected only appears on Template4) var anchor ( ($(#storeSelected).length > 0) ? #store-data : ); window.location.href ?pagebrowse + anchor; } } }else{ if(!$(#login-wrap).is(:visible)){ $(#login-wrap).fadeToggle(fast); } $(#login-section .login-card).hideElem(); $(#login-section .customer-details-card namepassword).val(); $(#login-section .customer-details-card .password-wrapper).removeClass(cover).showElem(); $(#login-section .customer-details-card).showElem(); $(#login-section .customer-details-card #login-label).parent().showElem(); $(#login-section .customer-details-card #register-phone).removeAttr(readonly); $(#login-section .customer-details-card nameemail).val(email).prop(readonly, true); $(#login-section .customer-details-card namefirstName).val(firstName); $(#login-section .customer-details-card namesurname).val(surname); $(#login-section .customer-details-card namefb_user_id).val(id); if($(#current_order_type_holder).val() pickup){ $(#login-section .customer-details-card .slider li).eq(1).hideElem(); } } }); }/script> !-- fb:login-button show-facestrue width200 max-rows1>/fb:login-button>--> div onclicklogin(); idfb-login2> div> span idfb-login-new>/span> img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/facebook-16.png/> Continue with Facebook /div>/div>div idfb-root>/div>/div> /div> /div> /div> div classpassword-reset-card styledisplay:none;> div classrow> div classlogin-modal-header col-lg-12 col-md-12 col-sm-12> div idlogin-label> i classfa-solid fa-chevron-left>/i> /div> div> i classclose fa-solid fa-xmark>/i> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div> i classfa-solid fa-unlock-keyhole>/i> span>Password Reset/span> span>Enter the registered email. We will send you a verification code to reset your password/span> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div classform-group> input typetext idforgot-email nameforgot-email classform-control login autocompleteoff placeholderPlease enter a valid email value /> div classfield-message>/div> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div> button classbtn-2-block btn btn-primary>Continue/button> /div> /div> /div> /div> div classotp-card styledisplay:none;> div classrow> div classlogin-modal-header col-lg-12 col-md-12 col-sm-12> div idlogin-label> i classfa-solid fa-chevron-left>/i> /div> div> i classclose fa-solid fa-xmark>/i> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div> i classfa-regular fa-comment>/i> span>Enter the 6-digit verification code sent to you at span classotp-phone>/span>/span> /div> /div> div classotp-box col-lg-12 col-md-12 col-sm-12> div classalert styledisplay:none;>/div> div idotp-box classform-group> input typenumber nameotp-box classform-control login maxlength1 value oninputjavascript: if(this.value.length > this.maxLength) this.value this.value.slice(0, this.maxLength);/> input typenumber nameotp-box classform-control login maxlength1 value oninputjavascript: if(this.value.length > this.maxLength) this.value this.value.slice(0, this.maxLength);/> input typenumber nameotp-box classform-control login maxlength1 value oninputjavascript: if(this.value.length > this.maxLength) this.value this.value.slice(0, this.maxLength);/> input typenumber nameotp-box classform-control login maxlength1 value oninputjavascript: if(this.value.length > this.maxLength) this.value this.value.slice(0, this.maxLength);/> input typenumber nameotp-box classform-control login maxlength1 value oninputjavascript: if(this.value.length > this.maxLength) this.value this.value.slice(0, this.maxLength);/> input typenumber nameotp-box classform-control login maxlength1 value oninputjavascript: if(this.value.length > this.maxLength) this.value this.value.slice(0, this.maxLength);/> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div>Did not receive a code? span classresend-code>Resend code/span>/div> div> button classbtn-2-block btn btn-primary disabled>Continue/button> /div> /div> /div> /div>div classcustomer-details-card styledisplay:none;> div classrow> div classlogin-modal-header col-lg-12 col-md-12 col-sm-12 styledisplay:none;> div idlogin-label> i classfa-solid fa-chevron-left>/i> /div> div> i classclose fa-solid fa-xmark>/i> /div> /div> div classslider col-lg-12 col-md-12 col-sm-12> li>button classfirst active>/button>/li> li>button classsecond>/button>/li> li>button classthird>/button>/li> /div> div classcreate-account> form idcreate-account namecreate-account> input typehidden namefb_user_id value> div classalert styledisplay:none; margin-bottom:0;>/div> div classaccount-header col-lg-12 col-md-12 col-sm-12> h3>Create Account/h3> /div> div classaccount-first> div classcol-lg-12 col-md-12 col-sm-12> div classfield-wrapper form-group> label classlabel> Mobile Number i classfa-solid fa-circle-question data-toggletooltip data-placementbottom titleMobile number must be in a valid format. eg. 0412345678 aria-hiddentrue>/i> span classrequired>*/span> /label> input typetel idregister-phone namephoneNumber readonly classform-control required pattern/^0-9\s+$/ inputmodenumeric value/> label classerror styledisplay:none;>/label> /div> /div> div classcol-lg-6 col-md-6 col-sm-6 col-xs-12> div classfield-wrapper form-group> label classlabel>First Namespan classrequired>*/span>/label> input typetext namefirstName classform-control required value/> label classerror styledisplay:none;>/label> /div> /div> div classcol-lg-6 col-md-6 col-sm-6 col-xs-12> div classfield-wrapper form-group> label classlabel>Last Namespan classrequired>*/span>/label> input typetext namesurname classform-control required value/> label classerror styledisplay:none;>/label> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div classfield-wrapper form-group> label classlabel>Emailspan classrequired>*/span>/label> input typetext nameemail classform-control required maxlength200 value/> label classerror styledisplay:none;>/label> /div> /div> div classpassword-wrapper styledisplay:none;> div classcol-lg-6 col-md-6 col-sm-6 col-xs-12> div classfield-wrapper form-group> label classlabel>Passwordspan classrequired>*/span>/label> input typepassword namepassword classform-control required maxlength64 value/> label classerror styledisplay:none;>/label> /div> /div> div classcol-lg-6 col-md-6 col-sm-6 col-xs-12> div classfield-wrapper form-group> label classlabel>Confirm Passwordspan classrequired>*/span>/label> input typepassword nameretypePassword classform-control required maxlength64 value/> label classerror styledisplay:none;>/label> /div> /div> /div> div classcol-lg-12 col-md-12 col-sm-12 customer-marketing-material-wrapper> div classfield-wrapper form-group> label forcustomer_marketing_material classlabel styleposition: relative;> span styleposition: absolute; left: 0;>input typecheckbox idcustomer_marketing_material namecustomer_marketing_material checked stylemargin-top: 0; margin-right: 5px;>/span> span stylemargin-left: 22px; white-space: normal; line-height: 1.2em; position: relative; top: -1px; display: block;>Count me in for special offers and promos/span> /label> /div> /div> /div> div classaccount-second styledisplay:none;> div classcol-lg-6 col-md-6 col-sm-6> div classfield-wrapper form-group> label classlabel>Unit Number/label> input typetext nameunitNumber classform-control autocompleteoff maxlength5 value/> /div> /div> div classcol-lg-6 col-md-6 col-sm-6> div classfield-wrapper form-group> label classlabel>House Numberspan classrequired>*/span>/label> input typetext namehouseNumber classform-control required autocompleteoff maxlength5 value/> label classerror styledisplay:none;>/label> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div classfield-wrapper form-group> label classlabel>Street Namespan classrequired>*/span>/label> select idregister-st-name namedeliveryStreet classform-control required select2>/select> label classerror styledisplay:none;>/label> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div classfield-wrapper form-group> label classlabel>Delivery Instructions/label> input typetext namedeliveryInstructions classform-control autocompleteoff maxlength255 value/> /div> /div> /div> div classaccount-third styledisplay:none;> div classcol-lg-6 col-md-6 col-sm-6> div classfield-wrapper form-group> label classlabel>Age/label> select classform-control nameage> option value>- Select Age -/option> option value18-24>18 - 24/option> option value25-34>25 - 34/option> option value35-44>35 - 44/option> option value45-54>45 - 54/option> option value55-64>55 - 64/option> option value65+>65+/option> /select> /div> /div> div classcol-lg-6 col-md-6 col-sm-6> div classfield-wrapper form-group> label classlabel>Gender/label> select classform-control namegender> option value>- Select Gender -/option> option>Male/option> option>Female/option> option>Other/option> /select> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div classfield-wrapper form-group> label classlabel>Business Name/label> input typetext namebusiness_name classform-control value/> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div classfield-wrapper form-group> label classlabel>How did you hear about us?/label> select classform-control idregister-hear namehear_about_us> option value>- Select Option -/option> option valuegoogle>Google/option> option valueword of mouth>Word of Mouth/option> option valueprint>Print/option> option valuefacebook>Facebook/option> option valueinstagram>Instagram/option> option valueother social media>Other Social Media/option> option valueradio>Radio/option> option valuetv>TV/option> option valuesms>SMS/option> option valueemail>Email/option> /select> /div> /div> /div> div classcol-lg-12 col-md-12 col-sm-12> div> button typebutton classbtn-2-block btn btn-primary first>Continue/button> p classbtn-skip first styledisplay:none;>Skip for now/p> /div> /div> /form> /div> /div>/div>div classexisting-phone-card styledisplay:none;> div classrow> div classexisting-phone-header col-lg-12 col-md-12 col-sm-12> h3>Phone Number/h3> /div> div classcol-lg-12 col-md-12 col-sm-12> div classexisting-message>/div> div> button typebutton idregister-apple-cancel classbtn btn-primary btn-primary-inverted>No/button> button typebutton idregister-apple-update classbtn btn-primary>Yes/button> /div> /div> /div>/div> /div>/div> div idwrap classrow-offcanvas row-offcanvas-right> nav classnavbar navbar-inverse navbar-fixed-top idmain-nav rolenavigation> div classcontainer> div classtoggle-left> div>/div> div>/div> div>/div> /div> nav idleft-nav> div idstore-nav> span idnav_profile_pic> h4>b>center>Welcome to/center>/b>/h4>span>b>center>Chick-N-Bao/center>/b>/span> /span> /div> ul> li classmove-nav>a href#landing>span classglyphicon glyphicon-home>/span>span classnav-text> Home/span>/a>/li> li classmove-nav>a href#store-data>span classglyphicon glyphicon-cutlery>/span>span classnav-text> Menu/span>/a>/li> li classmove-nav>a href#about-us>span classglyphicon glyphicon-glass>/span>span classnav-text> About/span>/a>/li> li classnav-list>a href# data-togglemodal data-target#showmapmodal>span classglyphicon glyphicon-map-marker>/span> Store Location/a>/li> li classnav-list>a href?pageterms>span classglyphicon glyphicon-info-sign>/span> Terms/a>/li> li classnav-list>a href?pageprivacy>span classglyphicon glyphicon-eye-close>/span> Privacy/a>/li> li classnav-list>a href?pagefeedback>span classglyphicon glyphicon-send>/span> Feedback/a>/li> /ul> /nav> ul idnavbar-header classnav navbar-nav navbar-left> li classmove-nav>a href#landing>span classnav-text>Home/span>/a>/li> li classmove-nav>a href#store-data >span classnav-text>Menu/span>/a>/li> li classmove-nav>a href#about-us>span classnav-text>About/span>/a>/li> /ul> ul idnavbar-header classnav navbar-nav navbar-right> !-- OOA-258 Platina - Pop up letting customers know what store they are ordering from --> li classmove-nav> a href#store-data> span classglyphicon glyphicon-map-marker>/span> span classnav-text>Yarawongga/span> /a> /li> li> p tabindex0 rolebutton data-togglepopover idlogin-nav> span classglyphicon>img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/user-circle-solid.png>/span> span idsignIn classsignIn>sign in/span> /p> /li> li idshow_cart> div classview_cart> span classglyphicon>img stylewidth:13px; srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/shopping-bag.png>/span> span idcartTotal classcartTotal>$0.00/span> /div> /li> /ul> /div> /nav> div classcontainer mainpage> /div> !-- FULL HEADER REMOVE --> div idlanding > div iddesktopSplide classsplide stylepadding:0;> div classsplide__arrows splide__arrows--ltr>/div> ul classsplide__pagination>/ul> div classsplide__track> ul classsplide__list> /ul> /div> /div> script> document.addEventListener(DOMContentLoaded, function () { function initializeSlider() { var screenWidth window.innerWidth; var sliderConfig; } initializeSlider(); }); /script> div classcontainer> div idlanding-content> div idlanding-logo> img srchttps://d2ova09jg8x3xk.cloudfront.net/chicknbao.com.au/images/logo.png altChick-N-Bao Logo> /div> div idlanding-form> div idtag-line>p classtaglineito>Your Chicken Placebr>That You Can Go!/p>/div> div idform-text>/div> !-- OOA-1394 Order Now Store list Platina Feature --> /div> /div> /div> /div> div idstore-data> div classcontainer> div idstore> !-- OOA-1394 Order Now Store list Platina Feature --> div idorder-type-select classcol-lg-6 col-lg-offset-3 col-sm-offset-2 col-sm-8 styledisplay:none;> p idorder-type-select-close classstore-select2-close style>×/p> div idorder-type-select-container> div idstore-select2-tag-line>Start ordering here/div> div classform-group> div classinput-group platina-input-group> div idstore-select2-form-text>Select your order type/div> div classbtn-group btn-block btn-group-lg> button typebutton classbtn order-type-bt active header valuepickup idorder-type-bt-pickup>Pickup/button> span>or/span> button typebutton classbtn order-type-bt header valuedelivery idorder-type-bt-delivery>Delivery/button> /div> /div> /div> /div> /div> !-- Display Suburb Search --> !-- OOA-1026 Moved select suburb input field from the landing section to store data section --> div idstore-select classcol-md-6 col-md-offset-3 col-sm-12 styledisplay:none;> p idstore-select2-close classstore-select2-close style>×/p> div idstore-select-container> !-- Form Content --> div idstore-select2-tag-line styletext-align: center;>Start ordering here/div> !-- Select2 --> div classform-group> div classinput-group platina-input-group> div classnearest-location-btn> button idgetLocation classbtn btn-default typebutton data-select2-openselect2-button-addons-multi-input-group-lg> span classglyphicon glyphicon-map-marker>/span> Click here to search for your nearest store /button> /div> div idstore-select2-form-text styletext-align: center;>Or use the search bar to find which stores deliver to you/div> select classplatina-search-suburb-postcode form-control idchainStores stylewidth:100%;>/select> /div> div idplatina-order-type-container>/div> /div> /div> /div> !-- Store Details --> div idstore-details classstore-details-default-panel style> h2>Chick-N-Bao/h2> div classcol-md-3 col-md-offset-2> p idh-phone> span classglyphicon glyphicon-earphone>/span> a hreftel:088972591 classphone-link>088972591/a> /p> p idh-address> span classglyphicon glyphicon-map-marker>/span> a idstore-location hrefhttps://www.google.com/maps/search/?api1&queryR9A%2C+1+Roystonea+Avenue%2C+Yarawongga classaddress-link target_blank relnoopener>R9A, 1 Roystonea Avenue, Yarawongga/a> /p> /div> div classcol-md-3> p> span classicon-delivery stylemask-image: url(https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/delivery_icon.svg);>/span> span data-toggletooltip data-placementtop data-htmltrue data-containerbody data-templatediv classtooltip th-tooltip roletooltip>div classtooltip-inner>/div>/div> titlediv classhours-title>Delivery Hours/div> div classhours-list> div classhours-day>Monday/div>div classhours-time>11:00am - 9:00pm/div>div classhours-day>Tuesday/div>div classhours-time>11:00am - 9:00pm/div>div classhours-day>Wednesday/div>div classhours-time>11:00am - 9:00pm/div>div classhours-day>Thursday/div>div classhours-time>11:00am - 9:00pm/div>div classhours-day>Friday/div>div classhours-time>11:00am - 10:00pm/div>div classhours-day>Saturday/div>div classhours-time>11:00am - 10:00pm/div>div classhours-day>Sunday/div>div classhours-time>11:00am - 9:00pm/div> /div> classdelivery-time trading-hours-tooltip> Delivery: strong>11:00am - 10:00pm/strong> /span> /p>p> i classfa-solid fa-clock stylemargin-right:5px;>/i> span data-toggletooltip data-placementtop data-htmltrue data-containerbody data-templatediv classtooltip th-tooltip roletooltip>div classtooltip-inner>/div>/div> titlediv classhours-title>Store Hours/div> div classhours-list> div classhours-day>Monday/div>div classhours-time>11:00am - 9:00pm/div>div classhours-day>Tuesday/div>div classhours-time>11:00am - 9:00pm/div>div classhours-day>Wednesday/div>div classhours-time>11:00am - 9:00pm/div>div classhours-day>Thursday/div>div classhours-time>11:00am - 9:00pm/div>div classhours-day>Friday/div>div classhours-time>11:00am - 10:00pm/div>div classhours-day>Saturday/div>div classhours-time>11:00am - 10:00pm/div>div classhours-day>Sunday/div>div classhours-time>11:00am - 9:00pm/div> /div> classstore-time-text trading-hours-tooltip> Open Today: strong>11:00am - 10:00pm/strong> /span> /p>p classmobile-estimated-time>/p> /div> div classcol-md-3> div idestimated-time>div classstore_status styledisplay:none;>closed/div>p classstore-status-info>strong>We are mark classtext-danger>CLOSED/mark> for pick-up./strong>/p>/div> /div> /div> /div> /div> /div>!-- END OF FULL HEADER --> input typehidden idclient_code valueCHBA01> input typehidden idorderTotal value> input typehidden idstoreName valueChick-N-Bao> input typehidden idorderType valuepickup> input typehidden idcustomerLoggedIn value0> input typehidden idcustomerGuest value0> input typehidden idstoreSelected value1> div classmodal fade modal-fullscreen force-fullscreen idshowmapmodal tabindex-1 roledialog aria-labelledbymyModalLabel aria-hiddentrue> div classmodal-dialog> div classmodal-content> div classmodal-header> button typebutton classclose data-dismissmodal aria-hiddentrue>×/button> h4 classmodal-title>Store Location/h4> /div> div classmodal-body> div classmapouter>div classgmap_canvas>iframe width100% height400 idgmap_canvas srchttps://google.com/maps?qR9A%2C+1+Roystonea+Avenue%2C+Yarawongga%2C+VIC&t&z14&ieUTF8&iwloc&outputembed frameborder0 scrollingno marginheight0 marginwidth0>/iframe>/div>/div> div idmodal-info> h3 idmodal-store>b>span>Chick-N-Bao/b>/span>/h3> div classcol-md-3 col-md-offset-3 map-add> p idh-address> span classglyphicon glyphicon-map-marker>/span> a hrefhttps://www.google.com/maps/search/?api1&queryR9A%2C+1+Roystonea+Avenue%2C+Yarawongga target_blank relnoopener>R9A, 1 Roystonea Avenue, Yarawongga, VIC/a> /p> p idh-phone> span classglyphicon glyphicon-earphone>/span> a hreftel:088972591>088972591/a> /p> /div> div classcol-md-3 map-time styletext-align: right;> p> i classfa-solid fa-bell-concierge stylemargin-right:5px;>/i> span>Delivery 11:00am - 10:00pm/span> /p>p>i classfa-solid fa-clock stylemargin-right:5px;>/i> span classstore-time-text>Open today/span> span>11:00am - 10:00pm/span>/p> /div> /div> /div> /div>!-- /.modal-content --> /div>!-- /.modal-dialog --> /div>!-- /.modal --> !-- /.modal for adding quantity on single items --> div classmodal modal-popup fade idadd-popup-qty roledialog> div classmodal-dialog modal-dialog-popup> div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>/h4> div classmodal-title item-description-popup modal-title-full stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;> div styletext-align:center;>label stylefont-weight: bold;>Quantity/label>/div> div styletext-align: center; margin: 10px;> button classbtn qty-btn-popup-single qty-btn-popup-minus ref-group-id>i classglyphicon glyphicon-minus>/i>/button> label id classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup-single qty-btn-popup-plus ref-group-id>i classglyphicon glyphicon-plus>/i>/button> /div> /div> div classmodal-footer styletext-align: center; position: relative;> div classitem-add-buttons stylewidth:100%> input stylepadding: 10px 0 !important; width: 47%; data-dismissmodal typebutton nameAdd valueAdd classbtn btn-primary idmodal-addbtn> input stylepadding: 10px 0 !important; width: 47%; typebutton nameCustomise valueCustomise classbtn btn-primary idmodal-customisebtn> /div> /div> /div> /div> /div> !-- /.modal for switch store --> div classmodal modal-popup fade idstoreSwitchPopup data-backdropstatic data-keyboardfalse roledialog> div classmodal-dialog modal-dialog-popup> div classmodal-content modal-content-popup> div classmodal-body stylebackground: #ececec78; text-align: center;> img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/cart-notif.svg /> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600; font-size: 27px;>Switch store?/h4> p stylefont-size: 16px;>Your cart will be emptied. You are now ordering from span idstoreSwitchPopupStoreName>/span>./p> /div> div classmodal-footer styletext-align: center; position: relative;> div classitem-add-buttons stylewidth:100%> button valueok stylepadding: 10px 0 !important; width: 47%; data-dismissmodal classbtn btn-primary switch-option>Okay/button> button valuecancel stylepadding: 10px 0 !important; width: 47%; data-dismissmodal classbtn btn-danger switch-option>Cancel/button> /div> /div> /div> /div> /div> !-- /.modal for Coming Soon --> div classmodal modal-popup fade idcomingSoonStoreSwitchPopup data-backdropstatic data-keyboardfalse roledialog> div classmodal-dialog modal-dialog-popup> div classmodal-content modal-content-popup> div classmodal-body stylebackground: #ececec78; text-align: center;> img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/cart-notif.svg /> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600; font-size: 27px;>Coming Soon!/h4> p stylefont-size: 16px;>The store you have selected is not available yet./p> /div> div classmodal-footer styletext-align: center; position: relative;> div classitem-add-buttons stylewidth:100%> button valuecancel stylepadding: 10px 0 !important; width: 47%; data-dismissmodal classbtn btn-danger switch-option>Okay/button> /div> /div> /div> /div> /div> !-- /.modal for locations --> div classmodal fade locationsModal idlocationsModal tabindex-1 roledialog aria-labelledbylocationsModal aria-hiddentrue> div classmodal-dialog modal-dialog-popup> div classmodal-content modal-content-popup> div classmodal-header stylebackground: #ececec78; text-align: center;> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-top: 5px; padding-bottom:5px; font-weight: 600; font-size: 27px;>Our Locations/h4> p stylefont-size: 16px;>/p> /div> div classmodal-body stylebackground: #fff; text-align: left;> div idloadin_bar styletext-align:center;>/div> div classfranchise-locations> div classcol-md-3 col-sm-3 col-xs-12 store-details-container> ul idlocationsSuburbList classlist-group list-group-flush>/ul> select namelocationsSuburbList2 idlocationsSuburbList2 classform-select>/select> /div> div idlocations-map-container classcol-md-9 col-sm-9 col-xs-12 map-container> div classlocation-map idlocation-map stylewidth: 100%; height: 100%;> div styleposition: relative; overflow: hidden; idmap_canvas>/div> /div> /div> /div> /div> /div> /div> /div> !-- /.modal for store list --> div classmodal idstoreListsModal tabindex-1> div classmodal-dialog modal-dialog-center> div classmodal-content> div classmodal-header stylebackground: #ececec78; text-align: center;> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title>List of Locations/h4> p stylefont-size: 16px;>/p> /div> div classmodal-body stylebackground: #fff; text-align: left;> div idloadin_bar styletext-align:center;>/div> !-- Accordion Content --> div> div classcontent> div classpanel-group store-list-accordion idaccordion> /div> /div> /div> /div> /div> /div> /div> !-- /.modal for store list switch store --> div classmodal fade idstoreSwitchPopup_2 tabindex-1> div classmodal-dialog modal-dialog-center> div classmodal-content> div classmodal-body stylebackground: #ececec78; text-align: center;> img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/cart-notif.svg /> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600; font-size: 27px;>Switch store?/h4> p stylefont-size: 16px;>Your cart will be emptied. You are now ordering from span idstoreSwitchPopupStoreName>/span>./p> /div> div classmodal-footer styletext-align: center; position: relative;> div classitem-add-buttons stylewidth:100%> button idstorelist-switch-option-ok valueok stylepadding: 10px 0 !important; width: 47%; data-dismissmodal classbtn btn-primary storelist-switch-option>Okay/button> button idstorelist-switch-option-cancel valuecancel stylepadding: 10px 0 !important; width: 47%; data-dismissmodal classbtn btn-danger storelist-switch-option>Cancel/button> /div> /div> /div> /div> /div> !-- OOA-1472 Refer a friend Modal --> div classmodal fade idrefer-modal tabindex-1 roledialog aria-labelledbyrefer-modalLabel aria-hiddentrue data-backdropstatic data-keyboardfalse> div classmodal-dialog roledocument> div classmodal-content> div classmodal-header> button typebutton classclose data-dismissmodal aria-labelClose> span aria-hiddentrue>×/span> /button> /div> div classmodal-body> form idrefer_form> img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/refer_friend.png> h1>Refer a friend/h1> p>Whos hungry? Tell them about us!/p> ul> li>input typetext namereferer_name idreferer_name classform-control stylemargin:0 auto; placeholderYour Name required>/li> li>input typetext namerefer_friend_name idrefer_friend_name classform-control stylemargin:0 auto; placeholderFriends Name required>/li> li>input typeemail namefriend_email_add idfriend_email_add classform-control stylemargin:0 auto; placeholderFriends Email Address required>/li> /ul> button typesubmit classbtn btn-primary idrefer-btn>Send Referral/button> /form> /div> /div> /div> /div> div classmodal modal-popup fade idpromo-modifier-modal tabindex-1 roledialog aria-labelledbypromo-modifier-modalLabel data-backdropstatic data-keyboardfalse> div classmodal-dialog roledocument> div classmodal-content> div classmodal-header> div classmessage-container> div classpromo-code-wrapper> img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/promo_applied.png/> Promo Code: span classpromo-code-container>/span> /div> div classpromo-code-redemption-label styledisplay:none;>To complete your redemption, please select item options./div> /div> span classclose data-dismissmodal aria-labelClose>×/span> /div> div classmodal-body styledisplay:none;> div classmodifier-wrapper>/div> /div> div classmodal-footer> span data-toggletooltip data-placementtop data-htmltrue titlei classfa-solid fa-circle-exclamation>/i> Select required item option first to add promo code.> button typebutton classbtn btn-primary disabled>/button> /span> /div> /div> /div> /div> input typehidden namecurrent_order_type idcurrent_order_type_holder valuepickup/> script>$(document).ready(function(){ var bLazy new Blazy();});/script>style> /* For Merge - Style for responsive extra/current toppings */ .hide-menu-active-times{ /* display:none; */ letter-spacing:0.8px; background-color:#dc4f4f !important; border-left:5px solid #da2d2d !important; padding:5px 8px; font-size:14px; -webkit-transition: opacity 650ms ease-in-out; -moz-transition: opacity 650ms ease-in-out; -o-transition: opacity 650ms ease-in-out; transition: opacity 650ms ease-in-out; } .b-lazy { -webkit-transition: opacity 650ms ease-in-out; -moz-transition: opacity 650ms ease-in-out; -o-transition: opacity 650ms ease-in-out; transition: opacity 650ms ease-in-out; max-width: 100%; opacity: 0; } .b-lazy.b-loaded { opacity: 1; } /* FOR merge Loke at checkout page */ #order-info-loke{ background: #fff; width: 70%; float:left; display:none; } #order-info-loke #loke-order-details{ padding:6px 10px 15px; } #order-info-loke h3{ background:#222; font-family: Open Sans,sans-serif; color: #fff; margin: 0; padding: 6px; padding-left: 10px; font-weight: 300; margin-top: 0; font-size: 18px; } @media only screen and (max-width: 992px){ #order-info-loke{ width:100%; display:block; } }/style>div idbackgroundPopup>/div> div idmain-content> div classcontainer> div classlocation split-content group> center>span> /span>/center> div idloyal_container styledisplay:none;> div idloyal_banner> div typebutton idloyal_close>i classfa-solid fa-xmark>/i>/div> div idloyal_cover> img srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/loyalty-banner.png/> div classfade>/div> /div> div idloyal_content> span idbanner_title>Loyalty Reward/span> span idbanner_message> Complete your stamps to get attractive rewards!br> span>*Your current stamps/span> /span> div idloyal_progress> !-- This will contain the progress like star-completed and star-incomplete --> /div> div classloyal_action_box> div idloyal-redeem-btn>Redeem Here/div> /div> /div> /div>/div>div idpromotional_container styledisplay:none;> div idpromotional_banner> button typebutton idpromotional_close>×/button> div idpromotional_cover>/div> div idpromotional_content> div idpromo_text>/div> div idpromo_button>/div> /div> /div>/div>div classmodal modal-popup fade idchange-order-type-modal tabindex-1 roledialog aria-labelledbychange-order-type-modalLabel data-backdropstatic data-keyboardfalse> div classmodal-dialog roledocument> div classmodal-content> div classmodal-header> Change order type? div classclose data-dismissmodal aria-labelClose> i classfa-solid fa-xmark>/i> /div> /div> div classmodal-body> Are you sure you want to change order type? /div> div classmodal-footer> button typebutton classbtn btn-primary btn-continue-order data-dismissmodal aria-labelClose>Continue order/button> button typebutton classbtn btn-primary btn-change-type data-dismissmodal aria-labelClose>Change order type/button> /div> /div> /div>/div>div classmodal modal-popup fade idmenu-items-disabled-modal tabindex-1 roledialog aria-labelledbymenu-items-disabled-modalLabel> div classmodal-dialog modal-dialog-popup roledocument> div classmodal-content> div classmodal-body> div classmenu-items-disabled-message> div classicon-warning> i classfa-solid fa-exclamation>/i> /div> div classdisable-message-text>/div> div classdisabled-items-list>/div> /div> div> button typebutton classbtn btn-primary data-dismissmodal aria-labelClose>Okay/button> /div> /div> /div> /div>/div>div classstore-frame> div classstore-details-open styledisplay:none;> span classstore-time-clock glyphicon glyphicon-time stylemargin-right:10px;>/span> /div> div classstore-details-after-closing styledisplay:none;>/div> div classstore-details-close styledisplay:none;> div classstore-status-details> p>Store is not open for orders right now./p> /div> /div> /div>div idmenu-cont> div idmenu> div idmenu-title>Our menu/div> ul idmenu-ul classnav> li classmenu-599676 first>a href#butterfly-fried-chicken-block classmenu-599676 first>Butterfly Fried Chicken/a>/li>li classmenu-599677>a href#boneless-bites-block classmenu-599677>Boneless Bites/a>/li>li classmenu-599678>a href#chicken-wings-and-nibbles-block classmenu-599678>Chicken Wings and Nibbles/a>/li>li classmenu-599679>a href#bao-buns-block classmenu-599679>Bao Buns/a>/li>li classmenu-599680>a href#steamed-bun-block classmenu-599680>Steamed Bun/a>/li>li classmenu-599681>a href#chicken-and-bao-block classmenu-599681>Chicken and Bao/a>/li> /ul>/div> script> var last_io_selected new Array(); $(document).ready(function() { var load_once; if (typeof code_happened undefined) { window.code_happened true; load_once true; }else{ load_once false; } //WEB-589 Allow upto 99 items in 1 selection var qty_selections ; for(var i 1; i 99; i++) { qty_selections + option>+i+/option>; } $(#item-buttons .qty-select.qty).html(qty_selections); var current_width $(window).width(); var current_height $(window).height(); if(current_width 481){ var current_height1 current_height - 215; $(#menu-items .modal-popup .modal-body).css(max-height, current_height1 +px); $(#menu-items .modal-popup .modal-body).css(min-height, current_height1 +px); } if(current_width 321){ var current_height2 current_height - 225; $(#menu-items .modal-popup .modal-body).css(max-height, current_height2 +px); $(#menu-items .modal-popup .modal-body).css(min-height, current_height2 +px); } if(load_once){ $(.qty-btn-popup-minus).live(click, function(){ var parent_div $(this).closest(li).attr(id); parent_div (typeof parent_div ! undefined && parent_div ! false) ? #+parent_div+ : ; var PLU $(this).attr(ref); var group_id$(this).attr(ref-group-id); var counter $(parent_div+#qty-+group_id).text(); counter (isNaN(counter)) ? 1 : counter; counter--; if (counter 0){ counter 1; } if (group_id 0){ $(parent_div+#qty-+PLU).text(counter); }else{ $(parent_div+#qty-+group_id).text(counter); } }); $(.qty-btn-popup-plus).live(click, function(){ var parent_div $(this).closest(li).attr(id); parent_div (typeof parent_div ! undefined && parent_div ! false) ? #+parent_div+ : ; var PLU $(this).attr(ref); var group_id$(this).attr(ref-group-id); var counter $(parent_div+#qty-+group_id).text(); counter (isNaN(counter)) ? 1 : counter; counter++; if (counter > 99){ counter 99; } if (group_id 0){ $(parent_div+#qty-+PLU).text(counter); }else{ $(parent_div+#qty-+group_id).text(counter); } }); } var option_id; function priceBaseOnOrderType(parent_div) { order_type $(#order-type-bt .active).val(); // if order_type is empty or undefined // order_type is undefined when store is offline if(order_type null || order_type undefined) order_type $(#current_order_type_holder).val(); $(#+ parent_div + .extra-toppings-checkbox).each(function() { var price $(this).attr(value); var plu $(this).attr(plu); if(price 0){ price order_type pickup ? $(this).data(sell-shop) : (order_type delivery ? $(this).data(sell-delivery) : $(this).data(sell-table)); $(this).attr(value, price); $(#+ parent_div + #condiment-price-+plu).html(price); } if(price null || price undefined || !price){ price 0; $(#+ parent_div + #condiment-price-+plu).html(price); } }); return false; } function get_condiments(plu, parent_div, currentToppings, extraToppings, defaultToppings){ $(#+parent_div+ .popup-condiments).show(); $(#+parent_div+ .popup-toppings).css(opacity, 0.3); $(#+parent_div+ .lds-ring).show(); $(#+parent_div+ .modal-footer .footer_overlay).show(); $.ajax({ type: POST, url: core/ajax/get_popup_toppings.php, data: {cid: 13927, plu: plu, currenttoppings: currentToppings, extratoppings: extraToppings, defaulttoppings: defaultToppings}, success: function(data) { if(data){ $(.popup-toppings).html(); $(#+parent_div+ .lds-ring).hide(); $(#+parent_div+ .popup-toppings).html(data); //WEB-395 UPSELL var upsell_id parent_div.substring(parent_div.lastIndexOf(_)+1); var upsell_container $(#menu-+upsell_id+-upsell-items); if(upsell_container.length > 0) { $(#+parent_div+ .popup-toppings).append(upsell_container.html()); $(#+parent_div+ .upsell-item-chkbox).die(change).live(change, function(){ var popup_total parseFloat($(#+parent_div+ .popup-item-price).text().substring(1)); var upsell_item_price parseFloat($(this).data(price)); if($(this).is(:checked)) { popup_total + upsell_item_price; } else { popup_total - upsell_item_price; } $(#+parent_div+ .popup-item-price).text($+formatNumber(popup_total)); }); } $(#+parent_div+ .popup-toppings).css(opacity, 1); } }, complete: function(data) { priceBaseOnOrderType(parent_div); $(#+parent_div+ .modal-footer .footer_overlay).hide(); // Reset Styles for WEB-573 Line separation on the item modal $(#+ parent_div + .item-option-radio-menu).css(border-bottom, none); $(#+ parent_div + .popup-current-toppings).css(border-top, none); $(#+ parent_div + #extra-toppings).css(border-top, none); var line_chk_01 $(#+ parent_div + .menu-item-option-popup).children().length > 0; var line_chk_02 $(#+ parent_div + .item-option-radio-menu).children().length > 0; var line_chk_03 $(#+ parent_div + .popup-current-toppings).children().length > 0; var line_chk_04 $(#+ parent_div + #extra-toppings).children().length > 0; if(line_chk_01 true && $(#+ parent_div + .item-option-radio-menu).length > 0) { $(#+ parent_div + .item-option-radio-menu)0.style.setProperty(border-top, 1px solid #00000038, important); } if((line_chk_01 || line_chk_02) && $(#+ parent_div + .popup-current-toppings).length > 0) { $(#+ parent_div + .popup-current-toppings)0.style.setProperty(border-top, 1px solid #00000038, important); } if((line_chk_01 || line_chk_02 || line_chk_03) && $(#+ parent_div + #extra-toppings).length > 0) { $(#+ parent_div + #extra-toppings)0.style.setProperty(border-top, 1px solid #00000038, important); } if((line_chk_01 || line_chk_02 || line_chk_03 || line_chk_04) && $(#+ parent_div + .upsell-header).length > 0) { $(#+ parent_div + .upsell-header)0.style.setProperty(border-top, 1px solid #00000038, important); } } }); } function item_option_list(data, groupId, menuId, io, isMultiple, multipleItemGrpId, itemCtr){ var counter 0, // for padding of the right and left side of the col-sm-6 input_type radio, padding, checked, active, item_option_html, option_name data0.option_name, option_display_name data0.option_display_name, min_option (data0.min_permitted ! undefined) ? data0.min_permitted : 0, max_option (data0.max_permitted ! undefined) ? data0.max_permitted : 1; if(!isMultiple){ item_option_html + p stylecolor:black; font-size:13.5px; width:100%>+(option_display_name ? option_display_name : option_name)+/p>; } else{ var io_required; if(min_option 0){ io_required Choose up to +max_option; } else if(min_option max_option){ io_required Required; io_required + (min_option > 1) ? - Choose +min_option : ; } else{ io_required Required - Choose between +min_option+ and +max_option; } item_option_html + div+(itemCtr > 1 ? stylemargin-top:15px; : )+ classmulti-option-select> +div classmulti-option-name item-option-group-name-+multipleItemGrpId+ styleposition:relative; float:left; width:100%;> +p stylecolor:black; font-size:15px; font-weight:600; padding-bottom:0;>+(option_display_name ? option_display_name : option_name)+/p> +span stylefont-size:15px; color:#a1a1a1;>+io_required+/span> +/div>; } $.each(data, function(key, value){ checked; active; counter++; if(counter 1){ padding padding-right:15px; padding-left:0px;; }else{ padding padding-right:0px; padding-left:15px;; counter 0; } if(!isMultiple){ if(value.default_item_option_id value.id){ checked checked; active https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/icon-check.png; } input_type radio; } else{ input_type checkbox; } var price_txt (value.item_price > 0) ? - $ + value.item_price : ; item_option_html + div classinput-group-radio item-option-input-group col-sm-6 style+padding+> +input type+input_type+ styledisplay:none; ref+value.id+ nameitem-option-radio-+groupId+(isMultiple ? -+multipleItemGrpId : )+ classitem-option-radio-list value+value.item_price+ iditem-option-+groupId+-+menuId+-+value.id++((!isMultiple && value.default_item_option_id ! 0) ? default-io+value.default_item_option_id+ : )+(isMultiple ? multiple-iotrue mio-id+multipleItemGrpId+ min-io+value.min_permitted+ max-io+value.max_permitted+ : )+ +checked+> +label for item-option-+groupId+-+menuId+-+value.id+ stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>+value.item_name+price_txt+img src+active+ classcheck-img-popup stylefloat:right; align-self:center>/label> +/div>; }); if(isMultiple){ item_option_html + /div>; } $(item_option_html).appendTo(io); } if(load_once){ $(.add-button-popup).live(click, function(){ var parent_div $(this).closest(li).attr(id); var parent_div_class $(this).closest(li).attr(class); var plu $(this).attr(ref); $(#+ parent_div + #toppings_left).hide(); $(.popup-orig-price).html(0); $(.popup-item-price).html(); var t 0; $(#+ parent_div + .input-group-label).each(function() { if($(this).hasClass(active)){ t 1; } }); if(t 0){ $(#+ parent_div + .input-group-label).each(function() { $(this).addClass(active); return false; }); } if($(#+ parent_div + .item-option-radio-listmultiple-io).length > 0){ $(#+ parent_div + .item-option-radio-listmultiple-io).each(function(){ if($(this).siblings(.input-group-label).hasClass(active)){ $(this).siblings(.input-group-label).removeClass(active); } }); } var popup_price parseFloat($(#+ parent_div + .active #popup-price).html().replace($, )); var hide_toppings $(#+ parent_div + .active).attr(hide_toppings); var active_plu $(#+ parent_div + .active).parent().find(.radio-button-popup).attr(plu); $(#+ parent_div + .modal-footer .qty).html(1); $(#+ parent_div + .popup-item-price).html($+formatNumber(popup_price)); if(hide_toppings 0){ get_condiments(active_plu, parent_div, , , ); } get_item_option(parent_div); }); } $(.qty-btn-popup).live(click, function(){ var parent_div $(this).closest(li).attr(id); var popup_price $(#+ parent_div + .active #popup-price).html(); if(popup_price){ popup_price parseFloat(popup_price.replace($, )); var popup_qty $(this).parent().find(.qty).html(); var toppings_price $(#+ parent_div + .popup-orig-price).html(); toppings_price parseFloat(toppings_price.replace($, )); var total_price parseFloat(popup_price) * parseInt(popup_qty); var toppings_toppings_price parseFloat(toppings_price) * parseInt(popup_qty); var upsell_total 0; $(#+parent_div+ .upsell-item-chkbox:checked).each(function(){ var upsell_price parseFloat($(this).data(price)); upsell_total + upsell_price; }); total_price total_price + toppings_toppings_price + upsell_total; $(this).parent().parent().parent().find(.popup-item-price).html($+formatNumber(total_price)); get_item_option(parent_div); } }); $(.item-option-radio-list).live(click, function(){ var parent_div $(this).closest(li).attr(id); var multiple_io $(this).attr(multiple-io); var mio_id $(this).attr(mio-id); if(typeof multiple_io undefined || multiple_io false){ $(#+ parent_div + .item-option-radio-list).attr(checked, false); $(this).attr(checked, true); } else{ var min_io $(this).attr(min-io); var max_io $(this).attr(max-io); if($(#+parent_div+ name+$(this).attr(name)+:checked).length > min_io){ $(this).parent().parent().css({padding:, border:}); } if(max_io 1 && $(#+parent_div+ name+$(this).attr(name)+:checked).length > 1){ $(#+parent_div+ name+$(this).attr(name)+).attr(checked, false); $(this).attr(checked, true); } else if($(#+parent_div+ name+$(this).attr(name)+:checked).length > max_io){ $(#+last_io_selectedmio_id).attr(checked, false); } last_io_selectedmio_id $(this).attr(id); } checked_io($(this), template4); get_item_option(parent_div); }); $(.menu-option-radio-list).live(click, function(){ // code for the new settings called customise_popup var group_id $(this).attr(ref); var menu_id $(this).attr(menu-id); var plu $(this).attr(plu); var old_plu $(this).siblings(.input-group-label).hasClass(active) var hide_toppings $(this).siblings(.input-group-label).attr(hide_toppings); var parent_div $(this).closest(li).attr(id); var qty $(#+ parent_div + .qty).html(); var io $(#+ parent_div + .item-option-radio); $(#+ parent_div + #toppings_left).hide(); var default_toppings $(#+parent_div+ .current-toppings-checkbox).map(function(){ return $(this).attr(plu); }).get(); var current_toppings $(#+parent_div+ .current-toppings-checkbox:checked).map(function(){ return $(this).attr(plu); }).get(); var extra_toppings $(#+parent_div+ .extra-toppings-checkbox:checked).map(function(){ return $(this).attr(plu); }).get(); if(old_plu false){ if(plu){ if(hide_toppings 0){ get_condiments(plu, parent_div, current_toppings, extra_toppings, default_toppings); }else{ $(#+ parent_div + .popup-condiments).hide(); $(#+ parent_div + .popup-toppings).empty(); } } $(.popup-item-price).html(); $(#+ parent_div + .popup-orig-price).html(0); var popup_price $(this).siblings(.input-group-label).children(#popup-price).html(); popup_price parseFloat(popup_price.replace($, )); var upsell_total 0; $(#+parent_div+ .upsell-item-chkbox:checked).each(function(){ var upsell_price parseFloat($(this).data(price)); upsell_total + upsell_price; }); var total_price (parseFloat(popup_price) * parseInt(qty)) + upsell_total; $(#+ parent_div + .popup-item-price).html($+formatNumber(total_price)); } // for the icon checked besides the label of radio button $(this).parent().parent().find(.check-img-popup).attr(src,); $(this).parent().parent().find(.input-group-label).removeClass(active); $(this).siblings(.input-group-label).children(.check-img-popup).attr(src,https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/icon-check.png); $(this).siblings(.input-group-label).addClass(active); //fix for safari img shown as broken image $(this).parent().parent().find(.check-img-popup).css(visibility,hidden); $(this).siblings(.input-group-label).children(.check-img-popup).css(visibility,visible); $(#+parent_div+ inputnamemenu-item-option-radio-+group_id+).attr(checked, false); $(this).attr(checked, true); $(# + group_id).attr(ref, $(this).val()); if(old_plu false){ $(#+ parent_div + .item-option-radio-menu).hide(); $(#+parent_div+ .radio-button-popup).attr(disabled,disabled); // to prevent multiple item option when radio button is spammed if (io) { io.empty(); $.ajax({ url: core/ajax/item_options.php, type: POST, data: { plu: plu }, dataType: json, success: function (data) { // For item-options that was hidden because of no item option on default size // We need to show it else hide if no data was returned if(Object.keys(data).length > 1 && data){ $(#+ parent_div + .item-option-radio-menu).show(); $(io).fadeIn(0); if(data.hasOwnProperty(multiple_io)){ delete datamultiple_io; var io_ctr 1; $.each(data, function(key, value){ item_option_list(value, group_id, menu_id, io, true, key.trim(), io_ctr); io_ctr++; }); } else{ item_option_list(data, group_id, menu_id, io, false, , 0); } }else{ $(#+ parent_div + .item-option-radio-menu).hide(); } if (!$(#+parent_div+ inputnameitem-option-radio-+group_id+:checked).val()) { // if no item option is checked, we make the first item the default //fix for safari img shown as broken image $(#+parent_div+ input:radionameitem-option-radio-+group_id+:not(:disabled):first).attr(checked, true); $(#+parent_div+ input:radionameitem-option-radio-+group_id+:not(:disabled):first).siblings(.input-group-label).children(.check-img-popup).attr(src,https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/icon-check.png).css(visibility,visible); $(#add-popup-+group_id+-+menu_id).find(input:not(:checked)).siblings(.input-group-label).find(.check-img-popup).css(visibility,hidden); } $(#+parent_div+ .radio-button-popup).attr(disabled, false); }, complete: function (data) { get_item_option(parent_div); // Reset Styles for WEB-573 Line separation on the item modal $(#+ parent_div + .item-option-radio-menu).css(border-bottom, none); $(#+ parent_div + .popup-current-toppings).css(border-top, none); $(#+ parent_div + #extra-toppings).css(border-top, none); var line_chk_01 $(#+ parent_div + .menu-item-option-popup).children().length > 0; var line_chk_02 $(#+ parent_div + .item-option-radio-menu).children().length > 0; var line_chk_03 $(#+ parent_div + .popup-current-toppings).children().length > 0; var line_chk_04 $(#+ parent_div + #extra-toppings).children().length > 0; if(line_chk_01 true && $(#+ parent_div + .item-option-radio-menu).length > 0) { $(#+ parent_div + .item-option-radio-menu)0.style.setProperty(border-top, 1px solid #00000038, important); } if((line_chk_01 || line_chk_02) && $(#+ parent_div + .popup-current-toppings).length > 0) { $(#+ parent_div + .popup-current-toppings)0.style.setProperty(border-top, 1px solid #00000038, important); } if((line_chk_01 || line_chk_02 || line_chk_03) && $(#+ parent_div + #extra-toppings).length > 0) { $(#+ parent_div + #extra-toppings)0.style.setProperty(border-top, 1px solid #00000038, important); } if((line_chk_01 || line_chk_02 || line_chk_03 || line_chk_04) && $(#+ parent_div + .upsell-header).length > 0) { $(#+ parent_div + .upsell-header)0.style.setProperty(border-top, 1px solid #00000038, important); } } }); } } }); function isNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); } var items {}; var free_toppings_list ; function calculateItems() { var total 0; for (var plu in items) { total + itemsplu; } return total; } if(load_once){ $(.extra-toppings-checkbox).live(change, function () { var parent_div $(this).closest(.modal-popup).closest(li).attr(id); var popup_price $(#+ parent_div + .popup-item-price).html(); var toppings_price $(#+ parent_div + .popup-orig-price).html(); var qty $(#+ parent_div + .qty).html(); var counter_free_extras 0; var max_toppings; var num_free_extra 0; var price 0; if($(#+ parent_div + #max_toppings).length){ max_toppings $(#+ parent_div + #max_toppings p).html(); }else{ max_toppings 12; } if($(#+ parent_div + #num-free-toppings).length){ num_free_extra $(#+ parent_div + #num-free-toppings).html(); num_free_orig $(#+ parent_div + #num-free-orig).html(); } var plu $(this).attr(plu); var cur_toppings $(#+parent_div+ .extra-toppings-checkbox::checked).length; //will happen if there is no set limit var remaining_ max_toppings - cur_toppings; // the text is valid since it always being updated by priceBase function // PREVENT ADDING MORE ITEMS if (remaining_ 0) { $(#+ parent_div + #toppings_left).show().delay(1000).fadeOut(); $(#+ parent_div + #toppings_left).html(You have reached the extras limit of +max_toppings); $(this).prop(checked, false); return false; }else{ $(#+ parent_div + #toppings_left).hide(); $(#+ parent_div + #toppings_left).html(); } // Update the price fetching, now respects the order type // Please NOTE that overridden condiment prices will reflect on both pickup/delivery var order_type pickup; price $(this).attr(value); if(!price || price 0){ price order_type pickup ? $(this).data(sell-shop) : (order_type delivery ? $(this).data(sell-delivery) : $(this).data(sell-table)); } if($(#+ parent_div + #num-free-toppings).length){ if (num_free_extra > 0 && this.checked) { price 0; $(#+parent_div+ #num-free-toppings).html(parseFloat(num_free_extra) - 1); $(this).addClass(free_item); }else if(num_free_extra 0 && this.checked){ $(#+parent_div+ #num-free-toppings).html(0); $(this).removeClass(free_item); }else if(cur_toppings num_free_orig){ price 0; $(#+parent_div+ #num-free-toppings).html(parseFloat(num_free_extra) + 1); $(this).removeClass(free_item); } else if(!this.checked) { //Check if the checkbox is uncheck counter_free_extras + 1; $(this).removeClass(free_item); } } if(price null || price undefined || !price){ price 0; } var popup_orig parseFloat($(#+ parent_div + .active #popup-price).html().replace($, )); if(this.checked){ price price; }else{ if(counter_free_extras > 0){ price (price > 0) ? -+price : Math.abs(price); let free_topping_checked $(#+parent_div+ .extra-toppings-checkbox.free_item::checked).length; if(free_topping_checked num_free_orig){ $(#+parent_div+ .extra-toppings-checkbox::checked).not(.free_item).each(function(){ $(this).addClass(free_item); var free_item_price $(this).attr(value); if(!free_item_price || free_item_price 0){ free_item_price order_type pickup ? $(this).data(sell-shop) : (order_type delivery ? $(this).data(sell-delivery) : $(this).data(sell-table)); } if(!free_item_price || free_item_price undefined){ free_item_price 0; } toppings_price - free_item_price; popup_price parseFloat(popup_price.replace($, )) - free_item_price; price 0; free_topping_checked++; if(free_topping_checked > num_free_orig){ return false; } }); } } else{ price (price > 0) ? -+price : Math.abs(price); } } popup_price (typeof popup_price number) ? popup_price : parseFloat(popup_price.replace($, )); var item_total 0; var toppings_total 0; toppings_total parseFloat(price) + parseFloat(toppings_price); itemsplu parseFloat(price); $(#+ parent_div + .popup-orig-price).html(formatNumber(toppings_total)); price (qty) ? (price * qty) : price; item_total parseFloat(price) + popup_price; //Check if the free extras exceed and it will start add the price of toppings var upsell_total 0; $(#+parent_div+ .upsell-item-chkbox:checked).each(function(){ var upsell_price parseFloat($(this).data(price)); upsell_total + upsell_price; }); $(#+ parent_div + .popup-item-price).html($+formatNumber((item_total+upsell_total))); if($(#+ parent_div + #max_toppings).length){ var counter; if(this.checked){ counter 1; }else{ counter -+1; } max_toppings $(#+ parent_div + #max_toppings span).html(); var toppings_left max_toppings - counter; $(#+parent_div+ #max_toppings span).html(toppings_left); } }); } $(.customise-add-button).click(function () { if($(inputnamestorestatus).val()offline){ $.prompt($(#offline-alert-txt).html()); return; } var menu_id $(this).closest(#menu_items).attr(data-menuid); var parent_div $(this).closest(.modal-popup).closest(li).attr(id); var modal_div $(this).closest(.modal-popup).attr(id); var price $(#+ parent_div + .popup-item-price).html(); price parseFloat(price.replace($, )); var PLU $(this).attr(ref); var qty $(#+ parent_div + .qty).text(); qty (isNaN(qty)) ? 1 : qty; option_id; var mio_ids , mio_msg , mio_req 0; if($(#+ parent_div + .item-option-radio-list).length > 0){ $(#+ parent_div + .item-option-radio-list).each(function(){ if($(this).is(:checked)){ option_id + (option_id.trim()!) ? , : ; option_id + $(this).attr(ref); } if(typeof $(this).attr(mio-id) ! undefined && $(this).attr(mio_id) ! false){ mio_ids.push($(this).attr(mio-id)); } mio_ids ... new Set(mio_ids); }); if(typeof $(#+ parent_div + .item-option-radio-list:first).attr(multiple-io) ! undefined && $(#+ parent_div + .item-option-radio-list:first).attr(multiple-io) ! false){ var io_div; $.each(mio_ids, function(key, val){ var io_selected $(#+parent_div+ .item-option-radio-listmio-id+val+:checked).length, io_min $(#+parent_div+ .item-option-radio-listmio-id+val+:first).attr(min-io), io_max $(#+parent_div+ .item-option-radio-listmio-id+val+:first).attr(max-io), io_name $(#+parent_div+ .item-option-radio-listmio-id+val+:first).parent().siblings(div.item-option-group-name-+val).find(p).text(), io_container $(#+parent_div+ .item-option-radio-listmio-id+val+:first).parent().parent(); io_container.css({padding:, border:}); if(io_selected io_min){ io_container.css({padding:5px, border:1px solid red}); mio_req++; if(!io_div){ io_div io_container; } } else if(io_selected > io_max){ mio_msg.push(+io_name+ cant have more than +io_max); } }); if(mio_req > 0){ $.prompt(Please complete all sections to finish your order); $(#+modal_div+ .modal-body).scrollTop(0).scrollTop(io_div.position().top - 25); return false; } if(mio_msg.length > 0){ $.prompt(mio_msg.join(br/>)); return false; } $(#+parent_div+ .item-option-radio-list).attr(checked, false); checked_io($(#+parent_div+ .item-option-radio-list), template4); } else{ var default_io; default_io $(#+ parent_div + .item-option-radio-list:checked).attr(default-io); if(typeof default_io ! undefined && default_io ! false){ $(#+parent_div+ .item-option-radio-listref+default_io+).attr(checked, true); } else{ $(#+parent_div+ .item-option-radio-list:not(:disabled):first).attr(checked, true); } checked_io($(#+parent_div+ .item-option-radio-list:checked), template4); } } var topping_array new Array(3); var i 0; var f free_toppings_list.slice(); // to prevent mutation of the original list f.sort(); $(#+ parent_div + .toppings-checkbox).each(function () { if ($(this).hasClass(current_item) || ($(this).hasClass(extra-toppings-checkbox) && this.checked)){ var extra_plu $(this).attr(plu); var extra_price parseFloat(this.value); var unit_price parseFloat(this.value); var extra_qty (this.checked true ? 1 : -1); var is_current $(this).hasClass(current_item); var has_chargeable false; if (!extra_price) { extra_price 0; } if (!is_current || extra_qty 0 || extra_qty > 1) { if (is_current && extra_qty > 1) { extra_qty--; } if (is_current && extra_qty 0) { extra_price 0; }else if($(this).hasClass(free_item) || is_current){ extra_price 0; }else{ extra_price unit_price; } topping_arrayi new Array(3); topping_arrayi0 extra_plu; topping_arrayi1 (extra_qty * qty); topping_arrayi2 extra_price; i++; // we add it after if (has_chargeable true) { //increase the counter to prevent overwriting this index topping_arrayi new Array(3); topping_arrayi0 extra_plu; topping_arrayi1 1; topping_arrayi2 0; i++; } } } }); var payload {PLU: PLU, qty: qty, price: price, option_id: option_id, topping_array: topping_array, menu_id : menu_id}; if($(#+parent_div+ .upsell-item-chkbox:checked).length > 5){ $(#loading_bar).addClass(loading_bar).css(z-index, 911).html(div stylewidth:fit-content; background-color:#ffffff; padding:10px 15px; margin:0 15px; border-radius:5px;>+ i classfa-solid fa-circle-notch fa-spin stylefont-size:40px; margin-top:10px; margin-bottom:20px;>/i>+ br>span stylefont-size: 15px; font-weight: 600;>Adding to your cart. Almost done.../span>+ /div>); } $.ajax({ url: core/mybasket.php, type: POST, data: payload, success: function (data) { $(#view-basket).html(data); get_cart_total(); if (!$(#free_item_plu).length) { new PNotify({ text: Item added to order., width: 220px, delay: 3000, type: success }); } $(#+ parent_div + .popup-orig-price).html(0); option_id ; last_io_selected ; } }).done(function(){ var upsell_item {}; var c 0; $(#+parent_div+ .upsell-item-chkbox:checked).each(function(i){ var upsell_plu $(this).attr(data-plu); var upsell_price $(this).data(price); upsell_itemc.toString() { PLU: upsell_plu, price: upsell_price, qty: 1, menu_id: menu_id, is_upsell: true}; c++; }); if(Object.keys(upsell_item).length > 0) { $.ajax({ url: core/mybasket.php, type: POST, data: $.param(upsell_item), success: function (data) { $(#loading_bar).removeClass(loading_bar).css(z-index, ).html(); $(#view-basket).html(data); get_cart_total(); if (!$(#free_item_plu).length) { new PNotify({ text: Item added to order., width: 220px, delay: 3000, type: success }); } } }); } }); }); function get_cart_total(){ $(#cartTotal).load(core/ajax/get_cart_total.php?page+PAGE_NAME, function(data){ $(#cartTotal, .cartTotal).html($+data); }); } $(#promo_button).click(function(){ if($(inputnamestorestatus).val()offline){ $.prompt($(#offline-alert-txt).html()); return; } $(#loading_bar).html(img srchttps://d2ova09jg8x3xk.cloudfront.net/chicknbao.com.au/images/ajax-loader.gif>); $(#loading_bar).center(); var PLU $(this).find(#add-prompt).attr(ref); var qty $(#promo_button #+PLU+-qty).val(); var price $(#promo_button #+PLU+-price).val(); // greater than 1 because do not include the 1st item, which is :: Please select :: if($(#promotional_content #+PLU+-item-option option).length > 1) { var option_id $(#promotional_content #+PLU+-item-option).val(); } var menu_id $(this).parents(#menu_items).data(menuid); $.ajax({ url: core/mybasket.php, type: POST, data: { PLU:PLU, qty:qty, price:price, option_id:option_id, menu_id:menu_id }, success: function(data){ $(#loading_bar).html(); get_cart_total(); $(#view-basket).html(data); last_io_selected ; if (!$(#free_item_plu).length) { new PNotify({ text: Item added to order., width: 220px, delay: 3000, type: success }); } $(#promotional_container).removeClass(active); } }); }); $(.add-button).click(function(){ var parent_div $(this).closest(li).attr(id); var modal_div $(this).closest(.modal-popup).attr(id); if($(inputnamestorestatus).val()offline){ $.prompt($(#offline-alert-txt).html()); return; } $(#loading_bar).html(img srchttps://d2ova09jg8x3xk.cloudfront.net/chicknbao.com.au/images/ajax-loader.gif>); $(#loading_bar).center(); var PLU $(this).attr(ref); if(!isNaN(PLU)){ var qty $(#+parent_div).find(#+PLU+-qty).val(); var price $(#+parent_div).find(+#+PLU+-price).val(); }else{ var qty $(#+parent_div+ #+PLU+-qty).val(); var price $(#+parent_div+ #+PLU+-price).val(); } var group_id $(this).attr(id); //check if item is from promotional prompt if(qty null && price null && $(this).attr(id)promo_button){ var PLU $(this).find(#add-prompt).attr(ref); var qty $(#promo_button #+PLU+-qty).val(); var price $(#promo_button #+PLU+-price).val(); // greater than 1 because do not include the 1st item, which is :: Please select :: if($(#promotional_content #+PLU+-item-option option).length > 1) { var option_id $(#promotional_content #+PLU+-item-option).val(); } } if($(#+parent_div+ #menu-+group_id).length > 0){ price $(#+parent_div+ #menu-+group_id+ option:selected).attr(ref); qty $(#+parent_div+ #qty-+group_id).val(); if($(#+parent_div+ .qty-label-popup).length > 0){ // if popup is enabled then we override the qty qty $(#+parent_div+ #qty-+group_id).text(); var price $(#+parent_div+ inputnamemenu-item-option-radio-+group_id+:checked).attr(price); if(qty 0){ // if item option only then we override the qty qty $(#+parent_div+ #qty-+PLU).text(); } } } var default_io, mio_ids , mio_msg , mio_req 0; if($(#+ parent_div + .item-option-radio-list).length > 0){ option_id; $(#+ parent_div + .item-option-radio-list).each(function(){ if($(this).is(:checked)){ option_id + (option_id.trim()!) ? , : ; option_id + $(this).attr(ref); } if(typeof $(this).attr(mio-id) ! undefined && $(this).attr(mio_id) ! false){ mio_ids.push($(this).attr(mio-id)); } mio_ids ... new Set(mio_ids); }); if(typeof $(#+ parent_div + .item-option-radio-list:first).attr(multiple-io) ! undefined && $(#+ parent_div + .item-option-radio-list:first).attr(multiple-io) ! false){ var io_div; $.each(mio_ids, function(key, val){ var io_selected $(#+parent_div+ .item-option-radio-listmio-id+val+:checked).length, io_min $(#+parent_div+ .item-option-radio-listmio-id+val+:first).attr(min-io), io_max $(#+parent_div+ .item-option-radio-listmio-id+val+:first).attr(max-io), io_name $(#+parent_div+ .item-option-radio-listmio-id+val+:first).parent().siblings(div.item-option-group-name-+val).find(p).text(), io_container $(#+parent_div+ .item-option-radio-listmio-id+val+:first).parent().parent(); io_container.css({padding:, border:}); if(io_selected io_min){ io_container.css({padding:5px, border:1px solid red}); mio_req++; if(!io_div){ io_div io_container; } } else if(io_selected > io_max){ mio_msg.push(+io_name+ cant have more than +io_max); } }); if(mio_req > 0){ $.prompt(Please complete all sections to finish your order); $(#+modal_div+ .modal-body).scrollTop(0).scrollTop(io_div.position().top - 25); $(#loading_bar).html(); return false; } if(mio_msg.length > 0){ $.prompt(mio_msg.join(br/>)); $(#loading_bar).html(); return false; } $(#+parent_div+ .item-option-radio-list).attr(checked, false); checked_io($(#+parent_div+ .item-option-radio-list), template4); } else{ default_io $(#+ parent_div + .item-option-radio-list:checked).attr(default-io); if(typeof default_io ! undefined && default_io ! false){ $(#+parent_div+ inputnameitem-option-radio-+group_id+ref+default_io+).attr(checked, true); } else{ $(#+parent_div+ inputnameitem-option-radio-+group_id+:not(:disabled):first).attr(checked, true); } checked_io($(#+parent_div+ .item-option-radio-list:checked), template4); } } var menu_id $(this).parents(#menu_items).data(menuid); $.ajax({ url: core/mybasket.php, type: POST, data: { PLU:PLU, qty:qty, price:price, option_id:option_id, menu_id:menu_id }, success: function(data){ $(#loading_bar).html(); get_cart_total(); $(#view-basket).html(data); last_io_selected ; if (!$(#free_item_plu).length) { new PNotify({ text: Item added to order., width: 220px, delay: 3000, type: success }); } $(#promotional_container).removeClass(active); } }); }); $(.menu-item-option.form-control).change(function () { var parent_div $(this).closest(li).attr(id); var group_id $(this).attr(ref); var plu $(this).val(); $(#customise- + group_id).attr(ref, $(this).val()); $(# + group_id).attr(ref, $(this).val()); // we hide the custom button when it has hide-custom attr var hide_custom $(#+parent_div+ #menu- + group_id + option:selected).attr(hide-custom); if (hide_custom){ $(#+parent_div+ #menu-+ group_id).parent().siblings(.item-add-buttons).children(.customise-page).css(display, none); }else{ $(#+parent_div+ #menu-+ group_id).parent().siblings(.item-add-buttons).children(.customise-page).css(display, inline-block); } var io $(this).closest(li).find(.item-options); if (io) { var item_option io.val(); $(io).attr(id,plu+-option-id); io.empty(); $.ajax({ url: core/ajax/item_options.php, type: POST, data: { plu: plu }, dataType: json, success: function (data) { // For item-options that was hidden because of no item option on default size // We need to show it else hide if no data was returned if(data.length > 1 && data){ $(io).fadeIn(0); var io_ids data.map(function(key, value) { return keyid; }); }else{ var io_ids ; $(io).fadeOut(0); } var option_selected; $.each(data, function (key, value) { //console.log(value.option_id); var price_txt (value.item_price > 0) ? - $ + value.item_price : ; if(item_option ! null && io_ids.includes(item_option)){ option_selected item_option; } else{ if(value.default_item_option_id value.id){ option_selected value.id; } } $(option />, { value: value.id, text: value.item_name + price_txt, ref: value.price }).appendTo(io) }); if(option_selected){ io.val(option_selected); } } }); option_id $(this).closest(li).find(.item-options).val(); } }); if(check_store_stat() offline) { $(#item-buttons .add-button, .item-add-buttons .customise-add-button).live(click, function(){ if (check_store_stat() online) { location.reload(); } }); } //if condition end //end Refresh page function }); //Refresh page function when closing modal OOA-1543 function check_store_stat() { var client_code $(#client_code).val(); var data_status ; $.ajax({ type: POST, async: false, url: core/ajax/check_store_status.php, data: {client_code: client_code}, success: function(data) { data_status data; } }); //ajax end return data_status; } //function check_store_stat() end function get_item_option(parent_div){ option_id ; if($(#+ parent_div + .item-option-radio-list).length){ var popup_price $(#+ parent_div + .active #popup-price).html(); if(popup_price){ popup_price parseFloat(popup_price.replace($, )); var item_option_price 0; var item_option_ref; if($(#+ parent_div + .item-option-radio-list:checked).length){ $(#+ parent_div + .item-option-radio-list:checked).each(function(){ item_option_price + ($(this).val() ! undefined) ? parseFloat($(this).val()) : 0; item_option_ref + (item_option_ref.trim()!) ? , : ; item_option_ref + $(this).attr(ref); }); } var toppings_price $(#+ parent_div + .popup-orig-price).html(); toppings_price parseFloat(toppings_price.replace($, )); var popup_qty $(#+ parent_div + .qty).html(); var toppings_toppings_price parseFloat(toppings_price) * parseInt(popup_qty); item_option_price item_option_price * parseInt(popup_qty); popup_price popup_price * parseInt(popup_qty); var upsell_total 0; $(#+parent_div+ .upsell-item-chkbox:checked).each(function(){ var upsell_price parseFloat($(this).data(price)); upsell_total + upsell_price; }); var total_prices popup_price + toppings_toppings_price + item_option_price + upsell_total; $(#+ parent_div + .popup-item-price).html($+formatNumber(total_prices)); option_id $(#+ parent_div + .item-option-radio-list:checked).attr(ref); } } } /script> div idmenu-items styledisplay:block>div classmenu-item mi-599676 idbutterfly-fried-chicken-block style> h1>Butterfly Fried Chicken/h1> div idmenu_items data-menuid599676> div idmenu-desc-header>div classalert alert-danger butterfly-fried-chicken-block-active-time hide-menu-active-times styledisplay:none; data-from0 data-till0>Available only during 09:30 am - 09:30 am /div>/div> ul idbutterfly-fried-chicken> li idPCButterflyFriedChicken_18569659_599676 style classsingle data-track-itemstrue data-plu1be3cbd6-f8ce-4a74-8ea7-f0aa95fd3fb8 data-item-name1PC Butterfly Fried Chicken data-item-categoryButterfly Fried Chicken data-price6.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>1PC Butterfly Fried Chicken/div>div classitem-price pt-0>span classdollar-sign>$/span>6.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty id1be3cbd6-f8ce-4a74-8ea7-f0aa95fd3fb8-qty ref1be3cbd6-f8ce-4a74-8ea7-f0aa95fd3fb8 classqty-select qty form-control>/select> input typehidden value6.95 id1be3cbd6-f8ce-4a74-8ea7-f0aa95fd3fb8-price />select classitem-options form-control styledisplay:none; id1be3cbd6-f8ce-4a74-8ea7-f0aa95fd3fb8-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-1be3cbd6-f8ce-4a74-8ea7-f0aa95fd3fb8 ref1be3cbd6-f8ce-4a74-8ea7-f0aa95fd3fb8/>/div>/div>/li>li idPCSButterflyFriedChicken_18569660_599676 style classsingle data-track-itemstrue data-plu52e73223-3f6b-4dda-bc05-122ce0ed7a79 data-item-name6PCS Butterfly Fried Chicken data-item-categoryButterfly Fried Chicken data-price14.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>6PCS Butterfly Fried Chicken/div>div classitem-price pt-0>span classdollar-sign>$/span>14.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty id52e73223-3f6b-4dda-bc05-122ce0ed7a79-qty ref52e73223-3f6b-4dda-bc05-122ce0ed7a79 classqty-select qty form-control>/select> input typehidden value14.95 id52e73223-3f6b-4dda-bc05-122ce0ed7a79-price />select classitem-options form-control styledisplay:none; id52e73223-3f6b-4dda-bc05-122ce0ed7a79-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-52e73223-3f6b-4dda-bc05-122ce0ed7a79 ref52e73223-3f6b-4dda-bc05-122ce0ed7a79/>/div>/div>/li>li idChickenBoxMeal_18569661_599676 style classsingle data-track-itemstrue data-pludc427dcf-3176-4f9a-a5a3-fea2d0c54584 data-item-nameChicken Box Meal data-item-categoryButterfly Fried Chicken data-price19.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Chicken Box Meal/div>div classitem-price pt-0>span classdollar-sign>$/span>19.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty iddc427dcf-3176-4f9a-a5a3-fea2d0c54584-qty refdc427dcf-3176-4f9a-a5a3-fea2d0c54584 classqty-select qty form-control>/select> input typehidden value19.95 iddc427dcf-3176-4f9a-a5a3-fea2d0c54584-price />select classitem-options form-control styledisplay:none; iddc427dcf-3176-4f9a-a5a3-fea2d0c54584-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-dc427dcf-3176-4f9a-a5a3-fea2d0c54584 refdc427dcf-3176-4f9a-a5a3-fea2d0c54584/>/div>/div>/li> /ul> div classspacer>/div> /div> /div>div classmenu-item mi-599677 idboneless-bites-block style> h1>Boneless Bites/h1> div idmenu_items data-menuid599677> div idmenu-desc-header>div classalert alert-danger boneless-bites-block-active-time hide-menu-active-times styledisplay:none; data-from0 data-till0>Available only during 09:30 am - 09:30 am /div>/div> ul idboneless-bites> li idRegularBonelessBites_18569662_599677 style classsingle data-track-itemstrue data-plu1e3714f1-12d4-4a16-aeea-bf798e4be02b data-item-nameRegular Boneless Bites data-item-categoryBoneless Bites data-price11.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Regular Boneless Bites/div>div classitem-price pt-0>span classdollar-sign>$/span>11.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty id1e3714f1-12d4-4a16-aeea-bf798e4be02b-qty ref1e3714f1-12d4-4a16-aeea-bf798e4be02b classqty-select qty form-control>/select> input typehidden value11.95 id1e3714f1-12d4-4a16-aeea-bf798e4be02b-price />select classitem-options form-control styledisplay:none; id1e3714f1-12d4-4a16-aeea-bf798e4be02b-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-1e3714f1-12d4-4a16-aeea-bf798e4be02b ref1e3714f1-12d4-4a16-aeea-bf798e4be02b/>/div>/div>/li>li idLargeBoneless_18569663_599677 style classsingle data-track-itemstrue data-plu1b18f919-b320-41ef-8346-14ee09e2aa3d data-item-nameLarge Boneless data-item-categoryBoneless Bites data-price22.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Large Boneless/div>div classitem-price pt-0>span classdollar-sign>$/span>22.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty id1b18f919-b320-41ef-8346-14ee09e2aa3d-qty ref1b18f919-b320-41ef-8346-14ee09e2aa3d classqty-select qty form-control>/select> input typehidden value22.95 id1b18f919-b320-41ef-8346-14ee09e2aa3d-price />select classitem-options form-control styledisplay:none; id1b18f919-b320-41ef-8346-14ee09e2aa3d-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-1b18f919-b320-41ef-8346-14ee09e2aa3d ref1b18f919-b320-41ef-8346-14ee09e2aa3d/>/div>/div>/li>li idChickenSkinSmall_18569664_599677 style classsingle data-track-itemstrue data-plud9e5db16-896c-4014-872d-ad3f29521fbf data-item-nameChicken Skin Small data-item-categoryBoneless Bites data-price7.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Chicken Skin Small/div>div classitem-price pt-0>span classdollar-sign>$/span>7.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty idd9e5db16-896c-4014-872d-ad3f29521fbf-qty refd9e5db16-896c-4014-872d-ad3f29521fbf classqty-select qty form-control>/select> input typehidden value7.95 idd9e5db16-896c-4014-872d-ad3f29521fbf-price />select classitem-options form-control styledisplay:none; idd9e5db16-896c-4014-872d-ad3f29521fbf-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-d9e5db16-896c-4014-872d-ad3f29521fbf refd9e5db16-896c-4014-872d-ad3f29521fbf/>/div>/div>/li>li idChickenskinLarge_18569665_599677 style classsingle data-track-itemstrue data-plu2f23b0c1-d703-49dc-80be-a2e0a72ef435 data-item-nameChicken skin Large data-item-categoryBoneless Bites data-price14.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Chicken skin Large/div>div classitem-price pt-0>span classdollar-sign>$/span>14.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty id2f23b0c1-d703-49dc-80be-a2e0a72ef435-qty ref2f23b0c1-d703-49dc-80be-a2e0a72ef435 classqty-select qty form-control>/select> input typehidden value14.95 id2f23b0c1-d703-49dc-80be-a2e0a72ef435-price />select classitem-options form-control styledisplay:none; id2f23b0c1-d703-49dc-80be-a2e0a72ef435-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-2f23b0c1-d703-49dc-80be-a2e0a72ef435 ref2f23b0c1-d703-49dc-80be-a2e0a72ef435/>/div>/div>/li>li idChipsLarge_18569666_599677 style classsingle data-track-itemstrue data-pluea858cc3-3fa6-4e58-a5fb-919c714cb6a8 data-item-nameChips Large data-item-categoryBoneless Bites data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Chips Large/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty idea858cc3-3fa6-4e58-a5fb-919c714cb6a8-qty refea858cc3-3fa6-4e58-a5fb-919c714cb6a8 classqty-select qty form-control>/select> input typehidden value9.95 idea858cc3-3fa6-4e58-a5fb-919c714cb6a8-price />select classitem-options form-control styledisplay:none; idea858cc3-3fa6-4e58-a5fb-919c714cb6a8-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-ea858cc3-3fa6-4e58-a5fb-919c714cb6a8 refea858cc3-3fa6-4e58-a5fb-919c714cb6a8/>/div>/div>/li>li idChipsregular_18569667_599677 style classsingle data-track-itemstrue data-plub63c16c7-4438-45a0-b9f3-73f96d6930c5 data-item-nameChips regular data-item-categoryBoneless Bites data-price5.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Chips regular/div>div classitem-price pt-0>span classdollar-sign>$/span>5.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty idb63c16c7-4438-45a0-b9f3-73f96d6930c5-qty refb63c16c7-4438-45a0-b9f3-73f96d6930c5 classqty-select qty form-control>/select> input typehidden value5.95 idb63c16c7-4438-45a0-b9f3-73f96d6930c5-price />select classitem-options form-control styledisplay:none; idb63c16c7-4438-45a0-b9f3-73f96d6930c5-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-b63c16c7-4438-45a0-b9f3-73f96d6930c5 refb63c16c7-4438-45a0-b9f3-73f96d6930c5/>/div>/div>/li> /ul> div classspacer>/div> /div> /div>div classmenu-item mi-599678 idchicken-wings-and-nibbles-block style> h1>Chicken Wings and Nibbles/h1> div idmenu_items data-menuid599678> div idmenu-desc-header>div classalert alert-danger chicken-wings-and-nibbles-block-active-time hide-menu-active-times styledisplay:none; data-from0 data-till0>Available only during 09:30 am - 09:30 am /div>/div> ul idchicken-wings-and-nibbles> li idpcChickenWingsandNibbles_18569668_599678 style classsingle data-track-itemstrue data-plu0a635027-8a26-4264-a222-ada29e122f9a data-item-name1pc Chicken Wings and Nibbles data-item-categoryChicken Wings and Nibbles data-price1.50 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>1pc Chicken Wings and Nibbles/div>div classitem-price pt-0>span classdollar-sign>$/span>1.50/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty id0a635027-8a26-4264-a222-ada29e122f9a-qty ref0a635027-8a26-4264-a222-ada29e122f9a classqty-select qty form-control>/select> input typehidden value1.5 id0a635027-8a26-4264-a222-ada29e122f9a-price />select classitem-options form-control styledisplay:none; id0a635027-8a26-4264-a222-ada29e122f9a-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-0a635027-8a26-4264-a222-ada29e122f9a ref0a635027-8a26-4264-a222-ada29e122f9a/>/div>/div>/li>li idWingSnackPack_18569669_599678 style classsingle data-track-itemstrue data-plud42e3d15-3c50-4766-908e-cd0aa8d78554 data-item-nameWing Snack Pack data-item-categoryChicken Wings and Nibbles data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Wing Snack Pack/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty idd42e3d15-3c50-4766-908e-cd0aa8d78554-qty refd42e3d15-3c50-4766-908e-cd0aa8d78554 classqty-select qty form-control>/select> input typehidden value9.95 idd42e3d15-3c50-4766-908e-cd0aa8d78554-price />select classitem-options form-control styledisplay:none; idd42e3d15-3c50-4766-908e-cd0aa8d78554-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-d42e3d15-3c50-4766-908e-cd0aa8d78554 refd42e3d15-3c50-4766-908e-cd0aa8d78554/>/div>/div>/li> /ul> div classspacer>/div> /div> /div>div classmenu-item mi-599679 idbao-buns-block style> h1>Bao Buns/h1> div idmenu_items data-menuid599679> div idmenu-desc-header>div classalert alert-danger bao-buns-block-active-time hide-menu-active-times styledisplay:none; data-from0 data-till0>Available only during 09:30 am - 09:30 am /div>/div> ul idbao-buns> li idSoutherStyleFriedChicken_18569670_599679 style classsingle data-track-itemstrue data-plu63ad0bb7-1fdb-41d5-9107-3bf8ca569805 data-item-nameSouther Style Fried Chicken data-item-categoryBao Buns data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Souther Style Fried Chicken/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-63ad0bb7-1fdb-41d5-9107-3bf8ca569805-599679 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Souther Style Fried Chicken/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-63ad0bb7-1fdb-41d5-9107-3bf8ca569805 class radio-button-popup menu-option-radio-list value63ad0bb7-1fdb-41d5-9107-3bf8ca569805 price9.95 ref63ad0bb7-1fdb-41d5-9107-3bf8ca569805 id63ad0bb7-1fdb-41d5-9107-3bf8ca569805 plu63ad0bb7-1fdb-41d5-9107-3bf8ca569805 checkedchecked> label for63ad0bb7-1fdb-41d5-9107-3bf8ca569805 classactive input-group-label stylefont-weight: normal; >span idpopup-price>$9.95/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-63ad0bb7-1fdb-41d5-9107-3bf8ca569805 ref63ad0bb7-1fdb-41d5-9107-3bf8ca569805>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703968 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Bao Buns Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170970 nameitem-option-radio-63ad0bb7-1fdb-41d5-9107-3bf8ca569805-703968 classitem-option-radio-list value17.95 iditem-option-63ad0bb7-1fdb-41d5-9107-3bf8ca569805-599679-3170970 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-63ad0bb7-1fdb-41d5-9107-3bf8ca569805-599679-3170970 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Bao buns - $17.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170971 nameitem-option-radio-63ad0bb7-1fdb-41d5-9107-3bf8ca569805-703968 classitem-option-radio-list value9.95 iditem-option-63ad0bb7-1fdb-41d5-9107-3bf8ca569805-599679-3170971 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-63ad0bb7-1fdb-41d5-9107-3bf8ca569805-599679-3170971 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1 PC Bao bun - $9.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-id63ad0bb7-1fdb-41d5-9107-3bf8ca569805>i classglyphicon glyphicon-minus>/i>/button> label idqty-63ad0bb7-1fdb-41d5-9107-3bf8ca569805 classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-id63ad0bb7-1fdb-41d5-9107-3bf8ca569805>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button id63ad0bb7-1fdb-41d5-9107-3bf8ca569805 ref63ad0bb7-1fdb-41d5-9107-3bf8ca569805 price9.95 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-63ad0bb7-1fdb-41d5-9107-3bf8ca569805-599679 id63ad0bb7-1fdb-41d5-9107-3bf8ca569805 menu-id599679 ref63ad0bb7-1fdb-41d5-9107-3bf8ca569805 /> input typehidden value9.95 id63ad0bb7-1fdb-41d5-9107-3bf8ca569805-price /> /div>/div>/div>/li>li idCrispyBreadedPork_18569671_599679 style classsingle data-track-itemstrue data-plu3f7ad519-1f79-4252-8411-cb9f158573ef data-item-nameCrispy Breaded Pork data-item-categoryBao Buns data-price0 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Crispy Breaded Pork/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-3f7ad519-1f79-4252-8411-cb9f158573ef-599679 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Crispy Breaded Pork/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-3f7ad519-1f79-4252-8411-cb9f158573ef class radio-button-popup menu-option-radio-list value3f7ad519-1f79-4252-8411-cb9f158573ef price0 ref3f7ad519-1f79-4252-8411-cb9f158573ef id3f7ad519-1f79-4252-8411-cb9f158573ef plu3f7ad519-1f79-4252-8411-cb9f158573ef checkedchecked> label for3f7ad519-1f79-4252-8411-cb9f158573ef classactive input-group-label stylefont-weight: normal; >span idpopup-price>$0/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-3f7ad519-1f79-4252-8411-cb9f158573ef ref3f7ad519-1f79-4252-8411-cb9f158573ef>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703968 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Bao Buns Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170970 nameitem-option-radio-3f7ad519-1f79-4252-8411-cb9f158573ef-703968 classitem-option-radio-list value17.95 iditem-option-3f7ad519-1f79-4252-8411-cb9f158573ef-599679-3170970 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-3f7ad519-1f79-4252-8411-cb9f158573ef-599679-3170970 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Bao buns - $17.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170971 nameitem-option-radio-3f7ad519-1f79-4252-8411-cb9f158573ef-703968 classitem-option-radio-list value9.95 iditem-option-3f7ad519-1f79-4252-8411-cb9f158573ef-599679-3170971 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-3f7ad519-1f79-4252-8411-cb9f158573ef-599679-3170971 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1 PC Bao bun - $9.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-id3f7ad519-1f79-4252-8411-cb9f158573ef>i classglyphicon glyphicon-minus>/i>/button> label idqty-3f7ad519-1f79-4252-8411-cb9f158573ef classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-id3f7ad519-1f79-4252-8411-cb9f158573ef>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button id3f7ad519-1f79-4252-8411-cb9f158573ef ref3f7ad519-1f79-4252-8411-cb9f158573ef price0 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-3f7ad519-1f79-4252-8411-cb9f158573ef-599679 id3f7ad519-1f79-4252-8411-cb9f158573ef menu-id599679 ref3f7ad519-1f79-4252-8411-cb9f158573ef /> input typehidden value0 id3f7ad519-1f79-4252-8411-cb9f158573ef-price /> /div>/div>/div>/li>li idKoreanStyleBBQPulledPork_18569672_599679 style classsingle data-track-itemstrue data-plu4ba94caf-2582-4e95-a044-8889d1bc120c data-item-nameKorean Style BBQ Pulled Pork data-item-categoryBao Buns data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Korean Style BBQ Pulled Pork/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-4ba94caf-2582-4e95-a044-8889d1bc120c-599679 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Korean Style BBQ Pulled Pork/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-4ba94caf-2582-4e95-a044-8889d1bc120c class radio-button-popup menu-option-radio-list value4ba94caf-2582-4e95-a044-8889d1bc120c price9.95 ref4ba94caf-2582-4e95-a044-8889d1bc120c id4ba94caf-2582-4e95-a044-8889d1bc120c plu4ba94caf-2582-4e95-a044-8889d1bc120c checkedchecked> label for4ba94caf-2582-4e95-a044-8889d1bc120c classactive input-group-label stylefont-weight: normal; >span idpopup-price>$9.95/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-4ba94caf-2582-4e95-a044-8889d1bc120c ref4ba94caf-2582-4e95-a044-8889d1bc120c>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703968 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Bao Buns Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170970 nameitem-option-radio-4ba94caf-2582-4e95-a044-8889d1bc120c-703968 classitem-option-radio-list value17.95 iditem-option-4ba94caf-2582-4e95-a044-8889d1bc120c-599679-3170970 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-4ba94caf-2582-4e95-a044-8889d1bc120c-599679-3170970 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Bao buns - $17.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170971 nameitem-option-radio-4ba94caf-2582-4e95-a044-8889d1bc120c-703968 classitem-option-radio-list value9.95 iditem-option-4ba94caf-2582-4e95-a044-8889d1bc120c-599679-3170971 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-4ba94caf-2582-4e95-a044-8889d1bc120c-599679-3170971 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1 PC Bao bun - $9.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-id4ba94caf-2582-4e95-a044-8889d1bc120c>i classglyphicon glyphicon-minus>/i>/button> label idqty-4ba94caf-2582-4e95-a044-8889d1bc120c classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-id4ba94caf-2582-4e95-a044-8889d1bc120c>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button id4ba94caf-2582-4e95-a044-8889d1bc120c ref4ba94caf-2582-4e95-a044-8889d1bc120c price9.95 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-4ba94caf-2582-4e95-a044-8889d1bc120c-599679 id4ba94caf-2582-4e95-a044-8889d1bc120c menu-id599679 ref4ba94caf-2582-4e95-a044-8889d1bc120c /> input typehidden value9.95 id4ba94caf-2582-4e95-a044-8889d1bc120c-price /> /div>/div>/div>/li>li idChunkyPepperSteak_18569673_599679 style classsingle data-track-itemstrue data-plu62b3e448-9e8e-4b52-9818-c9427caac5e6 data-item-nameChunky Pepper Steak data-item-categoryBao Buns data-price0 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Chunky Pepper Steak/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-62b3e448-9e8e-4b52-9818-c9427caac5e6-599679 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Chunky Pepper Steak/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-62b3e448-9e8e-4b52-9818-c9427caac5e6 class radio-button-popup menu-option-radio-list value62b3e448-9e8e-4b52-9818-c9427caac5e6 price0 ref62b3e448-9e8e-4b52-9818-c9427caac5e6 id62b3e448-9e8e-4b52-9818-c9427caac5e6 plu62b3e448-9e8e-4b52-9818-c9427caac5e6 checkedchecked> label for62b3e448-9e8e-4b52-9818-c9427caac5e6 classactive input-group-label stylefont-weight: normal; >span idpopup-price>$0/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-62b3e448-9e8e-4b52-9818-c9427caac5e6 ref62b3e448-9e8e-4b52-9818-c9427caac5e6>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703968 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Bao Buns Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170970 nameitem-option-radio-62b3e448-9e8e-4b52-9818-c9427caac5e6-703968 classitem-option-radio-list value17.95 iditem-option-62b3e448-9e8e-4b52-9818-c9427caac5e6-599679-3170970 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-62b3e448-9e8e-4b52-9818-c9427caac5e6-599679-3170970 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Bao buns - $17.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170971 nameitem-option-radio-62b3e448-9e8e-4b52-9818-c9427caac5e6-703968 classitem-option-radio-list value9.95 iditem-option-62b3e448-9e8e-4b52-9818-c9427caac5e6-599679-3170971 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-62b3e448-9e8e-4b52-9818-c9427caac5e6-599679-3170971 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1 PC Bao bun - $9.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-id62b3e448-9e8e-4b52-9818-c9427caac5e6>i classglyphicon glyphicon-minus>/i>/button> label idqty-62b3e448-9e8e-4b52-9818-c9427caac5e6 classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-id62b3e448-9e8e-4b52-9818-c9427caac5e6>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button id62b3e448-9e8e-4b52-9818-c9427caac5e6 ref62b3e448-9e8e-4b52-9818-c9427caac5e6 price0 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-62b3e448-9e8e-4b52-9818-c9427caac5e6-599679 id62b3e448-9e8e-4b52-9818-c9427caac5e6 menu-id599679 ref62b3e448-9e8e-4b52-9818-c9427caac5e6 /> input typehidden value0 id62b3e448-9e8e-4b52-9818-c9427caac5e6-price /> /div>/div>/div>/li>li idCrispyPrawn_18569674_599679 style classsingle data-track-itemstrue data-plud0afed0f-ad60-4209-a52a-ffaaa547870e data-item-nameCrispy Prawn data-item-categoryBao Buns data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Crispy Prawn/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-d0afed0f-ad60-4209-a52a-ffaaa547870e-599679 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Crispy Prawn/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-d0afed0f-ad60-4209-a52a-ffaaa547870e class radio-button-popup menu-option-radio-list valued0afed0f-ad60-4209-a52a-ffaaa547870e price9.95 refd0afed0f-ad60-4209-a52a-ffaaa547870e idd0afed0f-ad60-4209-a52a-ffaaa547870e plud0afed0f-ad60-4209-a52a-ffaaa547870e checkedchecked> label ford0afed0f-ad60-4209-a52a-ffaaa547870e classactive input-group-label stylefont-weight: normal; >span idpopup-price>$9.95/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-d0afed0f-ad60-4209-a52a-ffaaa547870e refd0afed0f-ad60-4209-a52a-ffaaa547870e>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703968 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Bao Buns Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170970 nameitem-option-radio-d0afed0f-ad60-4209-a52a-ffaaa547870e-703968 classitem-option-radio-list value17.95 iditem-option-d0afed0f-ad60-4209-a52a-ffaaa547870e-599679-3170970 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-d0afed0f-ad60-4209-a52a-ffaaa547870e-599679-3170970 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Bao buns - $17.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170971 nameitem-option-radio-d0afed0f-ad60-4209-a52a-ffaaa547870e-703968 classitem-option-radio-list value9.95 iditem-option-d0afed0f-ad60-4209-a52a-ffaaa547870e-599679-3170971 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-d0afed0f-ad60-4209-a52a-ffaaa547870e-599679-3170971 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1 PC Bao bun - $9.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-idd0afed0f-ad60-4209-a52a-ffaaa547870e>i classglyphicon glyphicon-minus>/i>/button> label idqty-d0afed0f-ad60-4209-a52a-ffaaa547870e classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-idd0afed0f-ad60-4209-a52a-ffaaa547870e>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button idd0afed0f-ad60-4209-a52a-ffaaa547870e refd0afed0f-ad60-4209-a52a-ffaaa547870e price9.95 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-d0afed0f-ad60-4209-a52a-ffaaa547870e-599679 idd0afed0f-ad60-4209-a52a-ffaaa547870e menu-id599679 refd0afed0f-ad60-4209-a52a-ffaaa547870e /> input typehidden value9.95 idd0afed0f-ad60-4209-a52a-ffaaa547870e-price /> /div>/div>/div>/li>li idCrispyPork_18569675_599679 style classsingle data-track-itemstrue data-pluf709c35b-e1ca-4a53-bd14-c8043b7d9c31 data-item-nameCrispy Pork data-item-categoryBao Buns data-price0 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Crispy Pork/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-f709c35b-e1ca-4a53-bd14-c8043b7d9c31-599679 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Crispy Pork/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-f709c35b-e1ca-4a53-bd14-c8043b7d9c31 class radio-button-popup menu-option-radio-list valuef709c35b-e1ca-4a53-bd14-c8043b7d9c31 price0 reff709c35b-e1ca-4a53-bd14-c8043b7d9c31 idf709c35b-e1ca-4a53-bd14-c8043b7d9c31 pluf709c35b-e1ca-4a53-bd14-c8043b7d9c31 checkedchecked> label forf709c35b-e1ca-4a53-bd14-c8043b7d9c31 classactive input-group-label stylefont-weight: normal; >span idpopup-price>$0/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-f709c35b-e1ca-4a53-bd14-c8043b7d9c31 reff709c35b-e1ca-4a53-bd14-c8043b7d9c31>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703968 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Bao Buns Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170970 nameitem-option-radio-f709c35b-e1ca-4a53-bd14-c8043b7d9c31-703968 classitem-option-radio-list value17.95 iditem-option-f709c35b-e1ca-4a53-bd14-c8043b7d9c31-599679-3170970 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-f709c35b-e1ca-4a53-bd14-c8043b7d9c31-599679-3170970 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Bao buns - $17.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170971 nameitem-option-radio-f709c35b-e1ca-4a53-bd14-c8043b7d9c31-703968 classitem-option-radio-list value9.95 iditem-option-f709c35b-e1ca-4a53-bd14-c8043b7d9c31-599679-3170971 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-f709c35b-e1ca-4a53-bd14-c8043b7d9c31-599679-3170971 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1 PC Bao bun - $9.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-idf709c35b-e1ca-4a53-bd14-c8043b7d9c31>i classglyphicon glyphicon-minus>/i>/button> label idqty-f709c35b-e1ca-4a53-bd14-c8043b7d9c31 classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-idf709c35b-e1ca-4a53-bd14-c8043b7d9c31>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button idf709c35b-e1ca-4a53-bd14-c8043b7d9c31 reff709c35b-e1ca-4a53-bd14-c8043b7d9c31 price0 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-f709c35b-e1ca-4a53-bd14-c8043b7d9c31-599679 idf709c35b-e1ca-4a53-bd14-c8043b7d9c31 menu-id599679 reff709c35b-e1ca-4a53-bd14-c8043b7d9c31 /> input typehidden value0 idf709c35b-e1ca-4a53-bd14-c8043b7d9c31-price /> /div>/div>/div>/li>li idVegetarian_18569676_599679 style classsingle data-track-itemstrue data-plu114603f6-c2f2-44a9-b606-a0b778388275 data-item-nameVegetarian data-item-categoryBao Buns data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Vegetarian/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-114603f6-c2f2-44a9-b606-a0b778388275-599679 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Vegetarian/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-114603f6-c2f2-44a9-b606-a0b778388275 class radio-button-popup menu-option-radio-list value114603f6-c2f2-44a9-b606-a0b778388275 price9.95 ref114603f6-c2f2-44a9-b606-a0b778388275 id114603f6-c2f2-44a9-b606-a0b778388275 plu114603f6-c2f2-44a9-b606-a0b778388275 checkedchecked> label for114603f6-c2f2-44a9-b606-a0b778388275 classactive input-group-label stylefont-weight: normal; >span idpopup-price>$9.95/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-114603f6-c2f2-44a9-b606-a0b778388275 ref114603f6-c2f2-44a9-b606-a0b778388275>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703968 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Bao Buns Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170970 nameitem-option-radio-114603f6-c2f2-44a9-b606-a0b778388275-703968 classitem-option-radio-list value17.95 iditem-option-114603f6-c2f2-44a9-b606-a0b778388275-599679-3170970 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-114603f6-c2f2-44a9-b606-a0b778388275-599679-3170970 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Bao buns - $17.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170971 nameitem-option-radio-114603f6-c2f2-44a9-b606-a0b778388275-703968 classitem-option-radio-list value9.95 iditem-option-114603f6-c2f2-44a9-b606-a0b778388275-599679-3170971 multiple-iotrue mio-id703968 min-io1 max-io1 > label foritem-option-114603f6-c2f2-44a9-b606-a0b778388275-599679-3170971 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1 PC Bao bun - $9.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-id114603f6-c2f2-44a9-b606-a0b778388275>i classglyphicon glyphicon-minus>/i>/button> label idqty-114603f6-c2f2-44a9-b606-a0b778388275 classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-id114603f6-c2f2-44a9-b606-a0b778388275>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button id114603f6-c2f2-44a9-b606-a0b778388275 ref114603f6-c2f2-44a9-b606-a0b778388275 price9.95 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-114603f6-c2f2-44a9-b606-a0b778388275-599679 id114603f6-c2f2-44a9-b606-a0b778388275 menu-id599679 ref114603f6-c2f2-44a9-b606-a0b778388275 /> input typehidden value9.95 id114603f6-c2f2-44a9-b606-a0b778388275-price /> /div>/div>/div>/li>li idSpicyBuffaloChicken_18569677_599679 style classsingle data-track-itemstrue data-plub307ea32-5f31-455e-b423-9cdfabc94680 data-item-nameSpicy Buffalo Chicken data-item-categoryBao Buns data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Spicy Buffalo Chicken/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty idb307ea32-5f31-455e-b423-9cdfabc94680-qty refb307ea32-5f31-455e-b423-9cdfabc94680 classqty-select qty form-control>/select> input typehidden value9.95 idb307ea32-5f31-455e-b423-9cdfabc94680-price />select classitem-options form-control styledisplay:none; idb307ea32-5f31-455e-b423-9cdfabc94680-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-b307ea32-5f31-455e-b423-9cdfabc94680 refb307ea32-5f31-455e-b423-9cdfabc94680/>/div>/div>/li>li idPorkShrimpSiomais_18569678_599679 style classsingle data-track-itemstrue data-plue0068f43-926d-435a-a2f3-68af2c42069d data-item-namePork & Shrimp Siomai 4's data-item-categoryBao Buns data-price8.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Pork & Shrimp Siomai 4s/div>div classitem-price pt-0>span classdollar-sign>$/span>8.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> select nameqty ide0068f43-926d-435a-a2f3-68af2c42069d-qty refe0068f43-926d-435a-a2f3-68af2c42069d classqty-select qty form-control>/select> input typehidden value8.95 ide0068f43-926d-435a-a2f3-68af2c42069d-price />select classitem-options form-control styledisplay:none; ide0068f43-926d-435a-a2f3-68af2c42069d-option-id>/select>div classitem-add-buttons>input typebutton nameAdd valueAdd classadd-button idadd-e0068f43-926d-435a-a2f3-68af2c42069d refe0068f43-926d-435a-a2f3-68af2c42069d/>/div>/div>/li> /ul> div classspacer>/div> /div> /div>div classmenu-item mi-599680 idsteamed-bun-block style> h1>Steamed Bun/h1> div idmenu_items data-menuid599680> div idmenu-desc-header>div classalert alert-danger steamed-bun-block-active-time hide-menu-active-times styledisplay:none; data-from0 data-till0>Available only during 09:30 am - 09:30 am /div>/div> ul idsteamed-bun> li idPulledPorkAsado_18569679_599680 style classsingle data-track-itemstrue data-plu7f269c0a-8bd8-4b09-9da0-2aa549bf98cb data-item-namePulled Pork Asado data-item-categorySteamed Bun data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Pulled Pork Asado/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-599680 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Pulled Pork Asado/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb class radio-button-popup menu-option-radio-list value7f269c0a-8bd8-4b09-9da0-2aa549bf98cb price9.95 ref7f269c0a-8bd8-4b09-9da0-2aa549bf98cb id7f269c0a-8bd8-4b09-9da0-2aa549bf98cb plu7f269c0a-8bd8-4b09-9da0-2aa549bf98cb checkedchecked> label for7f269c0a-8bd8-4b09-9da0-2aa549bf98cb classactive input-group-label stylefont-weight: normal; >span idpopup-price>$9.95/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb ref7f269c0a-8bd8-4b09-9da0-2aa549bf98cb>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703969 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Steamed Bun Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170972 nameitem-option-radio-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-703969 classitem-option-radio-list value6.95 iditem-option-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-599680-3170972 multiple-iotrue mio-id703969 min-io1 max-io1 > label foritem-option-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-599680-3170972 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1PC Steamed bun - $6.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170973 nameitem-option-radio-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-703969 classitem-option-radio-list value12.95 iditem-option-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-599680-3170973 multiple-iotrue mio-id703969 min-io1 max-io1 > label foritem-option-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-599680-3170973 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Steamed bun - $12.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-id7f269c0a-8bd8-4b09-9da0-2aa549bf98cb>i classglyphicon glyphicon-minus>/i>/button> label idqty-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-id7f269c0a-8bd8-4b09-9da0-2aa549bf98cb>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button id7f269c0a-8bd8-4b09-9da0-2aa549bf98cb ref7f269c0a-8bd8-4b09-9da0-2aa549bf98cb price9.95 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-599680 id7f269c0a-8bd8-4b09-9da0-2aa549bf98cb menu-id599680 ref7f269c0a-8bd8-4b09-9da0-2aa549bf98cb /> input typehidden value9.95 id7f269c0a-8bd8-4b09-9da0-2aa549bf98cb-price /> /div>/div>/div>/li>li idPorkBallwithEggBolaBola_18569680_599680 style classsingle data-track-itemstrue data-plu44ca938d-ae31-4582-bf71-e88c4668ffb3 data-item-namePork Ball with Egg Bola Bola data-item-categorySteamed Bun data-price0 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Pork Ball with Egg Bola Bola/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-44ca938d-ae31-4582-bf71-e88c4668ffb3-599680 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Pork Ball with Egg Bola Bola/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-44ca938d-ae31-4582-bf71-e88c4668ffb3 class radio-button-popup menu-option-radio-list value44ca938d-ae31-4582-bf71-e88c4668ffb3 price0 ref44ca938d-ae31-4582-bf71-e88c4668ffb3 id44ca938d-ae31-4582-bf71-e88c4668ffb3 plu44ca938d-ae31-4582-bf71-e88c4668ffb3 checkedchecked> label for44ca938d-ae31-4582-bf71-e88c4668ffb3 classactive input-group-label stylefont-weight: normal; >span idpopup-price>$0/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-44ca938d-ae31-4582-bf71-e88c4668ffb3 ref44ca938d-ae31-4582-bf71-e88c4668ffb3>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703969 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Steamed Bun Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170972 nameitem-option-radio-44ca938d-ae31-4582-bf71-e88c4668ffb3-703969 classitem-option-radio-list value6.95 iditem-option-44ca938d-ae31-4582-bf71-e88c4668ffb3-599680-3170972 multiple-iotrue mio-id703969 min-io1 max-io1 > label foritem-option-44ca938d-ae31-4582-bf71-e88c4668ffb3-599680-3170972 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1PC Steamed bun - $6.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170973 nameitem-option-radio-44ca938d-ae31-4582-bf71-e88c4668ffb3-703969 classitem-option-radio-list value12.95 iditem-option-44ca938d-ae31-4582-bf71-e88c4668ffb3-599680-3170973 multiple-iotrue mio-id703969 min-io1 max-io1 > label foritem-option-44ca938d-ae31-4582-bf71-e88c4668ffb3-599680-3170973 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Steamed bun - $12.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-id44ca938d-ae31-4582-bf71-e88c4668ffb3>i classglyphicon glyphicon-minus>/i>/button> label idqty-44ca938d-ae31-4582-bf71-e88c4668ffb3 classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-id44ca938d-ae31-4582-bf71-e88c4668ffb3>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button id44ca938d-ae31-4582-bf71-e88c4668ffb3 ref44ca938d-ae31-4582-bf71-e88c4668ffb3 price0 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-44ca938d-ae31-4582-bf71-e88c4668ffb3-599680 id44ca938d-ae31-4582-bf71-e88c4668ffb3 menu-id599680 ref44ca938d-ae31-4582-bf71-e88c4668ffb3 /> input typehidden value0 id44ca938d-ae31-4582-bf71-e88c4668ffb3-price /> /div>/div>/div>/li>li idChickenAdobo_18569681_599680 style classsingle data-track-itemstrue data-plu0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 data-item-nameChicken Adobo data-item-categorySteamed Bun data-price0 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Chicken Adobo/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-599680 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Chicken Adobo/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 class radio-button-popup menu-option-radio-list value0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 price0 ref0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 id0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 plu0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 checkedchecked> label for0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 classactive input-group-label stylefont-weight: normal; >span idpopup-price>$0/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 ref0a2a496c-d3c2-45d1-ad79-88e0ee0a9221>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703969 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Steamed Bun Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170972 nameitem-option-radio-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-703969 classitem-option-radio-list value6.95 iditem-option-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-599680-3170972 multiple-iotrue mio-id703969 min-io1 max-io1 > label foritem-option-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-599680-3170972 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1PC Steamed bun - $6.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170973 nameitem-option-radio-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-703969 classitem-option-radio-list value12.95 iditem-option-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-599680-3170973 multiple-iotrue mio-id703969 min-io1 max-io1 > label foritem-option-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-599680-3170973 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Steamed bun - $12.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-id0a2a496c-d3c2-45d1-ad79-88e0ee0a9221>i classglyphicon glyphicon-minus>/i>/button> label idqty-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-id0a2a496c-d3c2-45d1-ad79-88e0ee0a9221>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button id0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 ref0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 price0 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-599680 id0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 menu-id599680 ref0a2a496c-d3c2-45d1-ad79-88e0ee0a9221 /> input typehidden value0 id0a2a496c-d3c2-45d1-ad79-88e0ee0a9221-price /> /div>/div>/div>/li>li idSlowCookedChunkyBeef_18569682_599680 style classsingle data-track-itemstrue data-plue271895b-494f-4612-8c0c-5e8b1f6da871 data-item-nameSlow Cooked Chunky Beef data-item-categorySteamed Bun data-price9.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Slow Cooked Chunky Beef/div>div classitem-price pt-0>span classdollar-sign>$/span>9.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-e271895b-494f-4612-8c0c-5e8b1f6da871-599680 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Slow Cooked Chunky Beef/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-e271895b-494f-4612-8c0c-5e8b1f6da871 class radio-button-popup menu-option-radio-list valuee271895b-494f-4612-8c0c-5e8b1f6da871 price9.95 refe271895b-494f-4612-8c0c-5e8b1f6da871 ide271895b-494f-4612-8c0c-5e8b1f6da871 plue271895b-494f-4612-8c0c-5e8b1f6da871 checkedchecked> label fore271895b-494f-4612-8c0c-5e8b1f6da871 classactive input-group-label stylefont-weight: normal; >span idpopup-price>$9.95/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-e271895b-494f-4612-8c0c-5e8b1f6da871 refe271895b-494f-4612-8c0c-5e8b1f6da871>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703969 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Steamed Bun Options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170972 nameitem-option-radio-e271895b-494f-4612-8c0c-5e8b1f6da871-703969 classitem-option-radio-list value6.95 iditem-option-e271895b-494f-4612-8c0c-5e8b1f6da871-599680-3170972 multiple-iotrue mio-id703969 min-io1 max-io1 > label foritem-option-e271895b-494f-4612-8c0c-5e8b1f6da871-599680-3170972 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>1PC Steamed bun - $6.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170973 nameitem-option-radio-e271895b-494f-4612-8c0c-5e8b1f6da871-703969 classitem-option-radio-list value12.95 iditem-option-e271895b-494f-4612-8c0c-5e8b1f6da871-599680-3170973 multiple-iotrue mio-id703969 min-io1 max-io1 > label foritem-option-e271895b-494f-4612-8c0c-5e8b1f6da871-599680-3170973 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>2PCS Steamed bun - $12.95img src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-ide271895b-494f-4612-8c0c-5e8b1f6da871>i classglyphicon glyphicon-minus>/i>/button> label idqty-e271895b-494f-4612-8c0c-5e8b1f6da871 classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-ide271895b-494f-4612-8c0c-5e8b1f6da871>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button ide271895b-494f-4612-8c0c-5e8b1f6da871 refe271895b-494f-4612-8c0c-5e8b1f6da871 price9.95 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-e271895b-494f-4612-8c0c-5e8b1f6da871-599680 ide271895b-494f-4612-8c0c-5e8b1f6da871 menu-id599680 refe271895b-494f-4612-8c0c-5e8b1f6da871 /> input typehidden value9.95 ide271895b-494f-4612-8c0c-5e8b1f6da871-price /> /div>/div>/div>/li> /ul> div classspacer>/div> /div> /div>div classmenu-item mi-599681 idchicken-and-bao-block style> h1>Chicken and Bao/h1> div idmenu_items data-menuid599681> div idmenu-desc-header>div classalert alert-danger chicken-and-bao-block-active-time hide-menu-active-times styledisplay:none; data-from0 data-till0>Available only during 09:30 am - 09:30 am /div>/div> ul idchicken-and-bao> li idChickenandBao_18569683_599681 style classsingle data-track-itemstrue data-pluac41af2e-6b6c-4423-9535-aecc5d08b0e1 data-item-nameChicken and Bao data-item-categoryChicken and Bao data-price14.95 >span classmi-loader styledisplay:none;>/span>div classitem-block-no-image>div classitem-title-container>div classitem-title styleword-break: break-word; padding-bottom: 5px;>Chicken and Bao/div>div classitem-price pt-0>span classdollar-sign>$/span>14.95/div>/div>div classclear>/div>div classitem-description>/div>div iditem-buttons> div classmodal modal-popup fade idadd-popup-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681 roledialog> div classmodal-dialog modal-dialog-popup > div classmodal-content modal-content-popup> div classmodal-header> p classclose close-popup data-dismissmodal>×/p> h4 classmodal-title stylecolor: black; padding-bottom: 5px; font-weight: 600;>Chicken and Bao/h4> div classmodal-title item-description-popup stylefont-size: 13px>/div> /div> div classmodal-body stylebackground: #ececec78;>div styledisplay:none; classinput-group-radio> input typeradio styledisplay:none; namemenu-item-option-radio-ac41af2e-6b6c-4423-9535-aecc5d08b0e1 class radio-button-popup menu-option-radio-list valueac41af2e-6b6c-4423-9535-aecc5d08b0e1 price14.95 refac41af2e-6b6c-4423-9535-aecc5d08b0e1 idac41af2e-6b6c-4423-9535-aecc5d08b0e1 pluac41af2e-6b6c-4423-9535-aecc5d08b0e1 checkedchecked> label forac41af2e-6b6c-4423-9535-aecc5d08b0e1 classactive input-group-label stylefont-weight: normal; >span idpopup-price>$14.95/span>img classcheck-img-popup stylefloat: right; align-self:center>/label> /div>div classmenu-item-option> div classmenu-item-option idmenu-ac41af2e-6b6c-4423-9535-aecc5d08b0e1 refac41af2e-6b6c-4423-9535-aecc5d08b0e1>/div>/div>div classitem-option-radio item-option-only row>div classmulti-option-select> div classmulti-option-name item-option-group-name-703970 styleposition:relative; float:left; width:100%;> p stylecolor:black; font-size:15px; font-weight:600;width:100%>Flavor options/p> span stylefont-size:15px; color:#a1a1a1;>Required/span> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170974 nameitem-option-radio-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-703970 classitem-option-radio-list value0 iditem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170974 multiple-iotrue mio-id703970 min-io1 max-io1 > label foritem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170974 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>Tzatziki sauceimg src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170975 nameitem-option-radio-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-703970 classitem-option-radio-list value0 iditem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170975 multiple-iotrue mio-id703970 min-io1 max-io1 > label foritem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170975 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>Tomatoimg src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170976 nameitem-option-radio-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-703970 classitem-option-radio-list value0 iditem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170976 multiple-iotrue mio-id703970 min-io1 max-io1 > label foritem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170976 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>BBQimg src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170977 nameitem-option-radio-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-703970 classitem-option-radio-list value0 iditem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170977 multiple-iotrue mio-id703970 min-io1 max-io1 > label foritem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170977 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>Spicy Buffaloimg src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170978 nameitem-option-radio-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-703970 classitem-option-radio-list value0 iditem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170978 multiple-iotrue mio-id703970 min-io1 max-io1 > label foritem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170978 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>Sweet Chilliimg src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:0px; padding-left:15px;> input typecheckbox styledisplay:none; ref3170979 nameitem-option-radio-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-703970 classitem-option-radio-list value0 iditem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170979 multiple-iotrue mio-id703970 min-io1 max-io1 > label foritem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170979 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>Gravyimg src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>div classinput-group-radio item-option-input-group col-sm-6 stylepadding-right:15px; padding-left:0px;> input typecheckbox styledisplay:none; ref3170980 nameitem-option-radio-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-703970 classitem-option-radio-list value0 iditem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170980 multiple-iotrue mio-id703970 min-io1 max-io1 > label foritem-option-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681-3170980 stylefont-weight:normal !important; padding:5px 10px; border-radius:5px; user-select:none; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; display:flex; justify-content: space-between classinput-group-label input-group-label-template2 input-group-label-default>Snowy Cheeseimg src classcheck-img-popup stylefloat:right; align-self:center>/label> /div>/div>/div>/div> div classmodal-footer styletext-align: center; position: relative;> div classfooter_mobile>/div> div classfooter_overlay>/div> div classitem-add-buttons stylewidth:100%> div classcol-md-3 stylepadding: 0;>div classqty-selection>button classbtn qty-btn-popup qty-btn-popup-minus ref-group-idac41af2e-6b6c-4423-9535-aecc5d08b0e1>i classglyphicon glyphicon-minus>/i>/button> label idqty-ac41af2e-6b6c-4423-9535-aecc5d08b0e1 classqty-label-popup qty stylepadding: 0 5%>1/label> button classbtn qty-btn-popup qty-btn-popup-plus ref-group-idac41af2e-6b6c-4423-9535-aecc5d08b0e1>i classglyphicon glyphicon-plus>/i>/button>/div>/div> div classcol-md-6> input stylepadding: 10px 0 !important; width: 100%; border-radius: 0px !important; typebutton nameAdd valueAdd data-dismissmodal classadd-button idac41af2e-6b6c-4423-9535-aecc5d08b0e1 refac41af2e-6b6c-4423-9535-aecc5d08b0e1 price14.95 /> /div> div classcol-md-3 stylepadding: 0;> p classpopup-orig-price styletext-align: right; display:none;>0/p> p classpopup-item-price styletext-align: right;>/p> /div> /div> /div> /div> /div> /div> div classitem-add-popup> input typebutton nameAdd valueAdd classadd-button-popup data-togglemodal data-target#add-popup-ac41af2e-6b6c-4423-9535-aecc5d08b0e1-599681 idac41af2e-6b6c-4423-9535-aecc5d08b0e1 menu-id599681 refac41af2e-6b6c-4423-9535-aecc5d08b0e1 /> input typehidden value14.95 idac41af2e-6b6c-4423-9535-aecc5d08b0e1-price /> /div>/div>/div>/li> /ul> div classspacer>/div> /div> /div>script>$(document).ready(function(){pullMenuActiveTime(true); var bLazy new Blazy();});/script>/div>/div>script> var hh_cur_toppings 0, hh_cur_toppings_tmp 0, hh_max_toppings 12, deal_max_toppings 12, deal_num_free_extra 0, deal_toppings_list new Array(), deal_hh_left_plu new Array(), deal_hh_right_plu new Array(), deal_hh_item_option new Array(), deal_hh_left_array new Array(), deal_hh_right_array new Array(), deal_toppings_ajax, deal_hh_toppings_ajax, hh_item_option_ajax, hh_toppings_ajax; /** * checks if the limit is reached. returns FALSE for INVALID */ function checkMaxToppingsLimit(isDeal, dealPLU, ref, whichHalf){ var first_toppings 0; var second_toppings 0; if(!hh_max_toppings){ var _lo_max_toppings 12; // default // this value is set by cache }else{ var _lo_max_toppings hh_max_toppings; } if(isDeal undefined){ first_toppings $(.first-accordion li input:checked).length; second_toppings $(.second-accordion li input:checked).length; } else{ first_toppings $(.+dealPLU+-+ref+-first-accordion li input:checked).length; second_toppings $(.+dealPLU+-+ref+-second-accordion li input:checked).length; } var remaining _lo_max_toppings - (first_toppings + second_toppings); if(remaining 0){ remaining 0; } if(isDeal undefined){ $(.hh-remaining-topping).html(remaining); } else{ $(.modal-deals .modal-body #deal-modal-body-hh-selection-+dealPLU+-+ref+ .deal-hh-remaining-topping).html(remaining); $(#deal-hh-remaining-topping-+dealPLU+-+ref).val(remaining); } if((first_toppings + second_toppings) > _lo_max_toppings){ return false; } return true; } function dealCheckMaxToppings(dealPLU, itemPLU, section){ var deal_toppings 0; $(#accordion-+dealPLU+-+itemPLU+-+section+ li input:checked).each(function(){ deal_toppings parseFloat(deal_toppings) + 1; }); return deal_toppings; } function deal_hh_extra_toppings(dealPLU, whichHalf, ref){ var cssClass, extra_price 0, currency $(#deal-price-+dealPLU).text(), halfhalftotal Number(currency.replace(/^0-9\.+/g,)), item_total 0, remaining 0; if(whichHalf first){ cssClass dealPLU+-second-+ref; } else if(whichHalf second){ cssClass dealPLU+-first-+ref; } else{ return false; } if($(.+cssClass+-accordion li input:checked).length > 0){ $(.+cssClass+-accordion li input:checked).each(function(){ if($(this).val()){ extra_price + (parseFloat($(this).val())); } }); } item_total halfhalftotal + extra_price; remaining hh_max_toppings - ($(.+dealPLU+-+ref+-first-accordion li input:checked).length + $(.+dealPLU+-+ref+-second-accordion li input:checked).length); $(.modal-deals .modal-body #deal-modal-body-hh-selection-+dealPLU+-+ref+ .deal-hh-remaining-topping).html(remaining); $(#deal-hh-remaining-topping-+dealPLU+-+ref).val(remaining); $(#deal-price-+dealPLU).html($+formatNumber(item_total)); } function dealGetTotal(dealPLU, closeModal){ var surcharge 0, item_option 0, toppings 0, hh_price 0, hh_item_option 0, hh_surcharge 0, deal_selection_price new Array(); if($(.deal-selected-item-+dealPLU).length > 0){ $(.deal-selected-item-+dealPLU).each(function(){ var hh_price_selection 0, surcharge_selection 0; if($(this).val() HH){ var ref $(this).attr(ref); if(typeof $(this).attr(price) ! undefined && $(this).attr(price) ! false){ hh_price_selection parseFloat($(this).attr(price)); hh_price + hh_price_selection; } if(typeof $(this).attr(hh-item-option-price) ! undefined && $(this).attr(hh-item-option-price) ! false){ hh_item_option + parseFloat($(this).attr(hh-item-option-price)); } if(typeof $(this).attr(hh-surcharge-price) ! undefined && $(this).attr(hh-surcharge-price) ! false){ hh_surcharge + parseFloat($(this).attr(hh-surcharge-price)); } } else if($(this).hasClass(hh-upgrade)){ if(typeof $(this).attr(hh-surcharge-price) ! undefined && $(this).attr(hh-surcharge-price) ! false){ hh_surcharge + parseFloat($(this).attr(hh-surcharge-price)); } } else{ var section $(this).attr(ref); var PLU $(this).val(); if(typeof $(this).attr(price) ! undefined && $(this).attr(price) ! false){ surcharge_selection parseFloat($(this).attr(price)); surcharge + surcharge_selection; } if($(inputnamedeal-item-option-+dealPLU+-+PLU+-+section+:checked).length > 0){ $(inputnamedeal-item-option-+dealPLU+-+PLU+-+section+:checked).each(function(){ if(typeof $(this).attr(price) ! undefined && $(this).attr(price) ! false){ item_option + parseFloat($(this).attr(price)); } }); } $(#accordion-+dealPLU+-+PLU+-+section+ li input:checked).each(function(){ if(!$(this).hasClass(free_item)){ toppings + parseFloat($(this).val()); } }); } deal_selection_price.push(formatNumber((hh_price_selection + surcharge_selection))); }); } if(typeof $(#add-popup-deals-+dealPLU).attr(deal-bogo) ! undefined && $(#add-popup-deals-+dealPLU).attr(deal-bogo) ! false && $(#add-popup-deals-+dealPLU).attr(deal-bogo) ! 0 && typeof $(#add-popup-deals-+dealPLU).attr(deal-selection) ! undefined && $(#add-popup-deals-+dealPLU).attr(deal-selection) ! false && $(#add-popup-deals-+dealPLU).attr(deal-selection) 2 && typeof closeModal undefined && deal_selection_price.length){ $(#deal-price-+dealPLU).html($+(Math.max(...deal_selection_price) + hh_item_option + hh_surcharge + item_option + toppings)); } else{ $(#deal-price-+dealPLU).html($+formatNumber((parseFloat($(#deal-price-+dealPLU).attr(orig-price)) + hh_price + hh_item_option + hh_surcharge + surcharge + item_option + toppings))); } } function modal_height(elem){ var target_modal $(elem); if($(window).width() 768){ var new_height $(window).height() - (target_modal.find(.modal-header).outerHeight() + target_modal.find(.modal-footer).outerHeight()) - 2; } else{ var new_height $(window).height() - (target_modal.find(.modal-header).outerHeight() + target_modal.find(.modal-footer).outerHeight()) - 150; } target_modal.find(.modal-body).css(min-height, new_height); target_modal.find(.modal-body).css(max-height, new_height); } // Array checking length on free items function isEmpty(obj){ for(var key in obj){ if(obj.hasOwnProperty(key)) return false; } return true; } function formatNumber(num){ // return num % 1 0 ? num.toString() : num.toFixed(2); return num.toFixed(2); } function deals_popup(resp, menu_id){ var menu_id (typeof menu_id undefined) ? PROMO : menu_id, deal_parent_id resp.deal_parent_id; deal_id resp.deal_id, deal_plu resp.promotional_plu, deal_promo_code resp.promocode, deal_modal_id deal_plu+-+menu_id, promo_modal_id #menu-items > #add-popup-deals-+deal_modal_id; $.ajax({ type: POST, url: core/ajax/deals_popup.php, async: true, data: { menu_id: menu_id, deal_id: deal_id, deal_plu: deal_plu, ...(menu_id UPSELL ? { upsell: 1 } : {}), }, beforeSend: function(){ if(!$(body > #menu-items).length){ $(div>, {id: menu-items}).css({display: block}).appendTo(body); } let mheader_class deal-loader-shimmer, mheader_style , mheader_text ; if(PROMO, UPSELL.includes(menu_id) || typeof deal_parent_id undefined){ mheader_text Retrieving deal details...; } else{ const deal_name $(#+deal_parent_id+ .item-title-container .item-title) .clone() // Clone the element .children(.item-icons-container) // Target the child to remove .remove() // Remove the icons container .end() // Go back to the cloned element .text() // Get the text content .trim(), deal_desc $(#+deal_parent_id+ .item-description).text(); mheader_class ; mheader_style background-color: unset;; mheader_text h4 classmodal-title stylecolor:#000 !important;>+deal_name+/h4>+ div classmodal-title item-description-popup stylecolor:#000 !important;>+deal_desc+/div> } $(body > #menu-items).prepend(+ div classmodal modal-popup modal-deals fade idadd-popup-deals-+deal_modal_id+ roledialog data-backdropstatic data-keyboardfalse>+ div classmodal-dialog modal-dialog-popup>+ div classmodal-content modal-content-popup>+ div classmodal-header+mheader_class+ style+mheader_style+>+ mheader_text+ /div>+ div classmodal-body stylemin-height:300px;>+ div classdeal-loader-shimmer title-line>/div>+ div classdeal-loader-shimmer title-line>/div>+ div classdeal-loader-shimmer title-line>/div>+ div classdeal-loader-shimmer title-line>/div>+ /div>+ div classmodal-footer styletext-align: center; position: relative;>+ div>+ /div>+ /div>+ /div> ); $j(promo_modal_id).modal(show); setTimeout(function(){ modal_height(promo_modal_id); }, 200); }, success: function(resp){ if(PROMO, UPSELL.includes(menu_id)){ $(promo_modal_id).addClass(deals-promo); } $(promo_modal_id+ > .modal-dialog > .modal-content).html(resp); $(promo_modal_id).attr(deal-selection, $(promo_modal_id+ > .modal-dialog > .modal-content > .modal-header).attr(deal-selection)); $(promo_modal_id).attr(deal-bogo, $(promo_modal_id+ > .modal-dialog > .modal-content > .modal-header).attr(deal-bogo)); $(promo_modal_id+ > .modal-dialog > .modal-content > .modal-header).removeAttr(deal-selection); $(promo_modal_id+ > .modal-dialog > .modal-content > .modal-header).removeAttr(deal-bogo); if(menu_id PROMO){ $(promo_modal_id+ .modal-header .message-container .promo-code-container).text(deal_promo_code); } $(modal-deals .modal-body .lds-ring).css(top, 30%); $(.modal-deals .modal-body #deal-modal-body-main-+deal_modal_id+, .modal-deals .modal-footer).removeClass(hide); $(.modal-deals .modal-footer #deal-modal-footer-add-+deal_modal_id).data(menu-id, null).removeClass(hide); $(.modal-deals .modal-footer #deal-modal-footer-add-+deal_modal_id+ button).prop(disabled, false); $(.modal-deals .modal-footer #deal-modal-footer-next-+deal_modal_id+ button).prop(disabled, true); $(.modal-deals .modal-footer #deal-modal-footer-add-+deal_modal_id).removeData(menu-id); $(.modal-deals .modal-footer #deal-modal-footer-add-+deal_modal_id).removeData(upsell); if(!PROMO, UPSELL.includes(menu_id)){ $(.modal-deals .modal-footer #deal-modal-footer-add-+deal_modal_id).data(menu-id, menu_id); } else if(menu_id UPSELL){ $(.modal-deals .modal-footer #deal-modal-footer-add-+deal_modal_id).data(upsell, 1) } if($(.modal-deals .modal-body #deal-modal-body-main-+deal_modal_id+ .deal-selection-items).length){ if($(.modal-deals .modal-body #deal-modal-body-main-+deal_modal_id+ .deal-selection-items).length 1){ var auto_expand $(.modal-deals .modal-body #deal-modal-body-main-+deal_modal_id+ .deal-selection-items).attr(auto-expand); if(typeof auto_expand ! undefined && auto_expand ! false){ if(auto_expand deal_selection){ $(.modal-deals .modal-body #deal-modal-body-main-+deal_modal_id+ .deal-selection-items).click(); $(.modal-deals .modal-footer #deal-modal-footer-next-+deal_modal_id+ button).text(Add to Order); } else if(auto_expand auto_customized_btn){ $(.modal-deals .modal-body #deal-modal-body-main-+deal_modal_id+ .deal-selection-items button.deal-selection-item).click(); $(.modal-deals .modal-footer #deal-modal-footer-next-+deal_modal_id+ button).text(Add to Order); } } } $(.modal-deals .modal-body #deal-modal-body-main-+deal_modal_id+ .deal-selection-items).each(function(){ var ref $(this).attr(ref); deal_hh_left_arrayparseInt(ref) - 1 ; deal_hh_right_arrayparseInt(ref) - 1 ; }); if(typeof $(#add-popup-deals-+deal_modal_id).attr(deal-bogo) ! undefined && $(#add-popup-deals-+deal_modal_id).attr(deal-bogo) 1){ $(.modal-deals .modal-body #deal-modal-body-selection-+deal_modal_id+ .deal-selected-item.auto-ds).each(function(){ $(this).attr(price, $(this).attr(auto-plu-price)); }); } } modal_height(promo_modal_id); }, error: function(xhr, status, error){ $(promo_modal_id+ .modal-header).removeClass(deal-loader-shimmer).addClass(header-error).html(+ Oops!+ p classclose close-popup deals-close-popup data-dismissmodal>×/p> ); $(promo_modal_id+ .modal-body).addClass(body-error).html(div styledisplay:flex; column-gap:5px; align-items:center;>i classfa-regular fa-circle-xmark>/i>span>Sorry, something went wrong. Please try again later./span>/div>); } }); } jQuery.fn.center function(){ this.css(position,absolute); this.css(top, ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + px); this.css(left, ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + px); return this; } $(document).ready(function(){ function get_cart_total(){ $(#cartTotal).load(https://chicknbao.com.au/core/ajax/get_cart_total.php?page+PAGE_NAME, function(data){ $(#cartTotal, .cartTotal).html($+data); }); } }); /script>script> if (sessionStorage.customisedItem) sessionStorage.removeItem(customisedItem); // remove data of customisedItem so when you return to customise_item page it will only display all the default toppings //var monitorDebugMode false; /** * This was based on id set in menu caching - In charge of display notif for menu active time * This is tightly coupled to the structure of menu blocks `{menu name}-block` */ function setMenuActiveTime(menuName, hide, data){ // Followed how menu-items.php sanitize title menuName menuName.replace(/\/,); // For some reason the php only puts quot instead of " in the className // This will handle and htmlencoded chars • which becaome • menuName menuName.replace(/(?&;).?/g,); menuName menuName.replace(/^a-zA-Z0-9_ ()-/g,); // CRM #5090 menu active times not working when it have slash, same regex in menu-items.php menuName menuName.replace(/()/g,) // CRM #5090 menu active times not working when it have parenthesis, same regex in menu-items.php menuName menuName.replace(/^0-9-+/g,); // WD-524 Unavailable item still adding on the cart (Platina), removed number at the start of menu-title var menuId (data && data.menuId ! undefined) ? data.menuId : ; if(data && data.newMenuNotif ! undefined){ $(#+menuName+-block.mi-+menuId+ #menu-desc-header .+menuName+-block-active-time).html(data.newMenuNotif); } $(#+menuName+-block.mi-+menuId+ #item-buttons span).hide(); $(#+menuName+-block.mi-+menuId+ #item-buttons .activetime_span:not(.deal_end_time)).remove(); // Menu is disabled - Hide the menu and show notif if(hide){ if (data.hide_when_unavailable 1) { $(#+menuName+-block.mi-+menuId).hide(); $(#menu #menu-ul li.menu- + menuId).hide(); } $(#+menuName+-block.mi-+menuId+ #menu-desc-header .+menuName+-block-active-time).show(); $(#+menuName+-block.mi-+menuId+ #item-buttons input).hide(); $(#+menuName+-block.mi-+menuId+ #item-buttons .add-half-half-bt).hide(); // for half half button still showing CRM # 5095 $(#+menuName+-block.mi-+menuId+ #item-buttons .qty-select).hide(); $(#+menuName+-block.mi-+menuId+ #item-buttons .menu-item-option select).hide(); $(#+menuName+-block.mi-+menuId+ #item-buttons .item-options).hide(); $(#+menuName+-block.mi-+menuId+ #item-buttons .item-options).hide(); $(#+menuName+-block.mi-+menuId+ #item-buttons .item-options).hide(); $(#+menuName+-block.mi-+menuId+ .menu-item-outofstock).hide(); $(#+menuName+-block.mi-+menuId+ #item-buttons).append(span classactivetime_span styleclear:both;display:inline-block;color:#da2d2d;font-style:italic;padding:5px 0;>Unavailable at this moment/span>); if($(#+menuName+-block.mi-+menuId+ ul#+menuName+ li)){ $(#+menuName+-block.mi-+menuId+ ul#+menuName+ li).each(function(){ if($(this).find(.visual-tag-container).length){ $(this).find(.item-title).after($(this).find(.visual-tag-container .item-price)); } }); $(#+menuName+-block.mi-+menuId+ ul#+menuName+ .visual-tag-container).css(display, none); } }else{ if (data.hide_when_unavailable 1) { $(#+menuName+-block.mi-+menuId).show(); $(#menu #menu-ul li.menu- + menuId).show(); } $(# + menuName + -block.mi- + menuId + #menu-desc-header . + menuName + -block-active-time).hide(); $(#+menuName+-block.mi-+menuId+ #item-buttons input).show(); $(#+menuName+-block.mi-+menuId+ #item-buttons .qty-select).show(); $(#+menuName+-block.mi-+menuId+ #item-buttons .menu-item-option select).show(); $(#+menuName+-block.mi-+menuId+ #item-buttons .item-options).each(function(){ // Certain item option is hidden because they the item doesnt have a value // So we first check if we this option has a value before we display // As we dont wanna display blank item options if($(this).val()){ $(this).show(); } }); $(#+menuName+-block.mi-+menuId+ #item-buttons span).show(); if($(#+menuName+-block.mi-+menuId+ ul#+menuName+ li)){ $(#+menuName+-block.mi-+menuId+ ul#+menuName+ li).each(function(){ if($(this).find(.visual-tag-container).length){ $(this).find(.visual-tag-container > .badge).after($(this).find(.item-price)); } }); $(#+menuName+-block.mi-+menuId+ ul#+menuName+ .visual-tag-container).css(display, flex); } // Additional check to hide menu items with empty ul const menuItem $(# + menuName + -block.mi- + menuId); const item_ul menuItem.find(ul); if (item_ul.length && item_ul.children().length 0) { menuItem.hide(); $(#menu #menu-ul li.menu- + menuId).hide(); } } } // Checks the menu on initial load var monitorIntervalArray ; //used for clearing interval. When changing delivery or pickup function pullMenuActiveTime(first_load){ $.ajax({ url:core/ajax/menu-active-times.php, async: true, type:post, data:{initial:first_load}, success: function(data){ var res JSON.parse(data); monitorIntervalArray.forEach(function(x){ clearTimeout(x); }); //remove previous binding events. monitorIntervalArray ; // clean the array placeholder res.forEach(function(x){ monitorIntervalArray.push(monitorActiveTime(x)); //push the return id of setInterval used for clearing previous interval var dayOnly {}, hide false; if(x.today inactive && x.days_available.length > 0){ var newMessage Available day+((x.days_available.length) 1 ? :s)+ : +x.days_available.join(,); dayOnlynewMenuNotif newMessage; } if(x && x.menu_id ! undefined){ dayOnlymenuId x.menu_id; } if(x.menu_status inactive || x.today inactive){ hide true; } dayOnlyhide_when_unavailable x.hide_when_unavailable; dayOnlyend_remaining_time x.end_remaining_time; dayOnlystart_remaining_time x.start_remaining_time; setMenuActiveTime(x.menu_title.replace(/\./, \\.), hide, dayOnly); /* Activate the menu warnings*/ }); } }); } /** * In charge of tracking the time base on the difference of this client and server. * * diff here is the seconds difference server time and client time * Its value represent the seconds since this function started * If diff value is higher than start_time means the menu is open. * If diff value is higher than the end_time means the menu is closed. * These checkings will only be done if the active_time detected that its active for today * */ function monitorActiveTime(data){ return setInterval(function(){ var currentDate new Date(); var now Math.floor(currentDate.getTime() / 1000); var diff now - data.s_time; //detect if menu only has days and no time is set var dayOnly {}; if(data.today inactive && data.days_available.length > 0){ var newMessage Available day+((data.days_available.length) 1 ? :s)+ : +data.days_available.join(,); dayOnlynewMenuNotif newMessage; } if(data && data.menu_id ! undefined){ dayOnlymenuId data.menu_id; } /*if (data.today inactive && data.hide_when_unavailable 0 && data.end_remaining_time > 0 && data.start_remaining_time 0) { data.today active; }*/ dayOnlyhide_when_unavailable data.hide_when_unavailable; dayOnlyend_remaining_time data.end_remaining_time; dayOnlystart_remaining_time data.start_remaining_time; if(data.today active){ /** * We need to compute the two factor separately * - this will enable us to switch on two states */ if(diff > data.start_remaining_time && (data.start_remaining_time ! 0 && data.end_remaining_time ! 0) ){ setMenuActiveTime(data.menu_title.replace(/\./, \\.), false, dayOnly); } if(diff > data.end_remaining_time && (data.start_remaining_time ! 0 && data.end_remaining_time ! 0)){ setMenuActiveTime(data.menu_title.replace(/\./, \\.), true, dayOnly); } // This will show the menu, if it store is active today but no time is set if(data.end_remaining_time 0 && data.start_remaining_time 0){ setMenuActiveTime(data.menu_title.replace(/\./, \\.), false, dayOnly); } }else{ setMenuActiveTime(data.menu_title.replace(/\./, \\.), true, dayOnly); } /* if(monitorDebugMode){ console.log(%c Diff %c >%c +diff + + %c Menu %c >%c +data.menu_title + + %c Start Remaining %c >%c +data.start_remaining_time + + %c End Remaining %c >%c +data.end_remaining_time, color:white;background: #2d6d48;,color:#d3d0d0,color:blue, color:white;background: #2d6d48;,color:#d3d0d0,color:#f3780c, color:white;background: #2d6d48;,color:#d3d0d0,color:blue, color:white;background: #2d6d48;,color:#d3d0d0,color:blue, ); //For debugging } */ }, 1500); } /** * Adds a specified number of seconds to a given time in HMMSS format. */ function addSeconds(time, secondsToAdd) { let hours Math.floor(time / 10000); let minutes Math.floor((time % 10000) / 100); let seconds time % 100; seconds + secondsToAdd; // Add seconds // Handle overflow if(seconds > 60){ seconds - 60; minutes++; } if(minutes > 60){ minutes - 60; hours++; } if(hours > 24){ hours - 24; client_current_day++; } if(client_current_day > 7){ client_current_day - 7; } // Format back to integer return hours * 10000 + minutes * 100 + seconds; } function newItem(){ $(.visual-tag-container .visual-tag-label.new-item).each(function(){ let itemAddedTimestamp $(this).attr(date-added); let itemAddedDate new Date(itemAddedTimestamp * 1000); // convert to javascript date let localDate new Date(itemAddedDate.getFullYear(), itemAddedDate.getMonth(), itemAddedDate.getDate()); let currentDate new Date(); currentDate.setHours(0, 0, 0, 0); // remove time part let diffTime currentDate - localDate; let diffDays diffTime / (1000 * 60 * 60 * 24); // calculate the difference in days if(diffDays > 30){ if($(this).siblings().attr(class)){ $(this).remove(); } else{ const visual_tag_container $(this).closest(.visual-tag-container); visual_tag_container.find(.item-price).clone().appendTo(visual_tag_container.siblings(.item-title-container)); visual_tag_container.remove(); } } }); } let deal_before_time, client_current_day, client_start_time; function dealEndBeforeTime(){ if($(#menu-items lispecial-before-time).length){ $(#menu-items lispecial-before-time).each(function(){ let days_available_array, hide_special false, remove_special true, is_available_today true, days_available ($(this).attr(special-days-available) ! undefined ? $(this).attr(special-days-available) : undefined), start_time ($(this).attr(special-after-time) ! undefined ? parseInt($(this).attr(special-after-time)) : undefined), end_time parseInt($(this).attr(special-before-time)); if(days_available ! undefined){ days_available_array days_available.split(,).map(Number); if(!days_available_array.includes(client_current_day)){ hide_special true; remove_special false; is_available_today false; } } if(!hide_special){ if(start_time ! undefined){ if(start_time end_time){ // Deal does NOT cross midnight if(client_start_time start_time || client_start_time > end_time){ hide_special true; remove_special false; } } else{ // Deal crosses midnight if(client_start_time start_time && client_start_time > end_time){ hide_special true; remove_special false; } } } else{ if(client_start_time > end_time){ hide_special true; remove_special true; } } } if(hide_special){ if($(this).attr(display-special-always) 0){ if(remove_special){ $(this).remove(); } else{ $(this).addClass(hide); } // WEB-1799 - Hide Menu Category When All Items Are Set to Specific Order Type const parent $(this).parent().closest(.menu-item); const ul_parent parent.find(ul); if(ul_parent.length && ul_parent.children(:visible).length 0){ const className parent.attr(class); const menuId getIdFromClass(className); if (menuId) { $(#menu #menu-ul li.menu- + menuId).hide(); } parent.hide(); } } else{ start_time $(this).attr(special-start-time); end_time $(this).attr(special-end-time); let unavailable_message (start_time ! undefined) ? between +start_time+ and : before ; unavailable_message + end_time; if(remove_special){ $(this).find(#item-buttons).empty(); } else{ $(this).find(#item-buttons .activetime_span.deal_end_time).remove(); } if(is_available_today){ $(this) .find(#item-buttons) .append(span classactivetime_span deal_end_time styleclear:both;display:inline-block;color:#da2d2d;font-style:italic;letter-spacing:0.8px;padding:5px;>Unavailable. Please order +unavailable_message+/span>); } if(remove_special){ $(this).removeAttr(display-special-always).removeAttr(special-after-time).removeAttr(special-before-time); } } } else{ if($(this).hasClass(hide)){ $(this).removeClass(hide); } if($(this).find(#item-buttons .activetime_span.deal_end_time).length){ $(this).find(#item-buttons .activetime_span.deal_end_time).remove(); } } }); } else{ clearInterval(deal_before_time); } client_start_time addSeconds(client_start_time, 2); } function extra_toppings(whichHalf){ var extra_price 0; if(whichHalf first){ whichHalf second; } else if(whichHalf second){ whichHalf first; } else{ return false; } if($(.+whichHalf+-accordion li input:checked).length > 0){ $(.+whichHalf+-accordion li input:checked).each(function(){ if($(this).val()){ extra_price + (parseFloat($(this).val())); } }); } $(.hh-remaining-topping).html(hh_max_toppings - ($(.first-accordion li input:checked).length + $(.second-accordion li input:checked).length)); $(.half-half-total).html($+formatNumber(extra_price)); } function getHHTotal(hh_price){ var price hh_price; var hh_surcharge 0; var extra_price 0; var first_plu $(#first-half-plu).val(); var second_plu $(#second-half-plu).val(); if($(.first-accordion li input:checked).length > 0){ $(.first-accordion li input:checked).each(function(){ if($(this).val()){ extra_price + (parseFloat($(this).val())); } }); } price price + extra_price; var extra_price 0; if($(.second-accordion li input:checked).length > 0){ $(.second-accordion li input:checked).each(function(){ if($(this).val()){ extra_price + (parseFloat($(this).val())); } }); } price price + extra_price; if($(.modal-hh .menu-item-option-radio-HHIO).length>0){ $(.modal-hh .menu-item-option-radio-HHIO).each(function(){ if($(this).attr(checked)!undefined){ var item_option_price parseFloat($(this).attr(price)); price price + item_option_price; } }); } else{ if($(.modal-hh .item-option-per-hh).length>0){ $(.modal-hh .item-option-per-hh).each(function(){ if($(this).attr(checked)!undefined){ var item_option_price parseFloat($(this).attr(price)); price price + item_option_price; } }); } } if(!(first_plu && second_plu)){ if($(.hh-size .hh-surcharge).attr(surcharge) !undefined){ hh_surcharge parseFloat($(.hh-size .hh-surcharge).attr(surcharge)); price price + hh_surcharge; } } $(.half-half-total).html($+formatNumber(price)); } function lastreorderbutton(){ $(#lastreorderbutton).click(function(){ var reOrderBtn $(this); if($(inputnamestorestatus).val()offline){ $.prompt($(#offline-alert-txt).html()); }else{ $(buttonnamereorder).attr(disabled,disabled); reOrderBtn.after(span classglyphicon glyphicon-refresh glyphicon-refresh-animate>/span>); reOrderBtn.remove(); $.ajax({ type: POST, url: core/ajax/reorder.php, data: {order_id: this.value} }).done(function(obj){ $(#view-basket).load(core/mybasket.php); if(reOrderBtn.next().hasClass(glyphicon-refresh)){ reOrderBtn.next().remove(); } document.cookiereorder1;max-age3600 window.location.href ?pagebrowse; }); } }); } $(document).ready(function(){ client_current_day 6; client_start_time 80729; newItem(); dealEndBeforeTime(); deal_before_time setInterval(dealEndBeforeTime, 2000); $(#view-customer-details).load(core/view_customer_details.php); $(.customise-page).live(click, function(){ var parent_div $(this).closest(li).attr(id); var group_id $(this).attr(ref); var menu_id $(this).parents(#menu_items).data(menuid); var plu $(#menu-+group_id+ :selected).val(); if($(#+parent_div+ .input-group-radio).length > 0){ // check if radio button is available var plu $(#+parent_div+ inputnamemenu-item-option-radio-+group_id+:checked).val() } if(!plu){ var plu $(this).attr(plu); } option_id $(#+parent_div+ #+plu+-option-id).val(); if($(#+parent_div+ inputnameitem-option-radio-+group_id+:checked).val() && option_id undefined){ // if item has menu-item-option var option_id $(#+parent_div+ inputnameitem-option-radio-+group_id+:checked).val(); } else if(option_id undefined){ // if item has no menu-item-option var option_id $(#+parent_div+ inputnameitem-option-radio-+plu+:checked).val(); } window.location ?pagecustomise_item&PLU+plu+&group_id+group_id+&option_id+option_id+&menu_id+menu_id; }); $(#promotional_close).live(click, function(){ $(#promotional_container).removeClass(active); }); $(#new_customer_details).load(core/view_customer_details.php); $(#empty-button).click(function(){ $(#loading_bar).html(img srcimages/ajax-loader.gif>); $(#loading_bar).center(); $.ajax({ type: POST, url: core/ajax/empty_mybasket.php, success: function(data) { $(#view-basket).load(core/mybasket.php, function(){ $(#loading_bar).html(); get_cart_total(); }); } }); }); $(.add-button-popup).live(click, function(){ var parent_div $(this).closest(li).attr(id); var menu_id $(this).attr(menu-id); var group_id $(this).attr(id); var PLU $(this).attr(ref); /** *This triggers when Allow Addition is Disabled but have item-options *if no item option is checked, we make the first item the default *else if have value and the item is duplicate */ if(typeof $(#+parent_div+ .item-option-radio-list:first).attr(multiple-io) ! undefined && $(#+parent_div+ .item-option-radio-list:first).attr(multiple-io) ! false){ $(#+parent_div+ .item-option-radio-list).attr(checked, false); $(#+parent_div+ .item-option-radio-list).parent().parent().css({padding:, border:}); last_io_selected ; get_item_option(parent_div); } else{ if(!$(#+parent_div+ inputnameitem-option-radio-+PLU+:checked).val()){ $(#+parent_div+ input:radionameitem-option-radio-+PLU+:not(:disabled):first).attr(checked, true); }else{ //fix for item option have default item but does not select it due to duplicate item in the menu var default_io $(#+ parent_div + inputnameitem-option-radio-+PLU+:checked).attr(default-io); if(typeof default_io ! undefined && default_io ! false){ $(#+parent_div+ input:radionameitem-option-radio-+PLU+ref+default_io+).attr(checked, true); } else{ $(#+parent_div+ input:radionameitem-option-radio-+PLU+:not(:disabled):first).attr(checked, true); } } $(#+parent_div+ inputnameitem-option-radio-+PLU+:not(:checked)).attr(checked, false); } // if no menu item option is checked, we make the first item the default if(!$(#+parent_div+ inputnamemenu-item-option-radio-+group_id+:checked).val()){ $(#+parent_div+ input:radionamemenu-item-option-radio-+group_id+:not(:disabled):first).attr(checked, true); } if(group_id undefined || group_id 0){ // if item has no menu-item-option but have item-option then we override the group_id to PLU var group_id PLU; } // if no default item-option selected then we add src on the checked items img $(#add-popup-+group_id+-+menu_id).find(input:checked).siblings(.input-group-label).find(.check-img-popup).attr(src, https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/icon-check.png).css(visibility, visible); $(#add-popup-+group_id+-+menu_id).find(input:not(:checked)).siblings(.input-group-label).find(.check-img-popup).css(visibility, hidden); if(window.innerWidth > 768 && window.innerHeight 650){ setTimeout(function(){ modal_height(#add-popup-+group_id+-+menu_id); }, 200); } }); // move the menuitems-reorder div inside menu-items div $(#menu-items).prepend($(#menuitems-reorder-container).html() ); $(#menuitems-reorder-container).html(); lastreorderbutton(); $.ajax({ url: core/ajax/suburb-list.php, async: true, type: POST, // data:{initial:first_load}, success: function(data){ $(#suburb-container).html(data); }, error: function(error) { console.log(error); } }); $(.store-details-open).append(Estimated Pickup (+$(#est-time).text() + mins)); const urlHash window.location.hash; if(urlHash.startsWith(#deal)){ // Check if the URL hash starts with #deal then extract the deal card ID from the URL hash const dealCardId urlHash.split()1, dealCard $(#+dealCardId); if(dealCard && dealCard.length > 0){ // If the deal card exists in the DOM let navbarHeight $(.navbar).height(), fixedHeight ($(window).width() > 1024) ? 126 : 54; // Adjust this value based on your layout const dealCardButton dealCard.find(#item-buttons .add-deal); if(dealCardButton.prop(disabled)){ dealCardButton.prop(disabled, false); // Enable the button if it is disabled } dealCardButton.click(); // Trigger the click event on the add-deal button within the deal card setTimeout(() > { $(html, body).animate({ scrollTop: dealCard.offset().top - navbarHeight - fixedHeight }, 500); }, 1500); } } }); /script>script> (function(){ document.addEventListener(DOMContentLoaded, function(){ var menuBlocks document.querySelectorAll(#menu-items > divid$-block); menuBlocks.forEach(function(block){ var items block.querySelectorAll(ul li:not(style*display: none)); if(items.length 0){ block.style.display none; } }); }); })(); /script>script>function feedbackIcon(element){ $(element).closest(.form-group).find(.glyphicon-form-icon).remove(); $(element).closest(.form-group).find(.help-block).remove(); if($(element).closest(.form-group).hasClass(has-success)){ $(element).closest(.form-group).prepend(span classglyphicon-form-icon glyphicon glyphicon-ok form-control-feedback aria-hiddenfalse>/span>); } else{ $(element).closest(.form-group).prepend(span classglyphicon-form-icon glyphicon glyphicon-remove form-control-feedback aria-hiddenfalse>/span>); $(element).closest(.form-group).append(span classhelp-block>This field is required./span>); }}$(function() { var isMobile window.matchMedia(only screen and (max-width: 760px)); $(a.edit-delivery).click(function (){ $(#textDeliverytoggle).hide(); $(#editDelivery).slideDown(); //Remove the default value from saved address return false; //to prevent from going to the href link }); $(#address-ok).click(function (){ var deliveryText $(.delivery-address); var deliveryInput $(#deliveryStreet).val(); var deliveryAdd deliveryInput.length > 3 ? deliveryInput : ; var deliveryHouseNumber $(#deliveryHouseNumber).val(); var deliveryUnitNumber $(#deliveryUnitNumber).val(); var deliveryInstructions $(#deliveryInstructions).val(); var btnDeliveryAdd deliveryInput.length > 3 ? Edit : Enter Address; $(.delivery-address).removeClass(w0); if(deliveryInput.trim().length!0 && deliveryText.text()!deliveryInput && deliveryHouseNumber.trim().length!0){ $(a.edit-delivery).text(Edit); updateDeliveryStreet(deliveryAdd,deliveryUnitNumber,deliveryHouseNumber,deliveryInstructions); if($(#estimated-time).length){ $(#estimated-time).load(core/estimated-time.php?typedelivery, function (data) { updateStoreDetails(Delivery); store_status(delivery, data); if (!$.trim(data)) { $(#estimated-time).html(h3>Store is Offline!/h3>); } }); } else{ store_status(delivery, ); } if(deliveryUnitNumber.trim().length){ deliveryText.text(deliveryUnitNumber + / + deliveryHouseNumber + + deliveryAdd); }else{ deliveryText.text(deliveryHouseNumber + + deliveryAdd); } $(a.edit-delivery).text(btnDeliveryAdd); $(a.edit-delivery).show(); $(#textDeliverytoggle).show(); $(#editDelivery).slideUp(); }else{ $(a.edit-delivery).text(Enter Address); $(.delivery-address).addClass(w0); } }); $(#address-cancel).click(function (){ $(#editDelivery).slideUp(); $(#textDeliverytoggle).show(); }); if($(#deliveryStreet).length){ if($(#deliveryStreet).val()!&& $(#deliveryStreet).val()!null){ $(a.edit-delivery).text(Edit); }else{ $(a.edit-delivery).text(Enter Address); $(.delivery-address).addClass(w0); } } $j(nameunitNumber, namehouseNumber, namealternate-unitNumber, namealternate-houseNumber, #deliveryUnitNumber, #deliveryHouseNumber).on(input, function(event){ $(this).val($(this).val().substring(0, 5)); }); //house number validate highlight $(#deliveryHouseNumber).focusout(function(){ if($(this).val().trim().length0){ $(this).closest(.form-group).removeClass(has-success).addClass(has-error); }else{ $(this).closest(.form-group).removeClass(has-error).addClass(has-success); } feedbackIcon(this); }); $(#deliveryStreet).focusout(function(){ if(!$(this).val()){ $(this).closest(.form-group).removeClass(has-success).addClass(has-error); }else{ $(this).closest(.form-group).removeClass(has-error).addClass(has-success); } feedbackIcon(this); }); //-Order Type Options $(.order-type-bt).click(function(){ var order_type this.value; var notice_txt; if($(.order-type-bt.active).val() order_type){ return true; } if($(#view-basket .promo-with-different-plu).length && typeof $(this).data(bypass) undefined){ $(.order-type-bt).data(bypass, 1); $(#change-order-type-modal .modal-footer .btn-change-type).data(order-type, order_type); if($(this).hasClass(header)){ $(#change-order-type-modal .modal-footer .btn-change-type).addClass(header); } $j(#change-order-type-modal).modal(show); return true; } $(.order-type-bt).removeData(bypass).removeClass(active); $(.order-type-btvalue+order_type+).addClass(active); setTimeout(() > { change_order_type(order_type); }, 100); setTimeout(() > { if (BroadcastChannel in window) { const channel new BroadcastChannel(refreshChannel); channel.postMessage(refresh); channel.close(); } }, 1000); }); $(#change-order-type-modal .close, #change-order-type-modal .btn-continue-order).click(function(){ $(.order-type-bt).removeData(bypass); $(#change-order-type-modal .btn-change-type).removeClass(header).removeData(orderType); }); $(#change-order-type-modal .btn-change-type).click(function(){ if(!$(this).hasClass(header)){ $(#float-box .order-type-btvalue+$(this).data(order-type)+).click(); } else{ $(#order-type-select .order-type-btvalue+$(this).data(order-type)+).click(); } $(this).removeClass(header).removeData(orderType); }); //-Load Order Basket $(#view-basket).load(core/mybasket.php?page, function(){ get_cart_total(); }); //-Load Customer Details $(#view-customer-details).load(core/view_customer_details.php); var ajaxResponse false; var xhr; //-Checkout Proccess $(.checkout).click(function(){ page $(this).attr(alt); if( $(#promtional-code).length && $(#promtional-code).val().trim().length>0){ promo_code(xhr); }else{ checkout(); } }); //-Promo Code Validation $(#validate).click(function(){ var page promo_validate; if( $(#promtional-code).val().trim().length0 ){ $(#promtional-code).focus(); }else{ promo_code(xhr); } }); /* * FUNCTIONS LIST: * -changeActiveType() * -change_order_type() * -store_status() * -show_stack_bottomright() * -confirmCheckout() * -checkout() * -promo_code() * -confirmCheckout() * -mycallbackfunc() * -updateDeliveryStreet() */ function changeActiveType(order_type){ var btnOrderType $(.order-type-bt); btnOrderType.removeClass(active); if(order_type){ $(#current_order_type_holder).val(order_type); $(#order-type-bt-+order_type+, .order-type-wrapper .btn-float-+order_type).addClass(active); $(#platina-order-type-bt-+order_type).addClass(active); } }; function updateDeliveryStreet(street_suburb,unit_number,house_number,delivery_instructions){ if(!street_suburb && !house_number){ return false; } $.ajax({ method: POST, dataType: JSON, data: {street_suburb:street_suburb, unit_number:unit_number, house_number:house_number, delivery_instructions:delivery_instructions}, url: core/ajax/set_order_type.php, async: false, }).done(function (e) { if(e.location_details.zone){ new PNotify({ text: Your address b>+e.location_details.street_suburb+/b> is subject to delivery zone surcharge., width: 380px, delay: 10000, type: success }); } if(e.location_details.zonewaittime){ new PNotify({ text: Estimated Delivery Time has been updated according to your zone., width: 380px, delay: 5000, type: success }); } if(e.location_details.defaulttime){ new PNotify({ text: Estimated Delivery Time has been updated., width: 380px, delay: 5000, type: success }); } $(#view-basket).load(core/mybasket.php?page); //Hide alert upon changing the address }); } function change_order_type(order_type) { changeActiveType(order_type); $(#bt-checkout).prop(disabled, true); $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, true); $(.order-type-btvalue+order_type+).addClass(active); $(#current_order_type_holder).val(order_type); $(#order-type-bt-+order_type).addClass(active); $(.order-type-store-searchbar .select2-container--platina).hide(); if (order_type pickup) { $(.order-type-icon-group).html(img classorder-type-icon srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/pickup.png />); $(.order-type-text).html(Pick up Order); $(.order-type-store-searchbar #chainStores).show(); $(.order-type-store-searchbar #select2-chainStores-container).parents(.select2-container--platina).first().show(); $(#getLocation).show(); $(#searchNearest).hide(); $(.order-type-store-searchbar #searchForm).hide(); } else if (order_type delivery) { $(.order-type-icon-group).html(img classorder-type-icon srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/delivery.png />); $(.order-type-text).html(Delivery Order); $(.order-type-store-searchbar #chainStores).hide(); $(.order-type-store-searchbar #select2-searchForm-container).parents(.select2-container--platina).first().show(); $(#getLocation).hide(); $(#searchNearest).show(); $(.order-type-store-searchbar #searchForm).show(); } //change order type $.ajax({ method: POST, url: core/ajax/set_order_type.php, dataType: JSON, data: {order_type: order_type} }).success(function (data) { if(data.status preordering) { //displays start time if pre-ordering if (order_type pickup) { $(#cart-alert).html(Pickup starts at + data.start_time).show(); $(#bt-checkout).html(PRE-ORDER); } else if (order_type delivery) { $(#cart-alert).html(Delivery starts at + data.start_time).show(); $(#bt-checkout).html(PRE-ORDER); } }else if(data.status future_ordering) { //displays start time if pre-ordering if (order_type pickup) { $(#cart-alert).html(Only accepting Future Orders).show(); $(#bt-checkout).html(PRE-ORDER); } else if (order_type delivery) { $(#cart-alert).html(Only accepting Future Orders).show(); $(#bt-checkout).html(PRE-ORDER); } }else{ $(#cart-alert).hide(); $(#bt-checkout).html(CHECK OUT); } if(data.startLunch ! null){ $(#cart-alert).show(); $(#cart-alert).html(Lunch time: b> + data.startLunch + to + data.endLunch + /b>); } if(data.delivery_start_time ! null){ $(#cart-alert).show(); $(#cart-alert).html(Delivery orders start at + data.delivery_start_time); } if(data.status delivery_ended){ $(#cart-alert).show(); if(data.start_time) $(#cart-alert).html(Delivery has finished for today.); else $(#cart-alert).html(Delivery not available today.); } if ($(#menu-cont).length ! 0) { //loads menu from api var tempReorder $(#menuitems-reorder).prop(outerHTML); $(#menu-cont).load(https://chicknbao.com.au/api/getmenu.php, {client_id:13927, order_type:order_type, menu_type:both}, function (data, status, xhr) { if (status error) { //window.location ?order_type+order_type; } else { /*OOA-205 Platina - Pick Up and Delivery Anchoring*/ menu_nav(); //$(#menu-items).prepend(div classbtn-group>a href# idlist classbtn btn-default btn-xs stylecolor:#333;>span classglyphicon glyphicon-th-list>/span> List/a>a href# idgrid classbtn btn-default btn-xs stylecolor:#333;>span classglyphicon glyphicon-th>/span> Grid/a>/div>); get_cart_total(); if($(window).width() 480){ $(#menu-cont).addClass(order-type-changed); } dealEndBeforeTime(); deal_before_time setInterval(dealEndBeforeTime, 2000); $.getScript(https://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/scrollspy.js); } $(#menu-items).prepend(tempReorder); lastreorderbutton(); if(!$(#estimated-time).length){ store_status(order_type, ); } }); } //change display info if (order_type delivery) { var txt Your delivery will come from:; $(#order-type-details-delivery).show(); $(#order-type-details-pickup).hide(); $(#estimated-time).load(core/estimated-time.php?typedelivery, function (data) { updateStoreDetails(Delivery); store_status(order_type, data); if (!$.trim(data)) { $(#estimated-time).html(h3>Store is Offline!/h3>); } }); $(#view-basket).load(core/mybasket.php?page); } else if (order_type pickup) { var txt You will be picking up from:; $(#order-type-details-pickup).show(); $(#order-type-details-delivery).hide(); $(#estimated-time).load(core/estimated-time.php?typepickup, function (data) { updateStoreDetails(Pickup); store_status(order_type, data); if (!$.trim(data)) { $(#estimated-time).html(h3>Store is Offline!/h3>); } }); $(#view-basket).load(core/mybasket.php?page); } }); } function store_status(order_type, notice_txt) { $.post(core/ajax/store_status.php, function (data) { if ($.trim(data) taking_orders || $.trim(data) preordering || $.trim(data) future_ordering) { $(#bt-checkout).removeClass(disabled); $(#bt-checkout).attr(disabled, false); //Disable checkout button upon checking store status } else { $(#bt-checkout).addClass(disabled); $(#bt-checkout).attr(disabled, true); if(notice_txt ! undefined && notice_txt ! ){ show_stack_bottomright(order_type, notice_txt); } } $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, false); }); } function show_stack_bottomright(order_type,notice_txt) { var stack_bottomright {dir1: up, dir2: left, firstpos1: 25, firstpos2: 25}; var str order_type + Not Available; str str.toLowerCase().replace(/\ba-z/g, function(letter) { return letter.toUpperCase(); }); var opts { title: str, text: notice_txt, addclass: stack-bottomright, stack: stack_bottomright }; new PNotify(opts); } function checkout(e,v,m,f){ var order_time ; //var street_suburb $(#deliveryStreet).val() null ? : $(#deliveryStreet).val(); var checkorder true; var type; if($(#order_time).length >0){ order_time $(#order_time).val(); } $(.order-type-bt).each(function(){ if($(this).hasClass(active)){ if($(this).val()delivery){ typedelivery; }else{ typepickup; checkorder true; } } }); if(checkorder){ $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, true); $.ajax({ type: POST, url: core/ajax/checkorder.php, }).done(function(msg){ if(msgreload){ location.reload(); return; } if(msgguess_checkout){ window.location ?pagecheckout; return; } if(msgverifycode){ startSMSCodeTimer(); showSMSVerifyWindow(); return; } if(msgprompt_login){ window.login_referer checkout; $(.or_guest, .checkout_as_guest).show(); $(.register-ling a).attr(href,?pageregister); $(#login-wrap).fadeToggle(fast); //display the popup modal login $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, false); $(.checkout_as_guest a).text(Checkout as Guest); return; } var address_err_code complete_delivery_details, house_number_required, invalid_street_name, invalid_address; if(address_err_code.includes(msg)){ var address_err_msg ; address_err_msgcomplete_delivery_details Please complete your address details for delivery; address_err_msghouse_number_required Please enter your house number; address_err_msginvalid_street_name address_err_msginvalid_address Sorry, delivery address is not recognised. Please re-enter address.; var address_info { deliveryUnitNumber: , deliveryStreetNumber: , deliveryStreetSuburb: , delivery_instructions: , address_err_msg: address_err_msgmsg } window.login_referer checkout; $(#login-wrap).fadeToggle(fast); update_address(address_info); return; } if(eundefined && (msgcart_loyalty_negative_amount || msgcart_discount_negative_amount)){ if(msgcart_loyalty_negative_amount){ var display_msg Your order value is lower than your redemption. The Remaining value will be lost. Why not add to your order?; }else if(msgcart_discount_negative_amount){ var display_msg Your order value is lower than your discount. The Remaining value will be lost. Why not add to your order?; } $.prompt(display_msg ,{ buttons:{ Continue Browsing: false, No Thanks, I\m Done: true },submit: function(e,v){ if(e){ msg1; mycallbackfunc2(e); } $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, false); } }); return false; }else if(etrue && vtrue){ //if customer agrees to continue msg1; } if(msgcart_first_order){ $.prompt(Please add items in your cart.); $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, false); return; } if(msgcart_first_order_loyalty){ $.prompt(Please add another item with your Loyalty Redemption Reward.); $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, false); return; } if(msg>0){ if($(#jqi_state0_buttonOk).length){ $(.free-item-popup button#jqi_state0_buttonOk).live(click, function(e){ window.location ?page+page+&order_time+order_time; }); }else{ window.location ?page+page+&order_time+order_time; } }else if(msg0){ $.prompt(Your order is less than the minimum order!); $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, false); }else{ $.prompt(Your order is currently empty!); $(#order-type-bt-pickup, #order-type-bt-delivery, #platina-order-type-bt-pickup, #platina-order-type-bt-delivery).prop(disabled, false); } }); } } function promo_code(xhr){ var promotional_code , promo_code_id $(#promtional-code); if(promo_code_id.length){ if(promo_code_id.hasClass(checked)){ return false; } promotional_code promo_code_id.val(); if(promotional_code.trim().length0){ ajaxResponse true; return false; } else{ promo_code_id.addClass(checked); } } else{ return false; } //-if has request if(xhr){ xhr.abort(); } //-promo code request xhr $.ajax({ type: GET, url: core/ajax/check_promotional_code.php, data: {promotional_code:promotional_code} }).done(function(msg){ if(msg){ var response_code msg.response_code; var promptMessage; /** v6 promocode lib returns this metadata for discounts */ if (msg.notification) { promptMessage msg.notification; } else { promptMessage msg.message; } $(#promo-modifier-modal .modal-header .close).show(); $(#promo-modifier-modal .modal-header .message-container .promo-code-wrapper .promo-code-container).html(promotional_code.toUpperCase()); $(#promo-modifier-modal .modal-header .message-container .promo-code-redemption-label, #promo-modifier-modal .modal-body).css(display, none); $(#promo-modifier-modal .modal-body .modifier-wrapper).removeClass(promo-added).empty(); $(#promo-modifier-modal .modal-footer).removeClass(promo-added); $(#promo-modifier-modal .modal-footer .btn).removeClass(item-option).prop(disabled, false).removeData(optionIds).html(Ok); $j(#promo-modifier-modal .modal-footer spandata-toggletooltip).tooltip(disable); //-prompt error if(response_code ! 00){ ajaxResponse false; $(#promo-modifier-modal .modal-header .close).hide(); $(#promo-modifier-modal .modal-body).css(display, block); $(#promo-modifier-modal .modal-body .modifier-wrapper).addClass(promo-added).html(div styledisplay:flex; column-gap:5px; align-items:center;>i classfa-regular fa-circle-xmark>/i>span>+promptMessage+/span>/div>); $(#promo-modifier-modal .modal-footer).addClass(promo-added); $j(#promo-modifier-modal).modal(show); }else{ //-ajax has flag is_special if(msg.is_special 1){ deals_popup(msg); }else if(msg.is_itemoption){ promo_last_io_checked ; $(#promo-modifier-modal .modal-header .message-container).html(promptMessage); $(#promo-modifier-modal .modal-body).css(display, block); $(#promo-modifier-modal .modal-body .modifier-wrapper).html(msg.item_options); $(#promo-modifier-modal .modal-footer .btn).addClass(item-option).html(Add); if(msg.is_multiple){ if(msg.is_multiple_required){ $(#promo-modifier-modal .modal-footer .btn).prop(disabled, true); $j(#promo-modifier-modal .modal-footer spandata-toggletooltip).tooltip(enable); } } else{ var promo_selected_io; if($(#promo-modifier-modal .modal-body .modifier-wrapper .promo-item-option-radio-list:checked).length > 0){ promo_selected_io $(#promo-modifier-modal .modal-body .modifier-wrapper .promo-item-option-radio-list:checked).attr(ref); } else{ promo_selected_io $(#promo-modifier-modal .modal-body .modifier-wrapper .promo-item-option-radio-list:first).attr(ref); } $(#promo-modifier-modal .modal-footer .btn).data(option-ids, promo_selected_io); } $j(#promo-modifier-modal).modal(show); }else{ $(#view-basket).load(core/mybasket.php?page, function () { if ($(#discount_removal_notif).length 0) { $(#promo-modifier-modal .modal-header .close).hide(); $(#promo-modifier-modal .modal-body).css(display, block); $(#promo-modifier-modal .modal-body .modifier-wrapper).addClass(promo-added).html(div styledisplay:flex; column-gap:5px; align-items:center;>i classfa-regular fa-circle-check>/i>span>+promptMessage+/span>/div>); $(#promo-modifier-modal .modal-footer).addClass(promo-added); $j(#promo-modifier-modal).modal(show); get_cart_total(); } }); } } } promo_code_id.removeClass(checked).val(); }); return xhr; } function confirmCheckout(ordertype){ $.ajax({ type: POST, url: core/ajax/get_times.php, data: client_id13927&ordertype+ordertype, success: function(msg){ $.prompt(msg,{ buttons:{ Cancel: false, Proceed: true }, submit: function(e,v){ if(e){ mycallbackfunc(true); } } }); } }); return false; } function confirmDisclaimerCheckout(){ $.prompt(Please check your final order as the store will not be held accountable for any customers mistake.,{ buttons:{ Cancel: false, Proceed: true }, submit: function(e,v){ if(e){ mycallbackfunc(true); } } }); return false; } function promptWithoutBeerCheckout2(){ $(.main-mask).css(z-index,998).addClass(active); $(.main-mask).css(display,block).addClass(active); $(.promptWithoutBeerCheckout).addClass(active); } //function to Update the Store Information Details function updateStoreDetails(mode) { if ($(#estimated-time #est-time).length) { $(.store-details-open).empty().append(span classstore-time-clock glyphicon glyphicon-time stylemargin-right:10px;>/span>Estimated + mode + ( + $(#est-time).text() + mins)); $(.store-details-open).show(); $(.store-details-close).hide(); } else { $(.store-details-open).hide(); $(.store-details-close).show(); var dataText $(#estimated-time .store_status).text(); if (dataText closed) { $(.store-status-details).html(p>Store is not open for orders right now./p>); } else if (dataText future_ordering) { $(.store-status-details).html(p>Store is closed today but you can place your order for a later date./p>); } else if (dataText preorder_waiting || dataText preordering) { if(mode Delivery && false){ $(.store-status-details).html(p>Delivery starts later but you can pre-order now./p>); }else{ $(.store-status-details).html(p stylemargin-right:10px;>Store is currently closed but you can still order for later./p>); } } else if (dataText closed_after_lunch) { $(.store-status-details).html(p>Store is currently closed. Please come back later./p>); } else if (dataText delivery_waiting) { $(.store-status-details).html(p>Delivery orders start later./p>); } else if (dataText delivery_ended) { $(.store-status-details).html(p>Delivery has finished for today./p>); } } } function mycallbackfunc(e,v,m,f){ if(e){ checkout(); } } function mycallbackfunc2(e,v,m,f){ if(e){ checkout(e,true); } } $(#submitcode).click(function () { ($(#smscode).val().length 0) ? $(#smscode).css(border-color, red) : $(#smscode).removeAttr(style) $.ajax({ type: POST, url: core/ajax/validatesmscode.php, data: $(#smscode).serialize(), success: function (result) { if (result verified) { checkout(); } else if(result verifiedguest){ window.location.href ?pagecheckout; } else if (result failed) { $(#smscode).css(border-color, red); alert(Code is invalid. Please check if the code is correct.); }else if (result expired) { $(#smscode).css(border-color, red); alert(Code has expired (code is valid only within 10 minutes).); } } }); }); $(#smscode).keypress(function (){ ($(#smscode).val().length >4)?$(#smscode).removeAttr(style):; })});/script>div idfloat-box classsidebar-offcanvas> div idmenu-title classfbTitle> Order Type a classnavbar-toggle fbClose data-toggleoffcanvas> span classglyphicon glyphicon-remove>/span> /a> /div>!-- #menu-title --> p idclose_show_cart classclose close-show-cart>×/p>div classalert alert-danger rolealert idoffline-alert-txt>Store is not open for orders right now.p>span classstore-time-clock glyphicon glyphicon-time>/span> span classstore-time-text>Open today/span> span>11:00am - 10:00pm/span>/p>table classtrading-hours-table width100% aligncenter cellpadding2> tbody> tr > th>Mon/th> td> div classtrading-time>11:00am to 9:00pm/div> /td> /tr> tr > th>Tue/th> td> div classtrading-time>11:00am to 9:00pm/div> /td> /tr> tr > th>Wed/th> td> div classtrading-time>11:00am to 9:00pm/div> /td> /tr> tr > th>Thu/th> td> div classtrading-time>11:00am to 9:00pm/div> /td> /tr> tr > th>Fri/th> td> div classtrading-time>11:00am to 10:00pm/div> /td> /tr> tr > th>Sat/th> td> div classtrading-time>11:00am to 10:00pm/div> /td> /tr> tr > th>Sun/th> td> div classtrading-time>11:00am to 9:00pm/div> /td> /tr> /tbody>/table>/div>!-- #offline-alert-txt -->input typehidden namestorestatus valueoffline />/div> /div>div styleclear:both>/div>div idscreen>/div>div idloading_bar>/div>/div>/div>!-- START OF FULL FOOTER --> !-- FRANCHISE TEMPLATE --> !-- Suburb List --> div idsuburb-container>/div> !-- About Us --> div classcol-md-12 idabout-us> div classcontainer> div classsection-content> div classcolumn > div classsection-title>About Us/div> div classabout-us-content> p> div classd1> h2>About Us/h2> p classp1>Chick-n-Bao is where crispy fried chicken meets soft, steamy bao buns in a fusion thats all about big flavor and no fuss. Inspired by Asian street eats and comfort food classics, we serve up bold bites, juicy crunch, and bao-packed satisfaction. Whether youre chasing heat, crunch, or something pillowy and perfect, weve got the goods—fresh, fast, and full of attitude. Always Chick-n-Bao. Always unforgettable./p> img srchttps://d2ova09jg8x3xk.cloudfront.net/chicknbao.com.au/images/logo.png altchicknbao classa-logo>/div> /p> /div> /div> /div> /div> /div> !-- Start of OOA-897: New Store Unavailable Status--> div idfooterOfflineAlert styledisplay:none;> p idfooterOfflineAlert-close classfooterOfflineAlert-close>×/p> h3 classfooterOfflineAlert-header>Store is not open for orders right now./h3> div classfooterOfflineAlert-timeInfo>span idfooterOfflineAlert-openToday classfooterOfflineAlert-time> svg xmlnshttp://www.w3.org/2000/svg width16 height16 fillcurrentColor classbi bi-circle-fill viewBox0 0 16 16>circle cx8 cy8 r8/>/svg> Open today from 11:00am - 10:00pm/span>span idfooterOfflineAlert-delivery classfooterOfflineAlert-time> svg xmlnshttp://www.w3.org/2000/svg width16 height16 fillcurrentColor classbi bi-circle-fill viewBox0 0 16 16>circle cx8 cy8 r8/>/svg> Open for delivery from 11:00am - 10:00pm /span>/div> div classprogress styleheight: 3px;> div idprogressbar class.progress-bar-purple progress-bar w-75 roleprogressbar aria-valuenow75 aria-valuemin0 aria-valuemax100>/div> /div> /div>!-- End of OOA-897: New Store Unavailable Status--> !-- END OF FULL FOOTER --> div classfooterWrap> button idftToggle class>span classglyphicon glyphicon-info-sign>/span>/button> div idfooter> div classcontainer> div classcol-md-12 idfooter-black> div classcol-md-3> div idfooter-images> div idp-type> img idp-master srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/new_footer/small/mastercard.png> img idp-visa srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/new_footer/small/visa.png> img idp-paypal srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/new_footer/small/paypal.png> /div> span idsiteseal>script typetext/javascript srchttps://seal.godaddy.com/getSeal?sealIDadWUpnhKlbKz7BcrgjiUvfhL72FCKx967UWaFd0twSw0KCFBDSoMCeH>/script>/span> /div> /div> div classcol-md-3> div idfooter-text> p classfooter-h>Need a hand?/p> p>a href?pageterms>Terms and Conditions/a>/p> p>a href?pageprivacy>Privacy Policy/a>/p> p>a href?pagefeedback>Having any Problems?/a>/p> p>a href?pagefeedback>Feedback/a>/p> /div> /div> div classcol-md-3 style> div idfooter-contact> p classfooter-h>Contact Us/p> p>a hrefhttps://www.google.com/maps/search/?api1&queryR9A%2C+1+Roystonea+Avenue%2C+Yarawongga%2C+VIC classaddress-link target_blank relnoopener>R9A, 1 Roystonea Avenue, Yarawongga, VIC/a>/p> p>a hreftel:088972591 classphone-link>088972591/a>/p> /div> /div> div classcol-md-3> div idfooter-brand> a classfooter-localserves hrefhttps://localserves.com.au/ target_blank>img stylemargin-bottom:10px; srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/new_footer/small/logo-localserves.png>/a> span>Powered by:/span> a hrefhttps://deliverit.com.au/ target_blank>img style width:140px !important; srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/new_footer/small/logo-new.png>/a> /div> div idfooter-icons> div idfooter-social> /div> /div> /div> /div> div classcol-md-12> p idfooter-copyright>b>Chick-N-Bao/b> © Copyright 2026. All right Reserved. Powered By Deliverit Software/p> /div> /div> /div> div idfooter-new> div classnew_footer> div idfooter-new-text classcol-md-4> p idfooter-new-links> a href?pageterms>Terms and Conditions/a> • a href?pagefeedback>Feedback/a> /p> p idfooter-new-links> a href?pageprivacy>Policy/a> • a href?pagefeedback>Having Any Problems?/a> /p> /div> div idfooter-new-icons classcol-md-4> /div> div idfooter-new-brand classcol-md-4> a classfooter-localserves hrefhttps://localserves.com.au/ target_blank>img stylemargin-right:5px; srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/new_footer/small/logo-localserves.png>/a> span>Powered by:/span> a hrefhttps://deliverit.com.au/ target_blank>img style width:80px !important; srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/img/new_footer/small/logo-new.png>/a> /div> /div> /div> /div> /div>/div>div idglobalalert_container classmodal fade tabindex-1 roledialog aria-labelledbyglobalAlertModal aria-hiddentrue data-backdroptrue data-keyboardtrue> div classmodal-dialog modal-dialog-centered roledocument> div classmodal-content idglobalalert_banner> div classalert-header> div idglobalalert_close>i classfa-solid fa-xmark>/i>/div> /div> div idglobalalert_cover> /div> span idglobalalert_message style> /span> /div> /div>/div>script srchttps://deliverit-online-resources-prd.s3.ap-southeast-2.amazonaws.com/templates/template4/js/scrollspy.js typetext/javascript>/script>script>$(document).ready(function(){ // WEB-723 Platina template footer overlap upon first load $(window).scroll(); // $(#login-wrap).fadeToggle(fast); });/script>div classpac-container pac-logo styledisplay: none;>/div>script typetext/javascript>window.NREUM||(NREUM{});NREUM.info{beacon:bam.nr-data.net,licenseKey:NRJS-3bd9f889cb1db7ee0cc,applicationID:589511629,transactionName:Z1cHNURYXRFVWxBaWl4dMBNfFloMUF0cHUVYQg,queueTime:0,applicationTime:829,atts:SxAEQwxCTh8,errorBeacon:bam.nr-data.net,agent:}/script>/body>/html>
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]