Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

angular-onsenui.js 570KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005
  1. console.warn('From Onsen UI 2.11.0, the AngularJS binding will no longer be part of the core package. You will need to install the new angularjs-onsenui package. See https://onsen.io/v2/guide/angular1/#migrating-to-angularjs-onsenui-package for more details.');
  2. /* angularjs-onsenui v1.0.1 - 2019-07-29 */
  3. (function (global, factory) {
  4. typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
  5. typeof define === 'function' && define.amd ? define(factory) :
  6. (factory());
  7. }(this, (function () { 'use strict';
  8. /* Simple JavaScript Inheritance for ES 5.1
  9. * based on http://ejohn.org/blog/simple-javascript-inheritance/
  10. * (inspired by base2 and Prototype)
  11. * MIT Licensed.
  12. */
  13. (function () {
  14. var fnTest = /xyz/.test(function () {
  15. }) ? /\b_super\b/ : /.*/;
  16. // The base Class implementation (does nothing)
  17. function BaseClass() {}
  18. // Create a new Class that inherits from this class
  19. BaseClass.extend = function (props) {
  20. var _super = this.prototype;
  21. // Set up the prototype to inherit from the base class
  22. // (but without running the init constructor)
  23. var proto = Object.create(_super);
  24. // Copy the properties over onto the new prototype
  25. for (var name in props) {
  26. // Check if we're overwriting an existing function
  27. proto[name] = typeof props[name] === "function" && typeof _super[name] == "function" && fnTest.test(props[name]) ? function (name, fn) {
  28. return function () {
  29. var tmp = this._super;
  30. // Add a new ._super() method that is the same method
  31. // but on the super-class
  32. this._super = _super[name];
  33. // The method only need to be bound temporarily, so we
  34. // remove it when we're done executing
  35. var ret = fn.apply(this, arguments);
  36. this._super = tmp;
  37. return ret;
  38. };
  39. }(name, props[name]) : props[name];
  40. }
  41. // The new constructor
  42. var newClass = typeof proto.init === "function" ? proto.hasOwnProperty("init") ? proto.init // All construction is actually done in the init method
  43. : function SubClass() {
  44. _super.init.apply(this, arguments);
  45. } : function EmptyClass() {};
  46. // Populate our constructed prototype object
  47. newClass.prototype = proto;
  48. // Enforce the constructor to be what we expect
  49. proto.constructor = newClass;
  50. // And make this class extendable
  51. newClass.extend = BaseClass.extend;
  52. return newClass;
  53. };
  54. // export
  55. window.Class = BaseClass;
  56. })();
  57. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  58. /*
  59. Copyright 2013-2015 ASIAL CORPORATION
  60. Licensed under the Apache License, Version 2.0 (the "License");
  61. you may not use this file except in compliance with the License.
  62. You may obtain a copy of the License at
  63. http://www.apache.org/licenses/LICENSE-2.0
  64. Unless required by applicable law or agreed to in writing, software
  65. distributed under the License is distributed on an "AS IS" BASIS,
  66. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  67. See the License for the specific language governing permissions and
  68. limitations under the License.
  69. */
  70. /**
  71. * @object ons
  72. * @description
  73. * [ja]Onsen UIで利用できるグローバルなオブジェクトです。このオブジェクトは、AngularJSのスコープから参照することができます。 [/ja]
  74. * [en]A global object that's used in Onsen UI. This object can be reached from the AngularJS scope.[/en]
  75. */
  76. (function (ons) {
  77. var module = angular.module('onsen', []);
  78. angular.module('onsen.directives', ['onsen']); // for BC
  79. // JS Global facade for Onsen UI.
  80. initOnsenFacade();
  81. waitOnsenUILoad();
  82. initAngularModule();
  83. initTemplateCache();
  84. function waitOnsenUILoad() {
  85. var unlockOnsenUI = ons._readyLock.lock();
  86. module.run(['$compile', '$rootScope', function ($compile, $rootScope) {
  87. // for initialization hook.
  88. if (document.readyState === 'loading' || document.readyState == 'uninitialized') {
  89. window.addEventListener('DOMContentLoaded', function () {
  90. document.body.appendChild(document.createElement('ons-dummy-for-init'));
  91. });
  92. } else if (document.body) {
  93. document.body.appendChild(document.createElement('ons-dummy-for-init'));
  94. } else {
  95. throw new Error('Invalid initialization state.');
  96. }
  97. $rootScope.$on('$ons-ready', unlockOnsenUI);
  98. }]);
  99. }
  100. function initAngularModule() {
  101. module.value('$onsGlobal', ons);
  102. module.run(['$compile', '$rootScope', '$onsen', '$q', function ($compile, $rootScope, $onsen, $q) {
  103. ons._onsenService = $onsen;
  104. ons._qService = $q;
  105. $rootScope.ons = window.ons;
  106. $rootScope.console = window.console;
  107. $rootScope.alert = window.alert;
  108. ons.$compile = $compile;
  109. }]);
  110. }
  111. function initTemplateCache() {
  112. module.run(['$templateCache', function ($templateCache) {
  113. var tmp = ons._internal.getTemplateHTMLAsync;
  114. ons._internal.getTemplateHTMLAsync = function (page) {
  115. var cache = $templateCache.get(page);
  116. if (cache) {
  117. return Promise.resolve(cache);
  118. } else {
  119. return tmp(page);
  120. }
  121. };
  122. }]);
  123. }
  124. function initOnsenFacade() {
  125. ons._onsenService = null;
  126. // Object to attach component variables to when using the var="..." attribute.
  127. // Can be set to null to avoid polluting the global scope.
  128. ons.componentBase = window;
  129. /**
  130. * @method bootstrap
  131. * @signature bootstrap([moduleName, [dependencies]])
  132. * @description
  133. * [ja]Onsen UIの初期化を行います。Angular.jsのng-app属性を利用すること無しにOnsen UIを読み込んで初期化してくれます。[/ja]
  134. * [en]Initialize Onsen UI. Can be used to load Onsen UI without using the <code>ng-app</code> attribute from AngularJS.[/en]
  135. * @param {String} [moduleName]
  136. * [en]AngularJS module name.[/en]
  137. * [ja]Angular.jsでのモジュール名[/ja]
  138. * @param {Array} [dependencies]
  139. * [en]List of AngularJS module dependencies.[/en]
  140. * [ja]依存するAngular.jsのモジュール名の配列[/ja]
  141. * @return {Object}
  142. * [en]An AngularJS module object.[/en]
  143. * [ja]AngularJSのModuleオブジェクトを表します。[/ja]
  144. */
  145. ons.bootstrap = function (name, deps) {
  146. if (angular.isArray(name)) {
  147. deps = name;
  148. name = undefined;
  149. }
  150. if (!name) {
  151. name = 'myOnsenApp';
  152. }
  153. deps = ['onsen'].concat(angular.isArray(deps) ? deps : []);
  154. var module = angular.module(name, deps);
  155. var doc = window.document;
  156. if (doc.readyState == 'loading' || doc.readyState == 'uninitialized' || doc.readyState == 'interactive') {
  157. doc.addEventListener('DOMContentLoaded', function () {
  158. angular.bootstrap(doc.documentElement, [name]);
  159. }, false);
  160. } else if (doc.documentElement) {
  161. angular.bootstrap(doc.documentElement, [name]);
  162. } else {
  163. throw new Error('Invalid state');
  164. }
  165. return module;
  166. };
  167. /**
  168. * @method findParentComponentUntil
  169. * @signature findParentComponentUntil(name, [dom])
  170. * @param {String} name
  171. * [en]Name of component, i.e. 'ons-page'.[/en]
  172. * [ja]コンポーネント名を指定します。例えばons-pageなどを指定します。[/ja]
  173. * @param {Object/jqLite/HTMLElement} [dom]
  174. * [en]$event, jqLite or HTMLElement object.[/en]
  175. * [ja]$eventオブジェクト、jqLiteオブジェクト、HTMLElementオブジェクトのいずれかを指定できます。[/ja]
  176. * @return {Object}
  177. * [en]Component object. Will return null if no component was found.[/en]
  178. * [ja]コンポーネントのオブジェクトを返します。もしコンポーネントが見つからなかった場合にはnullを返します。[/ja]
  179. * @description
  180. * [en]Find parent component object of <code>dom</code> element.[/en]
  181. * [ja]指定されたdom引数の親要素をたどってコンポーネントを検索します。[/ja]
  182. */
  183. ons.findParentComponentUntil = function (name, dom) {
  184. var element;
  185. if (dom instanceof HTMLElement) {
  186. element = angular.element(dom);
  187. } else if (dom instanceof angular.element) {
  188. element = dom;
  189. } else if (dom.target) {
  190. element = angular.element(dom.target);
  191. }
  192. return element.inheritedData(name);
  193. };
  194. /**
  195. * @method findComponent
  196. * @signature findComponent(selector, [dom])
  197. * @param {String} selector
  198. * [en]CSS selector[/en]
  199. * [ja]CSSセレクターを指定します。[/ja]
  200. * @param {HTMLElement} [dom]
  201. * [en]DOM element to search from.[/en]
  202. * [ja]検索対象とするDOM要素を指定します。[/ja]
  203. * @return {Object/null}
  204. * [en]Component object. Will return null if no component was found.[/en]
  205. * [ja]コンポーネントのオブジェクトを返します。もしコンポーネントが見つからなかった場合にはnullを返します。[/ja]
  206. * @description
  207. * [en]Find component object using CSS selector.[/en]
  208. * [ja]CSSセレクタを使ってコンポーネントのオブジェクトを検索します。[/ja]
  209. */
  210. ons.findComponent = function (selector, dom) {
  211. var target = (dom ? dom : document).querySelector(selector);
  212. return target ? angular.element(target).data(target.nodeName.toLowerCase()) || null : null;
  213. };
  214. /**
  215. * @method compile
  216. * @signature compile(dom)
  217. * @param {HTMLElement} dom
  218. * [en]Element to compile.[/en]
  219. * [ja]コンパイルする要素を指定します。[/ja]
  220. * @description
  221. * [en]Compile Onsen UI components.[/en]
  222. * [ja]通常のHTMLの要素をOnsen UIのコンポーネントにコンパイルします。[/ja]
  223. */
  224. ons.compile = function (dom) {
  225. if (!ons.$compile) {
  226. throw new Error('ons.$compile() is not ready. Wait for initialization with ons.ready().');
  227. }
  228. if (!(dom instanceof HTMLElement)) {
  229. throw new Error('First argument must be an instance of HTMLElement.');
  230. }
  231. var scope = angular.element(dom).scope();
  232. if (!scope) {
  233. throw new Error('AngularJS Scope is null. Argument DOM element must be attached in DOM document.');
  234. }
  235. ons.$compile(dom)(scope);
  236. };
  237. ons._getOnsenService = function () {
  238. if (!this._onsenService) {
  239. throw new Error('$onsen is not loaded, wait for ons.ready().');
  240. }
  241. return this._onsenService;
  242. };
  243. /**
  244. * @param {String} elementName
  245. * @param {Function} lastReady
  246. * @return {Function}
  247. */
  248. ons._waitDiretiveInit = function (elementName, lastReady) {
  249. return function (element, callback) {
  250. if (angular.element(element).data(elementName)) {
  251. lastReady(element, callback);
  252. } else {
  253. var listen = function listen() {
  254. lastReady(element, callback);
  255. element.removeEventListener(elementName + ':init', listen, false);
  256. };
  257. element.addEventListener(elementName + ':init', listen, false);
  258. }
  259. };
  260. };
  261. /**
  262. * @method createElement
  263. * @signature createElement(template, [options])
  264. * @param {String} template
  265. * [en]Either an HTML file path, an `<ons-template>` id or an HTML string such as `'<div id="foo">hoge</div>'`.[/en]
  266. * [ja][/ja]
  267. * @param {Object} [options]
  268. * [en]Parameter object.[/en]
  269. * [ja]オプションを指定するオブジェクト。[/ja]
  270. * @param {Boolean|HTMLElement} [options.append]
  271. * [en]Whether or not the element should be automatically appended to the DOM. Defaults to `false`. If `true` value is given, `document.body` will be used as the target.[/en]
  272. * [ja][/ja]
  273. * @param {HTMLElement} [options.insertBefore]
  274. * [en]Reference node that becomes the next sibling of the new node (`options.append` element).[/en]
  275. * [ja][/ja]
  276. * @param {Object} [options.parentScope]
  277. * [en]Parent scope of the element. Used to bind models and access scope methods from the element. Requires append option.[/en]
  278. * [ja][/ja]
  279. * @return {HTMLElement|Promise}
  280. * [en]If the provided template was an inline HTML string, it returns the new element. Otherwise, it returns a promise that resolves to the new element.[/en]
  281. * [ja][/ja]
  282. * @description
  283. * [en]Create a new element from a template. Both inline HTML and external files are supported although the return value differs. If the element is appended it will also be compiled by AngularJS (otherwise, `ons.compile` should be manually used).[/en]
  284. * [ja][/ja]
  285. */
  286. var createElementOriginal = ons.createElement;
  287. ons.createElement = function (template) {
  288. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  289. var link = function link(element) {
  290. if (options.parentScope) {
  291. ons.$compile(angular.element(element))(options.parentScope.$new());
  292. options.parentScope.$evalAsync();
  293. } else {
  294. ons.compile(element);
  295. }
  296. };
  297. var getScope = function getScope(e) {
  298. return angular.element(e).data(e.tagName.toLowerCase()) || e;
  299. };
  300. var result = createElementOriginal(template, _extends({ append: !!options.parentScope, link: link }, options));
  301. return result instanceof Promise ? result.then(getScope) : getScope(result);
  302. };
  303. /**
  304. * @method createAlertDialog
  305. * @signature createAlertDialog(page, [options])
  306. * @param {String} page
  307. * [en]Page name. Can be either an HTML file or an <ons-template> containing a <ons-alert-dialog> component.[/en]
  308. * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja]
  309. * @param {Object} [options]
  310. * [en]Parameter object.[/en]
  311. * [ja]オプションを指定するオブジェクト。[/ja]
  312. * @param {Object} [options.parentScope]
  313. * [en]Parent scope of the dialog. Used to bind models and access scope methods from the dialog.[/en]
  314. * [ja]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。このパラメータはAngularJSバインディングでのみ利用できます。[/ja]
  315. * @return {Promise}
  316. * [en]Promise object that resolves to the alert dialog component object.[/en]
  317. * [ja]ダイアログのコンポーネントオブジェクトを解決するPromiseオブジェクトを返します。[/ja]
  318. * @description
  319. * [en]Create a alert dialog instance from a template. This method will be deprecated in favor of `ons.createElement`.[/en]
  320. * [ja]テンプレートからアラートダイアログのインスタンスを生成します。[/ja]
  321. */
  322. /**
  323. * @method createDialog
  324. * @signature createDialog(page, [options])
  325. * @param {String} page
  326. * [en]Page name. Can be either an HTML file or an <ons-template> containing a <ons-dialog> component.[/en]
  327. * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja]
  328. * @param {Object} [options]
  329. * [en]Parameter object.[/en]
  330. * [ja]オプションを指定するオブジェクト。[/ja]
  331. * @param {Object} [options.parentScope]
  332. * [en]Parent scope of the dialog. Used to bind models and access scope methods from the dialog.[/en]
  333. * [ja]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。このパラメータはAngularJSバインディングでのみ利用できます。[/ja]
  334. * @return {Promise}
  335. * [en]Promise object that resolves to the dialog component object.[/en]
  336. * [ja]ダイアログのコンポーネントオブジェクトを解決するPromiseオブジェクトを返します。[/ja]
  337. * @description
  338. * [en]Create a dialog instance from a template. This method will be deprecated in favor of `ons.createElement`.[/en]
  339. * [ja]テンプレートからダイアログのインスタンスを生成します。[/ja]
  340. */
  341. /**
  342. * @method createPopover
  343. * @signature createPopover(page, [options])
  344. * @param {String} page
  345. * [en]Page name. Can be either an HTML file or an <ons-template> containing a <ons-dialog> component.[/en]
  346. * [ja]pageのURLか、もしくはons-templateで宣言したテンプレートのid属性の値を指定できます。[/ja]
  347. * @param {Object} [options]
  348. * [en]Parameter object.[/en]
  349. * [ja]オプションを指定するオブジェクト。[/ja]
  350. * @param {Object} [options.parentScope]
  351. * [en]Parent scope of the dialog. Used to bind models and access scope methods from the dialog.[/en]
  352. * [ja]ダイアログ内で利用する親スコープを指定します。ダイアログからモデルやスコープのメソッドにアクセスするのに使います。このパラメータはAngularJSバインディングでのみ利用できます。[/ja]
  353. * @return {Promise}
  354. * [en]Promise object that resolves to the popover component object.[/en]
  355. * [ja]ポップオーバーのコンポーネントオブジェクトを解決するPromiseオブジェクトを返します。[/ja]
  356. * @description
  357. * [en]Create a popover instance from a template. This method will be deprecated in favor of `ons.createElement`.[/en]
  358. * [ja]テンプレートからポップオーバーのインスタンスを生成します。[/ja]
  359. */
  360. /**
  361. * @param {String} page
  362. */
  363. var resolveLoadingPlaceHolderOriginal = ons.resolveLoadingPlaceHolder;
  364. ons.resolveLoadingPlaceholder = function (page) {
  365. return resolveLoadingPlaceholderOriginal(page, function (element, done) {
  366. ons.compile(element);
  367. angular.element(element).scope().$evalAsync(function () {
  368. return setImmediate(done);
  369. });
  370. });
  371. };
  372. ons._setupLoadingPlaceHolders = function () {
  373. // Do nothing
  374. };
  375. }
  376. })(window.ons = window.ons || {});
  377. /*
  378. Copyright 2013-2015 ASIAL CORPORATION
  379. Licensed under the Apache License, Version 2.0 (the "License");
  380. you may not use this file except in compliance with the License.
  381. You may obtain a copy of the License at
  382. http://www.apache.org/licenses/LICENSE-2.0
  383. Unless required by applicable law or agreed to in writing, software
  384. distributed under the License is distributed on an "AS IS" BASIS,
  385. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  386. See the License for the specific language governing permissions and
  387. limitations under the License.
  388. */
  389. (function () {
  390. var module = angular.module('onsen');
  391. module.factory('ActionSheetView', ['$onsen', function ($onsen) {
  392. var ActionSheetView = Class.extend({
  393. /**
  394. * @param {Object} scope
  395. * @param {jqLite} element
  396. * @param {Object} attrs
  397. */
  398. init: function init(scope, element, attrs) {
  399. this._scope = scope;
  400. this._element = element;
  401. this._attrs = attrs;
  402. this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], ['show', 'hide', 'toggle']);
  403. this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], ['preshow', 'postshow', 'prehide', 'posthide', 'cancel'], function (detail) {
  404. if (detail.actionSheet) {
  405. detail.actionSheet = this;
  406. }
  407. return detail;
  408. }.bind(this));
  409. this._scope.$on('$destroy', this._destroy.bind(this));
  410. },
  411. _destroy: function _destroy() {
  412. this.emit('destroy');
  413. this._element.remove();
  414. this._clearDerivingMethods();
  415. this._clearDerivingEvents();
  416. this._scope = this._attrs = this._element = null;
  417. }
  418. });
  419. MicroEvent.mixin(ActionSheetView);
  420. $onsen.derivePropertiesFromElement(ActionSheetView, ['disabled', 'cancelable', 'visible', 'onDeviceBackButton']);
  421. return ActionSheetView;
  422. }]);
  423. })();
  424. /*
  425. Copyright 2013-2015 ASIAL CORPORATION
  426. Licensed under the Apache License, Version 2.0 (the "License");
  427. you may not use this file except in compliance with the License.
  428. You may obtain a copy of the License at
  429. http://www.apache.org/licenses/LICENSE-2.0
  430. Unless required by applicable law or agreed to in writing, software
  431. distributed under the License is distributed on an "AS IS" BASIS,
  432. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  433. See the License for the specific language governing permissions and
  434. limitations under the License.
  435. */
  436. (function () {
  437. var module = angular.module('onsen');
  438. module.factory('AlertDialogView', ['$onsen', function ($onsen) {
  439. var AlertDialogView = Class.extend({
  440. /**
  441. * @param {Object} scope
  442. * @param {jqLite} element
  443. * @param {Object} attrs
  444. */
  445. init: function init(scope, element, attrs) {
  446. this._scope = scope;
  447. this._element = element;
  448. this._attrs = attrs;
  449. this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], ['show', 'hide']);
  450. this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], ['preshow', 'postshow', 'prehide', 'posthide', 'cancel'], function (detail) {
  451. if (detail.alertDialog) {
  452. detail.alertDialog = this;
  453. }
  454. return detail;
  455. }.bind(this));
  456. this._scope.$on('$destroy', this._destroy.bind(this));
  457. },
  458. _destroy: function _destroy() {
  459. this.emit('destroy');
  460. this._element.remove();
  461. this._clearDerivingMethods();
  462. this._clearDerivingEvents();
  463. this._scope = this._attrs = this._element = null;
  464. }
  465. });
  466. MicroEvent.mixin(AlertDialogView);
  467. $onsen.derivePropertiesFromElement(AlertDialogView, ['disabled', 'cancelable', 'visible', 'onDeviceBackButton']);
  468. return AlertDialogView;
  469. }]);
  470. })();
  471. /*
  472. Copyright 2013-2015 ASIAL CORPORATION
  473. Licensed under the Apache License, Version 2.0 (the "License");
  474. you may not use this file except in compliance with the License.
  475. You may obtain a copy of the License at
  476. http://www.apache.org/licenses/LICENSE-2.0
  477. Unless required by applicable law or agreed to in writing, software
  478. distributed under the License is distributed on an "AS IS" BASIS,
  479. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  480. See the License for the specific language governing permissions and
  481. limitations under the License.
  482. */
  483. (function () {
  484. var module = angular.module('onsen');
  485. module.factory('CarouselView', ['$onsen', function ($onsen) {
  486. /**
  487. * @class CarouselView
  488. */
  489. var CarouselView = Class.extend({
  490. /**
  491. * @param {Object} scope
  492. * @param {jqLite} element
  493. * @param {Object} attrs
  494. */
  495. init: function init(scope, element, attrs) {
  496. this._element = element;
  497. this._scope = scope;
  498. this._attrs = attrs;
  499. this._scope.$on('$destroy', this._destroy.bind(this));
  500. this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], ['setActiveIndex', 'getActiveIndex', 'next', 'prev', 'refresh', 'first', 'last']);
  501. this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['refresh', 'postchange', 'overscroll'], function (detail) {
  502. if (detail.carousel) {
  503. detail.carousel = this;
  504. }
  505. return detail;
  506. }.bind(this));
  507. },
  508. _destroy: function _destroy() {
  509. this.emit('destroy');
  510. this._clearDerivingEvents();
  511. this._clearDerivingMethods();
  512. this._element = this._scope = this._attrs = null;
  513. }
  514. });
  515. MicroEvent.mixin(CarouselView);
  516. $onsen.derivePropertiesFromElement(CarouselView, ['centered', 'overscrollable', 'disabled', 'autoScroll', 'swipeable', 'autoScrollRatio', 'itemCount', 'onSwipe']);
  517. return CarouselView;
  518. }]);
  519. })();
  520. /*
  521. Copyright 2013-2015 ASIAL CORPORATION
  522. Licensed under the Apache License, Version 2.0 (the "License");
  523. you may not use this file except in compliance with the License.
  524. You may obtain a copy of the License at
  525. http://www.apache.org/licenses/LICENSE-2.0
  526. Unless required by applicable law or agreed to in writing, software
  527. distributed under the License is distributed on an "AS IS" BASIS,
  528. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  529. See the License for the specific language governing permissions and
  530. limitations under the License.
  531. */
  532. (function () {
  533. var module = angular.module('onsen');
  534. module.factory('DialogView', ['$onsen', function ($onsen) {
  535. var DialogView = Class.extend({
  536. init: function init(scope, element, attrs) {
  537. this._scope = scope;
  538. this._element = element;
  539. this._attrs = attrs;
  540. this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], ['show', 'hide']);
  541. this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], ['preshow', 'postshow', 'prehide', 'posthide', 'cancel'], function (detail) {
  542. if (detail.dialog) {
  543. detail.dialog = this;
  544. }
  545. return detail;
  546. }.bind(this));
  547. this._scope.$on('$destroy', this._destroy.bind(this));
  548. },
  549. _destroy: function _destroy() {
  550. this.emit('destroy');
  551. this._element.remove();
  552. this._clearDerivingMethods();
  553. this._clearDerivingEvents();
  554. this._scope = this._attrs = this._element = null;
  555. }
  556. });
  557. MicroEvent.mixin(DialogView);
  558. $onsen.derivePropertiesFromElement(DialogView, ['disabled', 'cancelable', 'visible', 'onDeviceBackButton']);
  559. return DialogView;
  560. }]);
  561. })();
  562. /*
  563. Copyright 2013-2015 ASIAL CORPORATION
  564. Licensed under the Apache License, Version 2.0 (the "License");
  565. you may not use this file except in compliance with the License.
  566. You may obtain a copy of the License at
  567. http://www.apache.org/licenses/LICENSE-2.0
  568. Unless required by applicable law or agreed to in writing, software
  569. distributed under the License is distributed on an "AS IS" BASIS,
  570. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  571. See the License for the specific language governing permissions and
  572. limitations under the License.
  573. */
  574. (function () {
  575. var module = angular.module('onsen');
  576. module.factory('FabView', ['$onsen', function ($onsen) {
  577. /**
  578. * @class FabView
  579. */
  580. var FabView = Class.extend({
  581. /**
  582. * @param {Object} scope
  583. * @param {jqLite} element
  584. * @param {Object} attrs
  585. */
  586. init: function init(scope, element, attrs) {
  587. this._element = element;
  588. this._scope = scope;
  589. this._attrs = attrs;
  590. this._scope.$on('$destroy', this._destroy.bind(this));
  591. this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], ['show', 'hide', 'toggle']);
  592. },
  593. _destroy: function _destroy() {
  594. this.emit('destroy');
  595. this._clearDerivingMethods();
  596. this._element = this._scope = this._attrs = null;
  597. }
  598. });
  599. $onsen.derivePropertiesFromElement(FabView, ['disabled', 'visible']);
  600. MicroEvent.mixin(FabView);
  601. return FabView;
  602. }]);
  603. })();
  604. /*
  605. Copyright 2013-2015 ASIAL CORPORATION
  606. Licensed under the Apache License, Version 2.0 (the "License");
  607. you may not use this file except in compliance with the License.
  608. You may obtain a copy of the License at
  609. http://www.apache.org/licenses/LICENSE-2.0
  610. Unless required by applicable law or agreed to in writing, software
  611. distributed under the License is distributed on an "AS IS" BASIS,
  612. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  613. See the License for the specific language governing permissions and
  614. limitations under the License.
  615. */
  616. (function () {
  617. angular.module('onsen').factory('GenericView', ['$onsen', function ($onsen) {
  618. var GenericView = Class.extend({
  619. /**
  620. * @param {Object} scope
  621. * @param {jqLite} element
  622. * @param {Object} attrs
  623. * @param {Object} [options]
  624. * @param {Boolean} [options.directiveOnly]
  625. * @param {Function} [options.onDestroy]
  626. * @param {String} [options.modifierTemplate]
  627. */
  628. init: function init(scope, element, attrs, options) {
  629. var self = this;
  630. options = {};
  631. this._element = element;
  632. this._scope = scope;
  633. this._attrs = attrs;
  634. if (options.directiveOnly) {
  635. if (!options.modifierTemplate) {
  636. throw new Error('options.modifierTemplate is undefined.');
  637. }
  638. $onsen.addModifierMethods(this, options.modifierTemplate, element);
  639. } else {
  640. $onsen.addModifierMethodsForCustomElements(this, element);
  641. }
  642. $onsen.cleaner.onDestroy(scope, function () {
  643. self._events = undefined;
  644. $onsen.removeModifierMethods(self);
  645. if (options.onDestroy) {
  646. options.onDestroy(self);
  647. }
  648. $onsen.clearComponent({
  649. scope: scope,
  650. attrs: attrs,
  651. element: element
  652. });
  653. self = element = self._element = self._scope = scope = self._attrs = attrs = options = null;
  654. });
  655. }
  656. });
  657. /**
  658. * @param {Object} scope
  659. * @param {jqLite} element
  660. * @param {Object} attrs
  661. * @param {Object} options
  662. * @param {String} options.viewKey
  663. * @param {Boolean} [options.directiveOnly]
  664. * @param {Function} [options.onDestroy]
  665. * @param {String} [options.modifierTemplate]
  666. */
  667. GenericView.register = function (scope, element, attrs, options) {
  668. var view = new GenericView(scope, element, attrs, options);
  669. if (!options.viewKey) {
  670. throw new Error('options.viewKey is required.');
  671. }
  672. $onsen.declareVarAttribute(attrs, view);
  673. element.data(options.viewKey, view);
  674. var destroy = options.onDestroy || angular.noop;
  675. options.onDestroy = function (view) {
  676. destroy(view);
  677. element.data(options.viewKey, null);
  678. };
  679. return view;
  680. };
  681. MicroEvent.mixin(GenericView);
  682. return GenericView;
  683. }]);
  684. })();
  685. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  686. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  687. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  688. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  689. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  690. /*
  691. Copyright 2013-2015 ASIAL CORPORATION
  692. Licensed under the Apache License, Version 2.0 (the "License");
  693. you may not use this file except in compliance with the License.
  694. You may obtain a copy of the License at
  695. http://www.apache.org/licenses/LICENSE-2.0
  696. Unless required by applicable law or agreed to in writing, software
  697. distributed under the License is distributed on an "AS IS" BASIS,
  698. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  699. See the License for the specific language governing permissions and
  700. limitations under the License.
  701. */
  702. (function () {
  703. angular.module('onsen').factory('AngularLazyRepeatDelegate', ['$compile', function ($compile) {
  704. var directiveAttributes = ['ons-lazy-repeat', 'ons:lazy:repeat', 'ons_lazy_repeat', 'data-ons-lazy-repeat', 'x-ons-lazy-repeat'];
  705. var AngularLazyRepeatDelegate = function (_ons$_internal$LazyRe) {
  706. _inherits(AngularLazyRepeatDelegate, _ons$_internal$LazyRe);
  707. /**
  708. * @param {Object} userDelegate
  709. * @param {Element} templateElement
  710. * @param {Scope} parentScope
  711. */
  712. function AngularLazyRepeatDelegate(userDelegate, templateElement, parentScope) {
  713. _classCallCheck(this, AngularLazyRepeatDelegate);
  714. var _this = _possibleConstructorReturn(this, (AngularLazyRepeatDelegate.__proto__ || Object.getPrototypeOf(AngularLazyRepeatDelegate)).call(this, userDelegate, templateElement));
  715. _this._parentScope = parentScope;
  716. directiveAttributes.forEach(function (attr) {
  717. return templateElement.removeAttribute(attr);
  718. });
  719. _this._linker = $compile(templateElement ? templateElement.cloneNode(true) : null);
  720. return _this;
  721. }
  722. _createClass(AngularLazyRepeatDelegate, [{
  723. key: 'configureItemScope',
  724. value: function configureItemScope(item, scope) {
  725. if (this._userDelegate.configureItemScope instanceof Function) {
  726. this._userDelegate.configureItemScope(item, scope);
  727. }
  728. }
  729. }, {
  730. key: 'destroyItemScope',
  731. value: function destroyItemScope(item, element) {
  732. if (this._userDelegate.destroyItemScope instanceof Function) {
  733. this._userDelegate.destroyItemScope(item, element);
  734. }
  735. }
  736. }, {
  737. key: '_usingBinding',
  738. value: function _usingBinding() {
  739. if (this._userDelegate.configureItemScope) {
  740. return true;
  741. }
  742. if (this._userDelegate.createItemContent) {
  743. return false;
  744. }
  745. throw new Error('`lazy-repeat` delegate object is vague.');
  746. }
  747. }, {
  748. key: 'loadItemElement',
  749. value: function loadItemElement(index, done) {
  750. this._prepareItemElement(index, function (_ref) {
  751. var element = _ref.element,
  752. scope = _ref.scope;
  753. done({ element: element, scope: scope });
  754. });
  755. }
  756. }, {
  757. key: '_prepareItemElement',
  758. value: function _prepareItemElement(index, done) {
  759. var _this2 = this;
  760. var scope = this._parentScope.$new();
  761. this._addSpecialProperties(index, scope);
  762. if (this._usingBinding()) {
  763. this.configureItemScope(index, scope);
  764. }
  765. this._linker(scope, function (cloned) {
  766. var element = cloned[0];
  767. if (!_this2._usingBinding()) {
  768. element = _this2._userDelegate.createItemContent(index, element);
  769. $compile(element)(scope);
  770. }
  771. done({ element: element, scope: scope });
  772. });
  773. }
  774. /**
  775. * @param {Number} index
  776. * @param {Object} scope
  777. */
  778. }, {
  779. key: '_addSpecialProperties',
  780. value: function _addSpecialProperties(i, scope) {
  781. var last = this.countItems() - 1;
  782. angular.extend(scope, {
  783. $index: i,
  784. $first: i === 0,
  785. $last: i === last,
  786. $middle: i !== 0 && i !== last,
  787. $even: i % 2 === 0,
  788. $odd: i % 2 === 1
  789. });
  790. }
  791. }, {
  792. key: 'updateItem',
  793. value: function updateItem(index, item) {
  794. var _this3 = this;
  795. if (this._usingBinding()) {
  796. item.scope.$evalAsync(function () {
  797. return _this3.configureItemScope(index, item.scope);
  798. });
  799. } else {
  800. _get(AngularLazyRepeatDelegate.prototype.__proto__ || Object.getPrototypeOf(AngularLazyRepeatDelegate.prototype), 'updateItem', this).call(this, index, item);
  801. }
  802. }
  803. /**
  804. * @param {Number} index
  805. * @param {Object} item
  806. * @param {Object} item.scope
  807. * @param {Element} item.element
  808. */
  809. }, {
  810. key: 'destroyItem',
  811. value: function destroyItem(index, item) {
  812. if (this._usingBinding()) {
  813. this.destroyItemScope(index, item.scope);
  814. } else {
  815. _get(AngularLazyRepeatDelegate.prototype.__proto__ || Object.getPrototypeOf(AngularLazyRepeatDelegate.prototype), 'destroyItem', this).call(this, index, item.element);
  816. }
  817. item.scope.$destroy();
  818. }
  819. }, {
  820. key: 'destroy',
  821. value: function destroy() {
  822. _get(AngularLazyRepeatDelegate.prototype.__proto__ || Object.getPrototypeOf(AngularLazyRepeatDelegate.prototype), 'destroy', this).call(this);
  823. this._scope = null;
  824. }
  825. }]);
  826. return AngularLazyRepeatDelegate;
  827. }(ons._internal.LazyRepeatDelegate);
  828. return AngularLazyRepeatDelegate;
  829. }]);
  830. })();
  831. /*
  832. Copyright 2013-2015 ASIAL CORPORATION
  833. Licensed under the Apache License, Version 2.0 (the "License");
  834. you may not use this file except in compliance with the License.
  835. You may obtain a copy of the License at
  836. http://www.apache.org/licenses/LICENSE-2.0
  837. Unless required by applicable law or agreed to in writing, software
  838. distributed under the License is distributed on an "AS IS" BASIS,
  839. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  840. See the License for the specific language governing permissions and
  841. limitations under the License.
  842. */
  843. (function () {
  844. var module = angular.module('onsen');
  845. module.factory('LazyRepeatView', ['AngularLazyRepeatDelegate', function (AngularLazyRepeatDelegate) {
  846. var LazyRepeatView = Class.extend({
  847. /**
  848. * @param {Object} scope
  849. * @param {jqLite} element
  850. * @param {Object} attrs
  851. */
  852. init: function init(scope, element, attrs, linker) {
  853. var _this = this;
  854. this._element = element;
  855. this._scope = scope;
  856. this._attrs = attrs;
  857. this._linker = linker;
  858. var userDelegate = this._scope.$eval(this._attrs.onsLazyRepeat);
  859. var internalDelegate = new AngularLazyRepeatDelegate(userDelegate, element[0], scope || element.scope());
  860. this._provider = new ons._internal.LazyRepeatProvider(element[0].parentNode, internalDelegate);
  861. // Expose refresh method to user.
  862. userDelegate.refresh = this._provider.refresh.bind(this._provider);
  863. element.remove();
  864. // Render when number of items change.
  865. this._scope.$watch(internalDelegate.countItems.bind(internalDelegate), this._provider._onChange.bind(this._provider));
  866. this._scope.$on('$destroy', function () {
  867. _this._element = _this._scope = _this._attrs = _this._linker = null;
  868. });
  869. }
  870. });
  871. return LazyRepeatView;
  872. }]);
  873. })();
  874. /*
  875. Copyright 2013-2015 ASIAL CORPORATION
  876. Licensed under the Apache License, Version 2.0 (the "License");
  877. you may not use this file except in compliance with the License.
  878. You may obtain a copy of the License at
  879. http://www.apache.org/licenses/LICENSE-2.0
  880. Unless required by applicable law or agreed to in writing, software
  881. distributed under the License is distributed on an "AS IS" BASIS,
  882. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  883. See the License for the specific language governing permissions and
  884. limitations under the License.
  885. */
  886. (function () {
  887. var module = angular.module('onsen');
  888. module.factory('ModalView', ['$onsen', '$parse', function ($onsen, $parse) {
  889. var ModalView = Class.extend({
  890. _element: undefined,
  891. _scope: undefined,
  892. init: function init(scope, element, attrs) {
  893. this._scope = scope;
  894. this._element = element;
  895. this._attrs = attrs;
  896. this._scope.$on('$destroy', this._destroy.bind(this));
  897. this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], ['show', 'hide', 'toggle']);
  898. this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], ['preshow', 'postshow', 'prehide', 'posthide'], function (detail) {
  899. if (detail.modal) {
  900. detail.modal = this;
  901. }
  902. return detail;
  903. }.bind(this));
  904. },
  905. _destroy: function _destroy() {
  906. this.emit('destroy', { page: this });
  907. this._element.remove();
  908. this._clearDerivingMethods();
  909. this._clearDerivingEvents();
  910. this._events = this._element = this._scope = this._attrs = null;
  911. }
  912. });
  913. MicroEvent.mixin(ModalView);
  914. $onsen.derivePropertiesFromElement(ModalView, ['onDeviceBackButton', 'visible']);
  915. return ModalView;
  916. }]);
  917. })();
  918. /*
  919. Copyright 2013-2015 ASIAL CORPORATION
  920. Licensed under the Apache License, Version 2.0 (the "License");
  921. you may not use this file except in compliance with the License.
  922. You may obtain a copy of the License at
  923. http://www.apache.org/licenses/LICENSE-2.0
  924. Unless required by applicable law or agreed to in writing, software
  925. distributed under the License is distributed on an "AS IS" BASIS,
  926. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  927. See the License for the specific language governing permissions and
  928. limitations under the License.
  929. */
  930. (function () {
  931. var module = angular.module('onsen');
  932. module.factory('NavigatorView', ['$compile', '$onsen', function ($compile, $onsen) {
  933. /**
  934. * Manages the page navigation backed by page stack.
  935. *
  936. * @class NavigatorView
  937. */
  938. var NavigatorView = Class.extend({
  939. /**
  940. * @member {jqLite} Object
  941. */
  942. _element: undefined,
  943. /**
  944. * @member {Object} Object
  945. */
  946. _attrs: undefined,
  947. /**
  948. * @member {Object}
  949. */
  950. _scope: undefined,
  951. /**
  952. * @param {Object} scope
  953. * @param {jqLite} element jqLite Object to manage with navigator
  954. * @param {Object} attrs
  955. */
  956. init: function init(scope, element, attrs) {
  957. this._element = element || angular.element(window.document.body);
  958. this._scope = scope || this._element.scope();
  959. this._attrs = attrs;
  960. this._previousPageScope = null;
  961. this._boundOnPrepop = this._onPrepop.bind(this);
  962. this._element.on('prepop', this._boundOnPrepop);
  963. this._scope.$on('$destroy', this._destroy.bind(this));
  964. this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['prepush', 'postpush', 'prepop', 'postpop', 'init', 'show', 'hide', 'destroy'], function (detail) {
  965. if (detail.navigator) {
  966. detail.navigator = this;
  967. }
  968. return detail;
  969. }.bind(this));
  970. this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], ['insertPage', 'removePage', 'pushPage', 'bringPageTop', 'popPage', 'replacePage', 'resetToPage', 'canPopPage']);
  971. },
  972. _onPrepop: function _onPrepop(event) {
  973. var pages = event.detail.navigator.pages;
  974. angular.element(pages[pages.length - 2]).data('_scope').$evalAsync();
  975. },
  976. _destroy: function _destroy() {
  977. this.emit('destroy');
  978. this._clearDerivingEvents();
  979. this._clearDerivingMethods();
  980. this._element.off('prepop', this._boundOnPrepop);
  981. this._element = this._scope = this._attrs = null;
  982. }
  983. });
  984. MicroEvent.mixin(NavigatorView);
  985. $onsen.derivePropertiesFromElement(NavigatorView, ['pages', 'topPage', 'onSwipe', 'options', 'onDeviceBackButton', 'pageLoader']);
  986. return NavigatorView;
  987. }]);
  988. })();
  989. /*
  990. Copyright 2013-2015 ASIAL CORPORATION
  991. Licensed under the Apache License, Version 2.0 (the "License");
  992. you may not use this file except in compliance with the License.
  993. You may obtain a copy of the License at
  994. http://www.apache.org/licenses/LICENSE-2.0
  995. Unless required by applicable law or agreed to in writing, software
  996. distributed under the License is distributed on an "AS IS" BASIS,
  997. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  998. See the License for the specific language governing permissions and
  999. limitations under the License.
  1000. */
  1001. (function () {
  1002. var module = angular.module('onsen');
  1003. module.factory('PageView', ['$onsen', '$parse', function ($onsen, $parse) {
  1004. var PageView = Class.extend({
  1005. init: function init(scope, element, attrs) {
  1006. var _this = this;
  1007. this._scope = scope;
  1008. this._element = element;
  1009. this._attrs = attrs;
  1010. this._clearListener = scope.$on('$destroy', this._destroy.bind(this));
  1011. this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['init', 'show', 'hide', 'destroy']);
  1012. Object.defineProperty(this, 'onDeviceBackButton', {
  1013. get: function get() {
  1014. return _this._element[0].onDeviceBackButton;
  1015. },
  1016. set: function set(value) {
  1017. if (!_this._userBackButtonHandler) {
  1018. _this._enableBackButtonHandler();
  1019. }
  1020. _this._userBackButtonHandler = value;
  1021. }
  1022. });
  1023. if (this._attrs.ngDeviceBackButton || this._attrs.onDeviceBackButton) {
  1024. this._enableBackButtonHandler();
  1025. }
  1026. if (this._attrs.ngInfiniteScroll) {
  1027. this._element[0].onInfiniteScroll = function (done) {
  1028. $parse(_this._attrs.ngInfiniteScroll)(_this._scope)(done);
  1029. };
  1030. }
  1031. },
  1032. _enableBackButtonHandler: function _enableBackButtonHandler() {
  1033. this._userBackButtonHandler = angular.noop;
  1034. this._element[0].onDeviceBackButton = this._onDeviceBackButton.bind(this);
  1035. },
  1036. _onDeviceBackButton: function _onDeviceBackButton($event) {
  1037. this._userBackButtonHandler($event);
  1038. // ng-device-backbutton
  1039. if (this._attrs.ngDeviceBackButton) {
  1040. $parse(this._attrs.ngDeviceBackButton)(this._scope, { $event: $event });
  1041. }
  1042. // on-device-backbutton
  1043. /* jshint ignore:start */
  1044. if (this._attrs.onDeviceBackButton) {
  1045. var lastEvent = window.$event;
  1046. window.$event = $event;
  1047. new Function(this._attrs.onDeviceBackButton)(); // eslint-disable-line no-new-func
  1048. window.$event = lastEvent;
  1049. }
  1050. /* jshint ignore:end */
  1051. },
  1052. _destroy: function _destroy() {
  1053. this._clearDerivingEvents();
  1054. this._element = null;
  1055. this._scope = null;
  1056. this._clearListener();
  1057. }
  1058. });
  1059. MicroEvent.mixin(PageView);
  1060. return PageView;
  1061. }]);
  1062. })();
  1063. /*
  1064. Copyright 2013-2015 ASIAL CORPORATION
  1065. Licensed under the Apache License, Version 2.0 (the "License");
  1066. you may not use this file except in compliance with the License.
  1067. You may obtain a copy of the License at
  1068. http://www.apache.org/licenses/LICENSE-2.0
  1069. Unless required by applicable law or agreed to in writing, software
  1070. distributed under the License is distributed on an "AS IS" BASIS,
  1071. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1072. See the License for the specific language governing permissions and
  1073. limitations under the License.
  1074. */
  1075. (function () {
  1076. angular.module('onsen').factory('PopoverView', ['$onsen', function ($onsen) {
  1077. var PopoverView = Class.extend({
  1078. /**
  1079. * @param {Object} scope
  1080. * @param {jqLite} element
  1081. * @param {Object} attrs
  1082. */
  1083. init: function init(scope, element, attrs) {
  1084. this._element = element;
  1085. this._scope = scope;
  1086. this._attrs = attrs;
  1087. this._scope.$on('$destroy', this._destroy.bind(this));
  1088. this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], ['show', 'hide']);
  1089. this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], ['preshow', 'postshow', 'prehide', 'posthide'], function (detail) {
  1090. if (detail.popover) {
  1091. detail.popover = this;
  1092. }
  1093. return detail;
  1094. }.bind(this));
  1095. },
  1096. _destroy: function _destroy() {
  1097. this.emit('destroy');
  1098. this._clearDerivingMethods();
  1099. this._clearDerivingEvents();
  1100. this._element.remove();
  1101. this._element = this._scope = null;
  1102. }
  1103. });
  1104. MicroEvent.mixin(PopoverView);
  1105. $onsen.derivePropertiesFromElement(PopoverView, ['cancelable', 'disabled', 'onDeviceBackButton', 'visible']);
  1106. return PopoverView;
  1107. }]);
  1108. })();
  1109. /*
  1110. Copyright 2013-2015 ASIAL CORPORATION
  1111. Licensed under the Apache License, Version 2.0 (the "License");
  1112. you may not use this file except in compliance with the License.
  1113. You may obtain a copy of the License at
  1114. http://www.apache.org/licenses/LICENSE-2.0
  1115. Unless required by applicable law or agreed to in writing, software
  1116. distributed under the License is distributed on an "AS IS" BASIS,
  1117. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1118. See the License for the specific language governing permissions and
  1119. limitations under the License.
  1120. */
  1121. (function () {
  1122. var module = angular.module('onsen');
  1123. module.factory('PullHookView', ['$onsen', '$parse', function ($onsen, $parse) {
  1124. var PullHookView = Class.extend({
  1125. init: function init(scope, element, attrs) {
  1126. var _this = this;
  1127. this._element = element;
  1128. this._scope = scope;
  1129. this._attrs = attrs;
  1130. this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], ['changestate'], function (detail) {
  1131. if (detail.pullHook) {
  1132. detail.pullHook = _this;
  1133. }
  1134. return detail;
  1135. });
  1136. this.on('changestate', function () {
  1137. return _this._scope.$evalAsync();
  1138. });
  1139. this._element[0].onAction = function (done) {
  1140. if (_this._attrs.ngAction) {
  1141. _this._scope.$eval(_this._attrs.ngAction, { $done: done });
  1142. } else {
  1143. _this.onAction ? _this.onAction(done) : done();
  1144. }
  1145. };
  1146. this._scope.$on('$destroy', this._destroy.bind(this));
  1147. },
  1148. _destroy: function _destroy() {
  1149. this.emit('destroy');
  1150. this._clearDerivingEvents();
  1151. this._element = this._scope = this._attrs = null;
  1152. }
  1153. });
  1154. MicroEvent.mixin(PullHookView);
  1155. $onsen.derivePropertiesFromElement(PullHookView, ['state', 'onPull', 'pullDistance', 'height', 'thresholdHeight', 'disabled']);
  1156. return PullHookView;
  1157. }]);
  1158. })();
  1159. /*
  1160. Copyright 2013-2015 ASIAL CORPORATION
  1161. Licensed under the Apache License, Version 2.0 (the "License");
  1162. you may not use this file except in compliance with the License.
  1163. You may obtain a copy of the License at
  1164. http://www.apache.org/licenses/LICENSE-2.0
  1165. Unless required by applicable law or agreed to in writing, software
  1166. distributed under the License is distributed on an "AS IS" BASIS,
  1167. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1168. See the License for the specific language governing permissions and
  1169. limitations under the License.
  1170. */
  1171. (function () {
  1172. var module = angular.module('onsen');
  1173. module.factory('SpeedDialView', ['$onsen', function ($onsen) {
  1174. /**
  1175. * @class SpeedDialView
  1176. */
  1177. var SpeedDialView = Class.extend({
  1178. /**
  1179. * @param {Object} scope
  1180. * @param {jqLite} element
  1181. * @param {Object} attrs
  1182. */
  1183. init: function init(scope, element, attrs) {
  1184. this._element = element;
  1185. this._scope = scope;
  1186. this._attrs = attrs;
  1187. this._scope.$on('$destroy', this._destroy.bind(this));
  1188. this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], ['show', 'hide', 'showItems', 'hideItems', 'isOpen', 'toggle', 'toggleItems']);
  1189. this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['open', 'close']).bind(this);
  1190. },
  1191. _destroy: function _destroy() {
  1192. this.emit('destroy');
  1193. this._clearDerivingEvents();
  1194. this._clearDerivingMethods();
  1195. this._element = this._scope = this._attrs = null;
  1196. }
  1197. });
  1198. MicroEvent.mixin(SpeedDialView);
  1199. $onsen.derivePropertiesFromElement(SpeedDialView, ['disabled', 'visible', 'inline']);
  1200. return SpeedDialView;
  1201. }]);
  1202. })();
  1203. /*
  1204. Copyright 2013-2015 ASIAL CORPORATION
  1205. Licensed under the Apache License, Version 2.0 (the "License");
  1206. you may not use this file except in compliance with the License.
  1207. You may obtain a copy of the License at
  1208. http://www.apache.org/licenses/LICENSE-2.0
  1209. Unless required by applicable law or agreed to in writing, software
  1210. distributed under the License is distributed on an "AS IS" BASIS,
  1211. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1212. See the License for the specific language governing permissions and
  1213. limitations under the License.
  1214. */
  1215. (function () {
  1216. angular.module('onsen').factory('SplitterContent', ['$onsen', '$compile', function ($onsen, $compile) {
  1217. var SplitterContent = Class.extend({
  1218. init: function init(scope, element, attrs) {
  1219. this._element = element;
  1220. this._scope = scope;
  1221. this._attrs = attrs;
  1222. this.load = this._element[0].load.bind(this._element[0]);
  1223. scope.$on('$destroy', this._destroy.bind(this));
  1224. },
  1225. _destroy: function _destroy() {
  1226. this.emit('destroy');
  1227. this._element = this._scope = this._attrs = this.load = this._pageScope = null;
  1228. }
  1229. });
  1230. MicroEvent.mixin(SplitterContent);
  1231. $onsen.derivePropertiesFromElement(SplitterContent, ['page']);
  1232. return SplitterContent;
  1233. }]);
  1234. })();
  1235. /*
  1236. Copyright 2013-2015 ASIAL CORPORATION
  1237. Licensed under the Apache License, Version 2.0 (the "License");
  1238. you may not use this file except in compliance with the License.
  1239. You may obtain a copy of the License at
  1240. http://www.apache.org/licenses/LICENSE-2.0
  1241. Unless required by applicable law or agreed to in writing, software
  1242. distributed under the License is distributed on an "AS IS" BASIS,
  1243. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1244. See the License for the specific language governing permissions and
  1245. limitations under the License.
  1246. */
  1247. (function () {
  1248. angular.module('onsen').factory('SplitterSide', ['$onsen', '$compile', function ($onsen, $compile) {
  1249. var SplitterSide = Class.extend({
  1250. init: function init(scope, element, attrs) {
  1251. var _this = this;
  1252. this._element = element;
  1253. this._scope = scope;
  1254. this._attrs = attrs;
  1255. this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], ['open', 'close', 'toggle', 'load']);
  1256. this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['modechange', 'preopen', 'preclose', 'postopen', 'postclose'], function (detail) {
  1257. return detail.side ? angular.extend(detail, { side: _this }) : detail;
  1258. });
  1259. scope.$on('$destroy', this._destroy.bind(this));
  1260. },
  1261. _destroy: function _destroy() {
  1262. this.emit('destroy');
  1263. this._clearDerivingMethods();
  1264. this._clearDerivingEvents();
  1265. this._element = this._scope = this._attrs = null;
  1266. }
  1267. });
  1268. MicroEvent.mixin(SplitterSide);
  1269. $onsen.derivePropertiesFromElement(SplitterSide, ['page', 'mode', 'isOpen', 'onSwipe', 'pageLoader']);
  1270. return SplitterSide;
  1271. }]);
  1272. })();
  1273. /*
  1274. Copyright 2013-2015 ASIAL CORPORATION
  1275. Licensed under the Apache License, Version 2.0 (the "License");
  1276. you may not use this file except in compliance with the License.
  1277. You may obtain a copy of the License at
  1278. http://www.apache.org/licenses/LICENSE-2.0
  1279. Unless required by applicable law or agreed to in writing, software
  1280. distributed under the License is distributed on an "AS IS" BASIS,
  1281. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1282. See the License for the specific language governing permissions and
  1283. limitations under the License.
  1284. */
  1285. (function () {
  1286. angular.module('onsen').factory('Splitter', ['$onsen', function ($onsen) {
  1287. var Splitter = Class.extend({
  1288. init: function init(scope, element, attrs) {
  1289. this._element = element;
  1290. this._scope = scope;
  1291. this._attrs = attrs;
  1292. scope.$on('$destroy', this._destroy.bind(this));
  1293. },
  1294. _destroy: function _destroy() {
  1295. this.emit('destroy');
  1296. this._element = this._scope = this._attrs = null;
  1297. }
  1298. });
  1299. MicroEvent.mixin(Splitter);
  1300. $onsen.derivePropertiesFromElement(Splitter, ['onDeviceBackButton']);
  1301. ['left', 'right', 'side', 'content', 'mask'].forEach(function (prop, i) {
  1302. Object.defineProperty(Splitter.prototype, prop, {
  1303. get: function get() {
  1304. var tagName = 'ons-splitter-' + (i < 3 ? 'side' : prop);
  1305. return angular.element(this._element[0][prop]).data(tagName);
  1306. }
  1307. });
  1308. });
  1309. return Splitter;
  1310. }]);
  1311. })();
  1312. /*
  1313. Copyright 2013-2015 ASIAL CORPORATION
  1314. Licensed under the Apache License, Version 2.0 (the "License");
  1315. you may not use this file except in compliance with the License.
  1316. You may obtain a copy of the License at
  1317. http://www.apache.org/licenses/LICENSE-2.0
  1318. Unless required by applicable law or agreed to in writing, software
  1319. distributed under the License is distributed on an "AS IS" BASIS,
  1320. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1321. See the License for the specific language governing permissions and
  1322. limitations under the License.
  1323. */
  1324. (function () {
  1325. angular.module('onsen').factory('SwitchView', ['$parse', '$onsen', function ($parse, $onsen) {
  1326. var SwitchView = Class.extend({
  1327. /**
  1328. * @param {jqLite} element
  1329. * @param {Object} scope
  1330. * @param {Object} attrs
  1331. */
  1332. init: function init(element, scope, attrs) {
  1333. var _this = this;
  1334. this._element = element;
  1335. this._checkbox = angular.element(element[0].querySelector('input[type=checkbox]'));
  1336. this._scope = scope;
  1337. this._prepareNgModel(element, scope, attrs);
  1338. this._scope.$on('$destroy', function () {
  1339. _this.emit('destroy');
  1340. _this._element = _this._checkbox = _this._scope = null;
  1341. });
  1342. },
  1343. _prepareNgModel: function _prepareNgModel(element, scope, attrs) {
  1344. var _this2 = this;
  1345. if (attrs.ngModel) {
  1346. var set = $parse(attrs.ngModel).assign;
  1347. scope.$parent.$watch(attrs.ngModel, function (value) {
  1348. _this2.checked = !!value;
  1349. });
  1350. this._element.on('change', function (e) {
  1351. set(scope.$parent, _this2.checked);
  1352. if (attrs.ngChange) {
  1353. scope.$eval(attrs.ngChange);
  1354. }
  1355. scope.$parent.$evalAsync();
  1356. });
  1357. }
  1358. }
  1359. });
  1360. MicroEvent.mixin(SwitchView);
  1361. $onsen.derivePropertiesFromElement(SwitchView, ['disabled', 'checked', 'checkbox', 'value']);
  1362. return SwitchView;
  1363. }]);
  1364. })();
  1365. /*
  1366. Copyright 2013-2015 ASIAL CORPORATION
  1367. Licensed under the Apache License, Version 2.0 (the "License");
  1368. you may not use this file except in compliance with the License.
  1369. You may obtain a copy of the License at
  1370. http://www.apache.org/licenses/LICENSE-2.0
  1371. Unless required by applicable law or agreed to in writing, software
  1372. distributed under the License is distributed on an "AS IS" BASIS,
  1373. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1374. See the License for the specific language governing permissions and
  1375. limitations under the License.
  1376. */
  1377. (function () {
  1378. var module = angular.module('onsen');
  1379. module.factory('TabbarView', ['$onsen', function ($onsen) {
  1380. var TabbarView = Class.extend({
  1381. init: function init(scope, element, attrs) {
  1382. if (element[0].nodeName.toLowerCase() !== 'ons-tabbar') {
  1383. throw new Error('"element" parameter must be a "ons-tabbar" element.');
  1384. }
  1385. this._scope = scope;
  1386. this._element = element;
  1387. this._attrs = attrs;
  1388. this._scope.$on('$destroy', this._destroy.bind(this));
  1389. this._clearDerivingEvents = $onsen.deriveEvents(this, element[0], ['reactive', 'postchange', 'prechange', 'init', 'show', 'hide', 'destroy']);
  1390. this._clearDerivingMethods = $onsen.deriveMethods(this, element[0], ['setActiveTab', 'show', 'hide', 'setTabbarVisibility', 'getActiveTabIndex']);
  1391. },
  1392. _destroy: function _destroy() {
  1393. this.emit('destroy');
  1394. this._clearDerivingEvents();
  1395. this._clearDerivingMethods();
  1396. this._element = this._scope = this._attrs = null;
  1397. }
  1398. });
  1399. MicroEvent.mixin(TabbarView);
  1400. $onsen.derivePropertiesFromElement(TabbarView, ['visible', 'swipeable', 'onSwipe']);
  1401. return TabbarView;
  1402. }]);
  1403. })();
  1404. /*
  1405. Copyright 2013-2015 ASIAL CORPORATION
  1406. Licensed under the Apache License, Version 2.0 (the "License");
  1407. you may not use this file except in compliance with the License.
  1408. You may obtain a copy of the License at
  1409. http://www.apache.org/licenses/LICENSE-2.0
  1410. Unless required by applicable law or agreed to in writing, software
  1411. distributed under the License is distributed on an "AS IS" BASIS,
  1412. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1413. See the License for the specific language governing permissions and
  1414. limitations under the License.
  1415. */
  1416. (function () {
  1417. var module = angular.module('onsen');
  1418. module.factory('ToastView', ['$onsen', function ($onsen) {
  1419. var ToastView = Class.extend({
  1420. /**
  1421. * @param {Object} scope
  1422. * @param {jqLite} element
  1423. * @param {Object} attrs
  1424. */
  1425. init: function init(scope, element, attrs) {
  1426. this._scope = scope;
  1427. this._element = element;
  1428. this._attrs = attrs;
  1429. this._clearDerivingMethods = $onsen.deriveMethods(this, this._element[0], ['show', 'hide', 'toggle']);
  1430. this._clearDerivingEvents = $onsen.deriveEvents(this, this._element[0], ['preshow', 'postshow', 'prehide', 'posthide'], function (detail) {
  1431. if (detail.toast) {
  1432. detail.toast = this;
  1433. }
  1434. return detail;
  1435. }.bind(this));
  1436. this._scope.$on('$destroy', this._destroy.bind(this));
  1437. },
  1438. _destroy: function _destroy() {
  1439. this.emit('destroy');
  1440. this._element.remove();
  1441. this._clearDerivingMethods();
  1442. this._clearDerivingEvents();
  1443. this._scope = this._attrs = this._element = null;
  1444. }
  1445. });
  1446. MicroEvent.mixin(ToastView);
  1447. $onsen.derivePropertiesFromElement(ToastView, ['visible', 'onDeviceBackButton']);
  1448. return ToastView;
  1449. }]);
  1450. })();
  1451. (function () {
  1452. angular.module('onsen').directive('onsActionSheetButton', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  1453. return {
  1454. restrict: 'E',
  1455. link: function link(scope, element, attrs) {
  1456. GenericView.register(scope, element, attrs, { viewKey: 'ons-action-sheet-button' });
  1457. $onsen.fireComponentEvent(element[0], 'init');
  1458. }
  1459. };
  1460. }]);
  1461. })();
  1462. /**
  1463. * @element ons-action-sheet
  1464. */
  1465. /**
  1466. * @attribute var
  1467. * @initonly
  1468. * @type {String}
  1469. * @description
  1470. * [en]Variable name to refer this action sheet.[/en]
  1471. * [ja]このアクションシートを参照するための名前を指定します。[/ja]
  1472. */
  1473. /**
  1474. * @attribute ons-preshow
  1475. * @initonly
  1476. * @type {Expression}
  1477. * @description
  1478. * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en]
  1479. * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1480. */
  1481. /**
  1482. * @attribute ons-prehide
  1483. * @initonly
  1484. * @type {Expression}
  1485. * @description
  1486. * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en]
  1487. * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1488. */
  1489. /**
  1490. * @attribute ons-postshow
  1491. * @initonly
  1492. * @type {Expression}
  1493. * @description
  1494. * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en]
  1495. * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1496. */
  1497. /**
  1498. * @attribute ons-posthide
  1499. * @initonly
  1500. * @type {Expression}
  1501. * @description
  1502. * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en]
  1503. * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1504. */
  1505. /**
  1506. * @attribute ons-destroy
  1507. * @initonly
  1508. * @type {Expression}
  1509. * @description
  1510. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  1511. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1512. */
  1513. /**
  1514. * @method on
  1515. * @signature on(eventName, listener)
  1516. * @description
  1517. * [en]Add an event listener.[/en]
  1518. * [ja]イベントリスナーを追加します。[/ja]
  1519. * @param {String} eventName
  1520. * [en]Name of the event.[/en]
  1521. * [ja]イベント名を指定します。[/ja]
  1522. * @param {Function} listener
  1523. * [en]Function to execute when the event is triggered.[/en]
  1524. * [ja]イベントが発火された際に呼び出されるコールバックを指定します。[/ja]
  1525. */
  1526. /**
  1527. * @method once
  1528. * @signature once(eventName, listener)
  1529. * @description
  1530. * [en]Add an event listener that's only triggered once.[/en]
  1531. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  1532. * @param {String} eventName
  1533. * [en]Name of the event.[/en]
  1534. * [ja]イベント名を指定します。[/ja]
  1535. * @param {Function} listener
  1536. * [en]Function to execute when the event is triggered.[/en]
  1537. * [ja]イベントが発火した際に呼び出されるコールバックを指定します。[/ja]
  1538. */
  1539. /**
  1540. * @method off
  1541. * @signature off(eventName, [listener])
  1542. * @description
  1543. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  1544. * [ja]イベントリスナーを削除します。もしlistenerパラメータが指定されなかった場合、そのイベントのリスナーが全て削除されます。[/ja]
  1545. * @param {String} eventName
  1546. * [en]Name of the event.[/en]
  1547. * [ja]イベント名を指定します。[/ja]
  1548. * @param {Function} listener
  1549. * [en]Function to execute when the event is triggered.[/en]
  1550. * [ja]削除するイベントリスナーの関数オブジェクトを渡します。[/ja]
  1551. */
  1552. (function () {
  1553. /**
  1554. * Action sheet directive.
  1555. */
  1556. angular.module('onsen').directive('onsActionSheet', ['$onsen', 'ActionSheetView', function ($onsen, ActionSheetView) {
  1557. return {
  1558. restrict: 'E',
  1559. replace: false,
  1560. scope: true,
  1561. transclude: false,
  1562. compile: function compile(element, attrs) {
  1563. return {
  1564. pre: function pre(scope, element, attrs) {
  1565. var actionSheet = new ActionSheetView(scope, element, attrs);
  1566. $onsen.declareVarAttribute(attrs, actionSheet);
  1567. $onsen.registerEventHandlers(actionSheet, 'preshow prehide postshow posthide destroy');
  1568. $onsen.addModifierMethodsForCustomElements(actionSheet, element);
  1569. element.data('ons-action-sheet', actionSheet);
  1570. scope.$on('$destroy', function () {
  1571. actionSheet._events = undefined;
  1572. $onsen.removeModifierMethods(actionSheet);
  1573. element.data('ons-action-sheet', undefined);
  1574. element = null;
  1575. });
  1576. },
  1577. post: function post(scope, element) {
  1578. $onsen.fireComponentEvent(element[0], 'init');
  1579. }
  1580. };
  1581. }
  1582. };
  1583. }]);
  1584. })();
  1585. /**
  1586. * @element ons-alert-dialog
  1587. */
  1588. /**
  1589. * @attribute var
  1590. * @initonly
  1591. * @type {String}
  1592. * @description
  1593. * [en]Variable name to refer this alert dialog.[/en]
  1594. * [ja]このアラートダイアログを参照するための名前を指定します。[/ja]
  1595. */
  1596. /**
  1597. * @attribute ons-preshow
  1598. * @initonly
  1599. * @type {Expression}
  1600. * @description
  1601. * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en]
  1602. * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1603. */
  1604. /**
  1605. * @attribute ons-prehide
  1606. * @initonly
  1607. * @type {Expression}
  1608. * @description
  1609. * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en]
  1610. * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1611. */
  1612. /**
  1613. * @attribute ons-postshow
  1614. * @initonly
  1615. * @type {Expression}
  1616. * @description
  1617. * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en]
  1618. * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1619. */
  1620. /**
  1621. * @attribute ons-posthide
  1622. * @initonly
  1623. * @type {Expression}
  1624. * @description
  1625. * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en]
  1626. * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1627. */
  1628. /**
  1629. * @attribute ons-destroy
  1630. * @initonly
  1631. * @type {Expression}
  1632. * @description
  1633. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  1634. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1635. */
  1636. /**
  1637. * @method on
  1638. * @signature on(eventName, listener)
  1639. * @description
  1640. * [en]Add an event listener.[/en]
  1641. * [ja]イベントリスナーを追加します。[/ja]
  1642. * @param {String} eventName
  1643. * [en]Name of the event.[/en]
  1644. * [ja]イベント名を指定します。[/ja]
  1645. * @param {Function} listener
  1646. * [en]Function to execute when the event is triggered.[/en]
  1647. * [ja]イベントが発火された際に呼び出されるコールバックを指定します。[/ja]
  1648. */
  1649. /**
  1650. * @method once
  1651. * @signature once(eventName, listener)
  1652. * @description
  1653. * [en]Add an event listener that's only triggered once.[/en]
  1654. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  1655. * @param {String} eventName
  1656. * [en]Name of the event.[/en]
  1657. * [ja]イベント名を指定します。[/ja]
  1658. * @param {Function} listener
  1659. * [en]Function to execute when the event is triggered.[/en]
  1660. * [ja]イベントが発火した際に呼び出されるコールバックを指定します。[/ja]
  1661. */
  1662. /**
  1663. * @method off
  1664. * @signature off(eventName, [listener])
  1665. * @description
  1666. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  1667. * [ja]イベントリスナーを削除します。もしlistenerパラメータが指定されなかった場合、そのイベントのリスナーが全て削除されます。[/ja]
  1668. * @param {String} eventName
  1669. * [en]Name of the event.[/en]
  1670. * [ja]イベント名を指定します。[/ja]
  1671. * @param {Function} listener
  1672. * [en]Function to execute when the event is triggered.[/en]
  1673. * [ja]削除するイベントリスナーの関数オブジェクトを渡します。[/ja]
  1674. */
  1675. (function () {
  1676. /**
  1677. * Alert dialog directive.
  1678. */
  1679. angular.module('onsen').directive('onsAlertDialog', ['$onsen', 'AlertDialogView', function ($onsen, AlertDialogView) {
  1680. return {
  1681. restrict: 'E',
  1682. replace: false,
  1683. scope: true,
  1684. transclude: false,
  1685. compile: function compile(element, attrs) {
  1686. return {
  1687. pre: function pre(scope, element, attrs) {
  1688. var alertDialog = new AlertDialogView(scope, element, attrs);
  1689. $onsen.declareVarAttribute(attrs, alertDialog);
  1690. $onsen.registerEventHandlers(alertDialog, 'preshow prehide postshow posthide destroy');
  1691. $onsen.addModifierMethodsForCustomElements(alertDialog, element);
  1692. element.data('ons-alert-dialog', alertDialog);
  1693. element.data('_scope', scope);
  1694. scope.$on('$destroy', function () {
  1695. alertDialog._events = undefined;
  1696. $onsen.removeModifierMethods(alertDialog);
  1697. element.data('ons-alert-dialog', undefined);
  1698. element = null;
  1699. });
  1700. },
  1701. post: function post(scope, element) {
  1702. $onsen.fireComponentEvent(element[0], 'init');
  1703. }
  1704. };
  1705. }
  1706. };
  1707. }]);
  1708. })();
  1709. (function () {
  1710. var module = angular.module('onsen');
  1711. module.directive('onsBackButton', ['$onsen', '$compile', 'GenericView', 'ComponentCleaner', function ($onsen, $compile, GenericView, ComponentCleaner) {
  1712. return {
  1713. restrict: 'E',
  1714. replace: false,
  1715. compile: function compile(element, attrs) {
  1716. return {
  1717. pre: function pre(scope, element, attrs, controller, transclude) {
  1718. var backButton = GenericView.register(scope, element, attrs, {
  1719. viewKey: 'ons-back-button'
  1720. });
  1721. if (attrs.ngClick) {
  1722. element[0].onClick = angular.noop;
  1723. }
  1724. scope.$on('$destroy', function () {
  1725. backButton._events = undefined;
  1726. $onsen.removeModifierMethods(backButton);
  1727. element = null;
  1728. });
  1729. ComponentCleaner.onDestroy(scope, function () {
  1730. ComponentCleaner.destroyScope(scope);
  1731. ComponentCleaner.destroyAttributes(attrs);
  1732. element = scope = attrs = null;
  1733. });
  1734. },
  1735. post: function post(scope, element) {
  1736. $onsen.fireComponentEvent(element[0], 'init');
  1737. }
  1738. };
  1739. }
  1740. };
  1741. }]);
  1742. })();
  1743. (function () {
  1744. angular.module('onsen').directive('onsBottomToolbar', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  1745. return {
  1746. restrict: 'E',
  1747. link: {
  1748. pre: function pre(scope, element, attrs) {
  1749. GenericView.register(scope, element, attrs, {
  1750. viewKey: 'ons-bottomToolbar'
  1751. });
  1752. },
  1753. post: function post(scope, element, attrs) {
  1754. $onsen.fireComponentEvent(element[0], 'init');
  1755. }
  1756. }
  1757. };
  1758. }]);
  1759. })();
  1760. /**
  1761. * @element ons-button
  1762. */
  1763. (function () {
  1764. angular.module('onsen').directive('onsButton', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  1765. return {
  1766. restrict: 'E',
  1767. link: function link(scope, element, attrs) {
  1768. var button = GenericView.register(scope, element, attrs, {
  1769. viewKey: 'ons-button'
  1770. });
  1771. Object.defineProperty(button, 'disabled', {
  1772. get: function get() {
  1773. return this._element[0].disabled;
  1774. },
  1775. set: function set(value) {
  1776. return this._element[0].disabled = value;
  1777. }
  1778. });
  1779. $onsen.fireComponentEvent(element[0], 'init');
  1780. }
  1781. };
  1782. }]);
  1783. })();
  1784. (function () {
  1785. angular.module('onsen').directive('onsCard', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  1786. return {
  1787. restrict: 'E',
  1788. link: function link(scope, element, attrs) {
  1789. GenericView.register(scope, element, attrs, { viewKey: 'ons-card' });
  1790. $onsen.fireComponentEvent(element[0], 'init');
  1791. }
  1792. };
  1793. }]);
  1794. })();
  1795. /**
  1796. * @element ons-carousel
  1797. * @description
  1798. * [en]Carousel component.[/en]
  1799. * [ja]カルーセルを表示できるコンポーネント。[/ja]
  1800. * @codepen xbbzOQ
  1801. * @guide UsingCarousel
  1802. * [en]Learn how to use the carousel component.[/en]
  1803. * [ja]carouselコンポーネントの使い方[/ja]
  1804. * @example
  1805. * <ons-carousel style="width: 100%; height: 200px">
  1806. * <ons-carousel-item>
  1807. * ...
  1808. * </ons-carousel-item>
  1809. * <ons-carousel-item>
  1810. * ...
  1811. * </ons-carousel-item>
  1812. * </ons-carousel>
  1813. */
  1814. /**
  1815. * @attribute var
  1816. * @initonly
  1817. * @type {String}
  1818. * @description
  1819. * [en]Variable name to refer this carousel.[/en]
  1820. * [ja]このカルーセルを参照するための変数名を指定します。[/ja]
  1821. */
  1822. /**
  1823. * @attribute ons-postchange
  1824. * @initonly
  1825. * @type {Expression}
  1826. * @description
  1827. * [en]Allows you to specify custom behavior when the "postchange" event is fired.[/en]
  1828. * [ja]"postchange"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1829. */
  1830. /**
  1831. * @attribute ons-refresh
  1832. * @initonly
  1833. * @type {Expression}
  1834. * @description
  1835. * [en]Allows you to specify custom behavior when the "refresh" event is fired.[/en]
  1836. * [ja]"refresh"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1837. */
  1838. /**
  1839. * @attribute ons-overscroll
  1840. * @initonly
  1841. * @type {Expression}
  1842. * @description
  1843. * [en]Allows you to specify custom behavior when the "overscroll" event is fired.[/en]
  1844. * [ja]"overscroll"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1845. */
  1846. /**
  1847. * @attribute ons-destroy
  1848. * @initonly
  1849. * @type {Expression}
  1850. * @description
  1851. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  1852. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1853. */
  1854. /**
  1855. * @method once
  1856. * @signature once(eventName, listener)
  1857. * @description
  1858. * [en]Add an event listener that's only triggered once.[/en]
  1859. * [ja]一度だけ呼び出されるイベントリスナを追加します。[/ja]
  1860. * @param {String} eventName
  1861. * [en]Name of the event.[/en]
  1862. * [ja]イベント名を指定します。[/ja]
  1863. * @param {Function} listener
  1864. * [en]Function to execute when the event is triggered.[/en]
  1865. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  1866. */
  1867. /**
  1868. * @method off
  1869. * @signature off(eventName, [listener])
  1870. * @description
  1871. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  1872. * [ja]イベントリスナーを削除します。もしイベントリスナーが指定されなかった場合には、そのイベントに紐付いているイベントリスナーが全て削除されます。[/ja]
  1873. * @param {String} eventName
  1874. * [en]Name of the event.[/en]
  1875. * [ja]イベント名を指定します。[/ja]
  1876. * @param {Function} listener
  1877. * [en]Function to execute when the event is triggered.[/en]
  1878. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  1879. */
  1880. /**
  1881. * @method on
  1882. * @signature on(eventName, listener)
  1883. * @description
  1884. * [en]Add an event listener.[/en]
  1885. * [ja]イベントリスナーを追加します。[/ja]
  1886. * @param {String} eventName
  1887. * [en]Name of the event.[/en]
  1888. * [ja]イベント名を指定します。[/ja]
  1889. * @param {Function} listener
  1890. * [en]Function to execute when the event is triggered.[/en]
  1891. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  1892. */
  1893. (function () {
  1894. var module = angular.module('onsen');
  1895. module.directive('onsCarousel', ['$onsen', 'CarouselView', function ($onsen, CarouselView) {
  1896. return {
  1897. restrict: 'E',
  1898. replace: false,
  1899. // NOTE: This element must coexists with ng-controller.
  1900. // Do not use isolated scope and template's ng-transclude.
  1901. scope: false,
  1902. transclude: false,
  1903. compile: function compile(element, attrs) {
  1904. return function (scope, element, attrs) {
  1905. var carousel = new CarouselView(scope, element, attrs);
  1906. element.data('ons-carousel', carousel);
  1907. $onsen.registerEventHandlers(carousel, 'postchange refresh overscroll destroy');
  1908. $onsen.declareVarAttribute(attrs, carousel);
  1909. scope.$on('$destroy', function () {
  1910. carousel._events = undefined;
  1911. element.data('ons-carousel', undefined);
  1912. element = null;
  1913. });
  1914. $onsen.fireComponentEvent(element[0], 'init');
  1915. };
  1916. }
  1917. };
  1918. }]);
  1919. module.directive('onsCarouselItem', ['$onsen', function ($onsen) {
  1920. return {
  1921. restrict: 'E',
  1922. compile: function compile(element, attrs) {
  1923. return function (scope, element, attrs) {
  1924. if (scope.$last) {
  1925. var carousel = $onsen.util.findParent(element[0], 'ons-carousel');
  1926. carousel._swiper.init({
  1927. swipeable: carousel.hasAttribute('swipeable'),
  1928. autoRefresh: carousel.hasAttribute('auto-refresh')
  1929. });
  1930. }
  1931. };
  1932. }
  1933. };
  1934. }]);
  1935. })();
  1936. /**
  1937. * @element ons-checkbox
  1938. */
  1939. (function () {
  1940. angular.module('onsen').directive('onsCheckbox', ['$parse', function ($parse) {
  1941. return {
  1942. restrict: 'E',
  1943. replace: false,
  1944. scope: false,
  1945. link: function link(scope, element, attrs) {
  1946. var el = element[0];
  1947. var onChange = function onChange() {
  1948. $parse(attrs.ngModel).assign(scope, el.checked);
  1949. attrs.ngChange && scope.$eval(attrs.ngChange);
  1950. scope.$parent.$evalAsync();
  1951. };
  1952. if (attrs.ngModel) {
  1953. scope.$watch(attrs.ngModel, function (value) {
  1954. return el.checked = value;
  1955. });
  1956. element.on('change', onChange);
  1957. }
  1958. scope.$on('$destroy', function () {
  1959. element.off('change', onChange);
  1960. scope = element = attrs = el = null;
  1961. });
  1962. }
  1963. };
  1964. }]);
  1965. })();
  1966. /**
  1967. * @element ons-dialog
  1968. */
  1969. /**
  1970. * @attribute var
  1971. * @initonly
  1972. * @type {String}
  1973. * @description
  1974. * [en]Variable name to refer this dialog.[/en]
  1975. * [ja]このダイアログを参照するための名前を指定します。[/ja]
  1976. */
  1977. /**
  1978. * @attribute ons-preshow
  1979. * @initonly
  1980. * @type {Expression}
  1981. * @description
  1982. * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en]
  1983. * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1984. */
  1985. /**
  1986. * @attribute ons-prehide
  1987. * @initonly
  1988. * @type {Expression}
  1989. * @description
  1990. * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en]
  1991. * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  1992. */
  1993. /**
  1994. * @attribute ons-postshow
  1995. * @initonly
  1996. * @type {Expression}
  1997. * @description
  1998. * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en]
  1999. * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2000. */
  2001. /**
  2002. * @attribute ons-posthide
  2003. * @initonly
  2004. * @type {Expression}
  2005. * @description
  2006. * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en]
  2007. * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2008. */
  2009. /**
  2010. * @attribute ons-destroy
  2011. * @initonly
  2012. * @type {Expression}
  2013. * @description
  2014. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  2015. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2016. */
  2017. /**
  2018. * @method on
  2019. * @signature on(eventName, listener)
  2020. * @description
  2021. * [en]Add an event listener.[/en]
  2022. * [ja]イベントリスナーを追加します。[/ja]
  2023. * @param {String} eventName
  2024. * [en]Name of the event.[/en]
  2025. * [ja]イベント名を指定します。[/ja]
  2026. * @param {Function} listener
  2027. * [en]Function to execute when the event is triggered.[/en]
  2028. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  2029. */
  2030. /**
  2031. * @method once
  2032. * @signature once(eventName, listener)
  2033. * @description
  2034. * [en]Add an event listener that's only triggered once.[/en]
  2035. * [ja]一度だけ呼び出されるイベントリスナを追加します。[/ja]
  2036. * @param {String} eventName
  2037. * [en]Name of the event.[/en]
  2038. * [ja]イベント名を指定します。[/ja]
  2039. * @param {Function} listener
  2040. * [en]Function to execute when the event is triggered.[/en]
  2041. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  2042. */
  2043. /**
  2044. * @method off
  2045. * @signature off(eventName, [listener])
  2046. * @description
  2047. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  2048. * [ja]イベントリスナーを削除します。もしイベントリスナーが指定されなかった場合には、そのイベントに紐付いているイベントリスナーが全て削除されます。[/ja]
  2049. * @param {String} eventName
  2050. * [en]Name of the event.[/en]
  2051. * [ja]イベント名を指定します。[/ja]
  2052. * @param {Function} listener
  2053. * [en]Function to execute when the event is triggered.[/en]
  2054. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  2055. */
  2056. (function () {
  2057. angular.module('onsen').directive('onsDialog', ['$onsen', 'DialogView', function ($onsen, DialogView) {
  2058. return {
  2059. restrict: 'E',
  2060. scope: true,
  2061. compile: function compile(element, attrs) {
  2062. return {
  2063. pre: function pre(scope, element, attrs) {
  2064. var dialog = new DialogView(scope, element, attrs);
  2065. $onsen.declareVarAttribute(attrs, dialog);
  2066. $onsen.registerEventHandlers(dialog, 'preshow prehide postshow posthide destroy');
  2067. $onsen.addModifierMethodsForCustomElements(dialog, element);
  2068. element.data('ons-dialog', dialog);
  2069. scope.$on('$destroy', function () {
  2070. dialog._events = undefined;
  2071. $onsen.removeModifierMethods(dialog);
  2072. element.data('ons-dialog', undefined);
  2073. element = null;
  2074. });
  2075. },
  2076. post: function post(scope, element) {
  2077. $onsen.fireComponentEvent(element[0], 'init');
  2078. }
  2079. };
  2080. }
  2081. };
  2082. }]);
  2083. })();
  2084. (function () {
  2085. var module = angular.module('onsen');
  2086. module.directive('onsDummyForInit', ['$rootScope', function ($rootScope) {
  2087. var isReady = false;
  2088. return {
  2089. restrict: 'E',
  2090. replace: false,
  2091. link: {
  2092. post: function post(scope, element) {
  2093. if (!isReady) {
  2094. isReady = true;
  2095. $rootScope.$broadcast('$ons-ready');
  2096. }
  2097. element.remove();
  2098. }
  2099. }
  2100. };
  2101. }]);
  2102. })();
  2103. /**
  2104. * @element ons-fab
  2105. */
  2106. /**
  2107. * @attribute var
  2108. * @initonly
  2109. * @type {String}
  2110. * @description
  2111. * [en]Variable name to refer the floating action button.[/en]
  2112. * [ja]このフローティングアクションボタンを参照するための変数名をしてします。[/ja]
  2113. */
  2114. (function () {
  2115. var module = angular.module('onsen');
  2116. module.directive('onsFab', ['$onsen', 'FabView', function ($onsen, FabView) {
  2117. return {
  2118. restrict: 'E',
  2119. replace: false,
  2120. scope: false,
  2121. transclude: false,
  2122. compile: function compile(element, attrs) {
  2123. return function (scope, element, attrs) {
  2124. var fab = new FabView(scope, element, attrs);
  2125. element.data('ons-fab', fab);
  2126. $onsen.declareVarAttribute(attrs, fab);
  2127. scope.$on('$destroy', function () {
  2128. element.data('ons-fab', undefined);
  2129. element = null;
  2130. });
  2131. $onsen.fireComponentEvent(element[0], 'init');
  2132. };
  2133. }
  2134. };
  2135. }]);
  2136. })();
  2137. (function () {
  2138. var EVENTS = ('drag dragleft dragright dragup dragdown hold release swipe swipeleft swiperight ' + 'swipeup swipedown tap doubletap touch transform pinch pinchin pinchout rotate').split(/ +/);
  2139. angular.module('onsen').directive('onsGestureDetector', ['$onsen', function ($onsen) {
  2140. var scopeDef = EVENTS.reduce(function (dict, name) {
  2141. dict['ng' + titlize(name)] = '&';
  2142. return dict;
  2143. }, {});
  2144. function titlize(str) {
  2145. return str.charAt(0).toUpperCase() + str.slice(1);
  2146. }
  2147. return {
  2148. restrict: 'E',
  2149. scope: scopeDef,
  2150. // NOTE: This element must coexists with ng-controller.
  2151. // Do not use isolated scope and template's ng-transclude.
  2152. replace: false,
  2153. transclude: true,
  2154. compile: function compile(element, attrs) {
  2155. return function link(scope, element, attrs, _, transclude) {
  2156. transclude(scope.$parent, function (cloned) {
  2157. element.append(cloned);
  2158. });
  2159. var handler = function handler(event) {
  2160. var attr = 'ng' + titlize(event.type);
  2161. if (attr in scopeDef) {
  2162. scope[attr]({ $event: event });
  2163. }
  2164. };
  2165. var gestureDetector;
  2166. setImmediate(function () {
  2167. gestureDetector = element[0]._gestureDetector;
  2168. gestureDetector.on(EVENTS.join(' '), handler);
  2169. });
  2170. $onsen.cleaner.onDestroy(scope, function () {
  2171. gestureDetector.off(EVENTS.join(' '), handler);
  2172. $onsen.clearComponent({
  2173. scope: scope,
  2174. element: element,
  2175. attrs: attrs
  2176. });
  2177. gestureDetector.element = scope = element = attrs = null;
  2178. });
  2179. $onsen.fireComponentEvent(element[0], 'init');
  2180. };
  2181. }
  2182. };
  2183. }]);
  2184. })();
  2185. /**
  2186. * @element ons-icon
  2187. */
  2188. (function () {
  2189. angular.module('onsen').directive('onsIcon', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  2190. return {
  2191. restrict: 'E',
  2192. compile: function compile(element, attrs) {
  2193. if (attrs.icon.indexOf('{{') !== -1) {
  2194. attrs.$observe('icon', function () {
  2195. setImmediate(function () {
  2196. return element[0]._update();
  2197. });
  2198. });
  2199. }
  2200. return function (scope, element, attrs) {
  2201. GenericView.register(scope, element, attrs, {
  2202. viewKey: 'ons-icon'
  2203. });
  2204. // $onsen.fireComponentEvent(element[0], 'init');
  2205. };
  2206. }
  2207. };
  2208. }]);
  2209. })();
  2210. /**
  2211. * @element ons-if-orientation
  2212. * @category conditional
  2213. * @description
  2214. * [en]Conditionally display content depending on screen orientation. Valid values are portrait and landscape. Different from other components, this component is used as attribute in any element.[/en]
  2215. * [ja]画面の向きに応じてコンテンツの制御を行います。portraitもしくはlandscapeを指定できます。すべての要素の属性に使用できます。[/ja]
  2216. * @seealso ons-if-platform [en]ons-if-platform component[/en][ja]ons-if-platformコンポーネント[/ja]
  2217. * @example
  2218. * <div ons-if-orientation="portrait">
  2219. * <p>This will only be visible in portrait mode.</p>
  2220. * </div>
  2221. */
  2222. /**
  2223. * @attribute ons-if-orientation
  2224. * @initonly
  2225. * @type {String}
  2226. * @description
  2227. * [en]Either "portrait" or "landscape".[/en]
  2228. * [ja]portraitもしくはlandscapeを指定します。[/ja]
  2229. */
  2230. (function () {
  2231. var module = angular.module('onsen');
  2232. module.directive('onsIfOrientation', ['$onsen', '$onsGlobal', function ($onsen, $onsGlobal) {
  2233. return {
  2234. restrict: 'A',
  2235. replace: false,
  2236. // NOTE: This element must coexists with ng-controller.
  2237. // Do not use isolated scope and template's ng-transclude.
  2238. transclude: false,
  2239. scope: false,
  2240. compile: function compile(element) {
  2241. element.css('display', 'none');
  2242. return function (scope, element, attrs) {
  2243. attrs.$observe('onsIfOrientation', update);
  2244. $onsGlobal.orientation.on('change', update);
  2245. update();
  2246. $onsen.cleaner.onDestroy(scope, function () {
  2247. $onsGlobal.orientation.off('change', update);
  2248. $onsen.clearComponent({
  2249. element: element,
  2250. scope: scope,
  2251. attrs: attrs
  2252. });
  2253. element = scope = attrs = null;
  2254. });
  2255. function update() {
  2256. var userOrientation = ('' + attrs.onsIfOrientation).toLowerCase();
  2257. var orientation = getLandscapeOrPortrait();
  2258. if (userOrientation === 'portrait' || userOrientation === 'landscape') {
  2259. if (userOrientation === orientation) {
  2260. element.css('display', '');
  2261. } else {
  2262. element.css('display', 'none');
  2263. }
  2264. }
  2265. }
  2266. function getLandscapeOrPortrait() {
  2267. return $onsGlobal.orientation.isPortrait() ? 'portrait' : 'landscape';
  2268. }
  2269. };
  2270. }
  2271. };
  2272. }]);
  2273. })();
  2274. /**
  2275. * @element ons-if-platform
  2276. * @category conditional
  2277. * @description
  2278. * [en]Conditionally display content depending on the platform / browser. Valid values are "opera", "firefox", "safari", "chrome", "ie", "edge", "android", "blackberry", "ios" and "wp".[/en]
  2279. * [ja]プラットフォームやブラウザーに応じてコンテンツの制御をおこないます。opera, firefox, safari, chrome, ie, edge, android, blackberry, ios, wpのいずれかの値を空白区切りで複数指定できます。[/ja]
  2280. * @seealso ons-if-orientation [en]ons-if-orientation component[/en][ja]ons-if-orientationコンポーネント[/ja]
  2281. * @example
  2282. * <div ons-if-platform="android">
  2283. * ...
  2284. * </div>
  2285. */
  2286. /**
  2287. * @attribute ons-if-platform
  2288. * @type {String}
  2289. * @initonly
  2290. * @description
  2291. * [en]One or multiple space separated values: "opera", "firefox", "safari", "chrome", "ie", "edge", "android", "blackberry", "ios" or "wp".[/en]
  2292. * [ja]"opera", "firefox", "safari", "chrome", "ie", "edge", "android", "blackberry", "ios", "wp"のいずれか空白区切りで複数指定できます。[/ja]
  2293. */
  2294. (function () {
  2295. var module = angular.module('onsen');
  2296. module.directive('onsIfPlatform', ['$onsen', function ($onsen) {
  2297. return {
  2298. restrict: 'A',
  2299. replace: false,
  2300. // NOTE: This element must coexists with ng-controller.
  2301. // Do not use isolated scope and template's ng-transclude.
  2302. transclude: false,
  2303. scope: false,
  2304. compile: function compile(element) {
  2305. element.css('display', 'none');
  2306. var platform = getPlatformString();
  2307. return function (scope, element, attrs) {
  2308. attrs.$observe('onsIfPlatform', function (userPlatform) {
  2309. if (userPlatform) {
  2310. update();
  2311. }
  2312. });
  2313. update();
  2314. $onsen.cleaner.onDestroy(scope, function () {
  2315. $onsen.clearComponent({
  2316. element: element,
  2317. scope: scope,
  2318. attrs: attrs
  2319. });
  2320. element = scope = attrs = null;
  2321. });
  2322. function update() {
  2323. var userPlatforms = attrs.onsIfPlatform.toLowerCase().trim().split(/\s+/);
  2324. if (userPlatforms.indexOf(platform.toLowerCase()) >= 0) {
  2325. element.css('display', 'block');
  2326. } else {
  2327. element.css('display', 'none');
  2328. }
  2329. }
  2330. };
  2331. function getPlatformString() {
  2332. if (navigator.userAgent.match(/Android/i)) {
  2333. return 'android';
  2334. }
  2335. if (navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/RIM Tablet OS/i) || navigator.userAgent.match(/BB10/i)) {
  2336. return 'blackberry';
  2337. }
  2338. if (navigator.userAgent.match(/iPhone|iPad|iPod/i)) {
  2339. return 'ios';
  2340. }
  2341. if (navigator.userAgent.match(/Windows Phone|IEMobile|WPDesktop/i)) {
  2342. return 'wp';
  2343. }
  2344. // Opera 8.0+ (UA detection to detect Blink/v8-powered Opera)
  2345. var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
  2346. if (isOpera) {
  2347. return 'opera';
  2348. }
  2349. var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+
  2350. if (isFirefox) {
  2351. return 'firefox';
  2352. }
  2353. var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
  2354. // At least Safari 3+: "[object HTMLElementConstructor]"
  2355. if (isSafari) {
  2356. return 'safari';
  2357. }
  2358. var isEdge = navigator.userAgent.indexOf(' Edge/') >= 0;
  2359. if (isEdge) {
  2360. return 'edge';
  2361. }
  2362. var isChrome = !!window.chrome && !isOpera && !isEdge; // Chrome 1+
  2363. if (isChrome) {
  2364. return 'chrome';
  2365. }
  2366. var isIE = /*@cc_on!@*/!!document.documentMode; // At least IE6
  2367. if (isIE) {
  2368. return 'ie';
  2369. }
  2370. return 'unknown';
  2371. }
  2372. }
  2373. };
  2374. }]);
  2375. })();
  2376. /**
  2377. * @element ons-input
  2378. */
  2379. (function () {
  2380. angular.module('onsen').directive('onsInput', ['$parse', function ($parse) {
  2381. return {
  2382. restrict: 'E',
  2383. replace: false,
  2384. scope: false,
  2385. link: function link(scope, element, attrs) {
  2386. var el = element[0];
  2387. var onInput = function onInput() {
  2388. $parse(attrs.ngModel).assign(scope, el.type === 'number' ? Number(el.value) : el.value);
  2389. attrs.ngChange && scope.$eval(attrs.ngChange);
  2390. scope.$parent.$evalAsync();
  2391. };
  2392. if (attrs.ngModel) {
  2393. scope.$watch(attrs.ngModel, function (value) {
  2394. if (typeof value !== 'undefined' && value !== el.value) {
  2395. el.value = value;
  2396. }
  2397. });
  2398. element.on('input', onInput);
  2399. }
  2400. scope.$on('$destroy', function () {
  2401. element.off('input', onInput);
  2402. scope = element = attrs = el = null;
  2403. });
  2404. }
  2405. };
  2406. }]);
  2407. })();
  2408. /**
  2409. * @element ons-keyboard-active
  2410. * @category form
  2411. * @description
  2412. * [en]
  2413. * Conditionally display content depending on if the software keyboard is visible or hidden.
  2414. * This component requires cordova and that the com.ionic.keyboard plugin is installed.
  2415. * [/en]
  2416. * [ja]
  2417. * ソフトウェアキーボードが表示されているかどうかで、コンテンツを表示するかどうかを切り替えることが出来ます。
  2418. * このコンポーネントは、Cordovaやcom.ionic.keyboardプラグインを必要とします。
  2419. * [/ja]
  2420. * @example
  2421. * <div ons-keyboard-active>
  2422. * This will only be displayed if the software keyboard is open.
  2423. * </div>
  2424. * <div ons-keyboard-inactive>
  2425. * There is also a component that does the opposite.
  2426. * </div>
  2427. */
  2428. /**
  2429. * @attribute ons-keyboard-active
  2430. * @description
  2431. * [en]The content of tags with this attribute will be visible when the software keyboard is open.[/en]
  2432. * [ja]この属性がついた要素は、ソフトウェアキーボードが表示された時に初めて表示されます。[/ja]
  2433. */
  2434. /**
  2435. * @attribute ons-keyboard-inactive
  2436. * @description
  2437. * [en]The content of tags with this attribute will be visible when the software keyboard is hidden.[/en]
  2438. * [ja]この属性がついた要素は、ソフトウェアキーボードが隠れている時のみ表示されます。[/ja]
  2439. */
  2440. (function () {
  2441. var module = angular.module('onsen');
  2442. var compileFunction = function compileFunction(show, $onsen) {
  2443. return function (element) {
  2444. return function (scope, element, attrs) {
  2445. var dispShow = show ? 'block' : 'none',
  2446. dispHide = show ? 'none' : 'block';
  2447. var onShow = function onShow() {
  2448. element.css('display', dispShow);
  2449. };
  2450. var onHide = function onHide() {
  2451. element.css('display', dispHide);
  2452. };
  2453. var onInit = function onInit(e) {
  2454. if (e.visible) {
  2455. onShow();
  2456. } else {
  2457. onHide();
  2458. }
  2459. };
  2460. ons.softwareKeyboard.on('show', onShow);
  2461. ons.softwareKeyboard.on('hide', onHide);
  2462. ons.softwareKeyboard.on('init', onInit);
  2463. if (ons.softwareKeyboard._visible) {
  2464. onShow();
  2465. } else {
  2466. onHide();
  2467. }
  2468. $onsen.cleaner.onDestroy(scope, function () {
  2469. ons.softwareKeyboard.off('show', onShow);
  2470. ons.softwareKeyboard.off('hide', onHide);
  2471. ons.softwareKeyboard.off('init', onInit);
  2472. $onsen.clearComponent({
  2473. element: element,
  2474. scope: scope,
  2475. attrs: attrs
  2476. });
  2477. element = scope = attrs = null;
  2478. });
  2479. };
  2480. };
  2481. };
  2482. module.directive('onsKeyboardActive', ['$onsen', function ($onsen) {
  2483. return {
  2484. restrict: 'A',
  2485. replace: false,
  2486. transclude: false,
  2487. scope: false,
  2488. compile: compileFunction(true, $onsen)
  2489. };
  2490. }]);
  2491. module.directive('onsKeyboardInactive', ['$onsen', function ($onsen) {
  2492. return {
  2493. restrict: 'A',
  2494. replace: false,
  2495. transclude: false,
  2496. scope: false,
  2497. compile: compileFunction(false, $onsen)
  2498. };
  2499. }]);
  2500. })();
  2501. /**
  2502. * @element ons-lazy-repeat
  2503. * @description
  2504. * [en]
  2505. * Using this component a list with millions of items can be rendered without a drop in performance.
  2506. * It does that by "lazily" loading elements into the DOM when they come into view and
  2507. * removing items from the DOM when they are not visible.
  2508. * [/en]
  2509. * [ja]
  2510. * このコンポーネント内で描画されるアイテムのDOM要素の読み込みは、画面に見えそうになった時まで自動的に遅延され、
  2511. * 画面から見えなくなった場合にはその要素は動的にアンロードされます。
  2512. * このコンポーネントを使うことで、パフォーマンスを劣化させること無しに巨大な数の要素を描画できます。
  2513. * [/ja]
  2514. * @codepen QwrGBm
  2515. * @guide UsingLazyRepeat
  2516. * [en]How to use Lazy Repeat[/en]
  2517. * [ja]レイジーリピートの使い方[/ja]
  2518. * @example
  2519. * <script>
  2520. * ons.bootstrap()
  2521. *
  2522. * .controller('MyController', function($scope) {
  2523. * $scope.MyDelegate = {
  2524. * countItems: function() {
  2525. * // Return number of items.
  2526. * return 1000000;
  2527. * },
  2528. *
  2529. * calculateItemHeight: function(index) {
  2530. * // Return the height of an item in pixels.
  2531. * return 45;
  2532. * },
  2533. *
  2534. * configureItemScope: function(index, itemScope) {
  2535. * // Initialize scope
  2536. * itemScope.item = 'Item #' + (index + 1);
  2537. * },
  2538. *
  2539. * destroyItemScope: function(index, itemScope) {
  2540. * // Optional method that is called when an item is unloaded.
  2541. * console.log('Destroyed item with index: ' + index);
  2542. * }
  2543. * };
  2544. * });
  2545. * </script>
  2546. *
  2547. * <ons-list ng-controller="MyController">
  2548. * <ons-list-item ons-lazy-repeat="MyDelegate">
  2549. * {{ item }}
  2550. * </ons-list-item>
  2551. * </ons-list>
  2552. */
  2553. /**
  2554. * @attribute ons-lazy-repeat
  2555. * @type {Expression}
  2556. * @initonly
  2557. * @description
  2558. * [en]A delegate object, can be either an object attached to the scope (when using AngularJS) or a normal JavaScript variable.[/en]
  2559. * [ja]要素のロード、アンロードなどの処理を委譲するオブジェクトを指定します。AngularJSのスコープの変数名や、通常のJavaScriptの変数名を指定します。[/ja]
  2560. */
  2561. /**
  2562. * @property delegate.configureItemScope
  2563. * @type {Function}
  2564. * @description
  2565. * [en]Function which recieves an index and the scope for the item. Can be used to configure values in the item scope.[/en]
  2566. * [ja][/ja]
  2567. */
  2568. (function () {
  2569. var module = angular.module('onsen');
  2570. /**
  2571. * Lazy repeat directive.
  2572. */
  2573. module.directive('onsLazyRepeat', ['$onsen', 'LazyRepeatView', function ($onsen, LazyRepeatView) {
  2574. return {
  2575. restrict: 'A',
  2576. replace: false,
  2577. priority: 1000,
  2578. terminal: true,
  2579. compile: function compile(element, attrs) {
  2580. return function (scope, element, attrs) {
  2581. var lazyRepeat = new LazyRepeatView(scope, element, attrs);
  2582. scope.$on('$destroy', function () {
  2583. scope = element = attrs = lazyRepeat = null;
  2584. });
  2585. };
  2586. }
  2587. };
  2588. }]);
  2589. })();
  2590. (function () {
  2591. angular.module('onsen').directive('onsListHeader', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  2592. return {
  2593. restrict: 'E',
  2594. link: function link(scope, element, attrs) {
  2595. GenericView.register(scope, element, attrs, { viewKey: 'ons-list-header' });
  2596. $onsen.fireComponentEvent(element[0], 'init');
  2597. }
  2598. };
  2599. }]);
  2600. })();
  2601. (function () {
  2602. angular.module('onsen').directive('onsListItem', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  2603. return {
  2604. restrict: 'E',
  2605. link: function link(scope, element, attrs) {
  2606. GenericView.register(scope, element, attrs, { viewKey: 'ons-list-item' });
  2607. $onsen.fireComponentEvent(element[0], 'init');
  2608. }
  2609. };
  2610. }]);
  2611. })();
  2612. (function () {
  2613. angular.module('onsen').directive('onsList', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  2614. return {
  2615. restrict: 'E',
  2616. link: function link(scope, element, attrs) {
  2617. GenericView.register(scope, element, attrs, { viewKey: 'ons-list' });
  2618. $onsen.fireComponentEvent(element[0], 'init');
  2619. }
  2620. };
  2621. }]);
  2622. })();
  2623. (function () {
  2624. angular.module('onsen').directive('onsListTitle', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  2625. return {
  2626. restrict: 'E',
  2627. link: function link(scope, element, attrs) {
  2628. GenericView.register(scope, element, attrs, { viewKey: 'ons-list-title' });
  2629. $onsen.fireComponentEvent(element[0], 'init');
  2630. }
  2631. };
  2632. }]);
  2633. })();
  2634. /**
  2635. * @element ons-loading-placeholder
  2636. * @category util
  2637. * @description
  2638. * [en]Display a placeholder while the content is loading.[/en]
  2639. * [ja]Onsen UIが読み込まれるまでに表示するプレースホルダーを表現します。[/ja]
  2640. * @example
  2641. * <div ons-loading-placeholder="page.html">
  2642. * Loading...
  2643. * </div>
  2644. */
  2645. /**
  2646. * @attribute ons-loading-placeholder
  2647. * @initonly
  2648. * @type {String}
  2649. * @description
  2650. * [en]The url of the page to load.[/en]
  2651. * [ja]読み込むページのURLを指定します。[/ja]
  2652. */
  2653. (function () {
  2654. angular.module('onsen').directive('onsLoadingPlaceholder', function () {
  2655. return {
  2656. restrict: 'A',
  2657. link: function link(scope, element, attrs) {
  2658. if (attrs.onsLoadingPlaceholder) {
  2659. ons._resolveLoadingPlaceholder(element[0], attrs.onsLoadingPlaceholder, function (contentElement, done) {
  2660. ons.compile(contentElement);
  2661. scope.$evalAsync(function () {
  2662. setImmediate(done);
  2663. });
  2664. });
  2665. }
  2666. }
  2667. };
  2668. });
  2669. })();
  2670. /**
  2671. * @element ons-modal
  2672. */
  2673. /**
  2674. * @attribute var
  2675. * @type {String}
  2676. * @initonly
  2677. * @description
  2678. * [en]Variable name to refer this modal.[/en]
  2679. * [ja]このモーダルを参照するための名前を指定します。[/ja]
  2680. */
  2681. /**
  2682. * @attribute ons-preshow
  2683. * @initonly
  2684. * @type {Expression}
  2685. * @description
  2686. * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en]
  2687. * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2688. */
  2689. /**
  2690. * @attribute ons-prehide
  2691. * @initonly
  2692. * @type {Expression}
  2693. * @description
  2694. * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en]
  2695. * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2696. */
  2697. /**
  2698. * @attribute ons-postshow
  2699. * @initonly
  2700. * @type {Expression}
  2701. * @description
  2702. * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en]
  2703. * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2704. */
  2705. /**
  2706. * @attribute ons-posthide
  2707. * @initonly
  2708. * @type {Expression}
  2709. * @description
  2710. * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en]
  2711. * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2712. */
  2713. /**
  2714. * @attribute ons-destroy
  2715. * @initonly
  2716. * @type {Expression}
  2717. * @description
  2718. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  2719. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2720. */
  2721. (function () {
  2722. /**
  2723. * Modal directive.
  2724. */
  2725. angular.module('onsen').directive('onsModal', ['$onsen', 'ModalView', function ($onsen, ModalView) {
  2726. return {
  2727. restrict: 'E',
  2728. replace: false,
  2729. // NOTE: This element must coexists with ng-controller.
  2730. // Do not use isolated scope and template's ng-transclude.
  2731. scope: false,
  2732. transclude: false,
  2733. compile: function compile(element, attrs) {
  2734. return {
  2735. pre: function pre(scope, element, attrs) {
  2736. var modal = new ModalView(scope, element, attrs);
  2737. $onsen.addModifierMethodsForCustomElements(modal, element);
  2738. $onsen.declareVarAttribute(attrs, modal);
  2739. $onsen.registerEventHandlers(modal, 'preshow prehide postshow posthide destroy');
  2740. element.data('ons-modal', modal);
  2741. scope.$on('$destroy', function () {
  2742. $onsen.removeModifierMethods(modal);
  2743. element.data('ons-modal', undefined);
  2744. modal = element = scope = attrs = null;
  2745. });
  2746. },
  2747. post: function post(scope, element) {
  2748. $onsen.fireComponentEvent(element[0], 'init');
  2749. }
  2750. };
  2751. }
  2752. };
  2753. }]);
  2754. })();
  2755. /**
  2756. * @element ons-navigator
  2757. * @example
  2758. * <ons-navigator animation="slide" var="app.navi">
  2759. * <ons-page>
  2760. * <ons-toolbar>
  2761. * <div class="center">Title</div>
  2762. * </ons-toolbar>
  2763. *
  2764. * <p style="text-align: center">
  2765. * <ons-button modifier="light" ng-click="app.navi.pushPage('page.html');">Push</ons-button>
  2766. * </p>
  2767. * </ons-page>
  2768. * </ons-navigator>
  2769. *
  2770. * <ons-template id="page.html">
  2771. * <ons-page>
  2772. * <ons-toolbar>
  2773. * <div class="center">Title</div>
  2774. * </ons-toolbar>
  2775. *
  2776. * <p style="text-align: center">
  2777. * <ons-button modifier="light" ng-click="app.navi.popPage();">Pop</ons-button>
  2778. * </p>
  2779. * </ons-page>
  2780. * </ons-template>
  2781. */
  2782. /**
  2783. * @attribute var
  2784. * @initonly
  2785. * @type {String}
  2786. * @description
  2787. * [en]Variable name to refer this navigator.[/en]
  2788. * [ja]このナビゲーターを参照するための名前を指定します。[/ja]
  2789. */
  2790. /**
  2791. * @attribute ons-prepush
  2792. * @initonly
  2793. * @type {Expression}
  2794. * @description
  2795. * [en]Allows you to specify custom behavior when the "prepush" event is fired.[/en]
  2796. * [ja]"prepush"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2797. */
  2798. /**
  2799. * @attribute ons-prepop
  2800. * @initonly
  2801. * @type {Expression}
  2802. * @description
  2803. * [en]Allows you to specify custom behavior when the "prepop" event is fired.[/en]
  2804. * [ja]"prepop"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2805. */
  2806. /**
  2807. * @attribute ons-postpush
  2808. * @initonly
  2809. * @type {Expression}
  2810. * @description
  2811. * [en]Allows you to specify custom behavior when the "postpush" event is fired.[/en]
  2812. * [ja]"postpush"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2813. */
  2814. /**
  2815. * @attribute ons-postpop
  2816. * @initonly
  2817. * @type {Expression}
  2818. * @description
  2819. * [en]Allows you to specify custom behavior when the "postpop" event is fired.[/en]
  2820. * [ja]"postpop"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2821. */
  2822. /**
  2823. * @attribute ons-init
  2824. * @initonly
  2825. * @type {Expression}
  2826. * @description
  2827. * [en]Allows you to specify custom behavior when a page's "init" event is fired.[/en]
  2828. * [ja]ページの"init"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2829. */
  2830. /**
  2831. * @attribute ons-show
  2832. * @initonly
  2833. * @type {Expression}
  2834. * @description
  2835. * [en]Allows you to specify custom behavior when a page's "show" event is fired.[/en]
  2836. * [ja]ページの"show"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2837. */
  2838. /**
  2839. * @attribute ons-hide
  2840. * @initonly
  2841. * @type {Expression}
  2842. * @description
  2843. * [en]Allows you to specify custom behavior when a page's "hide" event is fired.[/en]
  2844. * [ja]ページの"hide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2845. */
  2846. /**
  2847. * @attribute ons-destroy
  2848. * @initonly
  2849. * @type {Expression}
  2850. * @description
  2851. * [en]Allows you to specify custom behavior when a page's "destroy" event is fired.[/en]
  2852. * [ja]ページの"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2853. */
  2854. /**
  2855. * @method on
  2856. * @signature on(eventName, listener)
  2857. * @description
  2858. * [en]Add an event listener.[/en]
  2859. * [ja]イベントリスナーを追加します。[/ja]
  2860. * @param {String} eventName
  2861. * [en]Name of the event.[/en]
  2862. * [ja]イベント名を指定します。[/ja]
  2863. * @param {Function} listener
  2864. * [en]Function to execute when the event is triggered.[/en]
  2865. * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja]
  2866. */
  2867. /**
  2868. * @method once
  2869. * @signature once(eventName, listener)
  2870. * @description
  2871. * [en]Add an event listener that's only triggered once.[/en]
  2872. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  2873. * @param {String} eventName
  2874. * [en]Name of the event.[/en]
  2875. * [ja]イベント名を指定します。[/ja]
  2876. * @param {Function} listener
  2877. * [en]Function to execute when the event is triggered.[/en]
  2878. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  2879. */
  2880. /**
  2881. * @method off
  2882. * @signature off(eventName, [listener])
  2883. * @description
  2884. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  2885. * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja]
  2886. * @param {String} eventName
  2887. * [en]Name of the event.[/en]
  2888. * [ja]イベント名を指定します。[/ja]
  2889. * @param {Function} listener
  2890. * [en]Function to execute when the event is triggered.[/en]
  2891. * [ja]削除するイベントリスナーを指定します。[/ja]
  2892. */
  2893. (function () {
  2894. var lastReady = window.ons.elements.Navigator.rewritables.ready;
  2895. window.ons.elements.Navigator.rewritables.ready = ons._waitDiretiveInit('ons-navigator', lastReady);
  2896. angular.module('onsen').directive('onsNavigator', ['NavigatorView', '$onsen', function (NavigatorView, $onsen) {
  2897. return {
  2898. restrict: 'E',
  2899. // NOTE: This element must coexists with ng-controller.
  2900. // Do not use isolated scope and template's ng-transclude.
  2901. transclude: false,
  2902. scope: true,
  2903. compile: function compile(element) {
  2904. return {
  2905. pre: function pre(scope, element, attrs, controller) {
  2906. var view = new NavigatorView(scope, element, attrs);
  2907. $onsen.declareVarAttribute(attrs, view);
  2908. $onsen.registerEventHandlers(view, 'prepush prepop postpush postpop init show hide destroy');
  2909. element.data('ons-navigator', view);
  2910. element[0].pageLoader = $onsen.createPageLoader(view);
  2911. scope.$on('$destroy', function () {
  2912. view._events = undefined;
  2913. element.data('ons-navigator', undefined);
  2914. scope = element = null;
  2915. });
  2916. },
  2917. post: function post(scope, element, attrs) {
  2918. $onsen.fireComponentEvent(element[0], 'init');
  2919. }
  2920. };
  2921. }
  2922. };
  2923. }]);
  2924. })();
  2925. /**
  2926. * @element ons-page
  2927. */
  2928. /**
  2929. * @attribute var
  2930. * @initonly
  2931. * @type {String}
  2932. * @description
  2933. * [en]Variable name to refer this page.[/en]
  2934. * [ja]このページを参照するための名前を指定します。[/ja]
  2935. */
  2936. /**
  2937. * @attribute ng-infinite-scroll
  2938. * @initonly
  2939. * @type {String}
  2940. * @description
  2941. * [en]Path of the function to be executed on infinite scrolling. The path is relative to $scope. The function receives a done callback that must be called when it's finished.[/en]
  2942. * [ja][/ja]
  2943. */
  2944. /**
  2945. * @attribute on-device-back-button
  2946. * @type {Expression}
  2947. * @description
  2948. * [en]Allows you to specify custom behavior when the back button is pressed.[/en]
  2949. * [ja]デバイスのバックボタンが押された時の挙動を設定できます。[/ja]
  2950. */
  2951. /**
  2952. * @attribute ng-device-back-button
  2953. * @initonly
  2954. * @type {Expression}
  2955. * @description
  2956. * [en]Allows you to specify custom behavior with an AngularJS expression when the back button is pressed.[/en]
  2957. * [ja]デバイスのバックボタンが押された時の挙動を設定できます。AngularJSのexpressionを指定できます。[/ja]
  2958. */
  2959. /**
  2960. * @attribute ons-init
  2961. * @initonly
  2962. * @type {Expression}
  2963. * @description
  2964. * [en]Allows you to specify custom behavior when the "init" event is fired.[/en]
  2965. * [ja]"init"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2966. */
  2967. /**
  2968. * @attribute ons-show
  2969. * @initonly
  2970. * @type {Expression}
  2971. * @description
  2972. * [en]Allows you to specify custom behavior when the "show" event is fired.[/en]
  2973. * [ja]"show"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2974. */
  2975. /**
  2976. * @attribute ons-hide
  2977. * @initonly
  2978. * @type {Expression}
  2979. * @description
  2980. * [en]Allows you to specify custom behavior when the "hide" event is fired.[/en]
  2981. * [ja]"hide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2982. */
  2983. /**
  2984. * @attribute ons-destroy
  2985. * @initonly
  2986. * @type {Expression}
  2987. * @description
  2988. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  2989. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  2990. */
  2991. (function () {
  2992. var module = angular.module('onsen');
  2993. module.directive('onsPage', ['$onsen', 'PageView', function ($onsen, PageView) {
  2994. function firePageInitEvent(element) {
  2995. // TODO: remove dirty fix
  2996. var i = 0,
  2997. f = function f() {
  2998. if (i++ < 15) {
  2999. if (isAttached(element)) {
  3000. $onsen.fireComponentEvent(element, 'init');
  3001. fireActualPageInitEvent(element);
  3002. } else {
  3003. if (i > 10) {
  3004. setTimeout(f, 1000 / 60);
  3005. } else {
  3006. setImmediate(f);
  3007. }
  3008. }
  3009. } else {
  3010. throw new Error('Fail to fire "pageinit" event. Attach "ons-page" element to the document after initialization.');
  3011. }
  3012. };
  3013. f();
  3014. }
  3015. function fireActualPageInitEvent(element) {
  3016. var event = document.createEvent('HTMLEvents');
  3017. event.initEvent('pageinit', true, true);
  3018. element.dispatchEvent(event);
  3019. }
  3020. function isAttached(element) {
  3021. if (document.documentElement === element) {
  3022. return true;
  3023. }
  3024. return element.parentNode ? isAttached(element.parentNode) : false;
  3025. }
  3026. return {
  3027. restrict: 'E',
  3028. // NOTE: This element must coexists with ng-controller.
  3029. // Do not use isolated scope and template's ng-transclude.
  3030. transclude: false,
  3031. scope: true,
  3032. compile: function compile(element, attrs) {
  3033. return {
  3034. pre: function pre(scope, element, attrs) {
  3035. var page = new PageView(scope, element, attrs);
  3036. $onsen.declareVarAttribute(attrs, page);
  3037. $onsen.registerEventHandlers(page, 'init show hide destroy');
  3038. element.data('ons-page', page);
  3039. $onsen.addModifierMethodsForCustomElements(page, element);
  3040. element.data('_scope', scope);
  3041. $onsen.cleaner.onDestroy(scope, function () {
  3042. page._events = undefined;
  3043. $onsen.removeModifierMethods(page);
  3044. element.data('ons-page', undefined);
  3045. element.data('_scope', undefined);
  3046. $onsen.clearComponent({
  3047. element: element,
  3048. scope: scope,
  3049. attrs: attrs
  3050. });
  3051. scope = element = attrs = null;
  3052. });
  3053. },
  3054. post: function postLink(scope, element, attrs) {
  3055. firePageInitEvent(element[0]);
  3056. }
  3057. };
  3058. }
  3059. };
  3060. }]);
  3061. })();
  3062. /**
  3063. * @element ons-popover
  3064. */
  3065. /**
  3066. * @attribute var
  3067. * @initonly
  3068. * @type {String}
  3069. * @description
  3070. * [en]Variable name to refer this popover.[/en]
  3071. * [ja]このポップオーバーを参照するための名前を指定します。[/ja]
  3072. */
  3073. /**
  3074. * @attribute ons-preshow
  3075. * @initonly
  3076. * @type {Expression}
  3077. * @description
  3078. * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en]
  3079. * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3080. */
  3081. /**
  3082. * @attribute ons-prehide
  3083. * @initonly
  3084. * @type {Expression}
  3085. * @description
  3086. * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en]
  3087. * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3088. */
  3089. /**
  3090. * @attribute ons-postshow
  3091. * @initonly
  3092. * @type {Expression}
  3093. * @description
  3094. * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en]
  3095. * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3096. */
  3097. /**
  3098. * @attribute ons-posthide
  3099. * @initonly
  3100. * @type {Expression}
  3101. * @description
  3102. * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en]
  3103. * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3104. */
  3105. /**
  3106. * @attribute ons-destroy
  3107. * @initonly
  3108. * @type {Expression}
  3109. * @description
  3110. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  3111. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3112. */
  3113. /**
  3114. * @method on
  3115. * @signature on(eventName, listener)
  3116. * @description
  3117. * [en]Add an event listener.[/en]
  3118. * [ja]イベントリスナーを追加します。[/ja]
  3119. * @param {String} eventName
  3120. * [en]Name of the event.[/en]
  3121. * [ja]イベント名を指定します。[/ja]
  3122. * @param {Function} listener
  3123. * [en]Function to execute when the event is triggered.[/en]
  3124. * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja]
  3125. */
  3126. /**
  3127. * @method once
  3128. * @signature once(eventName, listener)
  3129. * @description
  3130. * [en]Add an event listener that's only triggered once.[/en]
  3131. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  3132. * @param {String} eventName
  3133. * [en]Name of the event.[/en]
  3134. * [ja]イベント名を指定します。[/ja]
  3135. * @param {Function} listener
  3136. * [en]Function to execute when the event is triggered.[/en]
  3137. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  3138. */
  3139. /**
  3140. * @method off
  3141. * @signature off(eventName, [listener])
  3142. * @description
  3143. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  3144. * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja]
  3145. * @param {String} eventName
  3146. * [en]Name of the event.[/en]
  3147. * [ja]イベント名を指定します。[/ja]
  3148. * @param {Function} listener
  3149. * [en]Function to execute when the event is triggered.[/en]
  3150. * [ja]削除するイベントリスナーを指定します。[/ja]
  3151. */
  3152. (function () {
  3153. var module = angular.module('onsen');
  3154. module.directive('onsPopover', ['$onsen', 'PopoverView', function ($onsen, PopoverView) {
  3155. return {
  3156. restrict: 'E',
  3157. replace: false,
  3158. scope: true,
  3159. compile: function compile(element, attrs) {
  3160. return {
  3161. pre: function pre(scope, element, attrs) {
  3162. var popover = new PopoverView(scope, element, attrs);
  3163. $onsen.declareVarAttribute(attrs, popover);
  3164. $onsen.registerEventHandlers(popover, 'preshow prehide postshow posthide destroy');
  3165. $onsen.addModifierMethodsForCustomElements(popover, element);
  3166. element.data('ons-popover', popover);
  3167. scope.$on('$destroy', function () {
  3168. popover._events = undefined;
  3169. $onsen.removeModifierMethods(popover);
  3170. element.data('ons-popover', undefined);
  3171. element = null;
  3172. });
  3173. },
  3174. post: function post(scope, element) {
  3175. $onsen.fireComponentEvent(element[0], 'init');
  3176. }
  3177. };
  3178. }
  3179. };
  3180. }]);
  3181. })();
  3182. /**
  3183. * @element ons-pull-hook
  3184. * @example
  3185. * <script>
  3186. * ons.bootstrap()
  3187. *
  3188. * .controller('MyController', function($scope, $timeout) {
  3189. * $scope.items = [3, 2 ,1];
  3190. *
  3191. * $scope.load = function($done) {
  3192. * $timeout(function() {
  3193. * $scope.items.unshift($scope.items.length + 1);
  3194. * $done();
  3195. * }, 1000);
  3196. * };
  3197. * });
  3198. * </script>
  3199. *
  3200. * <ons-page ng-controller="MyController">
  3201. * <ons-pull-hook var="loader" ng-action="load($done)">
  3202. * <span ng-switch="loader.state">
  3203. * <span ng-switch-when="initial">Pull down to refresh</span>
  3204. * <span ng-switch-when="preaction">Release to refresh</span>
  3205. * <span ng-switch-when="action">Loading data. Please wait...</span>
  3206. * </span>
  3207. * </ons-pull-hook>
  3208. * <ons-list>
  3209. * <ons-list-item ng-repeat="item in items">
  3210. * Item #{{ item }}
  3211. * </ons-list-item>
  3212. * </ons-list>
  3213. * </ons-page>
  3214. */
  3215. /**
  3216. * @attribute var
  3217. * @initonly
  3218. * @type {String}
  3219. * @description
  3220. * [en]Variable name to refer this component.[/en]
  3221. * [ja]このコンポーネントを参照するための名前を指定します。[/ja]
  3222. */
  3223. /**
  3224. * @attribute ng-action
  3225. * @initonly
  3226. * @type {Expression}
  3227. * @description
  3228. * [en]Use to specify custom behavior when the page is pulled down. A <code>$done</code> function is available to tell the component that the action is completed.[/en]
  3229. * [ja]pull downしたときの振る舞いを指定します。アクションが完了した時には<code>$done</code>関数を呼び出します。[/ja]
  3230. */
  3231. /**
  3232. * @attribute ons-changestate
  3233. * @initonly
  3234. * @type {Expression}
  3235. * @description
  3236. * [en]Allows you to specify custom behavior when the "changestate" event is fired.[/en]
  3237. * [ja]"changestate"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3238. */
  3239. /**
  3240. * @method on
  3241. * @signature on(eventName, listener)
  3242. * @description
  3243. * [en]Add an event listener.[/en]
  3244. * [ja]イベントリスナーを追加します。[/ja]
  3245. * @param {String} eventName
  3246. * [en]Name of the event.[/en]
  3247. * [ja]イベント名を指定します。[/ja]
  3248. * @param {Function} listener
  3249. * [en]Function to execute when the event is triggered.[/en]
  3250. * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja]
  3251. */
  3252. /**
  3253. * @method once
  3254. * @signature once(eventName, listener)
  3255. * @description
  3256. * [en]Add an event listener that's only triggered once.[/en]
  3257. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  3258. * @param {String} eventName
  3259. * [en]Name of the event.[/en]
  3260. * [ja]イベント名を指定します。[/ja]
  3261. * @param {Function} listener
  3262. * [en]Function to execute when the event is triggered.[/en]
  3263. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  3264. */
  3265. /**
  3266. * @method off
  3267. * @signature off(eventName, [listener])
  3268. * @description
  3269. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  3270. * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja]
  3271. * @param {String} eventName
  3272. * [en]Name of the event.[/en]
  3273. * [ja]イベント名を指定します。[/ja]
  3274. * @param {Function} listener
  3275. * [en]Function to execute when the event is triggered.[/en]
  3276. * [ja]削除するイベントリスナーを指定します。[/ja]
  3277. */
  3278. (function () {
  3279. /**
  3280. * Pull hook directive.
  3281. */
  3282. angular.module('onsen').directive('onsPullHook', ['$onsen', 'PullHookView', function ($onsen, PullHookView) {
  3283. return {
  3284. restrict: 'E',
  3285. replace: false,
  3286. scope: true,
  3287. compile: function compile(element, attrs) {
  3288. return {
  3289. pre: function pre(scope, element, attrs) {
  3290. var pullHook = new PullHookView(scope, element, attrs);
  3291. $onsen.declareVarAttribute(attrs, pullHook);
  3292. $onsen.registerEventHandlers(pullHook, 'changestate destroy');
  3293. element.data('ons-pull-hook', pullHook);
  3294. scope.$on('$destroy', function () {
  3295. pullHook._events = undefined;
  3296. element.data('ons-pull-hook', undefined);
  3297. scope = element = attrs = null;
  3298. });
  3299. },
  3300. post: function post(scope, element) {
  3301. $onsen.fireComponentEvent(element[0], 'init');
  3302. }
  3303. };
  3304. }
  3305. };
  3306. }]);
  3307. })();
  3308. /**
  3309. * @element ons-radio
  3310. */
  3311. (function () {
  3312. angular.module('onsen').directive('onsRadio', ['$parse', function ($parse) {
  3313. return {
  3314. restrict: 'E',
  3315. replace: false,
  3316. scope: false,
  3317. link: function link(scope, element, attrs) {
  3318. var el = element[0];
  3319. var onChange = function onChange() {
  3320. $parse(attrs.ngModel).assign(scope, el.value);
  3321. attrs.ngChange && scope.$eval(attrs.ngChange);
  3322. scope.$parent.$evalAsync();
  3323. };
  3324. if (attrs.ngModel) {
  3325. scope.$watch(attrs.ngModel, function (value) {
  3326. return el.checked = value === el.value;
  3327. });
  3328. element.on('change', onChange);
  3329. }
  3330. scope.$on('$destroy', function () {
  3331. element.off('change', onChange);
  3332. scope = element = attrs = el = null;
  3333. });
  3334. }
  3335. };
  3336. }]);
  3337. })();
  3338. (function () {
  3339. angular.module('onsen').directive('onsRange', ['$parse', function ($parse) {
  3340. return {
  3341. restrict: 'E',
  3342. replace: false,
  3343. scope: false,
  3344. link: function link(scope, element, attrs) {
  3345. var onInput = function onInput() {
  3346. var set = $parse(attrs.ngModel).assign;
  3347. set(scope, element[0].value);
  3348. if (attrs.ngChange) {
  3349. scope.$eval(attrs.ngChange);
  3350. }
  3351. scope.$parent.$evalAsync();
  3352. };
  3353. if (attrs.ngModel) {
  3354. scope.$watch(attrs.ngModel, function (value) {
  3355. element[0].value = value;
  3356. });
  3357. element.on('input', onInput);
  3358. }
  3359. scope.$on('$destroy', function () {
  3360. element.off('input', onInput);
  3361. scope = element = attrs = null;
  3362. });
  3363. }
  3364. };
  3365. }]);
  3366. })();
  3367. (function () {
  3368. angular.module('onsen').directive('onsRipple', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  3369. return {
  3370. restrict: 'E',
  3371. link: function link(scope, element, attrs) {
  3372. GenericView.register(scope, element, attrs, { viewKey: 'ons-ripple' });
  3373. $onsen.fireComponentEvent(element[0], 'init');
  3374. }
  3375. };
  3376. }]);
  3377. })();
  3378. /**
  3379. * @element ons-scope
  3380. * @category util
  3381. * @description
  3382. * [en]All child elements using the "var" attribute will be attached to the scope of this element.[/en]
  3383. * [ja]"var"属性を使っている全ての子要素のviewオブジェクトは、この要素のAngularJSスコープに追加されます。[/ja]
  3384. * @example
  3385. * <ons-list>
  3386. * <ons-list-item ons-scope ng-repeat="item in items">
  3387. * <ons-carousel var="carousel">
  3388. * <ons-carousel-item ng-click="carousel.next()">
  3389. * {{ item }}
  3390. * </ons-carousel-item>
  3391. * </ons-carousel-item ng-click="carousel.prev()">
  3392. * ...
  3393. * </ons-carousel-item>
  3394. * </ons-carousel>
  3395. * </ons-list-item>
  3396. * </ons-list>
  3397. */
  3398. (function () {
  3399. var module = angular.module('onsen');
  3400. module.directive('onsScope', ['$onsen', function ($onsen) {
  3401. return {
  3402. restrict: 'A',
  3403. replace: false,
  3404. transclude: false,
  3405. scope: false,
  3406. link: function link(scope, element) {
  3407. element.data('_scope', scope);
  3408. scope.$on('$destroy', function () {
  3409. element.data('_scope', undefined);
  3410. });
  3411. }
  3412. };
  3413. }]);
  3414. })();
  3415. /**
  3416. * @element ons-search-input
  3417. */
  3418. (function () {
  3419. angular.module('onsen').directive('onsSearchInput', ['$parse', function ($parse) {
  3420. return {
  3421. restrict: 'E',
  3422. replace: false,
  3423. scope: false,
  3424. link: function link(scope, element, attrs) {
  3425. var el = element[0];
  3426. var onInput = function onInput() {
  3427. $parse(attrs.ngModel).assign(scope, el.type === 'number' ? Number(el.value) : el.value);
  3428. attrs.ngChange && scope.$eval(attrs.ngChange);
  3429. scope.$parent.$evalAsync();
  3430. };
  3431. if (attrs.ngModel) {
  3432. scope.$watch(attrs.ngModel, function (value) {
  3433. if (typeof value !== 'undefined' && value !== el.value) {
  3434. el.value = value;
  3435. }
  3436. });
  3437. element.on('input', onInput);
  3438. }
  3439. scope.$on('$destroy', function () {
  3440. element.off('input', onInput);
  3441. scope = element = attrs = el = null;
  3442. });
  3443. }
  3444. };
  3445. }]);
  3446. })();
  3447. /**
  3448. * @element ons-segment
  3449. */
  3450. /**
  3451. * @attribute var
  3452. * @initonly
  3453. * @type {String}
  3454. * @description
  3455. * [en]Variable name to refer this segment.[/en]
  3456. * [ja]このタブバーを参照するための名前を指定します。[/ja]
  3457. */
  3458. /**
  3459. * @attribute ons-postchange
  3460. * @initonly
  3461. * @type {Expression}
  3462. * @description
  3463. * [en]Allows you to specify custom behavior when the "postchange" event is fired.[/en]
  3464. * [ja]"postchange"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3465. */
  3466. (function () {
  3467. angular.module('onsen').directive('onsSegment', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  3468. return {
  3469. restrict: 'E',
  3470. link: function link(scope, element, attrs) {
  3471. var view = GenericView.register(scope, element, attrs, { viewKey: 'ons-segment' });
  3472. $onsen.fireComponentEvent(element[0], 'init');
  3473. $onsen.registerEventHandlers(view, 'postchange');
  3474. }
  3475. };
  3476. }]);
  3477. })();
  3478. /**
  3479. * @element ons-select
  3480. */
  3481. /**
  3482. * @method on
  3483. * @signature on(eventName, listener)
  3484. * @description
  3485. * [en]Add an event listener.[/en]
  3486. * [ja]イベントリスナーを追加します。[/ja]
  3487. * @param {String} eventName
  3488. * [en]Name of the event.[/en]
  3489. * [ja]イベント名を指定します。[/ja]
  3490. * @param {Function} listener
  3491. * [en]Function to execute when the event is triggered.[/en]
  3492. * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja]
  3493. */
  3494. /**
  3495. * @method once
  3496. * @signature once(eventName, listener)
  3497. * @description
  3498. * [en]Add an event listener that's only triggered once.[/en]
  3499. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  3500. * @param {String} eventName
  3501. * [en]Name of the event.[/en]
  3502. * [ja]イベント名を指定します。[/ja]
  3503. * @param {Function} listener
  3504. * [en]Function to execute when the event is triggered.[/en]
  3505. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  3506. */
  3507. /**
  3508. * @method off
  3509. * @signature off(eventName, [listener])
  3510. * @description
  3511. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  3512. * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja]
  3513. * @param {String} eventName
  3514. * [en]Name of the event.[/en]
  3515. * [ja]イベント名を指定します。[/ja]
  3516. * @param {Function} listener
  3517. * [en]Function to execute when the event is triggered.[/en]
  3518. * [ja]削除するイベントリスナーを指定します。[/ja]
  3519. */
  3520. (function () {
  3521. angular.module('onsen').directive('onsSelect', ['$parse', '$onsen', 'GenericView', function ($parse, $onsen, GenericView) {
  3522. return {
  3523. restrict: 'E',
  3524. replace: false,
  3525. scope: false,
  3526. link: function link(scope, element, attrs) {
  3527. var onInput = function onInput() {
  3528. var set = $parse(attrs.ngModel).assign;
  3529. set(scope, element[0].value);
  3530. if (attrs.ngChange) {
  3531. scope.$eval(attrs.ngChange);
  3532. }
  3533. scope.$parent.$evalAsync();
  3534. };
  3535. if (attrs.ngModel) {
  3536. scope.$watch(attrs.ngModel, function (value) {
  3537. element[0].value = value;
  3538. });
  3539. element.on('input', onInput);
  3540. }
  3541. scope.$on('$destroy', function () {
  3542. element.off('input', onInput);
  3543. scope = element = attrs = null;
  3544. });
  3545. GenericView.register(scope, element, attrs, { viewKey: 'ons-select' });
  3546. $onsen.fireComponentEvent(element[0], 'init');
  3547. }
  3548. };
  3549. }]);
  3550. })();
  3551. /**
  3552. * @element ons-speed-dial
  3553. */
  3554. /**
  3555. * @attribute var
  3556. * @initonly
  3557. * @type {String}
  3558. * @description
  3559. * [en]Variable name to refer the speed dial.[/en]
  3560. * [ja]このスピードダイアルを参照するための変数名をしてします。[/ja]
  3561. */
  3562. /**
  3563. * @attribute ons-open
  3564. * @initonly
  3565. * @type {Expression}
  3566. * @description
  3567. * [en]Allows you to specify custom behavior when the "open" event is fired.[/en]
  3568. * [ja]"open"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3569. */
  3570. /**
  3571. * @attribute ons-close
  3572. * @initonly
  3573. * @type {Expression}
  3574. * @description
  3575. * [en]Allows you to specify custom behavior when the "close" event is fired.[/en]
  3576. * [ja]"close"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3577. */
  3578. /**
  3579. * @method once
  3580. * @signature once(eventName, listener)
  3581. * @description
  3582. * [en]Add an event listener that's only triggered once.[/en]
  3583. * [ja]一度だけ呼び出されるイベントリスナを追加します。[/ja]
  3584. * @param {String} eventName
  3585. * [en]Name of the event.[/en]
  3586. * [ja]イベント名を指定します。[/ja]
  3587. * @param {Function} listener
  3588. * [en]Function to execute when the event is triggered.[/en]
  3589. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  3590. */
  3591. /**
  3592. * @method off
  3593. * @signature off(eventName, [listener])
  3594. * @description
  3595. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  3596. * [ja]イベントリスナーを削除します。もしイベントリスナーが指定されなかった場合には、そのイベントに紐付いているイベントリスナーが全て削除されます。[/ja]
  3597. * @param {String} eventName
  3598. * [en]Name of the event.[/en]
  3599. * [ja]イベント名を指定します。[/ja]
  3600. * @param {Function} listener
  3601. * [en]Function to execute when the event is triggered.[/en]
  3602. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  3603. */
  3604. /**
  3605. * @method on
  3606. * @signature on(eventName, listener)
  3607. * @description
  3608. * [en]Add an event listener.[/en]
  3609. * [ja]イベントリスナーを追加します。[/ja]
  3610. * @param {String} eventName
  3611. * [en]Name of the event.[/en]
  3612. * [ja]イベント名を指定します。[/ja]
  3613. * @param {Function} listener
  3614. * [en]Function to execute when the event is triggered.[/en]
  3615. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  3616. */
  3617. (function () {
  3618. var module = angular.module('onsen');
  3619. module.directive('onsSpeedDial', ['$onsen', 'SpeedDialView', function ($onsen, SpeedDialView) {
  3620. return {
  3621. restrict: 'E',
  3622. replace: false,
  3623. scope: false,
  3624. transclude: false,
  3625. compile: function compile(element, attrs) {
  3626. return function (scope, element, attrs) {
  3627. var speedDial = new SpeedDialView(scope, element, attrs);
  3628. element.data('ons-speed-dial', speedDial);
  3629. $onsen.registerEventHandlers(speedDial, 'open close');
  3630. $onsen.declareVarAttribute(attrs, speedDial);
  3631. scope.$on('$destroy', function () {
  3632. speedDial._events = undefined;
  3633. element.data('ons-speed-dial', undefined);
  3634. element = null;
  3635. });
  3636. $onsen.fireComponentEvent(element[0], 'init');
  3637. };
  3638. }
  3639. };
  3640. }]);
  3641. })();
  3642. /**
  3643. * @element ons-splitter-content
  3644. */
  3645. /**
  3646. * @attribute var
  3647. * @initonly
  3648. * @type {String}
  3649. * @description
  3650. * [en]Variable name to refer this splitter content.[/en]
  3651. * [ja]このスプリッターコンポーネントを参照するための名前を指定します。[/ja]
  3652. */
  3653. /**
  3654. * @attribute ons-destroy
  3655. * @initonly
  3656. * @type {Expression}
  3657. * @description
  3658. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  3659. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3660. */
  3661. (function () {
  3662. var lastReady = window.ons.elements.SplitterContent.rewritables.ready;
  3663. window.ons.elements.SplitterContent.rewritables.ready = ons._waitDiretiveInit('ons-splitter-content', lastReady);
  3664. angular.module('onsen').directive('onsSplitterContent', ['$compile', 'SplitterContent', '$onsen', function ($compile, SplitterContent, $onsen) {
  3665. return {
  3666. restrict: 'E',
  3667. compile: function compile(element, attrs) {
  3668. return function (scope, element, attrs) {
  3669. var view = new SplitterContent(scope, element, attrs);
  3670. $onsen.declareVarAttribute(attrs, view);
  3671. $onsen.registerEventHandlers(view, 'destroy');
  3672. element.data('ons-splitter-content', view);
  3673. element[0].pageLoader = $onsen.createPageLoader(view);
  3674. scope.$on('$destroy', function () {
  3675. view._events = undefined;
  3676. element.data('ons-splitter-content', undefined);
  3677. });
  3678. $onsen.fireComponentEvent(element[0], 'init');
  3679. };
  3680. }
  3681. };
  3682. }]);
  3683. })();
  3684. /**
  3685. * @element ons-splitter-side
  3686. */
  3687. /**
  3688. * @attribute var
  3689. * @initonly
  3690. * @type {String}
  3691. * @description
  3692. * [en]Variable name to refer this splitter side.[/en]
  3693. * [ja]このスプリッターコンポーネントを参照するための名前を指定します。[/ja]
  3694. */
  3695. /**
  3696. * @attribute ons-destroy
  3697. * @initonly
  3698. * @type {Expression}
  3699. * @description
  3700. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  3701. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3702. */
  3703. /**
  3704. * @attribute ons-preopen
  3705. * @initonly
  3706. * @type {Expression}
  3707. * @description
  3708. * [en]Allows you to specify custom behavior when the "preopen" event is fired.[/en]
  3709. * [ja]"preopen"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3710. */
  3711. /**
  3712. * @attribute ons-preclose
  3713. * @initonly
  3714. * @type {Expression}
  3715. * @description
  3716. * [en]Allows you to specify custom behavior when the "preclose" event is fired.[/en]
  3717. * [ja]"preclose"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3718. */
  3719. /**
  3720. * @attribute ons-postopen
  3721. * @initonly
  3722. * @type {Expression}
  3723. * @description
  3724. * [en]Allows you to specify custom behavior when the "postopen" event is fired.[/en]
  3725. * [ja]"postopen"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3726. */
  3727. /**
  3728. * @attribute ons-postclose
  3729. * @initonly
  3730. * @type {Expression}
  3731. * @description
  3732. * [en]Allows you to specify custom behavior when the "postclose" event is fired.[/en]
  3733. * [ja]"postclose"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3734. */
  3735. /**
  3736. * @attribute ons-modechange
  3737. * @initonly
  3738. * @type {Expression}
  3739. * @description
  3740. * [en]Allows you to specify custom behavior when the "modechange" event is fired.[/en]
  3741. * [ja]"modechange"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3742. */
  3743. (function () {
  3744. var lastReady = window.ons.elements.SplitterSide.rewritables.ready;
  3745. window.ons.elements.SplitterSide.rewritables.ready = ons._waitDiretiveInit('ons-splitter-side', lastReady);
  3746. angular.module('onsen').directive('onsSplitterSide', ['$compile', 'SplitterSide', '$onsen', function ($compile, SplitterSide, $onsen) {
  3747. return {
  3748. restrict: 'E',
  3749. compile: function compile(element, attrs) {
  3750. return function (scope, element, attrs) {
  3751. var view = new SplitterSide(scope, element, attrs);
  3752. $onsen.declareVarAttribute(attrs, view);
  3753. $onsen.registerEventHandlers(view, 'destroy preopen preclose postopen postclose modechange');
  3754. element.data('ons-splitter-side', view);
  3755. element[0].pageLoader = $onsen.createPageLoader(view);
  3756. scope.$on('$destroy', function () {
  3757. view._events = undefined;
  3758. element.data('ons-splitter-side', undefined);
  3759. });
  3760. $onsen.fireComponentEvent(element[0], 'init');
  3761. };
  3762. }
  3763. };
  3764. }]);
  3765. })();
  3766. /**
  3767. * @element ons-splitter
  3768. */
  3769. /**
  3770. * @attribute var
  3771. * @initonly
  3772. * @type {String}
  3773. * @description
  3774. * [en]Variable name to refer this splitter.[/en]
  3775. * [ja]このスプリッターコンポーネントを参照するための名前を指定します。[/ja]
  3776. */
  3777. /**
  3778. * @attribute ons-destroy
  3779. * @initonly
  3780. * @type {Expression}
  3781. * @description
  3782. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  3783. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3784. */
  3785. /**
  3786. * @method on
  3787. * @signature on(eventName, listener)
  3788. * @description
  3789. * [en]Add an event listener.[/en]
  3790. * [ja]イベントリスナーを追加します。[/ja]
  3791. * @param {String} eventName
  3792. * [en]Name of the event.[/en]
  3793. * [ja]イベント名を指定します。[/ja]
  3794. * @param {Function} listener
  3795. * [en]Function to execute when the event is triggered.[/en]
  3796. * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja]
  3797. */
  3798. /**
  3799. * @method once
  3800. * @signature once(eventName, listener)
  3801. * @description
  3802. * [en]Add an event listener that's only triggered once.[/en]
  3803. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  3804. * @param {String} eventName
  3805. * [en]Name of the event.[/en]
  3806. * [ja]イベント名を指定します。[/ja]
  3807. * @param {Function} listener
  3808. * [en]Function to execute when the event is triggered.[/en]
  3809. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  3810. */
  3811. /**
  3812. * @method off
  3813. * @signature off(eventName, [listener])
  3814. * @description
  3815. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  3816. * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja]
  3817. * @param {String} eventName
  3818. * [en]Name of the event.[/en]
  3819. * [ja]イベント名を指定します。[/ja]
  3820. * @param {Function} listener
  3821. * [en]Function to execute when the event is triggered.[/en]
  3822. * [ja]削除するイベントリスナーを指定します。[/ja]
  3823. */
  3824. (function () {
  3825. angular.module('onsen').directive('onsSplitter', ['$compile', 'Splitter', '$onsen', function ($compile, Splitter, $onsen) {
  3826. return {
  3827. restrict: 'E',
  3828. scope: true,
  3829. compile: function compile(element, attrs) {
  3830. return function (scope, element, attrs) {
  3831. var splitter = new Splitter(scope, element, attrs);
  3832. $onsen.declareVarAttribute(attrs, splitter);
  3833. $onsen.registerEventHandlers(splitter, 'destroy');
  3834. element.data('ons-splitter', splitter);
  3835. scope.$on('$destroy', function () {
  3836. splitter._events = undefined;
  3837. element.data('ons-splitter', undefined);
  3838. });
  3839. $onsen.fireComponentEvent(element[0], 'init');
  3840. };
  3841. }
  3842. };
  3843. }]);
  3844. })();
  3845. /**
  3846. * @element ons-switch
  3847. */
  3848. /**
  3849. * @attribute var
  3850. * @initonly
  3851. * @type {String}
  3852. * @description
  3853. * [en]Variable name to refer this switch.[/en]
  3854. * [ja]JavaScriptから参照するための変数名を指定します。[/ja]
  3855. */
  3856. /**
  3857. * @method on
  3858. * @signature on(eventName, listener)
  3859. * @description
  3860. * [en]Add an event listener.[/en]
  3861. * [ja]イベントリスナーを追加します。[/ja]
  3862. * @param {String} eventName
  3863. * [en]Name of the event.[/en]
  3864. * [ja]イベント名を指定します。[/ja]
  3865. * @param {Function} listener
  3866. * [en]Function to execute when the event is triggered.[/en]
  3867. * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja]
  3868. */
  3869. /**
  3870. * @method once
  3871. * @signature once(eventName, listener)
  3872. * @description
  3873. * [en]Add an event listener that's only triggered once.[/en]
  3874. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  3875. * @param {String} eventName
  3876. * [en]Name of the event.[/en]
  3877. * [ja]イベント名を指定します。[/ja]
  3878. * @param {Function} listener
  3879. * [en]Function to execute when the event is triggered.[/en]
  3880. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  3881. */
  3882. /**
  3883. * @method off
  3884. * @signature off(eventName, [listener])
  3885. * @description
  3886. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  3887. * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja]
  3888. * @param {String} eventName
  3889. * [en]Name of the event.[/en]
  3890. * [ja]イベント名を指定します。[/ja]
  3891. * @param {Function} listener
  3892. * [en]Function to execute when the event is triggered.[/en]
  3893. * [ja]削除するイベントリスナーを指定します。[/ja]
  3894. */
  3895. (function () {
  3896. angular.module('onsen').directive('onsSwitch', ['$onsen', 'SwitchView', function ($onsen, SwitchView) {
  3897. return {
  3898. restrict: 'E',
  3899. replace: false,
  3900. scope: true,
  3901. link: function link(scope, element, attrs) {
  3902. if (attrs.ngController) {
  3903. throw new Error('This element can\'t accept ng-controller directive.');
  3904. }
  3905. var switchView = new SwitchView(element, scope, attrs);
  3906. $onsen.addModifierMethodsForCustomElements(switchView, element);
  3907. $onsen.declareVarAttribute(attrs, switchView);
  3908. element.data('ons-switch', switchView);
  3909. $onsen.cleaner.onDestroy(scope, function () {
  3910. switchView._events = undefined;
  3911. $onsen.removeModifierMethods(switchView);
  3912. element.data('ons-switch', undefined);
  3913. $onsen.clearComponent({
  3914. element: element,
  3915. scope: scope,
  3916. attrs: attrs
  3917. });
  3918. element = attrs = scope = null;
  3919. });
  3920. $onsen.fireComponentEvent(element[0], 'init');
  3921. }
  3922. };
  3923. }]);
  3924. })();
  3925. /**
  3926. * @element ons-tabbar
  3927. */
  3928. /**
  3929. * @attribute var
  3930. * @initonly
  3931. * @type {String}
  3932. * @description
  3933. * [en]Variable name to refer this tab bar.[/en]
  3934. * [ja]このタブバーを参照するための名前を指定します。[/ja]
  3935. */
  3936. /**
  3937. * @attribute ons-reactive
  3938. * @initonly
  3939. * @type {Expression}
  3940. * @description
  3941. * [en]Allows you to specify custom behavior when the "reactive" event is fired.[/en]
  3942. * [ja]"reactive"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3943. */
  3944. /**
  3945. * @attribute ons-prechange
  3946. * @initonly
  3947. * @type {Expression}
  3948. * @description
  3949. * [en]Allows you to specify custom behavior when the "prechange" event is fired.[/en]
  3950. * [ja]"prechange"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3951. */
  3952. /**
  3953. * @attribute ons-postchange
  3954. * @initonly
  3955. * @type {Expression}
  3956. * @description
  3957. * [en]Allows you to specify custom behavior when the "postchange" event is fired.[/en]
  3958. * [ja]"postchange"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3959. */
  3960. /**
  3961. * @attribute ons-init
  3962. * @initonly
  3963. * @type {Expression}
  3964. * @description
  3965. * [en]Allows you to specify custom behavior when a page's "init" event is fired.[/en]
  3966. * [ja]ページの"init"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3967. */
  3968. /**
  3969. * @attribute ons-show
  3970. * @initonly
  3971. * @type {Expression}
  3972. * @description
  3973. * [en]Allows you to specify custom behavior when a page's "show" event is fired.[/en]
  3974. * [ja]ページの"show"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3975. */
  3976. /**
  3977. * @attribute ons-hide
  3978. * @initonly
  3979. * @type {Expression}
  3980. * @description
  3981. * [en]Allows you to specify custom behavior when a page's "hide" event is fired.[/en]
  3982. * [ja]ページの"hide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3983. */
  3984. /**
  3985. * @attribute ons-destroy
  3986. * @initonly
  3987. * @type {Expression}
  3988. * @description
  3989. * [en]Allows you to specify custom behavior when a page's "destroy" event is fired.[/en]
  3990. * [ja]ページの"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  3991. */
  3992. /**
  3993. * @method on
  3994. * @signature on(eventName, listener)
  3995. * @description
  3996. * [en]Add an event listener.[/en]
  3997. * [ja]イベントリスナーを追加します。[/ja]
  3998. * @param {String} eventName
  3999. * [en]Name of the event.[/en]
  4000. * [ja]イベント名を指定します。[/ja]
  4001. * @param {Function} listener
  4002. * [en]Function to execute when the event is triggered.[/en]
  4003. * [ja]このイベントが発火された際に呼び出される関数オブジェクトを指定します。[/ja]
  4004. */
  4005. /**
  4006. * @method once
  4007. * @signature once(eventName, listener)
  4008. * @description
  4009. * [en]Add an event listener that's only triggered once.[/en]
  4010. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  4011. * @param {String} eventName
  4012. * [en]Name of the event.[/en]
  4013. * [ja]イベント名を指定します。[/ja]
  4014. * @param {Function} listener
  4015. * [en]Function to execute when the event is triggered.[/en]
  4016. * [ja]イベントが発火した際に呼び出される関数オブジェクトを指定します。[/ja]
  4017. */
  4018. /**
  4019. * @method off
  4020. * @signature off(eventName, [listener])
  4021. * @description
  4022. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  4023. * [ja]イベントリスナーを削除します。もしイベントリスナーを指定しなかった場合には、そのイベントに紐づく全てのイベントリスナーが削除されます。[/ja]
  4024. * @param {String} eventName
  4025. * [en]Name of the event.[/en]
  4026. * [ja]イベント名を指定します。[/ja]
  4027. * @param {Function} listener
  4028. * [en]Function to execute when the event is triggered.[/en]
  4029. * [ja]削除するイベントリスナーを指定します。[/ja]
  4030. */
  4031. (function () {
  4032. var lastReady = window.ons.elements.Tabbar.rewritables.ready;
  4033. window.ons.elements.Tabbar.rewritables.ready = ons._waitDiretiveInit('ons-tabbar', lastReady);
  4034. angular.module('onsen').directive('onsTabbar', ['$onsen', '$compile', '$parse', 'TabbarView', function ($onsen, $compile, $parse, TabbarView) {
  4035. return {
  4036. restrict: 'E',
  4037. replace: false,
  4038. scope: true,
  4039. link: function link(scope, element, attrs, controller) {
  4040. var tabbarView = new TabbarView(scope, element, attrs);
  4041. $onsen.addModifierMethodsForCustomElements(tabbarView, element);
  4042. $onsen.registerEventHandlers(tabbarView, 'reactive prechange postchange init show hide destroy');
  4043. element.data('ons-tabbar', tabbarView);
  4044. $onsen.declareVarAttribute(attrs, tabbarView);
  4045. scope.$on('$destroy', function () {
  4046. tabbarView._events = undefined;
  4047. $onsen.removeModifierMethods(tabbarView);
  4048. element.data('ons-tabbar', undefined);
  4049. });
  4050. $onsen.fireComponentEvent(element[0], 'init');
  4051. }
  4052. };
  4053. }]);
  4054. })();
  4055. (function () {
  4056. tab.$inject = ['$onsen', 'GenericView'];
  4057. angular.module('onsen').directive('onsTab', tab).directive('onsTabbarItem', tab); // for BC
  4058. function tab($onsen, GenericView) {
  4059. return {
  4060. restrict: 'E',
  4061. link: function link(scope, element, attrs) {
  4062. var view = GenericView.register(scope, element, attrs, { viewKey: 'ons-tab' });
  4063. element[0].pageLoader = $onsen.createPageLoader(view);
  4064. $onsen.fireComponentEvent(element[0], 'init');
  4065. }
  4066. };
  4067. }
  4068. })();
  4069. (function () {
  4070. angular.module('onsen').directive('onsTemplate', ['$templateCache', function ($templateCache) {
  4071. return {
  4072. restrict: 'E',
  4073. terminal: true,
  4074. compile: function compile(element) {
  4075. var content = element[0].template || element.html();
  4076. $templateCache.put(element.attr('id'), content);
  4077. }
  4078. };
  4079. }]);
  4080. })();
  4081. /**
  4082. * @element ons-toast
  4083. */
  4084. /**
  4085. * @attribute var
  4086. * @initonly
  4087. * @type {String}
  4088. * @description
  4089. * [en]Variable name to refer this toast dialog.[/en]
  4090. * [ja]このトーストを参照するための名前を指定します。[/ja]
  4091. */
  4092. /**
  4093. * @attribute ons-preshow
  4094. * @initonly
  4095. * @type {Expression}
  4096. * @description
  4097. * [en]Allows you to specify custom behavior when the "preshow" event is fired.[/en]
  4098. * [ja]"preshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  4099. */
  4100. /**
  4101. * @attribute ons-prehide
  4102. * @initonly
  4103. * @type {Expression}
  4104. * @description
  4105. * [en]Allows you to specify custom behavior when the "prehide" event is fired.[/en]
  4106. * [ja]"prehide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  4107. */
  4108. /**
  4109. * @attribute ons-postshow
  4110. * @initonly
  4111. * @type {Expression}
  4112. * @description
  4113. * [en]Allows you to specify custom behavior when the "postshow" event is fired.[/en]
  4114. * [ja]"postshow"イベントが発火された時の挙動を独自に指定できます。[/ja]
  4115. */
  4116. /**
  4117. * @attribute ons-posthide
  4118. * @initonly
  4119. * @type {Expression}
  4120. * @description
  4121. * [en]Allows you to specify custom behavior when the "posthide" event is fired.[/en]
  4122. * [ja]"posthide"イベントが発火された時の挙動を独自に指定できます。[/ja]
  4123. */
  4124. /**
  4125. * @attribute ons-destroy
  4126. * @initonly
  4127. * @type {Expression}
  4128. * @description
  4129. * [en]Allows you to specify custom behavior when the "destroy" event is fired.[/en]
  4130. * [ja]"destroy"イベントが発火された時の挙動を独自に指定できます。[/ja]
  4131. */
  4132. /**
  4133. * @method on
  4134. * @signature on(eventName, listener)
  4135. * @description
  4136. * [en]Add an event listener.[/en]
  4137. * [ja]イベントリスナーを追加します。[/ja]
  4138. * @param {String} eventName
  4139. * [en]Name of the event.[/en]
  4140. * [ja]イベント名を指定します。[/ja]
  4141. * @param {Function} listener
  4142. * [en]Function to execute when the event is triggered.[/en]
  4143. * [ja]イベントが発火された際に呼び出されるコールバックを指定します。[/ja]
  4144. */
  4145. /**
  4146. * @method once
  4147. * @signature once(eventName, listener)
  4148. * @description
  4149. * [en]Add an event listener that's only triggered once.[/en]
  4150. * [ja]一度だけ呼び出されるイベントリスナーを追加します。[/ja]
  4151. * @param {String} eventName
  4152. * [en]Name of the event.[/en]
  4153. * [ja]イベント名を指定します。[/ja]
  4154. * @param {Function} listener
  4155. * [en]Function to execute when the event is triggered.[/en]
  4156. * [ja]イベントが発火した際に呼び出されるコールバックを指定します。[/ja]
  4157. */
  4158. /**
  4159. * @method off
  4160. * @signature off(eventName, [listener])
  4161. * @description
  4162. * [en]Remove an event listener. If the listener is not specified all listeners for the event type will be removed.[/en]
  4163. * [ja]イベントリスナーを削除します。もしlistenerパラメータが指定されなかった場合、そのイベントのリスナーが全て削除されます。[/ja]
  4164. * @param {String} eventName
  4165. * [en]Name of the event.[/en]
  4166. * [ja]イベント名を指定します。[/ja]
  4167. * @param {Function} listener
  4168. * [en]Function to execute when the event is triggered.[/en]
  4169. * [ja]削除するイベントリスナーの関数オブジェクトを渡します。[/ja]
  4170. */
  4171. (function () {
  4172. /**
  4173. * Toast directive.
  4174. */
  4175. angular.module('onsen').directive('onsToast', ['$onsen', 'ToastView', function ($onsen, ToastView) {
  4176. return {
  4177. restrict: 'E',
  4178. replace: false,
  4179. scope: true,
  4180. transclude: false,
  4181. compile: function compile(element, attrs) {
  4182. return {
  4183. pre: function pre(scope, element, attrs) {
  4184. var toast = new ToastView(scope, element, attrs);
  4185. $onsen.declareVarAttribute(attrs, toast);
  4186. $onsen.registerEventHandlers(toast, 'preshow prehide postshow posthide destroy');
  4187. $onsen.addModifierMethodsForCustomElements(toast, element);
  4188. element.data('ons-toast', toast);
  4189. element.data('_scope', scope);
  4190. scope.$on('$destroy', function () {
  4191. toast._events = undefined;
  4192. $onsen.removeModifierMethods(toast);
  4193. element.data('ons-toast', undefined);
  4194. element = null;
  4195. });
  4196. },
  4197. post: function post(scope, element) {
  4198. $onsen.fireComponentEvent(element[0], 'init');
  4199. }
  4200. };
  4201. }
  4202. };
  4203. }]);
  4204. })();
  4205. /**
  4206. * @element ons-toolbar-button
  4207. */
  4208. /**
  4209. * @attribute var
  4210. * @initonly
  4211. * @type {String}
  4212. * @description
  4213. * [en]Variable name to refer this button.[/en]
  4214. * [ja]このボタンを参照するための名前を指定します。[/ja]
  4215. */
  4216. (function () {
  4217. var module = angular.module('onsen');
  4218. module.directive('onsToolbarButton', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  4219. return {
  4220. restrict: 'E',
  4221. scope: false,
  4222. link: {
  4223. pre: function pre(scope, element, attrs) {
  4224. var toolbarButton = new GenericView(scope, element, attrs);
  4225. element.data('ons-toolbar-button', toolbarButton);
  4226. $onsen.declareVarAttribute(attrs, toolbarButton);
  4227. $onsen.addModifierMethodsForCustomElements(toolbarButton, element);
  4228. $onsen.cleaner.onDestroy(scope, function () {
  4229. toolbarButton._events = undefined;
  4230. $onsen.removeModifierMethods(toolbarButton);
  4231. element.data('ons-toolbar-button', undefined);
  4232. element = null;
  4233. $onsen.clearComponent({
  4234. scope: scope,
  4235. attrs: attrs,
  4236. element: element
  4237. });
  4238. scope = element = attrs = null;
  4239. });
  4240. },
  4241. post: function post(scope, element, attrs) {
  4242. $onsen.fireComponentEvent(element[0], 'init');
  4243. }
  4244. }
  4245. };
  4246. }]);
  4247. })();
  4248. /**
  4249. * @element ons-toolbar
  4250. */
  4251. /**
  4252. * @attribute var
  4253. * @initonly
  4254. * @type {String}
  4255. * @description
  4256. * [en]Variable name to refer this toolbar.[/en]
  4257. * [ja]このツールバーを参照するための名前を指定します。[/ja]
  4258. */
  4259. (function () {
  4260. angular.module('onsen').directive('onsToolbar', ['$onsen', 'GenericView', function ($onsen, GenericView) {
  4261. return {
  4262. restrict: 'E',
  4263. // NOTE: This element must coexists with ng-controller.
  4264. // Do not use isolated scope and template's ng-transclude.
  4265. scope: false,
  4266. transclude: false,
  4267. compile: function compile(element) {
  4268. return {
  4269. pre: function pre(scope, element, attrs) {
  4270. // TODO: Remove this dirty fix!
  4271. if (element[0].nodeName === 'ons-toolbar') {
  4272. GenericView.register(scope, element, attrs, { viewKey: 'ons-toolbar' });
  4273. }
  4274. },
  4275. post: function post(scope, element, attrs) {
  4276. $onsen.fireComponentEvent(element[0], 'init');
  4277. }
  4278. };
  4279. }
  4280. };
  4281. }]);
  4282. })();
  4283. /*
  4284. Copyright 2013-2015 ASIAL CORPORATION
  4285. Licensed under the Apache License, Version 2.0 (the "License");
  4286. you may not use this file except in compliance with the License.
  4287. You may obtain a copy of the License at
  4288. http://www.apache.org/licenses/LICENSE-2.0
  4289. Unless required by applicable law or agreed to in writing, software
  4290. distributed under the License is distributed on an "AS IS" BASIS,
  4291. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  4292. See the License for the specific language governing permissions and
  4293. limitations under the License.
  4294. */
  4295. (function () {
  4296. var module = angular.module('onsen');
  4297. /**
  4298. * Internal service class for framework implementation.
  4299. */
  4300. module.factory('$onsen', ['$rootScope', '$window', '$cacheFactory', '$document', '$templateCache', '$http', '$q', '$compile', '$onsGlobal', 'ComponentCleaner', function ($rootScope, $window, $cacheFactory, $document, $templateCache, $http, $q, $compile, $onsGlobal, ComponentCleaner) {
  4301. var $onsen = createOnsenService();
  4302. var ModifierUtil = $onsGlobal._internal.ModifierUtil;
  4303. return $onsen;
  4304. function createOnsenService() {
  4305. return {
  4306. DIRECTIVE_TEMPLATE_URL: 'templates',
  4307. cleaner: ComponentCleaner,
  4308. util: $onsGlobal._util,
  4309. DeviceBackButtonHandler: $onsGlobal._internal.dbbDispatcher,
  4310. _defaultDeviceBackButtonHandler: $onsGlobal._defaultDeviceBackButtonHandler,
  4311. /**
  4312. * @return {Object}
  4313. */
  4314. getDefaultDeviceBackButtonHandler: function getDefaultDeviceBackButtonHandler() {
  4315. return this._defaultDeviceBackButtonHandler;
  4316. },
  4317. /**
  4318. * @param {Object} view
  4319. * @param {Element} element
  4320. * @param {Array} methodNames
  4321. * @return {Function} A function that dispose all driving methods.
  4322. */
  4323. deriveMethods: function deriveMethods(view, element, methodNames) {
  4324. methodNames.forEach(function (methodName) {
  4325. view[methodName] = function () {
  4326. return element[methodName].apply(element, arguments);
  4327. };
  4328. });
  4329. return function () {
  4330. methodNames.forEach(function (methodName) {
  4331. view[methodName] = null;
  4332. });
  4333. view = element = null;
  4334. };
  4335. },
  4336. /**
  4337. * @param {Class} klass
  4338. * @param {Array} properties
  4339. */
  4340. derivePropertiesFromElement: function derivePropertiesFromElement(klass, properties) {
  4341. properties.forEach(function (property) {
  4342. Object.defineProperty(klass.prototype, property, {
  4343. get: function get() {
  4344. return this._element[0][property];
  4345. },
  4346. set: function set(value) {
  4347. return this._element[0][property] = value; // eslint-disable-line no-return-assign
  4348. }
  4349. });
  4350. });
  4351. },
  4352. /**
  4353. * @param {Object} view
  4354. * @param {Element} element
  4355. * @param {Array} eventNames
  4356. * @param {Function} [map]
  4357. * @return {Function} A function that clear all event listeners
  4358. */
  4359. deriveEvents: function deriveEvents(view, element, eventNames, map) {
  4360. map = map || function (detail) {
  4361. return detail;
  4362. };
  4363. eventNames = [].concat(eventNames);
  4364. var listeners = [];
  4365. eventNames.forEach(function (eventName) {
  4366. var listener = function listener(event) {
  4367. map(event.detail || {});
  4368. view.emit(eventName, event);
  4369. };
  4370. listeners.push(listener);
  4371. element.addEventListener(eventName, listener, false);
  4372. });
  4373. return function () {
  4374. eventNames.forEach(function (eventName, index) {
  4375. element.removeEventListener(eventName, listeners[index], false);
  4376. });
  4377. view = element = listeners = map = null;
  4378. };
  4379. },
  4380. /**
  4381. * @return {Boolean}
  4382. */
  4383. isEnabledAutoStatusBarFill: function isEnabledAutoStatusBarFill() {
  4384. return !!$onsGlobal._config.autoStatusBarFill;
  4385. },
  4386. /**
  4387. * @return {Boolean}
  4388. */
  4389. shouldFillStatusBar: $onsGlobal.shouldFillStatusBar,
  4390. /**
  4391. * @param {Function} action
  4392. */
  4393. autoStatusBarFill: $onsGlobal.autoStatusBarFill,
  4394. /**
  4395. * @param {Object} directive
  4396. * @param {HTMLElement} pageElement
  4397. * @param {Function} callback
  4398. */
  4399. compileAndLink: function compileAndLink(view, pageElement, callback) {
  4400. var link = $compile(pageElement);
  4401. var pageScope = view._scope.$new();
  4402. /**
  4403. * Overwrite page scope.
  4404. */
  4405. angular.element(pageElement).data('_scope', pageScope);
  4406. pageScope.$evalAsync(function () {
  4407. callback(pageElement); // Attach and prepare
  4408. link(pageScope); // Run the controller
  4409. });
  4410. },
  4411. /**
  4412. * @param {Object} view
  4413. * @return {Object} pageLoader
  4414. */
  4415. createPageLoader: function createPageLoader(view) {
  4416. var _this = this;
  4417. return new $onsGlobal.PageLoader(function (_ref, done) {
  4418. var page = _ref.page,
  4419. parent = _ref.parent;
  4420. $onsGlobal._internal.getPageHTMLAsync(page).then(function (html) {
  4421. _this.compileAndLink(view, $onsGlobal._util.createElement(html), function (element) {
  4422. return done(parent.appendChild(element));
  4423. });
  4424. });
  4425. }, function (element) {
  4426. element._destroy();
  4427. if (angular.element(element).data('_scope')) {
  4428. angular.element(element).data('_scope').$destroy();
  4429. }
  4430. });
  4431. },
  4432. /**
  4433. * @param {Object} params
  4434. * @param {Scope} [params.scope]
  4435. * @param {jqLite} [params.element]
  4436. * @param {Array} [params.elements]
  4437. * @param {Attributes} [params.attrs]
  4438. */
  4439. clearComponent: function clearComponent(params) {
  4440. if (params.scope) {
  4441. ComponentCleaner.destroyScope(params.scope);
  4442. }
  4443. if (params.attrs) {
  4444. ComponentCleaner.destroyAttributes(params.attrs);
  4445. }
  4446. if (params.element) {
  4447. ComponentCleaner.destroyElement(params.element);
  4448. }
  4449. if (params.elements) {
  4450. params.elements.forEach(function (element) {
  4451. ComponentCleaner.destroyElement(element);
  4452. });
  4453. }
  4454. },
  4455. /**
  4456. * @param {jqLite} element
  4457. * @param {String} name
  4458. */
  4459. findElementeObject: function findElementeObject(element, name) {
  4460. return element.inheritedData(name);
  4461. },
  4462. /**
  4463. * @param {String} page
  4464. * @return {Promise}
  4465. */
  4466. getPageHTMLAsync: function getPageHTMLAsync(page) {
  4467. var cache = $templateCache.get(page);
  4468. if (cache) {
  4469. var deferred = $q.defer();
  4470. var html = typeof cache === 'string' ? cache : cache[1];
  4471. deferred.resolve(this.normalizePageHTML(html));
  4472. return deferred.promise;
  4473. } else {
  4474. return $http({
  4475. url: page,
  4476. method: 'GET'
  4477. }).then(function (response) {
  4478. var html = response.data;
  4479. return this.normalizePageHTML(html);
  4480. }.bind(this));
  4481. }
  4482. },
  4483. /**
  4484. * @param {String} html
  4485. * @return {String}
  4486. */
  4487. normalizePageHTML: function normalizePageHTML(html) {
  4488. html = ('' + html).trim();
  4489. if (!html.match(/^<ons-page/)) {
  4490. html = '<ons-page _muted>' + html + '</ons-page>';
  4491. }
  4492. return html;
  4493. },
  4494. /**
  4495. * Create modifier templater function. The modifier templater generate css classes bound modifier name.
  4496. *
  4497. * @param {Object} attrs
  4498. * @param {Array} [modifiers] an array of appendix modifier
  4499. * @return {Function}
  4500. */
  4501. generateModifierTemplater: function generateModifierTemplater(attrs, modifiers) {
  4502. var attrModifiers = attrs && typeof attrs.modifier === 'string' ? attrs.modifier.trim().split(/ +/) : [];
  4503. modifiers = angular.isArray(modifiers) ? attrModifiers.concat(modifiers) : attrModifiers;
  4504. /**
  4505. * @return {String} template eg. 'ons-button--*', 'ons-button--*__item'
  4506. * @return {String}
  4507. */
  4508. return function (template) {
  4509. return modifiers.map(function (modifier) {
  4510. return template.replace('*', modifier);
  4511. }).join(' ');
  4512. };
  4513. },
  4514. /**
  4515. * Add modifier methods to view object for custom elements.
  4516. *
  4517. * @param {Object} view object
  4518. * @param {jqLite} element
  4519. */
  4520. addModifierMethodsForCustomElements: function addModifierMethodsForCustomElements(view, element) {
  4521. var methods = {
  4522. hasModifier: function hasModifier(needle) {
  4523. var tokens = ModifierUtil.split(element.attr('modifier'));
  4524. needle = typeof needle === 'string' ? needle.trim() : '';
  4525. return ModifierUtil.split(needle).some(function (needle) {
  4526. return tokens.indexOf(needle) != -1;
  4527. });
  4528. },
  4529. removeModifier: function removeModifier(needle) {
  4530. needle = typeof needle === 'string' ? needle.trim() : '';
  4531. var modifier = ModifierUtil.split(element.attr('modifier')).filter(function (token) {
  4532. return token !== needle;
  4533. }).join(' ');
  4534. element.attr('modifier', modifier);
  4535. },
  4536. addModifier: function addModifier(modifier) {
  4537. element.attr('modifier', element.attr('modifier') + ' ' + modifier);
  4538. },
  4539. setModifier: function setModifier(modifier) {
  4540. element.attr('modifier', modifier);
  4541. },
  4542. toggleModifier: function toggleModifier(modifier) {
  4543. if (this.hasModifier(modifier)) {
  4544. this.removeModifier(modifier);
  4545. } else {
  4546. this.addModifier(modifier);
  4547. }
  4548. }
  4549. };
  4550. for (var method in methods) {
  4551. if (methods.hasOwnProperty(method)) {
  4552. view[method] = methods[method];
  4553. }
  4554. }
  4555. },
  4556. /**
  4557. * Add modifier methods to view object.
  4558. *
  4559. * @param {Object} view object
  4560. * @param {String} template
  4561. * @param {jqLite} element
  4562. */
  4563. addModifierMethods: function addModifierMethods(view, template, element) {
  4564. var _tr = function _tr(modifier) {
  4565. return template.replace('*', modifier);
  4566. };
  4567. var fns = {
  4568. hasModifier: function hasModifier(modifier) {
  4569. return element.hasClass(_tr(modifier));
  4570. },
  4571. removeModifier: function removeModifier(modifier) {
  4572. element.removeClass(_tr(modifier));
  4573. },
  4574. addModifier: function addModifier(modifier) {
  4575. element.addClass(_tr(modifier));
  4576. },
  4577. setModifier: function setModifier(modifier) {
  4578. var classes = element.attr('class').split(/\s+/),
  4579. patt = template.replace('*', '.');
  4580. for (var i = 0; i < classes.length; i++) {
  4581. var cls = classes[i];
  4582. if (cls.match(patt)) {
  4583. element.removeClass(cls);
  4584. }
  4585. }
  4586. element.addClass(_tr(modifier));
  4587. },
  4588. toggleModifier: function toggleModifier(modifier) {
  4589. var cls = _tr(modifier);
  4590. if (element.hasClass(cls)) {
  4591. element.removeClass(cls);
  4592. } else {
  4593. element.addClass(cls);
  4594. }
  4595. }
  4596. };
  4597. var append = function append(oldFn, newFn) {
  4598. if (typeof oldFn !== 'undefined') {
  4599. return function () {
  4600. return oldFn.apply(null, arguments) || newFn.apply(null, arguments);
  4601. };
  4602. } else {
  4603. return newFn;
  4604. }
  4605. };
  4606. view.hasModifier = append(view.hasModifier, fns.hasModifier);
  4607. view.removeModifier = append(view.removeModifier, fns.removeModifier);
  4608. view.addModifier = append(view.addModifier, fns.addModifier);
  4609. view.setModifier = append(view.setModifier, fns.setModifier);
  4610. view.toggleModifier = append(view.toggleModifier, fns.toggleModifier);
  4611. },
  4612. /**
  4613. * Remove modifier methods.
  4614. *
  4615. * @param {Object} view object
  4616. */
  4617. removeModifierMethods: function removeModifierMethods(view) {
  4618. view.hasModifier = view.removeModifier = view.addModifier = view.setModifier = view.toggleModifier = undefined;
  4619. },
  4620. /**
  4621. * Define a variable to JavaScript global scope and AngularJS scope as 'var' attribute name.
  4622. *
  4623. * @param {Object} attrs
  4624. * @param object
  4625. */
  4626. declareVarAttribute: function declareVarAttribute(attrs, object) {
  4627. if (typeof attrs.var === 'string') {
  4628. var varName = attrs.var;
  4629. this._defineVar(varName, object);
  4630. }
  4631. },
  4632. _registerEventHandler: function _registerEventHandler(component, eventName) {
  4633. var capitalizedEventName = eventName.charAt(0).toUpperCase() + eventName.slice(1);
  4634. component.on(eventName, function (event) {
  4635. $onsen.fireComponentEvent(component._element[0], eventName, event && event.detail);
  4636. var handler = component._attrs['ons' + capitalizedEventName];
  4637. if (handler) {
  4638. component._scope.$eval(handler, { $event: event });
  4639. component._scope.$evalAsync();
  4640. }
  4641. });
  4642. },
  4643. /**
  4644. * Register event handlers for attributes.
  4645. *
  4646. * @param {Object} component
  4647. * @param {String} eventNames
  4648. */
  4649. registerEventHandlers: function registerEventHandlers(component, eventNames) {
  4650. eventNames = eventNames.trim().split(/\s+/);
  4651. for (var i = 0, l = eventNames.length; i < l; i++) {
  4652. var eventName = eventNames[i];
  4653. this._registerEventHandler(component, eventName);
  4654. }
  4655. },
  4656. /**
  4657. * @return {Boolean}
  4658. */
  4659. isAndroid: function isAndroid() {
  4660. return !!$window.navigator.userAgent.match(/android/i);
  4661. },
  4662. /**
  4663. * @return {Boolean}
  4664. */
  4665. isIOS: function isIOS() {
  4666. return !!$window.navigator.userAgent.match(/(ipad|iphone|ipod touch)/i);
  4667. },
  4668. /**
  4669. * @return {Boolean}
  4670. */
  4671. isWebView: function isWebView() {
  4672. return $onsGlobal.isWebView();
  4673. },
  4674. /**
  4675. * @return {Boolean}
  4676. */
  4677. isIOS7above: function () {
  4678. var ua = $window.navigator.userAgent;
  4679. var match = ua.match(/(iPad|iPhone|iPod touch);.*CPU.*OS (\d+)_(\d+)/i);
  4680. var result = match ? parseFloat(match[2] + '.' + match[3]) >= 7 : false;
  4681. return function () {
  4682. return result;
  4683. };
  4684. }(),
  4685. /**
  4686. * Fire a named event for a component. The view object, if it exists, is attached to event.component.
  4687. *
  4688. * @param {HTMLElement} [dom]
  4689. * @param {String} event name
  4690. */
  4691. fireComponentEvent: function fireComponentEvent(dom, eventName, data) {
  4692. data = data || {};
  4693. var event = document.createEvent('HTMLEvents');
  4694. for (var key in data) {
  4695. if (data.hasOwnProperty(key)) {
  4696. event[key] = data[key];
  4697. }
  4698. }
  4699. event.component = dom ? angular.element(dom).data(dom.nodeName.toLowerCase()) || null : null;
  4700. event.initEvent(dom.nodeName.toLowerCase() + ':' + eventName, true, true);
  4701. dom.dispatchEvent(event);
  4702. },
  4703. /**
  4704. * Define a variable to JavaScript global scope and AngularJS scope.
  4705. *
  4706. * Util.defineVar('foo', 'foo-value');
  4707. * // => window.foo and $scope.foo is now 'foo-value'
  4708. *
  4709. * Util.defineVar('foo.bar', 'foo-bar-value');
  4710. * // => window.foo.bar and $scope.foo.bar is now 'foo-bar-value'
  4711. *
  4712. * @param {String} name
  4713. * @param object
  4714. */
  4715. _defineVar: function _defineVar(name, object) {
  4716. var names = name.split(/\./);
  4717. function set(container, names, object) {
  4718. var name;
  4719. for (var i = 0; i < names.length - 1; i++) {
  4720. name = names[i];
  4721. if (container[name] === undefined || container[name] === null) {
  4722. container[name] = {};
  4723. }
  4724. container = container[name];
  4725. }
  4726. container[names[names.length - 1]] = object;
  4727. if (container[names[names.length - 1]] !== object) {
  4728. throw new Error('Cannot set var="' + object._attrs.var + '" because it will overwrite a read-only variable.');
  4729. }
  4730. }
  4731. if (ons.componentBase) {
  4732. set(ons.componentBase, names, object);
  4733. }
  4734. var getScope = function getScope(el) {
  4735. return angular.element(el).data('_scope');
  4736. };
  4737. var element = object._element[0];
  4738. // Current element might not have data('_scope')
  4739. if (element.hasAttribute('ons-scope')) {
  4740. set(getScope(element) || object._scope, names, object);
  4741. element = null;
  4742. return;
  4743. }
  4744. // Ancestors
  4745. while (element.parentElement) {
  4746. element = element.parentElement;
  4747. if (element.hasAttribute('ons-scope')) {
  4748. set(getScope(element), names, object);
  4749. element = null;
  4750. return;
  4751. }
  4752. }
  4753. element = null;
  4754. // If no ons-scope element was found, attach to $rootScope.
  4755. set($rootScope, names, object);
  4756. }
  4757. };
  4758. }
  4759. }]);
  4760. })();
  4761. /*
  4762. Copyright 2013-2015 ASIAL CORPORATION
  4763. Licensed under the Apache License, Version 2.0 (the "License");
  4764. you may not use this file except in compliance with the License.
  4765. You may obtain a copy of the License at
  4766. http://www.apache.org/licenses/LICENSE-2.0
  4767. Unless required by applicable law or agreed to in writing, software
  4768. distributed under the License is distributed on an "AS IS" BASIS,
  4769. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  4770. See the License for the specific language governing permissions and
  4771. limitations under the License.
  4772. */
  4773. (function () {
  4774. var module = angular.module('onsen');
  4775. var ComponentCleaner = {
  4776. /**
  4777. * @param {jqLite} element
  4778. */
  4779. decomposeNode: function decomposeNode(element) {
  4780. var children = element.remove().children();
  4781. for (var i = 0; i < children.length; i++) {
  4782. ComponentCleaner.decomposeNode(angular.element(children[i]));
  4783. }
  4784. },
  4785. /**
  4786. * @param {Attributes} attrs
  4787. */
  4788. destroyAttributes: function destroyAttributes(attrs) {
  4789. attrs.$$element = null;
  4790. attrs.$$observers = null;
  4791. },
  4792. /**
  4793. * @param {jqLite} element
  4794. */
  4795. destroyElement: function destroyElement(element) {
  4796. element.remove();
  4797. },
  4798. /**
  4799. * @param {Scope} scope
  4800. */
  4801. destroyScope: function destroyScope(scope) {
  4802. scope.$$listeners = {};
  4803. scope.$$watchers = null;
  4804. scope = null;
  4805. },
  4806. /**
  4807. * @param {Scope} scope
  4808. * @param {Function} fn
  4809. */
  4810. onDestroy: function onDestroy(scope, fn) {
  4811. var clear = scope.$on('$destroy', function () {
  4812. clear();
  4813. fn.apply(null, arguments);
  4814. });
  4815. }
  4816. };
  4817. module.factory('ComponentCleaner', function () {
  4818. return ComponentCleaner;
  4819. });
  4820. // override builtin ng-(eventname) directives
  4821. (function () {
  4822. var ngEventDirectives = {};
  4823. 'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' ').forEach(function (name) {
  4824. var directiveName = directiveNormalize('ng-' + name);
  4825. ngEventDirectives[directiveName] = ['$parse', function ($parse) {
  4826. return {
  4827. compile: function compile($element, attr) {
  4828. var fn = $parse(attr[directiveName]);
  4829. return function (scope, element, attr) {
  4830. var listener = function listener(event) {
  4831. scope.$apply(function () {
  4832. fn(scope, { $event: event });
  4833. });
  4834. };
  4835. element.on(name, listener);
  4836. ComponentCleaner.onDestroy(scope, function () {
  4837. element.off(name, listener);
  4838. element = null;
  4839. ComponentCleaner.destroyScope(scope);
  4840. scope = null;
  4841. ComponentCleaner.destroyAttributes(attr);
  4842. attr = null;
  4843. });
  4844. };
  4845. }
  4846. };
  4847. }];
  4848. function directiveNormalize(name) {
  4849. return name.replace(/-([a-z])/g, function (matches) {
  4850. return matches[1].toUpperCase();
  4851. });
  4852. }
  4853. });
  4854. module.config(['$provide', function ($provide) {
  4855. var shift = function shift($delegate) {
  4856. $delegate.shift();
  4857. return $delegate;
  4858. };
  4859. Object.keys(ngEventDirectives).forEach(function (directiveName) {
  4860. $provide.decorator(directiveName + 'Directive', ['$delegate', shift]);
  4861. });
  4862. }]);
  4863. Object.keys(ngEventDirectives).forEach(function (directiveName) {
  4864. module.directive(directiveName, ngEventDirectives[directiveName]);
  4865. });
  4866. })();
  4867. })();
  4868. // confirm to use jqLite
  4869. if (window.jQuery && angular.element === window.jQuery) {
  4870. console.warn('Onsen UI require jqLite. Load jQuery after loading AngularJS to fix this error. jQuery may break Onsen UI behavior.'); // eslint-disable-line no-console
  4871. }
  4872. /*
  4873. Copyright 2013-2015 ASIAL CORPORATION
  4874. Licensed under the Apache License, Version 2.0 (the "License");
  4875. you may not use this file except in compliance with the License.
  4876. You may obtain a copy of the License at
  4877. http://www.apache.org/licenses/LICENSE-2.0
  4878. Unless required by applicable law or agreed to in writing, software
  4879. distributed under the License is distributed on an "AS IS" BASIS,
  4880. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  4881. See the License for the specific language governing permissions and
  4882. limitations under the License.
  4883. */
  4884. Object.keys(ons.notification).filter(function (name) {
  4885. return !/^_/.test(name);
  4886. }).forEach(function (name) {
  4887. var originalNotification = ons.notification[name];
  4888. ons.notification[name] = function (message) {
  4889. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  4890. typeof message === 'string' ? options.message = message : options = message;
  4891. var compile = options.compile;
  4892. var $element = void 0;
  4893. options.compile = function (element) {
  4894. $element = angular.element(compile ? compile(element) : element);
  4895. return ons.$compile($element)($element.injector().get('$rootScope'));
  4896. };
  4897. options.destroy = function () {
  4898. $element.data('_scope').$destroy();
  4899. $element = null;
  4900. };
  4901. return originalNotification(options);
  4902. };
  4903. });
  4904. /*
  4905. Copyright 2013-2015 ASIAL CORPORATION
  4906. Licensed under the Apache License, Version 2.0 (the "License");
  4907. you may not use this file except in compliance with the License.
  4908. You may obtain a copy of the License at
  4909. http://www.apache.org/licenses/LICENSE-2.0
  4910. Unless required by applicable law or agreed to in writing, software
  4911. distributed under the License is distributed on an "AS IS" BASIS,
  4912. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  4913. See the License for the specific language governing permissions and
  4914. limitations under the License.
  4915. */
  4916. (function () {
  4917. angular.module('onsen').run(['$templateCache', function ($templateCache) {
  4918. var templates = window.document.querySelectorAll('script[type="text/ons-template"]');
  4919. for (var i = 0; i < templates.length; i++) {
  4920. var template = angular.element(templates[i]);
  4921. var id = template.attr('id');
  4922. if (typeof id === 'string') {
  4923. $templateCache.put(id, template.text());
  4924. }
  4925. }
  4926. }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jgb7jgZnjgIJBbmd1bGFyLmpz44GubmctYXBw5bGe5oCn44KS5Yip55So44GZ44KL44GT44Go54Sh44GX44GrT25zZW4gVUnjgpLoqq3jgb/ovrzjgpPjgafliJ3mnJ/ljJbjgZfjgabjgY/jgozjgb7jgZnjgIJbL2phXVxuICAgICAqICAgW2VuXUluaXRpYWxpemUgT25zZW4gVUkuIENhbiBiZSB1c2VkIHRvIGxvYWQgT25zZW4gVUkgd2l0aG91dCB1c2luZyB0aGUgPGNvZGU+bmctYXBwPC9jb2RlPiBhdHRyaWJ1dGUgZnJvbSBBbmd1bGFySlMuWy9lbl1cbiAgICAgKiBAcGFyYW0ge1N0cmluZ30gW21vZHVsZU5hbWVdXG4gICAgICogICBbZW5dQW5ndWxhckpTIG1vZHVsZSBuYW1lLlsvZW5dXG4gICAgICogICBbamFdQW5ndWxhci5qc+OBp+OBruODouOCuOODpeODvOODq+WQjVsvamFdXG4gICAgICogQHBhcmFtIHtBcnJheX0gW2RlcGVuZGVuY2llc11cbiAgICAgKiAgIFtlbl1MaXN0IG9mIEFuZ3VsYXJKUyBtb2R1bGUgZGVwZW5kZW5jaWVzLlsvZW5dXG4gICAgICogICBbamFd5L6d5a2Y44GZ44KLQW5ndWxhci5qc+OBruODouOCuOODpeODvOODq+WQjeOBrumFjeWIl1svamFdXG4gICAgICogQHJldHVybiB7T2JqZWN0fVxuICAgICAqICAgW2VuXUFuIEFuZ3VsYXJKUyBtb2R1bGUgb2JqZWN0LlsvZW5dXG4gICAgICogICBbamFdQW5ndWxhckpT44GuTW9kdWxl44Kq44OW44K444Kn44Kv44OI44KS6KGo44GX44G+44GZ44CCWy9qYV1cbiAgICAgKi9cbiAgICBvbnMuYm9vdHN0cmFwID0gZnVuY3Rpb24obmFtZSwgZGVwcykge1xuICAgICAgaWYgKGFuZ3VsYXIuaXNBcnJheShuYW1lKSkge1xuICAgICAgICBkZXBzID0gbmFtZTtcbiAgICAgICAgbmFtZSA9IHVuZGVmaW5lZDtcbiAgIC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uXU5hbWUgb2YgY29tcG9uZW50LCBpLmUuICdvbnMtcGFnZScuWy9lbl1cbiAgICAgKiAgIFtqYV3jgrPjg7Pjg53jg7zjg43jg7Pjg4jlkI3jgpLmjIflrprjgZfjgb7jgZnjgILkvovjgYjjgbBvbnMtcGFnZeOBquOBqeOCkuaMh+WumuOBl+OBvuOBmeOAglsvamFdXG4gICAgICogQHBhcmFtIHtPYmplY3QvanFMaXRlL0hUTUxFbGVtZW50fSBbZG9tXVxuICAgICAqICAgW2VuXSRldmVudCwganFMaXRlIG9yIEhUTUxFbGVtZW50IG9iamVjdC5bL2VuXVxuICAgICAqICAgW2phXSRldmVudOOCquODluOCuOOCp+OCr+ODiOOAgWpxTGl0ZeOCquODluOCuOOCp+OCr+ODiOOAgUhUTUxFbGVtZW5044Kq44OW44K444Kn44Kv44OI44Gu44GE44Ga44KM44GL44KS5oyH5a6a44Gn44GN44G+44GZ44CCWy9qYV1cbiAgICAgKiBAcmV0dXJuIHtPYmplY3R9XG4gICAgICogICBbZW5dQ29tcG9uZW50IG9iamVjdC4gV2lsbCByZXR1cm4gbnVsbCBpZiBubyBjb21wb25lbnQgd2FzIGZvdW5kLlsvZW5dXG4gICAgICogICBbamFd44Kz44Oz44Od44O844ON44Oz44OI44Gu44Kq44OW44K444Kn44Kv44OI44KS6L+U44GX44G+44GZ44CC44KC44GX44Kz44Oz44Od44O844ON44Oz44OI44GM6KaL44Gk44GL44KJ44Gq44GL44Gj44Gf5aC05ZCI44Gr44GvbnVsbOOCkui/lOOBl+OBvuOBmeOAglsvamFdXG4gICAgICogQGRlc2NyaXB0aW9uXG4gICAgICogICBbZW5dRmluZCBwYXJlbnQgY29tcG9uZW50IG9iamVjdCBvZiA8Y29kZT5kb208L2NvZGU+IGVsZW1lbnQuWy9lbl1cbiAgICAgKiAgIFtqYV3mjIflrprjgZXjgozjgZ9kb23lvJXmlbDjga7opqropoHntKDjgpLjgZ/jganjgaPjgabjgrPjg7Pjg53jg7zjg43jg7Pjg4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fjgb7jgZnjgIJbL2phXVxuICAgICAqIEBkZXNjcmlwdGlvblxuICAgICAqICAgW2VuXUNvbXBpbGUgT25zZW4gVUkgY29tcG9uZW50cy5bL2VuXVxuICAgICAqICAgW2phXemAmuW4uOOBrkhUTUzjga7opoHntKDjgpJPbnNlbiBVSeOBruOCs+ODs+ODneODvOODjeODs+ODiOOBq+OCs+ODs+ODkeOCpOODq+OBl+OBvuOBmeOAglsvamFdXG4gICAgICovXG4gICAgb25zLmNvbXBpbGUgPSBmdW5jdGlvbihkb20pIHtcbiAgICAgIGlmICghb25zLiRjb21waWxlKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcignb25zLiRjb21waWxlKCkgaXMgbm90IHJlYWR5LiBXYWl0IGZvciBpbml0aWFsaXphdGlvbiB3aXRoIG9ucy5yZWFkeSgpLicpO1xuICAgICAgfVxuXG4gICAgICBpZiAoIShkb20gaW5zdGFuY2VvZiBIVE1MRWxlbWVudCkpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdGaXJzdCBhcmd1bWVudCBtdXN0IGJlIGFuIGluc3RhbmNlIG9mIEhUTUxFbGVtZW50LicpO1xuICAgICAgfVxuXG4gICAgICB2YXIgc2NvcGUgPSBhbmd1bGFyLmVsZW1lbnQoZG9tKS5zY29wZSgpO1xuICAgICAgaWYgKCFzY29wZSkge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0FuZ3VsYXJKUyBTY29wZSBpcyBudWxsLiBBcmd1bWVudCBET00gZWxlbWVudCBtdXN0IGJlIGF0dGFjaGVkIGluIERPTSBkb2N1bWVudC4nKTtcbiAgICAgIH1cblxuICAgICAgb25zLiRjb21waWxlKGRvbSkoc2NvcGUpO1xuICAgIH07XG5cbiAgICBvbnMuX2dldE9uc2VuU2VydmljZSA9IGZ1bmN0aW9uKCkge1xuICAgICAgaWYgKCF0aGlzLl9vbnNlblNlcnZpY2UpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCckb25zZ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OX44Os44O844OI44GuaWTlsZ7mgKfjga7lgKTjgpLmjIflrprjgafjgY3jgb7jgZnjgIJbL2phXVxuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBbb3B0aW9uc11cbiAgICAgKiAgIFtlbl1QYXJhbWV0ZXIgb2JqZWN0LlsvZW5dXG4gICAgICogICBbamFd44Kq44OX44K344On44Oz44KS5oyH5a6a44GZ44KL44Kq44OW44K444Kn44Kv44OI44CCWy9qYV1cbiAgICAgKiBAcGFyYW0ge09iamVjdH0gW29wdGlvbnMucGFyZW50U2NvcGVdXG4gICAgICogICBbZW5dUGFyZW50IHNjb3BlIG9mIHRoZSBkaWFsb2cuIFVzZWQgdG8gYmluZCBtb2RlbHMgYW5kIGFjY2VzcyBzY29wZSBtZXRob2RzIGZyb20gdGhlIGRpYWxvZy5bL2VuXVxuICAgICAqICAgW2phXeODgOOCpOOCouODreOCsOWGheOBp+WIqeeUqOOBmeOCi+imquOCueOCs+ODvOODl+OCkuaMh+WumuOBl+OBvuOBmeOAguODgOOCpOOCouODreOCsOOBi+OCieODouODh+ODq+OChOOCueOCs+ODvOODl+OBruODoeOCveODg+ODieOBq+OCouOCr+OCu+OCueOBmeOCi+OBruOBq+S9v+OBhOOBvuOBmeOAguOBk+OBruODkeODqeODoeODvOOCv+OBr0FuZ3VsYXJKU+ODkOOCpOODs+ODh+OCo+ODs+OCsOOBp+OBruOBv+WIqeeUqOOBp+OBjeOBvuOBmeOAglsvamFdXG4gICAgICogQHJldHVybiB7UHJvbWlzZX1cbiAgICAgKiAgIFtlbl1Qcm9taXNlIG9iamVjdCB0aGF0IHJlc29sdmVzIHRvIHRoZSBhbGVydCBkaWFsb2cgY29tcG9uZW50IG9iamVjdC5bL2VuXVxuICAgICAqICAgW2phXeODgOOCpOOCouODreOCsOOBruOCs+ODs+ODneODvOODjeODs+ODiOOCquODluOCuOOCp+OCr+ODiOOCkuino+axuuOBmeOCi1Byb21pc2Xjgqrjg5bjgrjjgqfjgq/jg4jjgpLov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ZWQuJyk7XG4gICAgICAgICAgfVxuICAgICAgICAgICRvbnNlbi5hZGRNb2RpZmllck1ldGhvZHModGhpcywgb3B0aW9ucy5tb2RpZmllclRlbXBsYXRlLCBlbGVtZW50KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAkb25zZW4uYWRkTW9kaWZpZXJNZXRob2RzRm9yQ3VzdG9tRWxlbWVudHModGhpcywgZWxlbWVudCk7XG4gICAgICAgIH1cblxuICAgICAgICAkb25zZW4uY2xlYW5lci5vbkRlc3Ryb3koc2NvcGUsIGZ1bmN0aW9uKCkge1xuICAgICAgICAgIHNlbGYuX2V2ZW50cyA9IHVuZGVmaW5lZDtcbiAgICAgICAgICAkb25zZW4ucmVtb3ZlTW9kaWZpZXJNZXRob2RzKHNlbGYpO1xuXG4gICAgICAgICAgaWYgKG9wdGlvbnMub25EZXN0cm95KSB7XG4gICAgICAgICAgICBvcHRpb25zLm9uRGVzdHJveShzZWxmKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAkb25zZW4uY2xlYXJDb21wb25lbnQoe1xuICAgICAgICAgICAgc2NvcGU6IHNjb3BlLFxuICAgICAgICAgICAgYXR0cnM6IGF0dHJzLFxuICAgICAgICAgICAgZWxlbWVudDogZWxlbWVudFxuICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgc2VsZiA9IGVsZW1lbnQgPSBzZWxmLl9lbGVtZW50ID0gc2VsZi5fc2NvcGUgPSBzY29wZSA9IHNlbGYuX2F0dHJzID0gYXR0cnMgPSBvcHRpb25zID0gbnVsbDtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICAvKipcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gc2NvcGVcbiAgICAgKiBAcGFyYW0ge2pxTGl0ZX0gZWxlbWVudFxuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBhdHRyc1xuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBvcHRpb25zXG4gICAgICogQHBhcmFt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3VyZUl0ZW1TY29wZShpbmRleCwgc2NvcGUpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5fbGlua2VyKHNjb3BlLCAoY2xvbmVkKSA9PiB7XG4gICAgICAgICAgbGV0IGVsZW1lbnQgPSBjbG9uZWRbMF07XG4gICAgICAgICAgaWYgKCF0aGlzLl91c2luZ0JpbmRpbmcoKSkge1xuICAgICAgICAgICAgZWxlbWVudCA9IHRoaXMuX3VzZXJEZWxlZ2F0ZS5jcmVhdGVJdGVtQ29udGVudChpbmRleCwgZWxlbWVudCk7XG4gICAgICAgICAgICAkY29tcGlsZShlbGVtZW50KShzY29wZSk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgZG9uZSh7ZWxlbWVudCwgc2NvcGV9KTtcbiAgICAgICAgfSk7XG4gICAgICB9XG5cbiAgICAgIC8qKlxuICAgICAgICogQHBhcmFtIHtOdW1iZXJ9IGluZGV4XG4gICAgICAgKiBAcGFyYW0ge09iamVjdH0gc2NvcGVcbiAgICAgICAqL1xuICAgICAgX2FkZFNwZWNpYWxQcm9wZXJ0aWVzKGksIHNjb3BlKSB7XG4gICAgICAgIGNvbnN0IGxhc3QgPSB0aGlzLmNvdW50SXRlbXMoKSAtIDE7XG4gICAgICAgIGFuZ3VsYXIuZXh0ZW5kKHNjb3BlLCB7XG4gICAgICAgICAgJGluZGV4OiBpLFxuICAgICAgICAgICRmaXJzdDogaSA9PT0gMCxcbiAgICAgICAgICAkbGFzdDogaSA9PT0gbGFzdCxcbiAgICAgICAgICAkbWlkZGxlOiBpICE9PSAwICYmIGkgIT09IGxhc3QsXG4gICAgICAgICAgJGV2ZW46IGkgJSAyID09PSAwLFxuICAgICAgICAgICRvZGQ6IGkgJSAyID09PSAxXG4gICAgICAgIH0pO1xuICAgICAgfVxuXG4gICAgICB1cGRhdGVJdGVtKGluZGV4LCBpdGVtKSB7XG4gICAgICAgIGlmICh0aGlzLl91c2luZ0JpbmRpbmcoKSkge1xuICAgICAgICAgIGl0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Y29wZSwgZWxlbWVudCwgYXR0cnMsIGNvbnRyb2xsZXIsIHRyYW5zY2x1ZGUpIHtcbiAgICAgICAgICAgIHZhciBiYWNrQnV0dG9uID0gR2VuZXJpY1ZpZXcucmVnaXN0ZXIoc2NvcGUsIGVsZW1lbnQsIGF0dHJzLCB7XG4gICAgICAgICAgICAgIHZpZXdLZXk6ICdvbnMtYmFjay1idXR0b24nXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgaWYgKGF0dHJzLm5nQ2xpY2spIHtcbiAgICAgICAgICAgICAgZWxlbWVudFswXS5vbkNsaWNrID0gYW5ndWxhci5ub29wO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBzY29wZS4kb24oJyRkZXN0cm95JywgZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICAgIGJhY2tCdXR0b24uX2V2ZW50cyA9IHVuZGVmaW5lZDtcbiAgICAgICAgICAgICAgJG9uc2VuLnJlbW92ZU1vZGlmaWVyTWV0aG9kcyhiYWNrQnV0dG9uKTtcbiAgICAgICAgICAgICAgZWxlbWVudCA9IG51bGw7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgQ29tcG9uZW50Q2xlYW5lci5vbkRlc3Ryb3koc2NvcGUsIGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICBDb21wb25lbnRDbGVhbmVyLmRlc3Ryb3lTY29wZShzY29wZSk7XG4gICAgICAgICAgICAgIENvbXBvbmVudENsZWFuZXIuZGVzdHJveUF0dHJpYnV0ZXMoYXR0cnMpO1xuICAgICAgICAgICAgICBlbGVtZW50ID0gc2NvcGUgPSBhdHRycyA9IG51bGw7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9LFxuICAgICAgICAgIHBvc3Q6IGZ1bmN0aW9uKHNjb3BlLCBlbGVtZW50KSB7XG4gICAgICAgICAgICAkb25zZW4uZmlyZUNvbXBvbmVudEV2ZW50KGVsZW1lbnRbMF0sICdpbml0Jyk7XG4gICAgICAgIC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bnQuYXBwZW5kKGNsb25lZCk7XG4gICAgICAgICAgfSk7XG5cbiAgICAgICAgICB2YXIgaGFuZGxlciA9IGZ1bmN0aW9uKGV2ZW50KSB7XG4gICAgICAgICAgICB2YXIgYXR0ciA9ICduZycgKyB0aXRsaXplKGV2ZW50LnR5cGUpO1xuXG4gICAgICAgICAgICBpZiAoYXR0ciBpbiBzY29wZURlZikge1xuICAgICAgICAgICAgICBzY29wZVthdHRyXSh7JGV2ZW50OiBldmVudH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH07XG5cbiAgICAgICAgICB2YXIgZ2VzdHVyZURldGVjdG9yO1xuXG4gICAgICAgICAgc2V0SW1tZWRpYXRlKGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgZ2VzdHVyZURldGVjdG9yID0gZWxlbWVudFswXS5fZ2VzdHVyZURldGVjdG9yO1xuICAgICAgICAgICAgZ2VzdHVyZURldGVjdG9yLm9uKEVWRU5UUy5qb2luKCcgJyksIGhhbmRsZXIpO1xuICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgJG9uc2VuLmNsZWFuZXIub25EZXN0cm95KHNjb3BlLCBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgIGdlc3R1cmVEZXRlY3Rvci5vZmYoRVZFTlRTLmpvaW4oJyAnKSwgaGFuZGxlcik7XG4gICAgICAgICAgICAkb25zZW4uY2xlYXJDb21wb25lbnQoe1xuICAgICAgICAgICAgICBzY29wZTogc2NvcGUsXG4gICAgICAgICAgICAgIGVsZW1lbnQ6IGVsZW1lbnQsXG4gICAgICAgICAgICAgIGF0dHJzOiBhdHRyc1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBnZXN0dXJlRGV0ZWN0b3IuZWxlbWVudCA9IHNjb3BlID0gZWxlbWVudCA9IGF0dHJzID0gbnVsbDtcbiAgICAgICAgICB9KTtcblxuICAgICAgICAgICRvbnNlbi5maXJlQ29tcG9uZW50RXZlbnQoZWxlbWVudFswXSwgJ2luaXQnKTtcbiAgICAgICAgfTtcbiAgICAgIH1cbiAgICB9O1xuICB9KTtcbn0pKCk7XG5cbiIsIlxuLyoqXG4gKiBAZWxlbWVudCBvbnMtaWNvblxuICovXG5cblxuKGZ1bmN0aW9uKCkge1xuICAndXNlIHN0cmljdCc7XG5cbiAgYW5ndWxhci5tb2R1bGUoJ29uc2VuJykuZGlyZWN0aXZlKCdvbnNJY29uJywgZnVuY3Rpb24oJG9uc2VuLCBHZW5lcmljVmlldykge1xuICAgIHJldHVybiB7XG4gICAgICByZXN0cmljdDogJ0UnLFxuXG4gICAgICBjb21waWxlOiBmdW5jdGlvbihlbGVtZW50LCBhdHRycykge1xuXG4gICAgICAgIGlmIChhdHRycy5pY29uLmluZGV4T2YoJ3t7JykgIT09IC0xKSB7XG4gICAgICAgICAgYXR0cnMuJG9ic2VydmUoJ2ljb24nLCAoKSA9PiB7XG4gICAgICAgICAgICBzZXRJbW1lZGlhdGUoKCkgPT4gZWxlbWVudFswXS5fdXBkYXRlKCkpO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIChzY29wZSwgZWxlbWVudCwgYXR0cnMpID0+IHtcbiAgICAgICAgICBHZW5lcmljVmlldy5yZWdpc3RlcihzY29wZSwgZWxlbWVudCwgYXR0cnMsIHtcbiAgICAgICAgICAgIHZpZXdLZXk6ICdvbnMtaWNvbidcbiAgICAgICAgICB9KTtcbiAgICAgICAgICAvLyAkb25zZW4uZmlyZUNvbXBvbmVudEV2ZW50KGVsZW1lbnRbMF0sICdpbml0Jyk7XG4gICAgICAgIH07XG5cbiAgICAgIH1cblxuICAgIH07XG4gIH0pO1xuXG59KSgpO1xuXG4iLCIvKipcbiAqIEBlbGVtZW50IG9ucy1pZi1vcmllbnRhdGlvblxuICogQGNhdGVnb3J5IGNvbmRpdGlvbmFsXG4gKiBAZGVzY3JpcHRpb25cbiAqICAgW2VuXUNvbmRpdGlvbmFsbHkgZGlzcGxheSBjb250ZW50IGRlcG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ogc2NvcGUsXG4gICAgICAgICAgICAgIGF0dHJzOiBhdHRyc1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBlbGVtZW50ID0gc2NvcGUgPSBhdHRycyA9IG51bGw7XG4gICAgICAgICAgfSk7XG5cbiAgICAgICAgICBmdW5jdGlvbiB1cGRhdGUoKSB7XG4gICAgICAgICAgICB2YXIgdXNlck9yaWVudGF0aW9uID0gKCcnICsgYXR0cnMub25zSWZPcmllbnRhdGlvbikudG9Mb3dlckNhc2UoKTtcbiAgICAgICAgICAgIHZhciBvcmllbnRhdGlvbiA9IGdldExhbmRzY2FwZU9yUG9ydHJhaXQoKTtcblxuICAgICAgICAgICAgaWYgKHVzZXJPcmllbnRhdGlvbiA9PT0gJ3BvcnRyYWl0JyB8fCB1c2VyT3JpZW50YXRpb24gPT09ICdsYW5kc2NhcGUnKSB7XG4gICAgICAgICAgICAgIGlmICh1c2VyT3JpZW50YXRpb24gPT09IG9yaWVudGF0aW9uKSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudC5jc3MoJ2Rpc3BsYXknLCAnJyk7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudC5jc3MoJ2Rpc3BsYXknLCAnbm9uZScpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgZnVuY3Rpb24gZ2V0TGFuZHNjYXBlT3JQb3J0cmFpdCgpIHtcbiAgICAgICAgICAgIHJldHVybiAkb25zR2xvYmFsLm9yaWVudGF0aW9uLmlzUG9ydHJhaXQoKSA/ICdwb3J0cmFpdCcgOiAnbGFuZHNjYXBlJztcbiAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgICB9XG4gICAgfTtcbiAgfSk7XG59KSgpO1xuXG4iLCIvKipcbiAqIEBlbGVtZW50IG9ucy1pZi1wbGF0Zm9ybVxuICogQGNhdGVnb3J5IGNvbmRpdGlvbmFsXG4gKiBAZGV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cm4gZnVuY3Rpb24oc2NvcGUsIGVsZW1lbnQsIGF0dHJzKSB7XG4gICAgICAgICAgYXR0cnMuJG9ic2VydmUoJ29uc0lmUGxhdGZvcm0nLCBmdW5jdGlvbih1c2VyUGxhdGZvcm0pIHtcbiAgICAgICAgICAgIGlmICh1c2VyUGxhdGZvcm0pIHtcbiAgICAgICAgICAgICAgdXBkYXRlKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG5cbiAgICAgICAgICB1cGRhdGUoKTtcblxuICAgICAgICAgICRvbnNlbi5jbGVhbmVyLm9uRGVzdHJveShzY29wZSwgZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICAkb25zZW4uY2xlYXJDb21wb25lbnQoe1xuICAgICAgICAgICAgICBlbGVtZW50OiBlbGVtZW50LFxuICAgICAgICAgICAgICBzY29wZTogc2NvcGUsXG4gICAgICAgICAgICAgIGF0dHJzOiBhdHRyc1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBlbGVtZW50ID0gc2NvcGUgPSBhdHRycyA9IG51bGw7XG4gICAgICAgICAgfSk7XG5cbiAgICAgICAgICBmdW5jdGlvbiB1cGRhdGUoKSB7XG4gICAgICAgICAgICB2YXIgdXNlclBsYXRmb3JtcyA9IGF0dHJzLm9uc0lmUGxhdGZvcm0udG9Mb3dlckNhc2UoKS50cmltKCkuc3BsaXQoL1xccysvKTtcbiAgICAgICAgICAgIGlmICh1c2VyUGxhdGZvcm1zLmluZGV4T2YocGxhdGZvcm0udG9Mb3dlckNhc2UoKSkgPj0gMCkge1xuICAgICAgICAgICAgICBlbGVtZW50LmNzcygnZGlzcGxheScsICdibG9jaycpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgZWxlbWVudC5jc3MoJ2Rpc3BsYXknLCAnbm9uZScpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfTtcblxuICAgICAgICBmdW5jdGlvbiBnZXRQbGF0Zm9ybVN0cmluZygpIHtcblxuICAgICAgICAgIGlmIChuYXZpZ2F0b3IudXNlckFnZW50Lm1hdGNoKC9BbmRyb2lkL2kpKSB7XG4gICAgICAgICAgICByZXR1cm4gJ2FuZHJvaWQnO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmICgobmF2aWdhdG9yLnVzZXJBZ2VudC5tYXRjaCgvQmxhY2tCZXJyeS9pKSkgfHwgKG5hdmlnYXRvci51c2VyQWdlbnQubWF0Y2goL1JJTSBUYWJsZXQgT1MvaSkpIHx8IChuYXZpZ2F0b3IudXNlckFnZW50Lm1hdGNoKC9CQjEwL2kpKSkge1xuICAgICAgICAgICAgcmV0dXJuICdibGFja2JlcnJ5JztcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAobmF2aWdhdG9yLnVzZXJBZ2VudC5tYXRjaCgvaVBob25lfGlQYWR8aVBvZC9pKSkge1xuICAgICAgICAgICAgcmV0dXJuICdpb3MnO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChuYXZpZ2F0b3IudXNlckFnZW50Lm1hdGNoKC9XaW5kb3dzIFBob25lfElFTW9iaWxlfFdQRGVza3RvcC9pKSkge1xuICAgICAgICAgICAgcmV0dXJuICd3cCc7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLy8gT3BlcmEgOC4wKyAoVUEgZGV0ZWN0aW9uIHRvIGRldGVjdCBCbGluay92OC1wb3dlcmVkIE9wZXJhKVxuICAgICAgICAgIHZhciBpc09wZXJhID0gISF3aW5kb3cub3BlcmEgfHwgbmF2aWdhdG9yLnVzZXJBZ2VudC5pbmRleE9mKCcgT1BSLycpID49IDA7XG4gICAgICAgICAgaWYgKGlzT3BlcmEpIHtcbiAgICAgICAgICAgIHJldHVybiAnb3BlcmEnO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIHZhciBpc0ZpcmVmb3ggPSB0eXBlb2YgSW5zdGFsbFRyaWdnZXIgIT09ICd1bmRlZmluZWQnOyAgIC8vIEZpcmVmb3ggMS4wK1xuICAgICAgICAgIGlmIChpc0ZpcmVmb3gpIHtcbiAgICAgICAgICAgIHJldHVybiAnZmlyZWZveCc7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgdmFyIGlzU2FmYXJpID0gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKHdpbmRvdy5IVE1MRWxlbWVudCkuaW5kZXhPZignQ29uc3RydWN0b3InKSA+IDA7XG4gICAgICAgICAgLy8gQXQgbGVhc3QgU2FmYXJpIDMrOiBcIltvYmplY3QgSFRNTEVsZW1lbnRDb25zdHJ1Y3Rvcl1cIlxuICAgICAgICAgIGlmIChpc1NhZmFyaSkge1xuICAgICAgICAgICAgcmV0dXJuICdzYWZhcmknO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIHZhciBpc0VkZ2UgPSBuYXZpZ2F0b3IudXNlckFnZW50LmluZGV4T2YoJyBFZGdlLycpID49IDA7XG4gICAgICAgICAgaWYgKGlzRWRnZSkge1xuICAgICAgICAgICAgcmV0dXJuICdlZGdlJztcbiAgICAgICAgICB9XG5cbiAgICAgICAgICB2YXIgaXNDaHJvbWUgPSAhIXdpbmRvdy5jaHJvbWUgJiYgIWlzT3BlcmEgJiYgIWlzRWRnZTsgLy8gQ2hyb21lIDErXG4gICAgICAgICAgaWYgKGlzQ2hyb21lKSB7XG4gICAgICAgICAgICByZXR1cm4gJ2Nocm9tZSc7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgdmFyIGlzSUUgPSAvKkBjY19vbiFAKi9mYWxzZSB8fCAhIWRvY3VtZW50LmRvY3VtZW50TW9kZTsgLy8gQXQgbGVhc3QgSUU2XG4gICAgICAgICAgaWYgKGlzSUUpIHtcbiAgICAgICAgICAgIHJldHVybiAnaWUnO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIHJldHVybiAndW5rbm93bic7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9O1xuICB9KTtcbn0pKCk7XG4iLCIvKipcbiAqIEBlbGVtZW50IG9ucy1pbnB1dFxuICovXG5cbihmdW5jdGlvbigpe1xuICAndXNlIHN0cmljdCc7XG5cbiAgYW5ndWxhci5tb2R1bGUoJ29uc2VuJykuZGlyZWN0aXZlKCdvbnNJbnB1dCcsIGZ1bmN0aW9uKCRwYXJzZSkge1xuICAgIHJldHVybiB7XG4gICAgICByZXN0cmljdDogJ0UnLFxuICAgICAgcmVwbGFjZTogZmFsc2UsXG4gICAgICBzY29wZTogZmFsc2UsXG5cbiAgICAgIGxpbms6IGZ1bmN0aW9uKHNjb3BlLCBlbGVtZW50LCBhdHRycykge1xuICAgICAgICBsZXQgZWwgPSBlbGVtZW50WzBdO1xuXG4gICAgICAgIGNvbnN0IG9uSW5wdXQgPSAoKSA9PiB7XG4gICAgICAgICAgJHBhcnNlKGF0dHJzLm5nTW9kZWwpLmFzc2lnbihzY29wZSwgZWwudHlwZSA9PT0gJ251bWJlcicgPyBOdW1iZXIoZWwudmFsdWUpIDogZWwudmFsdWUpO1xuICAgICAgICAgIGF0dHJzLm5nQ2hhbmdlICYmIHNjb3BlLiRldmFsKGF0dHJzLm5nQ2hhbmdlKTtcbiAgICAgICAgICBzY29wZS4kcGFyZW50LiRldmFsQXN5bmMoKTtcbiAgICAgICAgfTtcblxuICAgICAgICBpZiAoYXR0cnMubmdNb2RlbCkge1xuICAgICAgICAgIHNjb3BlLiR3YXRjaChhdHRycy5uZ01vZGVsLCAodmFsdWUpID0+IHtcbiAgICAgICAgICAgIGlmICh0eXBlb2YgdmFsdWUgIT09ICd1bmRlZmluZWQnICYmIHZhbHVlICE9PSBlbC52YWx1ZSkge1xuICAgICAgICAgICAgICBlbC52YWx1ZSA9IHZhbHVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgZWxlbWVudC5vbignaW5wdXQnLCBvbklucHV0KVxuICAgICAgICB9XG5cbiAgICAgICAgc2NvcGUuJG9uKCckZGVzdHJveScsICgpID0+IHtcbiAgICAgICAgICBlbGVt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iA9IGZ1bmN0aW9uKHNob3csICRvbnNlbikge1xuICAgIHJldHVybiBmdW5jdGlvbihlbGVtZW50KSB7XG4gICAgICByZXR1cm4gZnVuY3Rpb24oc2NvcGUsIGVsZW1lbnQsIGF0dHJzKSB7XG4gICAgICAgIHZhciBkaXNwU2hvdyA9IHNob3cgPyAnYmxvY2snIDogJ25vbmUnLFxuICAgICAgICAgICAgZGlzcEhpZGUgPSBzaG93ID8gJ25vbmUnIDogJ2Jsb2NrJztcblxuICAgICAgICB2YXIgb25TaG93ID0gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgZWxlbWVudC5jc3MoJ2Rpc3BsYXknLCBkaXNwU2hvdyk7XG4gICAgICAgIH07XG5cbiAgICAgICAgdmFyIG9uSGlkZSA9IGZ1bmN0aW9uKCkge1xuICAgICAgICAgIGVsZW1lbnQuY3NzKCdkaXNwbGF5JywgZGlzcEhpZGUpO1xuICAgICAgICB9O1xuXG4gICAgICAgIHZhciBvbkluaXQgPSBmdW5jdGlvbihlKSB7XG4gICAgICAgICAgaWYgKGUudmlzaWJsZSkge1xuICAgICAgICAgICAgb25TaG93KCk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIG9uSGlkZSgpO1xuICAgICAgICAgIH1cbiAgICAgICAgfTtcblxuICAgICAgICBvbnMuc29mdHdhcmVLZXlib2FyZC5vbignc2hvdycsIG9uU2hvdyk7XG4gICAgICAgIG9ucy5zb2Z0d2FyZUtleWJvYXJkLm9uKCdoaWRlJywgb25IaWRlKTtcbiAgICAgICAgb25zLnNvZnR3YXJlS2V5Ym9hcmQub24oJ2luaXQnLCBvbkluaXQpO1xuXG4gICAgICAgIGlmIChvbnMuc29mdHdhcmVLZXlib2FyZC5fdmlzaWJsZSkge1xuICAgICAgICAgIG9uU2hvdygpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIG9uSGlkZSgpO1xuICAgICAgICB9XG5cbiAgICAgICAgJG9uc2VuLmNsZWFuZXIub25EZ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W50LCBhdHRycykge1xuICAgICAgICAgICAgdmFyIHBhZ2UgPSBuZXcgUGFnZVZpZXcoc2NvcGUsIGVsZW1lbnQsIGF0dHJzKTtcblxuICAgICAgICAgICAgJG9uc2VuLmRlY2xhcmVWYXJBdHRyaWJ1dGUoYXR0cnMsIHBhZ2UpO1xuICAgICAgICAgICAgJG9uc2VuLnJlZ2lzdGVyRXZlbnRIYW5kbGVycyhwYWdlLCAnaW5pdCBzaG93IGhpZGUgZGVzdHJveScpO1xuXG4gICAgICAgICAgICBlbGVtZW50LmRhdGEoJ29ucy1wYWdlJywgcGFnZSk7XG4gICAgICAgICAgICAkb25zZW4uYWRkTW9kaWZpZXJNZXRob2RzRm9yQ3VzdG9tRWxlbWVudHMocGFnZSwgZWxlbWVudCk7XG5cbiAgICAgICAgICAgIGVsZW1lbnQuZGF0YSgnX3Njb3BlJywgc2NvcGUpO1xuXG4gICAgICAgICAgICAkb25zZW4uY2xlYW5lci5vbkRlc3Ryb3koc2NvcGUsIGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICBwYWdlLl9ldmVudHMgPSB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICRvbnNlbi5yZW1vdmVNb2RpZmllck1ldGhvZHMocGFnZSk7XG4gICAgICAgICAgICAgIGVsZW1lbnQuZGF0YSgnb25zLXBhZ2UnLCB1bmRlZmluZWQpO1xuICAgICAgICAgICAgICBlbGVtZW50LmRhdGEoJ19zY29wZScsIHVuZGVmaW5lZCk7XG5cbiAgICAgICAgICAgICAgJG9uc2VuLmNsZWFyQ29tcG9uZW50KHtcbiAgICAgICAgICAgICAgICBlbGVtZW50OiBlbGVtZW50LFxuICAgICAgICAgICAgICAgIHNjb3BlOiBzY29wZSxcbiAgICAgICAgICAgICAgICBhdHRyczogYXR0cnNcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIHNjb3BlID0gZWxlbWVudCA9IGF0dHJzID0gbnVsbDtcbiAgICAgICAgICAgIH0pO1xuICAgIC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GF0dHJzKSB7XG4gICAgICAgICAgdmFyIHNwZWVkRGlhbCA9IG5ldyBTcGVlZERpYWxWaWV3KHNjb3BlLCBlbGVtZW50LCBhdHRycyk7XG5cbiAgICAgICAgICBlbGVtZW50LmRhdGEoJ29ucy1zcGVlZC1kaWFsJywgc3BlZWREaWFsKTtcblxuICAgICAgICAgICRvbnNlbi5yZWdpc3RlckV2ZW50SGFuZGxlcnMoc3BlZWREaWFsLCAnb3BlbiBjbG9zZScpO1xuICAgICAgICAgICRvbnNlbi5kZWNsYXJlVmFyQXR0cmlidXRlKGF0dHJzLCBzcGVlZERpYWwpO1xuXG4gICAgICAgICAgc2NvcGUuJG9uKCckZGVzdHJveScsIGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgc3BlZWREaWFsLl9ldmVudHMgPSB1bmRlZmluZWQ7XG4gICAgICAgICAgICBlbGVtZW50LmRhdGEoJ29ucy1zcGVlZC1kaWFsJywgdW5kZWZpbmVkKTtcbiAgICAgICAgICAgIGVsZW1lbnQgPSBudWxsO1xuICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgJG9uc2VuLmZpcmVDb21wb25lbnRFdmVudChlbGVtZW50WzBdLCAnaW5pdCcpO1xuICAgICAgICB9O1xuICAgICAgfSxcblxuICAgIH07XG4gIH0pO1xuXG59KSgpO1xuXG4iLCIvKipcbiAqIEBlbGVtZW50IG9ucy1zcGxpdHRlci1jb250ZW50XG4gKi9cblxuLyoqXG4gKiBAYXR0cmlidXRlIHZhclxuICogQGluaXRvbmx5XG4gKiBAdHlwZSB7U3RyaW5nfVxuICogQGRlc2NyaXB0aW9uXG4gKiAgIFtlbl1WYXJpYWJsZSBuYW1lIHRvIHJlZmVyIHRoaXMgc3BsaXR0ZXIgY29udGVudC5bL2VuXVxuICogICBbamFd44GT44Gu44K544OX44Oq44OD44K/44O844Kz44Oz44Od44O844ON44Oz44OI44KS5Y+C54Wn44GZ44KL44Gf44KB44Gu5ZCN5YmN44KS5oyH5a6a44GX44G+44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6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5fZWxlbWVudFswXVtwcm9wZXJ0eV07XG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHNldDogZnVuY3Rpb24odmFsdWUpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5fZWxlbWVudFswXVtwcm9wZXJ0eV0gPSB2YWx1ZTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1yZXR1cm4tYXNzaWduXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9LFxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAcGFyYW0ge09iamVjdH0gdmlld1xuICAgICAgICAgKiBAcGFyYW0ge0VsZW1lbnR9IGVsZW1lbnRcbiAgICAgICAgICogQHBhcmFtIHtBcnJheX0gZXZlbnROYW1lc1xuICAgICAgICAgKiBAcGFyYW0ge0Z1bmN0aW9ufSBbbWFwXVxuICAgICAgICAgKiBAcmV0dXJuIHtGdW5jdGlvbn0gQSBmdW5jdGlvbiB0aGF0IGNsZWFyIGFsbCBldmVudCBsaXN0ZW5lcnNcbiAgICAgICAgICovXG4gICAgICAgIGRlcml2ZUV2ZW50czogZnVuY3Rpb24odmlldywgZWxlbWVudCwgZXZlbnROYW1lcywgbWFwKSB7XG4gICAgICAgICAgbWFwID0gbWFwIHx8IGZ1bmN0aW9uKGRldGFpbCkgeyByZXR1cm4gZGV0YWlsOyB9O1xuICAgICAgICAgIGV2ZW50TmFtZXMgPSBbXS5jb25jYXQoZXZlbnROYW1lcyk7XG4gICAgICAgICAgdmFyIGxpc3RlbmVycyA9IFtdO1xuXG4gICAgICAgICAgZXZlbnROYW1lcy5mb3JFYWNoKGZ1bmN0aW9uKGV2ZW50TmFtZSkge1xuICAgICAgICAgICAgdmFyIGxpc3RlbmVyID0gZnVuY3Rpb24oZXZlbnQpIHtcbiAgICAgICAgICAgICAgbWFwKGV2ZW50LmRldGFpbCB8fCB7fSk7XG4gICAgICAgICAgICAgIHZpZXcuZW1pdChldmVudE5hbWUsIGV2ZW50KTtcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBsaXN0ZW5lcnMucHVzaChsaXN0ZW5lcik7XG4gICAgICAgICAgICBlbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoZXZlbnROYW1lLCBsaXN0ZW5lciwgZmFsc2UpO1xuICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgZXZlbnROYW1lcy5mb3JFYWNoKGZ1bmN0aW9uKGV2ZW50TmFtZSwgaW5kZXgpIHtcbiAgICAgICAgICAgICAgZWxlbWVudC5yZW1vdmVFdmVudExpc3RlbmVyKGV2ZW50TmFtZSwgbGlzdGVuZXJzW2luZGV4XSwgZmFsc2UpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB2aWV3ID0gZWxlbWVudCA9IGxpc3RlbmVycyA9IG1hcCA9IG51bGw7XG4gICAgICAgICAgfTtcbiAgICAgICAgfSxcblxuICAgICAgICAvKipcbiAgICAgICAgICogQHJldHVybiB7Qm9vbGVhbn1cbiAgICAgICAgICovXG4gICAgICAgIGlzRW5hYmxlZEF1dG9TdGF0dXNCYXJGaWxsOiBmdW5jdGlvbigpIHtcbiAgICAgICAgICByZXR1cm4gISEkb25zR2xvYmFsLl9jb25maWcuYXV0b1N0YXR1c0JhckZpbGw7XG4gICAgICAgIH0sXG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqIEByZXR1cm4ge0Jvb2xlYW59XG4gICAgICAgICAqL1xuICAgICAgICBzaG91bGRGaWxsU3RhdHVzQmFyOiAkb25zR2xvYmFsLnNob3VsZEZpbGxTdGF0dXNCYXIsXG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqIEBwYXJhbSB7RnVuY3Rpb259IGFjdGlvblxuICAgICAgICAgKi9cbiAgICAgICAgY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XcgJG9uc0dsb2JhbC5QYWdlTG9hZGVyKFxuICAgICAgICAgICAgKHtwYWdlLCBwYXJlbnR9LCBkb25lKSA9PiB7XG4gICAgICAgICAgICAgICRvbnNHbG9iYWwuX2ludGVybmFsLmdldFBhZ2VIVE1MQXN5bmMocGFnZSkudGhlbihodG1sID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbXBpbGVBbmRMaW5rKFxuICAgICAgICAgICAgICAgICAgdmlldyxcbiAgICAgICAgICAgICAgICAgICRvbnNHbG9iYWwuX3V0aWwuY3JlYXRlRWxlbWVudChodG1sKSxcbiAgICAgICAgICAgICAgICAgIGVsZW1lbnQgPT4gZG9uZShwYXJlbnQuYXBwZW5kQ2hpbGQoZWxlbWVudCkpXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgZWxlbWVudCA9PiB7XG4gICAgICAgICAgICAgIGVsZW1lbnQuX2Rlc3Ryb3koKTtcbiAgICAgICAgICAgICAgaWYgKGFuZ3VsYXIuZWxlbWVudChlbGVtZW50KS5kYXRhKCdfc2NvcGUnKSkge1xuICAgICAgICAgICAgICAgIGFuZ3VsYXIuZWxlbWVudChlbGVtZW50KS5kYXRhKCdfc2NvcGUnKS4kZGVzdHJveSgpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgKTtcbiAgICAgICAgfSxcblxuICAgICAgICAvKipcbiAgICAgICAgICogQHBhcmFtIHtPYmplY3R9IHBhcmFtc1xuICAgICAgICAgKiBAcGFyYW0ge1Njb3BlfSBbcGFyYW1zLnNjb3BlXVxuICAgICAgICAgKiBAcGFyYW0ge2pxTGl0ZX0gW3BhcmFtcy5lbGVtZW50XVxuICAgICAgICAgKiBAcGFyYW0ge0FycmF5fSBbcGFyYW1zLmVsZW1lbnRzXVxuICAgICAgICAgKiBAcGFyYW0ge0F0dHJpYnV0ZXN9IFtwYXJhbXMuYXR0cnNdXG4gICAgICAgICAqL1xuICAgICAgICBjbGVhckNvbXBvbmVudDogZnVuY3Rpb24ocGFyYW1zKSB7XG4gICAgICAgICAgaWYgKHBhcmFtcy5zY29wZSkge1xuICAgICAgICAgICAgQ29tcG9uZW50Q2xlYW5lci5kZXN0cm95U2NvcGUocGFyYW1zLnNjb3BlKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAocGFyYW1zLmF0dHJzKSB7XG4gICAgICAgICAgICBDb21wb25lbnRDbGVhbmVyLmRlc3Ryb3lBdHRyaWJ1dGVzKHBhcmFtcy5hdHRycyk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKHBhcmFtcy5lbGVtZW50KSB7XG4gICAgICAgICAgICBDb21wb25lbnRDbGVhbmVyLmRlc3Ryb3lFbGVtZW50KHBhcmFtcy5lbGVtZW50KTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAocGFyYW1zLmVsZW1lbnRzKSB7XG4gICAgICAgICAgICBwYXJhbXMuZWxlbWVudHMuZm9yRWFjaChmdW5jdGlvbihlbGVtZW50KSB7XG4gICAgICAgICAgICAgIENvbXBvbmVudENsZWFuZXIuZGVzdHJveUVsZW1lbnQoZWxlbWVudCk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqIEBwYXJhbSB7anFMaXRlfSBlbGVtZW50XG4gICAgICAgICAqIEBwYXJhbSB7U3RyaW5nfSBuYW1lXG4gICAgICAgICAqL1xuICAgICAgICBmaW5kRWxlbWVudGVPYmplY3Q6IGZ1bmN0aW9uKGVsZW1lbnQsIG5hbWUpIHtcbiAgICAgICAgICByZXR1cm4gZWxlbWVudC5pbmhlcml0ZWREYXRhKG5hbWUpO1xuICAgICAgICB9LFxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAcGFyYW0ge1N0cmluZ30gcGFnZVxuICAgICAgICAgKiBAcmV0dXJuIHtQcm9taXNlfVxuICAgICAgICAgKi9cbiAgICAgICAgZ2V0UGFnZUhUTUxBc3luYzogZnVuY3Rpb24ocGFnZSkge1xuICAgICAgICAgIHZhciBjYWNoZSA9ICR0ZW1wbGF0ZUNhY2hlLmdldChwYWdlKTtcblxuICAgICAgICAgIGlmIChjYWNoZSkge1xuICAgICAgICAgICAgdmFyIGRlZmVycmVkID0gJHEuZGVmZXIoKTtcblxuICAgICAgICAgICAgdmFyIGh0bWwgPSB0eXBlb2YgY2FjaGUgPT09ICdzdHJpbmcnID8gY2FjaGUgOiBjYWNoZVsxXTtcbiAgICAgICAgICAgIGRlZmVycmVkLnJlc29sdmUodGhpcy5ub3JtYWxpemVQYWdlSFRNTChodG1sKSk7XG5cbiAgICAgICAgICAgIHJldHVybiBkZWZlcnJlZC5wcm9taXNlO1xuXG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiAkaHR0cCh7XG4gICAgICAgICAgICAgIHVybDogcGFnZSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnR0VUJ1xuICAgICAgICAgICAgfSkudGhlbihmdW5jdGlvbihyZXNwb25zZSkge1xuICAgICAgICAgICAgICB2YXIgaHRtbCA9IHJlc3BvbnNlLmRhdGE7XG5cbiAgICAgICAgICAgICAgcmV0dXJuIHRoaXMubm9ybWFsaXplUGFnZUhUTUwoaHRtbCk7XG4gICAgICAgICAgICB9LmJpbmQodGhpcykpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICAvKipcbiAgICAgICAgICogQHBhcmFtIHtTdHJpbmd9IGh0bWxcbiAgICAgICAgICogQHJldHVybiB7U3RyaW5nfVxuICAgICAgICAgKi9cbiAgICAgICAgbm9ybWFsaXplUGFnZUhUTUw6IGZ1bmN0aW9uKGh0bWwpIHtcbiAgICAgICAgICBodG1sID0gKCcnICsgaHRtbCkudHJpbSgpO1xuXG4gICAgICAgICAgaWYgKCFodG1sLm1hdGNoKC9ePG9ucy1wYWdl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AgKi9cbiAgICAgICAgICByZXR1cm4gZnVuY3Rpb24odGVtcGxhdGUpIHtcbiAgICAgICAgICAgIHJldHVybiBtb2RpZmllcnMubWFwKGZ1bmN0aW9uKG1vZGlmaWVyKSB7XG4gICAgICAgICAgICAgIHJldHVybiB0ZW1wbGF0ZS5yZXBsYWNlKCcqJywgbW9kaWZpZXIpO1xuICAgICAgICAgICAgfSkuam9pbignICcpO1xuICAgICAgICAgIH07XG4gICAgICAgIH0sXG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqIEFkZCBtb2RpZmllciBtZXRob2RzIHRvIHZpZXcgb2JqZWN0IGZvciBjdXN0b20gZWxlbWVudHMuXG4gICAgICAgICAqXG4gICAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSB2aWV3IG9iamVjdFxuICAgICAgICAgKiBAcGFyYW0ge2pxTGl0ZX0gZWxlbWVudFxuICAgICAgICAgKi9cbiAgICAgICAgYWRkTW9kaWZpZXJNZXRob2RzRm9yQ3VzdG9tRWxlbWVudHM6IGZ1bmN0aW9uKHZpZXcsIGVsZW1lbnQpIHtcbiAgICAgICAgICB2YXIgbWV0aG9kcyA9IHtcbiAgICAgICAgICAgIGhhc01vZGlmaWVyOiBmdW5jdGlvbihuZWVkbGUpIHtcbiAgICAgICAgICAgICAgdmFyIHRva2VucyA9IE1vZGlmaWVyVXRpbC5zcGxpdChlbGVtZW50LmF0dHIoJ21vZGlmaWVyJykpO1xuICAgICAgICAgICAgICBuZWVkbGUgPSB0eXBlb2YgbmVlZGxlID09PSAnc3RyaW5nJyA/IG5lZWRsZS50cmltKCkgOiAnJztcblxuICAgICAgICAgICAgICByZXR1cm4gTW9kaWZpZXJVdGlsLnNwbGl0KG5lZWRsZSkuc29tZShmdW5jdGlvbihuZWVkbGUpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdG9rZW5zLmluZGV4T2YobmVlZGxlKSAhPSAtMTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICByZW1vdmVNb2RpZmllcjogZnVuY3Rpb24obmVlZGxlKSB7XG4gICAgICAgICAgICAgIG5lZWRsZSA9IHR5cGVvZiBuZWVkbGUgPT09ICdzdHJpbmcnID8gbmVlZGxlLnRyaW0oKSA6ICcnO1xuXG4gICAgICAgICAgICAgIHZhciBtb2RpZmllciA9IE1vZGlmaWVyVXRpbC5zcGxpdChlbGVtZW50LmF0dHIoJ21vZGlmaWVyJykpLmZpbHRlcihmdW5jdGlvbih0b2tlbikge1xuICAgICAgICAgICAgICAgIHJldHVybiB0b2tlbiAhPT0gbmVlZGxlO1xuICAgICAgICAgICAgICB9KS5qb2luKCcgJyk7XG5cbiAgICAgICAgICAgICAgZWxlbWVudC5hdHRyKCdtb2RpZmllcicsIG1vZGlmaWVyKTtcbiAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgIGFkZE1vZGlmaWVyOiBmdW5jdGlvbihtb2RpZmllcikge1xuICAgICAgICAgICAgICBlbGVtZW50LmF0dHIoJ21vZGlmaWVyJywgZWxlbWVudC5hdHRyKCdtb2RpZmllcicpICsgJyAnICsgbW9kaWZpZXIpO1xuICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgc2V0TW9kaWZpZXI6IGZ1bmN0aW9uKG1vZGlmaWVyKSB7XG4gICAgICAgICAgICAgIGVsZW1lbnQuYXR0cignbW9kaWZpZXInLCBtb2RpZmllcik7XG4gICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICB0b2dnbGVNb2RpZmllcjogZnVuY3Rpb24obW9kaWZpZXIpIHtcbiAgICAgICAgICAgICAgaWYgKHRoaXMuaGFzTW9kaWZpZXIobW9kaWZpZXIpKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5yZW1vdmVNb2RpZmllcihtb2RpZmllcik7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5hZGRNb2RpZmllcihtb2RpZmllcik7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9O1xuXG4gICAgICAgICAgZm9yICh2YXIgbWV0aG9kIGluIG1ldGhvZHMpIHtcbiAgICAgICAgICAgIGlmIChtZXRob2RzLmhhc093blByb3BlcnR5KG1ldGhvZCkpIHtcbiAgICAgICAgICAgICAgdmlld1ttZXRob2RdID0gbWV0aG9kc1ttZXRob2RdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICAvKipcbiAgICAgICAgICogQWRkIG1vZGlmaWVyIG1ldGhvZHMgdG8gdmlldyBvYmplY3QuXG4gICAgICAgICAqXG4gICAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSB2aWV3IG9iamVjdFxuICAgICAgICAgKiBAcGFyYW0ge1N0cmluZ30gdGVtcGxhdGVcbiAgICAgICAgICogQHBhcmFtIHtqcUxpdGV9IGVsZW1lbnRcbiAgICAgICAgICovXG4gICAgICAgIGFkZE1vZGlmaWVyTWV0aG9kczogZnVuY3Rpb24odmlldywgdGVtcGxhdGUsIGVsZW1lbnQpIHtcbiAgICAgICAgICB2YXIgX3RyID0gZnVuY3Rpb24obW9kaWZpZXIpIHtcbiAgICAgICAgICAgIHJldHVybiB0ZW1wbGF0ZS5yZXBsYWNlKCcqJywgbW9kaWZpZXIpO1xuICAgICAgICAgIH07XG5cbiAgICAgICAgICB2YXIgZm5zID0ge1xuICAgICAgICAgICAgaGFzTW9kaWZpZXI6IGZ1bmN0aW9uKG1vZGlmaWVyKSB7XG4gICAgICAgICAgICAgIHJldHVybiBlbGVtZW50Lmhhc0NsYXNzKF90cihtb2RpZmllcikpO1xuICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgcmVtb3ZlTW9kaWZpZXI6IGZ1bmN0aW9uKG1vZGlmaWVyKSB7XG4gICAgICAgICAgICAgIGVsZW1lbnQucmVtb3ZlQ2xhc3MoX3RyKG1vZGlmaWVyKSk7XG4gICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICBhZGRNb2RpZmllcjogZnVuY3Rpb24obW9kaWZpZXIpIHtcbiAgICAgICAgICAgICAgZWxlbWVudC5hZGRDbGFzcyhfdHIobW9kaWZpZXIpKTtcbiAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgIHNldE1vZGlmaWVyOiBmdW5jdGlvbihtb2RpZmllcikge1xuICAgICAgICAgICAgICB2YXIgY2xhc3NlcyA9IGVsZW1lbnQuYXR0cignY2xhc3MnKS5zcGxpdCgvXFxzKy8pLFxuICAgICAgICAgICAgICAgICAgcGF0dCA9IHRlbXBsYXRlLnJlcGxhY2UoJyonLCAnLicpO1xuXG4gICAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgY2xhc3Nlcy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIHZhciBjbHMgPSBjbGFzc2VzW2ldO1xuXG4gICAgICAgICAgICAgICAgaWYgKGNscy5tYXRjaChwYXR0KSkge1xuICAgICAgICAgICAgICAgICAgZWxlbWVudC5yZW1vdmVDbGFzcyhjbHMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIGVsZW1lbnQuYWRkQ2xhc3MoX3RyKG1vZGlmaWVyKSk7XG4gICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICB0b2dnbGVNb2RpZmllcjogZnVuY3Rpb24obW9kaWZpZXIpIHtcbiAgICAgICAgICAgICAgdmFyIGNscyA9IF90cihtb2RpZmllcik7XG4gICAgICAgICAgICAgIGlmIChlbGVtZW50Lmhhc0NsYXNzKGNscykpIHtcbiAgICAgICAgICAgICAgICBlbGVtZW50LnJlbW92ZUNsYXNzKGNscyk7XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudC5hZGRDbGFzcyhjbHMpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfTtcblxuICAgICAgICAgIHZhciBhcHBlbmQgPS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aW9uKHZpZXcpIHtcbiAgICAgICAgICB2aWV3Lmhhc01vZGlmaWVyID0gdmlldy5yZW1vdmVNb2RpZmllciA9XG4gICAgICAgICAgICB2aWV3LmFkZE1vZGlmaWVyID0gdmlldy5zZXRNb2RpZmllciA9XG4gICAgICAgICAgICB2aWV3LnRvZ2dsZU1vZGlmaWVyID0gdW5kZWZpbmVkO1xuICAgICAgICB9LFxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBEZWZpbmUgYSB2YXJpYWJsZSB0byBKYXZhU2NyaXB0IGdsb2JhbCBzY29wZSBhbmQgQW5ndWxhckpTIHNjb3BlIGFzICd2YXInIGF0dHJpYnV0ZSBuYW1lLlxuICAgICAgICAgKlxuICAgICAgICAgKiBAcGFyYW0ge09iamVjdH0gYXR0cnNcbiAgICAgICAgICogQHBhcmFtIG9iamVjdFxuICAgICAgICAgKi9cbiAgICAgICAgZGVjbGFyZVZhckF0dHJpYnV0ZTogZnVuY3Rpb24oYXR0cnMsIG9iamVjdCkge1xuICAgICAgICAgIGlmICh0eXBlb2YgYXR0cnMudmFyID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgdmFyIHZhck5hbWUgPSBhdHRycy52YXI7XG4gICAgICAgICAgICB0aGlzLl9kZWZpbmVWYXIodmFyTmFtZSwgb2JqZWN0KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgX3JlZ2lzdGVyRXZlbnRIYW5kbGVyOiBmdW5jdGlvbihjb21wb25lbnQsIGV2ZW50TmFtZSkge1xuICAgICAgICAgIHZhciBjYXBpdGFsaXplZEV2ZW50TmFtZSA9IGV2ZW50TmFtZS5jaGFyQXQoMCkudG9VcHBlckNhc2UoKSArIGV2ZW50TmFtZS5zbGljZSgxKTtcblxuICAgICAgICAgIGNvbXBvbmVudC5vbihldmVudE5hbWUsIGZ1bmN0aW9uKGV2ZW50KSB7XG4gICAgICAgICAgICAkb25zZW4uZmlyZUNvbXBvbmVudEV2ZW50KGNvbXBvbmVudC5fZWxlbWVudFswXSwgZXZlbnROYW1lLCBldmVudCAmJiBldmVudC5kZXRhaWwpO1xuXG4gICAgICAgICAgICB2YXIgaGFuZGxlciA9IGNvbXBvbmVudC5fYXR0cnNbJ29ucycgKyBjYXBpdGFsaXplZEV2ZW50TmFtZV07XG4gICAgICAgICAgICBpZiAoaGFuZGxlcikge1xuICAgICAgICAgICAgICBjb21wb25lbnQuX3Njb3BlLiRldmFsKGhhbmRsZXIsIHskZXZlbnQ6IGV2ZW50fSk7XG4gICAgICAgICAgICAgIGNvbXBvbmVudC5fc2NvcGUuJGV2YWxBc3luYygpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuICAgICAgICB9LFxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBSZWdpc3RlciBldmVudCBoYW5kbGVycyBmb3IgYXR0cmlidXRlcy5cbiAgICAgICAgICpcbiAgICAgICAgICogQHBhcmFtIHtPYmplY3R9IGNvbXBvbmVudFxuICAgICAgICAgKiBAcGFyYW0ge1N0cmluZ30gZXZlbnROYW1lc1xuICAgICAgICAgKi9cbiAgICAgICAgcmVnaXN0ZXJFdmVudEhhbmRsZXJzOiBmdW5jdGlvbihjb21wb25lbnQsIGV2ZW50TmFtZXMpIHtcbiAgICAgICAgICBldmVudE5hbWVzID0gZXZlbnROYW1lcy50cmltKCkuc3BsaXQoL1xccysvKTtcblxuICAgICAgICAgIGZvciAodmFyIGkgPSAwLCBsID0gZXZlbnROYW1lcy5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICAgICAgICAgIHZhciBldmVudE5hbWUgPSBldmVudE5hbWVzW2ldO1xuICAgICAgICAgICAgdGhpcy5fcmVnaXN0ZXJFdmVudEhhbmRsZXIoY29tcG9uZW50LCBldmVudE5hbWUpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICAvKipcbiAgICAgICAgICogQHJldHVybiB7Qm9vbGVhbn1cbiAgICAgICAgICovXG4gICAgICAgIGlzQW5kcm9pZDogZnVuY3Rpb24oKSB7XG4gICAgICAgICAgcmV0dXJuICEhJHdpbmRvdy5uYXZpZ2F0b3IudXNlckFnZW50Lm1hdGNoKC9hbmRyb2lkL2kpO1xuICAgICAgICB9LFxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAcmV0dXJuIHtCb29sZWFufVxuICAgICAgICAgKi9cbiAgICAgICAgaXNJT1M6IGZ1bmN0aW9uKCkge1xuICAgICAgICAgIHJldHVybiAhISR3aW5kb3cubmF2aWdhdG9yLnVzZXJBZ2VudC5tYXRjaCgvKGlwYWR8aXBob25lfGlwb2QgdG91Y2gpL2kpO1xuICAgICAgICB9LFxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAcmV0dXJuIHtCb29sZWFufVxuICAgICAgICAgKi9cbiAgICAgICAgaXNXZWJWaWV3OiBmdW5jdGlvbigpIHtcbiAgICAgICAgICByZXR1cm4gJG9uc0dsb2JhbC5pc1dlYlZpZXcoKTtcbiAgICAgICAgfSxcblxuICAgICAgICAvKipcbiAgICAgICAgICogQHJldHVybiB7Qm9vbGVhbn1cbiAgICAgICAgICovXG4gICAgICAgIGlzSU9TN2Fib3ZlOiAoZnVuY3Rpb24oKSB7XG4gICAgICAgICAgdmFyIHVhID0gJHdpbmRvdy5uYXZpZ2F0b3IudXNlckFnZW50O1xuICAgICAgICAgIHZhciBtYXRjaCA9IHVhLm1hdGNoKC8oaVBhZHxpUGhvbmV8aVBvZCB0b3VjaCk7LipDUFUuKk9TIChcXGQrKV8oXFxkKykvaSk7XG5cbiAgICAgICAgICB2YXIgcmVzdWx0ID0gbWF0Y2ggPyBwYXJzZUZsb2F0KG1hdGNoWzJdICsgJy4nICsgbWF0Y2hbM10pID49IDcgOiBmYWxzZTtcblxuICAgICAgICAgIHJldHVybiBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgICAgICAgfTtcbiAgICAgICAgfSkoKSxcblxuICAgICAgICAvKipcbiAgICAgICAgICogRmlyZSBhIG5hbWVkIGV2ZW50IGZvciBhIGNvbXBvbmVudC4gVGhlIHZpZXcgb2JqZWN0LCBpZiBpdCBleGlzdHMsIGlzIGF0dGFjaGVkIHRvIGV2ZW50LmNvbXBvbmVudC5cbiAgICAgICAgICpcbiAgICAgICAgICogQHBhcmFtIHtIVE1MRWxlbWVudH0gW2RvbV1cbiAgICAgICAgICogQHBhcmFtIHtTdHJpbmd9IGV2ZW50IG5hbWVcbiAgICAgICAgICovXG4gICAgICAgIGZpcmVDb21wb25lbnRFdmVudDogZnVuY3Rpb24oZG9tLCBldmVudE5hbWUsIGRhdGEpIHtcbiAgICAgICAgICBkYXRhID0gZGF0YSB8fCB7fTtcblxuICAgICAgICAgIHZhciBldmVudCA9IGRvY3VtZW50LmNyZWF0ZUV2ZW50KCdIVE1MRXZlbnRzJyk7XG5cbiAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gZGF0YSkge1xuICAgICAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSkge1xuICAgICAgICAgICAgICBldmVudFtrZXldID0gZGF0YVtrZXldO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cblxuICAgICAgICAgIGV2ZW50LmNvbXBvbmVudCA9IGRvbSA/XG4gICAgICAgICAgICBhbmd1bGFyLmVsZW1lbnQoZG9tKS5kYXRhKGRvbS5ub2RlTmFtZS50b0xvd2VyQ2FzZSgpKSB8fCBudWxsIDogbnVsbDtcbiAgICAgICAgICBldmVudC5pbml0RXZlbnQoZG9tLm5vZGVOYW1lLnRvTG93ZXJDYXNlKCkgKyAnOicgKyBldmVudE5hbWUsIHRydWUsIHRydWUpO1xuXG4gICAgICAgICAgZG9tLmRpc3BhdGNoRXZlbnQoZXZlbnQpO1xuICAgICAgICB9LFxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBEZWZpbmUgYSB2YXJpYWJsZSB0byBKYXZhU2NyaXB0IGdsb2JhbCBzY29wZSBhbmQgQW5ndWxhckpTIHNjb3BlLlxuICAgICAgICAgKlxuICAgICAgICAgKiBVdGlsLmRlZmluZVZhcignZm9vJywgJ2Zvby12YWx1ZScpO1xuICAgICAgICAgKiAvLyA9PiB3aW5kb3cuZm9vIGFuZCAkc2NvcGUuZm9vIGlzIG5vdyAnZm9vLXZhbHVlJ1xuICAgICAgICAgKlxuICAgICAgICAgKiBVdGlsLmRlZmluZVZhcignZm9vLmJhcicsICdmb28tYmFyLXZhbHVlJyk7XG4gICAgICAgICAqIC8vID0+IHdpbmRvdy5mb28uYmFyIGFuZCAkc2NvcGUuZm9vLmJhciBpcyBub3cgJ2Zvby1iYXItdmFsdWUnXG4gICAgICAgICAqXG4gICAgICAgICAqIEBwYXJhbSB7U3RyaW5nfSBuYW1lXG4gICAgICAgICAqIEBwYXJhbSBvYmplY3RcbiAgICAgICAgICovXG4gICAgICAgIF9kZWZpbmVWYXI6IGZ1bmN0aW9uKG5hbWUsIG9iamVjdCkge1xuICAgICAgICAgIHZhciBuYW1lcyA9IG5hbWUuc3BsaXQoL1xcLi8pO1xuXG4gICAgICAgICAgZnVuY3Rpb24gc2V0KGNvbnRhaW5lciwgbmFtZXMsIG9iamVjdCkge1xuICAgICAgICAgICAgdmFyIG5hbWU7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IG5hbWVzLmxlbmd0aCAtIDE7IGkrKykge1xuICAgICAgICAgICAgICBuYW1lID0gbmFtZXNbaV07XG4gICAgICAgICAgICAgIGlmIChjb250YWluZXJbbmFtZV0gPT09IHVuZGVmaW5lZCB8fCBjb250YWluZXJbbmFtZV0gPT09IG51bGwpIHtcbiAgICAgICAgICAgICAgICBjb250YWluZXJbbmFtZV0gPSB7fTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBjb250YWluZXIgPSBjb250YWluZXJbbmFtZV07XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNvbnRhaW5lcltuYW1lc1tuYW1lcy5sZW5ndGggLSAxXV0gPSBvYmplY3Q7XG5cbiAgICAgICAgICAgIGlmIChjb250YWluZXJbbmFtZXNbbmFtZXMubGVuZ3RoIC0gMV1dICE9PSBvYmplY3QpIHtcbiAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdDYW5ub3Qgc2V0IHZhcj1cIicgKyBvYmplY3QuX2F0dHJzLnZhciArICdcIiBiZWNhdXNlIGl0IHdpbGwgb3ZlcndyaXRlIGEgcmVhZC1vbmx5IHZhcmlhYmxlLicpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChvbnMuY29tcG9uZW50QmFzZSkge1xuICAgICAgICAgICAgc2V0KG9ucy5jb21wb25lbnRCYXNlLCBuYW1lcywgb2JqZWN0KTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICB2YXIgZ2V0U2NvcGUgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICAgICAgcmV0dXJuIGFuZ3VsYXIuZWxlbWVudChlbCkuZGF0YSgnX3Njb3BlJyk7XG4gICAgICAgICAgfTtcblxuICAgICAgICAgIHZhciBlbGVtZW50ID0gb2JqZWN0Ll9lbGVtZW50WzBdO1xuXG4gICAgICAgICAgLy8gQ3VycmVudCBlbGVtZW50IG1pZ2h0IG5vdCBoYXZlIGRhdGEoJ19zY29wZScpXG4gICAgICAgICAgaWYgKGVsZW1lbnQuaGFzQXR0cmlidXRlKCdvbnMtc2NvcGUnKSkge1xuICAgICAgICAgICAgc2V0KGdldFNjb3BlKGVsZW1lbnQpIHx8IG9iamVjdC5fc2NvcGUsIG5hbWVzLCBvYmplY3QpO1xuICAgICAgICAgICAgZWxlbWVudCA9IG51bGw7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLy8gQW5jZXN0b3JzXG4gICAgICAgICAgd2hpbGUgKGVsZW1lbnQucGFyZW50RWxlbWVudCkge1xuICAgICAgICAgICAgZWxlbWVudCA9IGVsZW1lbnQuc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uICAgICAgZnVuY3Rpb24obmFtZSkge1xuICAgICAgICB2YXIgZGlyZWN0aXZlTmFtZSA9IGRpcmVjdGl2ZU5vcm1hbGl6ZSgnbmctJyArIG5hbWUpO1xuICAgICAgICBuZ0V2ZW50RGlyZWN0aXZlc1tkaXJlY3RpdmVOYW1lXSA9IFsnJHBhcnNlJywgZnVuY3Rpb24oJHBhcnNlKSB7XG4gICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGNvbXBpbGU6IGZ1bmN0aW9uKCRlbGVtZW50LCBhdHRyKSB7XG4gICAgICAgICAgICAgIHZhciBmbiA9ICRwYXJzZShhdHRyW2RpcmVjdGl2ZU5hbWVdKTtcbiAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uKHNjb3BlLCBlbGVtZW50LCBhdHRyKSB7XG4gICAgICAgICAgICAgICAgdmFyIGxpc3RlbmVyID0gZnVuY3Rpb24oZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgIHNjb3BlLiRhcHBseShmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICAgICAgZm4oc2NvcGUsIHskZXZlbnQ6IGV2ZW50fSk7XG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGVsZW1lbnQub24obmFtZSwgbGlzdGVuZXIpO1xuXG4gICAgICAgICAgICAgICAgQ29tcG9uZW50Q2xlYW5lci5vbkRlc3Ryb3koc2NvcGUsIGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICAgICAgZWxlbWVudC5vZmYobmFtZSwgbGlzdGVuZXIpO1xuICAgICAgICAgICAgICAgICAgZWxlbWVudCA9IG51bGw7XG5cbiAgICAgICAgICAgICAgICAgIENvbXBvbmVudENsZWFuZXIuZGVzdHJveVNjb3BlKHNjb3BlKTtcbiAgICAgICAgICAgICAgICAgIHNjb3BlID0gbnVsbDtcblxuICAgICAgICAgICAgICAgICAgQ29tcG9uZW50Q2xlYW5lci5k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